Hey everyone. Suppose I had multiple scripts doing very similar things, and I want them to share one queue for execution purposes, say, one doing alarm announcements, one general announcements and so on, and I don't want them to override and interrupt each other. Is that possible out of the box with some queue_id or somthing, or do we have to resort to the old say by Dave Wheeler?
#Multiple automations, one queue?
1 messages · Page 1 of 1 (latest)
By script do you mean script or do you mean automation?
Basically to answer you scripts can accept variables, so you can create a script that accepts variables and call it from wherever with a data key and variables.
You can also create a script or an automation blueprint and call those with multiple different (scripts or automatons) with differewnt variables embedded.
I got a 'Queue' set for my announcements.
The way I did it is that all the automations that trigger announcements call the same announcement script, which is set to the 'queue' mode within HA.
Ah so basically Wheeler it is.
"All problems in computer science can be solved by another level of indirection"
¯_(ツ)_/¯
In doubt, abstract it more