Combining 2 rules into 1

I'm slowly learning the capabilities of Rule Machine and trying to do what I think is simple. I currently have 2 rules, 1 that turns an outdoor light on at sunset and one that turns it off at midnight. Is there a way I could combine these 2 rules into one just to simplify maintenance of my rules?

I would recommend you use the Simple Automation app instead. Can do it in one rule there.

1 Like

Here's an example of how to do what you want with Wait for events

Thank you for this feedback, I knew this option existed...I had just hoped that I could do everything in Rule Machine.

I just posted this elsewhere, but think it maybe of value to you as well:

2 Likes

You need the create two triggers.

In actions you would have:
IF (time is sunset) THEN turn switch on
Else-IF
IF (time is 11:00PM) THEN turn switch off

You don't need the "Else-IF", just an "Else":

IF (Time is Sunset) THEN
    On: [switch]
ELSE
    Off: [switch]

With only two triggers, if the first isn't true, the second must be.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.