General discussions about the sonos http api, ideas, help setting it up etc.
I'm using this project (which is awesome) to do voice announcements from a home automation system. It issues commands like http://192.168.2.51:5005/saypreset/firstfloor/Woop%20there%20it%20is/Matthew/5
I set a preset firstfloor.json
file as below:
{
"players": [
{
"roomName": "1. Family Room",
"volume": 50
},
{
"roomName": "1. Library",
"volume": 50
},
{
"roomName": "0. Ruff Playroom",
"volume": 50
}
],
"pauseOthers": false,
}
What is strange is that regardless of setting on "pauseOthers", either true or false, it always pauses the other players in the house. So, as the voice announcement plays, the other zones, if they're playing something, pause and then resume after the announcement. It seems that /saypreset/
doesn't respect the pauseOthers
flag. I looked through the code, and don't see how it works exactly. I was wondering if this is a known thing?
Hey, I'm having some weird problems with my API, and especially attempting to play/queue Spotify playlists and albums. Adding them to the queue seems to work (in that their contents appear in /queue), but I can't access/play them. I think maybe Sonos is hung up in my connection through the Spotify app on my phone? It continues on my playlist there at least, and /state lists songs from there as current/next.
Also, if I try to play the playlist/album directly, I get some obscure errors:
https://pastebin.com/wPACdfnd
Can anyone see what's going on?