Controling Sonos is unreliable and limited
Hi, I have been trying to get reliable control of sonos from bos for a while. Volume and play / pause / stop / skip etc. seem to consistently work well. However - selecting playlists sometimes works sometimes does not - and I cant figure out any pattern. Often I call PlayPlaylist(playlistName) and it just clears whats in the current queue - I call exactly the same command again and it loads the playlist and plays. Also finding that I can put a radio station in favourites - I can call it via the pre-built bOS control .. but not via PlayFavourite(favouriteName). .. I have not successfully called any radio stations via URI either.. The fact that the simple controls like volume and play work so reliably suggests no connectivity issues etc. short of installing wireshark on the grinder is there any way to see a log from bOS server to see whats happening between it and sonos and which side is messing up? Finally.. in the inbuilt bOS sonos control you can list the playlists & favourites .. how can I access these from a value to work with them programatically?
I just did some test with my Sonos playlists - Only problem i had with it was the playlist i made inside Sonos that had all my old music from the NAS in one playlist(maybe some network error as im not at home right now, it used to work so ill check it later). All other playlists worked. Also the favorites worked like they should.
The URL radio playlist is only used when the scheduler starts it from bOS. I've made all other playlists and favorites inside Sonos app. Scheduler is made inside bOS so it would play some radios to my cat, he hasn't complained yet :)
This scheduler Start the radio station program and sets the volume to 14 and un-mutes it.
This is the radios URL it runs.
Mainly i use the playlists and choose my favorites that ive made inside the Sonos app, because its easy, finding working links to radios was too time consuming so i did only few like this. Also if the radio is down it wont play anything - i had this problem with some of them like Kool London radio that sometimes went offline - so best if you check that the radio you are trying to play is working.
Running on bOS 4.8.5
Edit: It now loaded the full playlist too. Not sure why it didnt load it the first two-three times i tried it.