I now have this kind of dzVents script:
lux < 300 then garden lights on
lux > 300 then garden lights off
So now my garden is practically lit with 20% of light all night.
What i want to achieve is this:
when lux < 300 then the lights should go on (at 20%)
instead from 23:00 until 06:00 the lights should be off (unless there is motion but i'll add that myself)
Basically the question is; does the domoticz.time.matchesRule() work with overlapping days? e.g. this:
Code: Select all
if (lux < 300) then
if (domoticz.time.matchesRule('at 23:00-06:00')) then
-- light off
else
-- light on at 20%
end
end