If you need to change a only single device then uses the syntax:
Code: Select all
commandArray['UpdateDevice'] = DevID..'|0|'..value
If it is necessary to change the value of multiple devices syntax used:
Code: Select all
commandArray[DevID1] = { ['UpdateDevice'] = DevID1 ..'|0|'..value1 }
commandArray[DevID2] = { ['UpdateDevice'] = DevID2 ..'|0|'..value2 }
Error: EventSystem: Warning!, lua script /usr/share/domoticz/scripts/lua/script_device_gettemp.lua has been running for more than 10 seconds
Where is my mistake?