I need to change the value of the virtual device.
If you need to change a only single device then uses the syntax:
commandArray['UpdateDevice'] = DevID..'|0|'..value
It's alright.
If it is necessary to change the value of multiple devices syntax used:
commandArray[DevID1] = { ['UpdateDevice ...
Search found 4 matches
- Sunday 30 October 2016 22:08
- Forum: LUA
- Topic: Long time for UpdateDevice
- Replies: 0
- Views: 633
- Thursday 29 September 2016 22:23
- Forum: PHP and all others
- Topic: Virtual Thermometer
- Replies: 3
- Views: 1083
Re: Virtual Thermometer
OK : commandArray['UpdateDevice']='60|33.33|44.44'
Thanks
Thanks
- Thursday 29 September 2016 20:24
- Forum: PHP and all others
- Topic: Virtual Thermometer
- Replies: 3
- Views: 1083
Re: Virtual Thermometer
This site I have visited before but it did not help me:
script: /usr/share/domoticz/scripts/lua/script_device_topeni.lua
------------------------
pn = tonumber(otherdevices_svalues['Termostat_loznice_nastaveni'])
pt = tonumber(otherdevices_svalues['Termostat_loznice_teplota'])
if (pn < pt) then
os ...
script: /usr/share/domoticz/scripts/lua/script_device_topeni.lua
------------------------
pn = tonumber(otherdevices_svalues['Termostat_loznice_nastaveni'])
pt = tonumber(otherdevices_svalues['Termostat_loznice_teplota'])
if (pn < pt) then
os ...
- Thursday 29 September 2016 15:57
- Forum: PHP and all others
- Topic: Virtual Thermometer
- Replies: 3
- Views: 1083
Virtual Thermometer
I have virtual thermometer and need in LUA script set temperature value.
How to do it ?
How to do it ?