#Multiple Automation Queuing?

1 messages · Page 1 of 1 (latest)

cedar wind
#

Is it possible to queue multiple automations? Like to make sure that automation A will wait on Automation B to finish before running?

#

Multiple Automation Queuing?

chrome fable
cedar wind
#

I have two seperate webhooks, and they can both be triggered at any time. One webhook tells a light to flash one color, the other tells it to do another color. Unfortunately I cannot combine the automations, as the method through which the webhooks are triggered externally is different.

#

The issue is sometimes the first webhook triggers a split-second before the second, and blocks the second one from running.

#

And vice-versa

chrome fable
cedar wind
#

Oh, I didn't know that there can be multiple triggers. Duh. That seems obvious now.

chrome fable
#

you use the edit id in the overflow to add the ability to give a trigger an id

#

then in a choose block condition you use the "triggered by" condition

cedar wind
#

Yeah, I see it now. Thanks!

chrome fable
cedar wind
#

Yeah, I setup a light to flash different colors depending on what priority IT ticket came into the ticketing system. It's pretty cool.

#

Webhooks are fun

chrome fable
cedar wind
#

Nice. I actually have a tiny christmas tree that I threw a neo-pixel strip around, and left it up year-round.

#

I also submitted a PR to espHome to allow MQTT over Websockets, to allow secure communication witha remote HomeAssistant server, as I wasn't able to run one locally in the IT room.

#

The funny bit is of all things, after submitting that code, working out the JSON and webhook systems, I missed that there can be multiple triggers... 🤣