The main goal is to have the Ezlo Plus to update a virtual sensor on my Vera Secure when value changes (like luup.variable_watch) but the lack of examples and me not understanding the docs for the new firmware stops me from doing that.
One would think since there is hub.item.value.set there would be a hub.item.value.get but not that I have found in the docs.
So my idéa is to poll the sensor from Vera in a scene with a simple http request.
I can get the value with the api tool with hub.data.list:
{
"api": "1.0",
"method": "hub.data.list",
"id": "_id_",
"params": {
"items":{
"ids":["5fd35167129e0711ffa44a75"], "fields": { "include":["valueFormatted"] }
}
}
}
But I can’t figure out how to filter nested objects in a url.
I guess it’s quite simple to script this request and extract the value from the json response if you know how, but I’m still a novice in Lua.