www.homeseer.com    
 

Go Back   HomeSeer Message Board > Media Plug-ins > Media Discussion > PI-SonosController (3P)

PI-SonosController (3P) Discussion of Sonos Controller Plug-in

Reply
 
Thread Tools Display Modes
  #1  
Old August 16th, 2017, 11:30 AM
grtaylor grtaylor is offline
Seer Deluxe
 
Join Date: Jan 2017
Location: WA
Posts: 132
Apple Radio Station Messes Up PI

Having trouble when playing an Apple Music radio station.

Once I select an Apple Radio station in the native Sonos App and start playing it the active player devices stop updating in HS, and even if I switch to something else that normally works fine, the player devices still don't work right. The devices think the player is stopped when it's playing, the current track info isn't updating, all that kind of stuff.

The player eventually seems to come back if I don't play Apple Radio, only stuff I know works, but sometimes I need to restart the player to get it back to working normally.

Attached are two debug log files, hopefully there's a clue in there somewhere.

The first file is me switching to an Apple Music station and playing, the second is switching back to something that plays normally (Sonos Playlist using Apple Music source) and being ignored.
Attached Files
File Type: txt Sonos - Apple Radio.txt (36.8 KB, 6 views)
File Type: txt Sonos - Apple Radio 2.txt (282.4 KB, 5 views)

Last edited by grtaylor; August 16th, 2017 at 11:41 AM.
Reply With Quote
  #2  
Old August 16th, 2017, 02:16 PM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,493
Quote:
Originally Posted by grtaylor View Post
Having trouble when playing an Apple Music radio station.

Once I select an Apple Radio station in the native Sonos App and start playing it the active player devices stop updating in HS, and even if I switch to something else that normally works fine, the player devices still don't work right. The devices think the player is stopped when it's playing, the current track info isn't updating, all that kind of stuff.

The player eventually seems to come back if I don't play Apple Radio, only stuff I know works, but sometimes I need to restart the player to get it back to working normally.

Attached are two debug log files, hopefully there's a clue in there somewhere.

The first file is me switching to an Apple Music station and playing, the second is switching back to something that plays normally (Sonos Playlist using Apple Music source) and being ignored.
Which version of the PI are you running, which OS?
Reply With Quote
  #3  
Old August 16th, 2017, 05:15 PM
grtaylor grtaylor is offline
Seer Deluxe
 
Join Date: Jan 2017
Location: WA
Posts: 132
Sorry, should have included that.

Current Date/Time: 8/16/2017 2:14:51 PM
HomeSeer Version: HS3 Standard Edition 3.0.0.318
Operating System: Microsoft Windows 8.1 Pro - Work Station
System Uptime: 0 Days 19 Hours 16 Minutes 44 Seconds
IP Address: 192.168.1.224
Number of Devices: 688
Number of Events: 96
Available Threads: 400

Enabled Plug-Ins
2.0.47.0: BLBackup
2.0.8.0: BLEmail
3.0.0.68: HSTouch Server
3.0.0.47: ISYInsteon
1.0.0.5: Restart
3.1.0.20: Sonos
3.0.6370.28796: UltraM1G3
3.0.0.73: weatherXML
Reply With Quote
  #4  
Old August 17th, 2017, 12:13 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,493
Are you running a beta SW version on your player?

The event comes in but there is some inconsistency between its header showing content-length and the actual content length. The PI receives the data but is told there is more and nothing more is coming, hence it sits there waiting until it times out. This sort of explains why after you move away from Apple music it sometimes (or always) takes a little before all works again.

Dirk

Here is the example in case you want to post it on a Sonos site

Here is the header indicating length of 5731 bytes. The content below is only 4339 bytes.

NOTIFY /RINCON_949F3E1AD3CE01400_MR/urn:upnp-org:serviceId:AVTransport HTTP/1.1 HOST: 192.168.1.224:53712 CONNECTION: close CONTENT-TYPE: text/xml CONTENT-LENGTH: 5731 NT: upnp:event NTS: upnpropchange SID: uuid:RINCON_949F3E1AD3CE01400_sub0000000063 SEQ: 9


