I’ve been using this Sonos API integration for a few years. It works great for TTS via Sonos and playing clips. I’ve started to get into using presets, and this one works just fine for me:
{
"players": [
{ "roomName": "office", "volume": 15}
],
"favorite": "favorite1",
"uri": "3IbSpRPX7UKMtjTU5mfK2d?si=5c1118f1eac44e2a",
"playMode": {
"shuffle": true,
"repeat": "all",
"crossfade": false
},
"pauseOthers": true
}
When I call that preset (via a NodeRED flow), it starts playing the linked Spotify playlist. However, this one doesn’t work:
{
"players": [
{ "roomName": "kitchen", "volume": 25},
{ "roomName": "living room", "volume": 20},
{ "roomName": "stairs", "volume": 20}
],
"favorite": "favorite2",
"uri": "37i9dQZF1E4EggH723i6D6?si=3844790118f642aa",
"playMode": {
"shuffle": true,
"repeat": "all",
"crossfade": false
},
"pauseOthers": false
}
The URI is for a different Spotify playlist. When the preset is triggered, the API groups the three speakers but does not pull up the playlist and does not start playing.
I’ve tried the URI from the working script in the non-working script, but the behavior is the same; so it’s unrelated to the playlist URI.
Any ideas here?