@josh or @James So with the rule engine is it possible to do a between sunset and sunrise and vice versa event trigger? I just can’t seem to figure it out if there is a way.
Example
Between Sunset and Sunrise
If Door Contact == open then
Light = on
Else
End
@just_jake you will be using IF condition to check the current time when the door contact open event occurs. See below for details and note that you will need to edit the IF condition to change the logic from AND (all) by default to OR (any).
@just_jake, we did the before sunrise and after sunset because we think between sunset and sunrise can be ambiguous (through the midnight or noon?). But I do get your point, and encourage you to add a feature request so we can track it.
Hi @James I have the below rule that I want to change to between 12AM & Sunrise. I have to keep changing the rule every season b/c of the time change. How do I go about changing it and keeping the “AND”
@Robert_Bourne, the x minutes before/after sunset and sunrise is not currently supported in the if condition directly, but you can create a variable and update the variable according using an additional rule. See the example below, and please cast your vote if you’d like this offset feature to be implemented in the if condition as well.