<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="65"/><CurrentTrack val="3"/><CurrentSection val="0"/><CurrentTrackURI val="x-sonos-http:librarytrack%3aa.1193701392.mp4?sid=204&amp;flags=8224& amp;sn=5"/><CurrentTrackDuration val="0:03:53"/><CurrentTrackMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;-1&quot; parentID=&quot;-1&quot; restricted=&quot;true&quot;&gt;&lt;res protocolInfo=&quot;sonos.com-http:*:audio/mp4:*&quot; duration=&quot;0:03:53&quot;&gt;x-sonos-http:librarytrack%3aa.1193701392.mp4?sid=204&amp;amp;flags=8 224&amp;amp;sn=5&lt;/res&gt;&lt;r:streamContent&gt;&lt;/r:streamContent&gt;&lt;r:radioShowMd&gt;&lt;/r:radioShowMd&gt;&lt;upnp:albumArtURI&gt;/getaa?s=1&amp;amp;u=x-sonos-http%3alibrarytrack%253aa.1193701392.mp4%3fsid%3d204%26flags %3d8224%26sn%3d5&lt;/upnp:albumArtURI&gt;&lt;dc:title&gt;Shape of You&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.musicTra ck&lt;/upnp:class&gt;&lt;dc:creator&gt;Ed Sheeran&lt;/dc:creator&gt;&lt;upnp:album&gt;÷ (Deluxe)&lt;/upnp:album&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><r:NextTrackURI val="x-sonos-http:librarytrack%3aa.1193701328.mp4?sid=204&amp;flags=8224& amp;sn=5"/><r:NextTrackMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;-1&quot; parentID=&quot;-1&quot; restricted=&quot;true&quot;&gt;&lt;res protocolInfo=&quot;sonos.com-http:*:audio/mp4:*&quot; duration=&quot;0:04:21&quot;&gt;x-sonos-http:librarytrack%3aa.1193701328.mp4?sid=204&amp;amp;flags=8 224&amp;amp;sn=5&lt;/res&gt;&lt;upnp:albumArtURI&gt;/getaa?s=1&amp;amp;u=x-sonos-http%3alibrarytrack%253aa.1193701328.mp4%3fsid%3d204%26flags %3d8224%26sn%3d5&lt;/upnp:albumArtURI&gt;&lt;dc:title&gt;Castle on the Hill&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.musicTra ck&lt;/upnp:class&gt;&lt;dc:creator&gt;Ed Sheeran&lt;/dc:creator&gt;&lt;upnp:album&gt;÷ (Deluxe)&lt;/upnp:album&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><r:EnqueuedTransportURI val="file:///jffs/settings/savedqueues.rsq#31"/><r:EnqueuedTransportURIMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;SQ:31&quot; parentID=&quot;SQ:&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;Ed Sheeran Essentials&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.playlistConta iner&lt;/upnp:class&gt;&lt;desc id=&quot;cdudn&quot; nameSpace=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot;&gt;RINCON_AssociatedZPUDN&lt;/desc&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><PlaybackStorageMedium val="NETWORK"/><AVTransportURI val="x-rincon-queue:RINCON_949F3E1AD3CE01400#0"/><AVTransportURIMetaData val=""/><NextAVTransportURI val=""/><NextAVTransportURIMetaData val=""/><CurrentTransportActions val="Set, Stop, Pause, Play, X_DLNA_SeekTime, Next, Previous, X_DLNA_SeekTrackNr"/><r:CurrentValidPlayModes val="SHUFFLE,REPEAT,REPEATONE,CROSSFADE"/><r:MuseSessions val=""/><rirectControlClientID val=""/><rirectControlIsSuspended val="0"/><rirectControlAccountID val=""/><TransportStatus val="OK"/><r:SleepTimerGeneration val="0"/><r:AlarmRunning val="0"/><r:SnoozeRunning val="0"/><r:RestartPending val="0"/><TransportPlaySpeed val="NOT_IMPLEMENTED"/><CurrentMediaDuration val="NOT_IMPLEMENTED"/><RecordStorageMedium val="NOT_IMPLEMENTED"/><PossiblePlaybackStorageMedia val="NONE, NETWORK"/><PossibleRecordStorageMedia val="NOT_IMPLEMENTED"/><RecordMediumWriteStatus val="NOT_IMPLEMENTED"/><CurrentRecordQualityMode val="NOT_IMPLEMENTED"/><PossibleRecordQualityModes val="NOT_IMPLEMENTED"/></InstanceID></Event>
Reply With Quote
  #5  
Old August 17th, 2017, 01:23 AM
grtaylor grtaylor is offline
Seer Deluxe
 
Join Date: Jan 2017
Location: WA
Posts: 132
Thanks Dirk, no beta versions here.

The example there, where it looks like it was playing Ed Sheeran Essentials - works fine as it happens. It was the attempts to play The 90's radio that caused the issue. Not sure if you were just using an example there or not.

So if this is a Sonos issue. How likely are they to care, given their own app works just fine as it is....?
Reply With Quote
  #6  
Old August 17th, 2017, 01:27 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,493
Quote:
Originally Posted by grtaylor View Post
So this is a Sonos issue.
.... as far as I can tell. Wonder if others can chime in that use Apple Music and whether they have issues.

Usually when events are missing, I tell people to double check firewall settings, but here is looks to be a issue with Sonos. Maybe also why restarting the player "cures" it.

Are you on the latest released SW?

Dirk
Reply With Quote
  #7  
Old August 17th, 2017, 10:34 AM
grtaylor grtaylor is offline
Seer Deluxe
 
Join Date: Jan 2017
Location: WA
Posts: 132
It appears I am, app reports Version: 7.3 (build 36442130) and there are no newer versions offered when I check.

I'll try disabling Windows firewall in case that's interfering in any way, but seems like a long shot given it otherwise is working great.
Reply With Quote
  #8  
Old August 17th, 2017, 10:59 AM
grtaylor grtaylor is offline
Seer Deluxe
 
Join Date: Jan 2017
Location: WA
Posts: 132
Disabling the FW had no immediate effect. Sometimes it works and updates the track played, albeit after a long delay, other times it doesn't and just doesn't reflect what the player is doing or playing correctly.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio Station Errors SQL smokeycoles PI-SonosController (3P) 1 June 25th, 2016 07:34 AM
Specifiy Radio Station IGG UltraPioneerAVR HSPI 1 January 18th, 2014 12:02 PM
Radio station not showing. Mrodseth PI-SonosController (3P) 1 November 20th, 2011 03:23 PM
Won't play a radio station from a playlist sponnath Windows Media Player 2 June 23rd, 2004 07:39 PM
Radio station RobM Windows Media Player 1 January 27th, 2003 02:49 PM


All times are GMT -4. The time now is 03:29 AM.


Copyright HomeSeer Technologies, LLC