I am having trouble determing a working RM what will turn on a light at 20:45 only when sunset is before that time, and turn on the light at sunset when sunset occurs after 20:45. Any help would be appreicated.
Based on how I inturuput the response it answers half the question. It would turn on the light at 20:45 when sunset occurs before then but does not turn on the light when sunset occurs after 20:45 at which point I would like the light to turn on at sunset.
Here's another option
Trigger Events
When time is Sunset
Actions to Run
IF (Time between 16:00 and 20:45) Wait for event: When time is 20:45
On: Light
Note that for me sunset is never before 16:00
That will be handled by the wait for time between sunset andā¦
If you want later of two times in Rule Machine, do it this way:
Triggers: 20:45 or sunset
For rule, do if āprivate Boolean is true, thenā set Boolean to false. For else, you want to set the Boolean to true and turn on the light finally add your endIF.
Basically, the early time will always just set the Boolean to false. The later time will always turn on the light and reset the Boolean for the next day.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
