Hey Guys,
was playing around with “close to my first” rule, tried to think of something i could actually use…
i came up with the following but have lot of questions.
My idea is: i need a light to turn on if i am not seen at home between 17:00 and 18:00, but it should only work when my sunrise event has triggered (so it starts to get dark outside)
i dont have any other motion or light sensors yet.
rule "Not home between 17u - 18u - lights on"
when
(now.getHours > 17 || now.getHours <=18)
Channel "astro:sun:home:set#event" triggered START
Channel "network:pingdevice:192_168_1_3:lastseen")
then
Livingwandlicht.sendCommand(ON)
end
- Can i just add multiple “whens” like this example underneath eachother, will that work?
- Is my statement to get this working between 17u and 18u correct?
- I need this rule to only work if the “last seen” is NOT between 17-18u and i can not seem to figure this one out.
Any help would be appreciated.
Thx.