I use parallel actions where there is a long list of things to do which have time delays in them so that the delays in one section don't affect the other
I had a failure which meant I had to start over again with HA (my backups were also corrupt). I used to use node red but decided to give native automations a go, I found that using parralell mode allowed me to nest all parts of the automation instead of having 5 separate automations. It's worked really well for me
When did this get added, or has it been there forever and a day? I did not know it existed, so thank you for pointing this out. I'm sure I can find a few automations where I can make use of it to speed things up a little, mainly where I've had to add a delay for something.
What I'd like to know is how to setup "if button pressed, turn on scene, but if other button is pressed, turn off that scene or at least all the lights in the room" without having to be 2 automations.
Considering HA is written in Python, I wonder whether there is anything in the Python language that effectively runs things in parallel or if it just an abstraction and code is always sequential 🤔
You can find the code in my blog post! leonardosmarthomemakers.com/how-to-speed-up-home-assistant-automations-with-parallel-runs/
I want to thank you for your excellent videos. Just when I think I've made progress and understand the system, you always teach me something new. 🎉
Thanks Antonio! HA has a lot of surprises too!
I use parallel actions where there is a long list of things to do which have time delays in them so that the delays in one section don't affect the other
Good use case!
I had a failure which meant I had to start over again with HA (my backups were also corrupt). I used to use node red but decided to give native automations a go, I found that using parralell mode allowed me to nest all parts of the automation instead of having 5 separate automations. It's worked really well for me
Sounds great Jamie, it is really easy to switch between parallel and sequential even in the UI, I was convinced it could only work in YAML
When did this get added, or has it been there forever and a day? I did not know it existed, so thank you for pointing this out. I'm sure I can find a few automations where I can make use of it to speed things up a little, mainly where I've had to add a delay for something.
I think recently it has been added to the UI, it has been in yaml for a while!
What I'd like to know is how to setup "if button pressed, turn on scene, but if other button is pressed, turn off that scene or at least all the lights in the room" without having to be 2 automations.
You can do that within home assistant or node red
How do you continue do execute sequential actions within each branch of the parallel actions?
Thank you.
Thanks Ron!!
Considering HA is written in Python, I wonder whether there is anything in the Python language that effectively runs things in parallel or if it just an abstraction and code is always sequential 🤔
I would guess some sort of abstraction