Lua Parsers Script - global tables
Posted: Tuesday 08 May 2018 15:28
Hi. I have a problem, becouse i can't read actual sesnor's value in Json lua_parsers
My local modules invoke special URL on every 5 seconds with parameters (state of sensors) and my lua scripts parse it and if the values changed - make a domoticz_updateDevice procedure.
Now the otherdevices_svalues return nothing so i have a touhsand same values in log on each sensors - i can't check this in domoticz becouse web side hang up.
Example:
tem = tonumber(uri['sensor1'])
if (tem == 0 and otherdevices_svalues['sesnsor_name'] ~= 'Off') then domoticz_updateDevice(11,0,'Off') else end
if (tem == 1 and otherdevices_svalues['sensor_name'] ~= 'On') then domoticz_updateDevice(11,1,'On') else end
I don't know when, but i think - 3 months ago it worked perfect.
I tried on stable version and newest unstable.
For Now - Global tables like otherdevice_svalue and other - are EMPTY.
Is it error or normal situation ?
Please help.
My local modules invoke special URL on every 5 seconds with parameters (state of sensors) and my lua scripts parse it and if the values changed - make a domoticz_updateDevice procedure.
Now the otherdevices_svalues return nothing so i have a touhsand same values in log on each sensors - i can't check this in domoticz becouse web side hang up.
Example:
tem = tonumber(uri['sensor1'])
if (tem == 0 and otherdevices_svalues['sesnsor_name'] ~= 'Off') then domoticz_updateDevice(11,0,'Off') else end
if (tem == 1 and otherdevices_svalues['sensor_name'] ~= 'On') then domoticz_updateDevice(11,1,'On') else end
I don't know when, but i think - 3 months ago it worked perfect.
I tried on stable version and newest unstable.
For Now - Global tables like otherdevice_svalue and other - are EMPTY.
Is it error or normal situation ?
Please help.