Rule for LUX combined with CLOCK
Posted: 02 Nov 2019, 20:38
Hello gurus,
I just bought myself an electric candlestick and I want to control it with a LUX sensor and a relay. The hardware is working and ESP Easy is up and running.
I basically want a rule that turns the relay on if it's dark and off if its daylight. However, how can I make sure that the relay is also off when I'm sleeping?
I can't figure out the syntax, but I want a rule like this:
If clock is between 06:00 and 22:30 and it is dark turn the relay on
If it is daylight, turn the relay off
If clock is between 22:30 and 06:00 turn the relay off
(My device is called lux#value and the relay turns on with gpio,12,1)
Any advice?
Best regards,
/David
I just bought myself an electric candlestick and I want to control it with a LUX sensor and a relay. The hardware is working and ESP Easy is up and running.
I basically want a rule that turns the relay on if it's dark and off if its daylight. However, how can I make sure that the relay is also off when I'm sleeping?
I can't figure out the syntax, but I want a rule like this:
If clock is between 06:00 and 22:30 and it is dark turn the relay on
If it is daylight, turn the relay off
If clock is between 22:30 and 06:00 turn the relay off
(My device is called lux#value and the relay turns on with gpio,12,1)
Any advice?

Best regards,
/David