update temp+humidity+battery
Posted: Wednesday 01 March 2023 15:00
Hello all
I would like to update a dummy device (Temp+hum)
I could find with the wiki this code and it is ok
Now, I would like to add the batterylevel of this device.
But I can't find the way or syntaxe in "UpdateDevice"
Is it possible ?
Thanks a lot
I would like to update a dummy device (Temp+hum)
I could find with the wiki this code and it is ok
Code: Select all
local function update(idx, value1, value2)
local cmd = string.format("%d|0|%.2f;%.2f", idx, value1, value2) .. ';0'
table.insert (commandArray, { ['UpdateDevice'] = cmd } )
end
But I can't find the way or syntaxe in "UpdateDevice"
Is it possible ?
Thanks a lot