Cannot get Lux value...
Posted: Friday 16 June 2017 15:19
Hi all,
I have a nice Lux sensor in my Domoticz :

I made a Lua script to get that Lux value and do things with it, i made a debug script to check why it's not working that contains :
But for whatever reason it's not printing the Lux value of the sensor... console output says :
I have a nice Lux sensor in my Domoticz :

I made a Lua script to get that Lux value and do things with it, i made a debug script to check why it's not working that contains :
Code: Select all
print('LUA Custom : Device changed, not triggered the donker scene')
print(' ####lux debug: ')
print(tonumber(otherdevices_svalues['Slaapkamer Lux_Utility']))
print(otherdevices_lastupdate['Slaapkamer Lux'])
Any idea on what i'm doing wrong?2017-06-16 15:18:19.291 LUA: LUA Custom : Device changed, not triggered the donker scene
2017-06-16 15:18:19.291 LUA: ####lux debug: