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: