If time is between sunrise and sunset
And
Automation Virtual Switch is On
And
Any of Light 1, 2, 3, etc. is On
Then
Wait 5 Minutes
Turn Off
Problem:
I can’t figure out how to add the “Automation is On” Restriction without having it in one of the “Or” conditions…Is there not an “Only When” or something similar? What about multiple “Ands” then under it start the “Ors” grouping?…
I’ve been trying to build rules with the built in Rule Engine but it’s just sooooo basic after using webCoRE for so long. The Rules API is like staring at hieroglyphics.
If you set the ‘Automation is On’ condition as a precondition it will disappear up top with the time period, which is also a precondition but doesn’t call itself one. So you could think of it as
only when
time is between sunrise offset and sunset offset
AND
Outside Automation switch is on
if
Any of the lights are on
then
...
That will only be triggered by the lights coming on during the day and not by their state at sunrise offset and sunrise offset, which I guess is pretty much what you want.
Precondition is a fairly recent addition to most conditions in the app so you may indeed not have it yet. From what I’ve heard of the iOS app, delaying updating has some merit.
Perfect explanation! It’s good to see that they have made progress with the built in Rule Engine. I am still going to hold off updating for a while. I can see majority of basic users getting alone just fine with the built in Rule Engine and I REALLY need to dumb down some of my automations.