Posts: 40,483
Threads: 491
Joined: Aug 2002
I didn't seem to see that behavior. Maybe try issuing a stop, then a clear the queue and see if that makes a difference? But, for me, clearing the queue was getting rid of the currently playing stuff.
Edit for the above info... I wasn't doing anything fancy wrt to the inputs or anything like that.
Dean Roddey
Explorans limites defectum
Posts: 3,716
Threads: 196
Joined: Aug 2006
when you use the playfavorite, it adds to the queue just fine, but sending a play command does nothing (when coming from a not playlist).
i think it has to do with the way sonos handles them, almost like a receiver; i change the input to SPDIF (using avtransuri set to spif) to play my TV, then change the input back to queue (using avtransuri set to queue) to play what is in the queue. simply editing the queue doesn't set the 'input'.
the little snippet kfly posted mirrors mine and i can confirm it to work with the Playbar.
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech
Posts: 744
Threads: 33
Joined: Oct 2008
Nope stop/clear queue does not seem to make a difference. The play command always start to play the last station(pandora) even though there are items in the playlist queue(spotify). Seems once you are playing out of the queue you don't need the SetTransURI again(until you switch back to Pandora). Seems you need SetTransURI to switch to "queue" mode from radio station mode.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Posts: 744
Threads: 33
Joined: Oct 2008
09-27-2015, 11:11 AM
(This post was last modified: 10-16-2018, 03:24 AM by kfly.)
OK Sonos PlayFavorite is working good.
After some testing I setup a listbrowser as Dean had recommended. It acutally simplifies my system and I just need one listbrowser and set a variable(when cmd button is pressed to select Pandora/Spotify,etc)  to load the proper station list on pre-load of form.
On load of form: check variable and load the right stations:
On select from list browser send proper commands to Sonos for that service:
(Ignore the XMPandora variables as I use them for the now playing screen not shown)
Still sending SetTransURI as I needed it to have sonos switch back and forth between queue mode and stations mode.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine