I have several Sonos speakers in the home. Integration overall works very well, but I'd like to add the possibility to have a button in each room, that would trigger the playing. This works so far with a script.
The problem arises when first speaker starts playing and another joins, unjoining the first one will kill the complete system.
This is the script I use to execute from the automation depending on the room. I pass the data via parameters.
I've read this where it "seems" to work, but I can't make it work on my side. Any idea how to keep music playing if first (master) speaker tries to unjoin?
(code too big, pasting as a first comment)
I repeated the steps I had performed last February using a TuneIn station (Smooth Jazz). media_content_id: x-rincon-mp3radio://https://rfcm.streamguys1.com/smoothjazzpremium-mp3?etc etc Unjoining the last speaker caused no perceptible interruption. Unjoining the first speaker, the master, caused about a 2-second pause and then playback re...