lux level checking
Posted: Wednesday 23 August 2017 11:37
hey guys
this may be answered elsewhere but searching based on lux is hard when built in search ignores it
i have a lux sensor in my house that i want to evaluate as part of a someone is home script
im trying to use it in a if statement but it fails each time
if domoticz.devices('Lounge Light Level').lux() > 50 then
it fails the lookup with the following error
2017-08-23 17:44:58.276 Error: dzVents: Error: ...icz/scripts/dzVents/generated_scripts/no one is home.lua:41: attempt to call field 'lux' (a number value)
im guessing ive written the statement wrong?
this may be answered elsewhere but searching based on lux is hard when built in search ignores it
i have a lux sensor in my house that i want to evaluate as part of a someone is home script
im trying to use it in a if statement but it fails each time
if domoticz.devices('Lounge Light Level').lux() > 50 then
it fails the lookup with the following error
2017-08-23 17:44:58.276 Error: dzVents: Error: ...icz/scripts/dzVents/generated_scripts/no one is home.lua:41: attempt to call field 'lux' (a number value)
im guessing ive written the statement wrong?