Hey Guys,
I trying to switch lights on, if lux is smaller than defined value but only during specific time.
Therefore I have following rules:
To define specific time I create a switch:
rule "Hilfsschalter an"
when
Time cron "0 30 16 ? * * ?"
then
Hilfsschalter.sendCommand(ON)
end
To check the lux and switch the lights:
rule "Lichter an wenn Lux <200"
when
Item Lichtsensor changed
then
if (Hilfsschalter.state == ON && Lichtsensor.state < 200) {
LichtWohnzimmer.sendCommand(ON)
LichtKueche.sendCOmmand(ON)
}
end
But the lights don’t switch on. Someone with an idea?
Thanks!