This seems like it’s probably a pretty common requirement, so maybe I’m just missing something.
I’m creating a doorbell rule, which currently sets all of my Hue lights to ‘alert’ and plays doorbell.mp3 on my default audio sink - a Sonos speaker. However, I have two Sonos speakers, and would like the sound to play on both, simultaneously (or close-to simultaneously, I don’t mind a slight delay). I’ve found that if they’re grouped, then asking either one to play the sound plays on both, but I’d like it to work the same even if they aren’t already in a group.
The obvious option is:
playSound("sonos1", "doorbell.mp3") playSound("sonos2", "doorbell.mp3")
but because the first call blocks until the MP3 has finished playing, the second one only starts about 20 seconds later.
So - my question is either: is there a way to ask the
playSound action to target multiple audio sinks? Or - I guess more likely - is there a way to get each action to execute in a separate thread?