What happens if trigger or condition change during "delay"?

Let’s say you have a sequence of 3 actions based on a trigger & condition.

Action 1: turns light X on
Action 2: Delay of 1 min
Action 3: turns light Y on

What if the condition changes during the delay in a state and the automation would have never reached the actions with this new condition? Or does the sequence of actions ignore any change and will always execute in sequence?

The automation only get triggered by the rule when your set conditions in your trigger line up. After that it will just follow the steps you have set up without a care in the world.

/R

You can handle that with a mix of automation and script.

First write your automation with trigger and condition. But as action run a script. The first service in script could be your delay, and after that you can handle conditions again. So when your delay is over it checks if the condition is still working, if not it stops. The trigger should be something you can check in condition if needed.

Hope that helps.

1 Like