If I add another action with a condition, the rest of the automation will not run, right? (that is if the result is false)
So I guess I need a template in the action above that checks for that boolean and depending on it’s state it turns another light on.
Can someone please give me a hand with this?
Any help is highly appreciated!
N.
Hi Drew, thank you very much for picking this one up and helping!
I was trying to force all in 1 ‘action block’ in the UI, switched back and forth between UI <-> YAML but couldn’t see how to get this working.
With your code, and using VSC, it was easier then in the UI and when seeing the result in the UI it’s so obvious…
I went for option 1 since I wanted to get this done without user intervention.
Like I wrote: I got stuck on thinking that if the rest of the automation would not run.
Thanks A LOT!
I’m happy to have helped, but I wanted to clarify part of your response…
Using a Choose action does not require user input/response, it’s more like an if/then/else. It allows us to easily create automations with more complex logic.
For example if you wanted the second light to turn on at 20% when the boolean is on, but 100% when the boolean is off, you could use a Choose action.
Well, thank you for adding/clarifying this information and providing that link to that documentation page: I have learned something new.
So it seems to be an (easier) alternative to templates… any big differences/(dis)advantages?