I am trying to convert a blocky to dzVents.
How do I set the in between value of the Lux ??
Code: Select all
return {
on = {
devices = {
'Lux'
}
},
if (domoticz.devices.Lux ( >= 3701 ) then
print("Lux is > 3701")
end
if (domoticz.devices.Lux ( >= 401 and <= 3700 ) then
print("Lux is > 401 and < 3700")
end
if (domoticz.devices.Lux ( = 0 and <= 400 ) then
print("Lux is > 0 and < 400")
end
end
}
I am only having the print command to see if it changes.
Code: Select all
2018-08-12 12:46:00.818 Status: dzVents: Error (2.4.6): error loading module 'MI Day' from file '/home/pi/domoticz/scripts/dzVents/generated_scripts/MI Day.lua':
2018-08-12 12:46:00.818 ...pi/domoticz/scripts/dzVents/generated_scripts/MI Day.lua:7: unexpected symbol near 'if'