#Is there a break condition for automation?
1 messages · Page 1 of 1 (latest)
You can simply add a condition in the action sequence. If it doesn't pass, the sequence will stop
You can also take a look at this: https://www.home-assistant.io/docs/scripts/#stopping-a-script-sequence
Although I find stopping the hole automation rarely useful. As I often want something else to happen at that point. So you could also just place all actions inside an if or chooser and have the ability for an alternative action.
Do note this will only work if you place the condition as a direct action of the automation. If you nest it (aka, place it inside a repeat/if/chooser/etc) it will only break that and not the automation itself.
So it is useful to combine it nested and still have the ability to do (alternative) actions