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