Cannot get Lux value... Topic is solved

Moderator: leecollings

Post Reply
dennusb
Posts: 12
Joined: Thursday 23 October 2014 8:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Cannot get Lux value...

Post by dennusb »

Hi all,

I have a nice Lux sensor in my Domoticz :
Image

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'])
But for whatever reason it's not printing the Lux value of the sensor... console output says :
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:
Any idea on what i'm doing wrong?
mrf68

Re: Cannot get Lux value...

Post by mrf68 »

Hi,

You're checking the values of sensor ['Slaapkamer Lux_Utility'], but the name of the sensor is ['Slaapkamer Lux'] ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest