Sonos 7.0 with direct Spotify Control

Posted on
Sun Nov 20, 2016 7:41 am
Brady offline
Posts: 57
Joined: May 25, 2016

Sonos 7.0 with direct Spotify Control

Just a heads up that I installed the new Sonos 7.0 public beta over the weekend with direct control directly from Spotify Connect. It looks like the plug in sees all the players but is not able to get any current status from the players.

I'm currently downgrading back to 6.5.x right now so that my house isn't broken... but I thought I'd give you a heads up that it seems like a few breaking changes might be on their way.

That said... could just be a bad beta build and your plug in will be fine with the final release, whenever that comes. Who know :-)

Posted on
Sun Nov 20, 2016 8:09 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

I've been on beta 7 since it was released and have not had any issues. However, I do not have Spotify - so may be blind to whatever is going on. When you say that the plugin breaks, can you give me some examples?

Posted on
Wed Nov 23, 2016 12:53 pm
Brady offline
Posts: 57
Joined: May 25, 2016

Re: Sonos 7.0 with direct Spotify Control

I'll do some more research this afternoon. It is entirely possibly I might just have something on my machine causing UPNP issues.

I'll follow up on the thread with an all clear or specific logging examples.

Posted on
Wed Nov 23, 2016 1:18 pm
Brady offline
Posts: 57
Joined: May 25, 2016

Re: Sonos 7.0 with direct Spotify Control

Turned out I was just focused too much on using the new Spotify Connect integration.

If starting music from the Sonos app, plug in stays in sync no problem. If starting music from Spotify app using the new Spotify Connect set up... the plug in does not see that the player is doing anything. Either Sonos is still working on this (beta afterall) or there are new statuses that will need to be added to the plug in.

Posted on
Wed Nov 23, 2016 1:26 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

I'm very curious about this -- status changes should still be broadcast regardless of what is controlling the ZonePlayer. Would you be able to run this test for me:

From a terminal, navigate to the Sonos plugin directory:

Code: Select all
cd "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/lib"
python ./soco_test_twisted.py [IP]               *where [IP] is the IP address of the ZonePlayer in question


This will subscribe to source and level for the ZonePlayer. From the Spotify app, select something to play and see what happens in the terminal window. Send me or post the output and I should be able to at least understand what may be happening.

Posted on
Wed Nov 23, 2016 2:06 pm
Brady offline
Posts: 57
Joined: May 25, 2016

Re: Sonos 7.0 with direct Spotify Control

Looks like you won't be able to do much about this now... Sonos is reporting back that the status is STOPPED. All of the meta data is also incorrect...

EDIT: To be clear... this is with Play:1 actively playing a song. I can play from in Sonos app and it shows 'PLAYING'. The moment I switch to Spotify connect the player updates to 'STOPPED'


Code: Select all
lib brady$ python ./soco_test_twisted.py 192.168.1.223
Family Room
{'bass': '0',
 u'headphone_connected': '0',
 'loudness': {'Master': '0'},
 'mute': {'LF': '0', 'Master': '0', 'RF': '0'},
 u'output_fixed': '0',
 u'preset_name_list': 'FactoryDefaults',
 u'sonar_calibration_available': '0',
 u'sonar_enabled': '0',
 u'speaker_size': '-1',
 u'sub_crossover': '0',
 u'sub_enabled': '1',
 u'sub_gain': '0',
 u'sub_polarity': '0',
 'treble': '0',
 'volume': {'LF': '100', 'Master': '30', 'RF': '100'}}
{u'alarm_running': '0',
 u'av_transport_uri': 'x-rincon-queue:RINCON_B8E9379D94EA01400#0',
 u'av_transport_uri_meta_data': '',
 u'current_crossfade_mode': '0',
 u'current_media_duration': 'NOT_IMPLEMENTED',
 u'current_play_mode': 'SHUFFLE_NOREPEAT',
 u'current_record_quality_mode': 'NOT_IMPLEMENTED',
 u'current_section': '0',
 u'current_track': '28',
 u'current_track_duration': '0:02:43',
 u'current_track_meta_data': <DidlMusicTrack 'Winter Song' at 0x10d0d4550>,
 u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a01NSrsQkOZ3PgRcGLGrOT5?sid=12&flags=8224&sn=4',
 u'current_transport_actions': 'Set, Stop, Pause, Play, X_DLNA_SeekTime, Next, Previous, X_DLNA_SeekTrackNr',
 u'current_valid_play_modes': 'SHUFFLE,REPEAT,REPEATONE,CROSSFADE',
 u'direct_control_account_id': '',
 u'direct_control_client_id': '',
 u'direct_control_is_suspended': '0',
 u'enqueued_transport_uri': 'file:///jffs/settings/trackqueue.rsq#0',
 u'enqueued_transport_uri_meta_data': '',
 u'muse_sessions': '',
 u'next_av_transport_uri': '',
 u'next_av_transport_uri_meta_data': '',
 u'next_track_meta_data': <DidlMusicTrack 'Elysium' at 0x10d0d43d0>,
 u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a2WRylnkC3uHbvkmV2cQvN8?sid=12&flags=8224&sn=4',
 u'number_of_tracks': '355',
 u'playback_storage_medium': 'NETWORK',
 u'possible_playback_storage_media': 'NONE, NETWORK',
 u'possible_record_quality_modes': 'NOT_IMPLEMENTED',
 u'possible_record_storage_media': 'NOT_IMPLEMENTED',
 u'record_medium_write_status': 'NOT_IMPLEMENTED',
 u'record_storage_medium': 'NOT_IMPLEMENTED',
 u'restart_pending': '0',
 u'sleep_timer_generation': '0',
 u'snooze_running': '0',
 u'transport_play_speed': 'NOT_IMPLEMENTED',
 u'transport_state': 'STOPPED',
 u'transport_status': 'OK'}

Posted on
Wed Nov 23, 2016 2:12 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

and no further updates when you select another spotify track from the spotify app?

Posted on
Wed Nov 23, 2016 2:20 pm
Brady offline
Posts: 57
Joined: May 25, 2016

Re: Sonos 7.0 with direct Spotify Control

Nope - it sits on STOPPED and shows the same incorrect meta data.

I'm hopeful this is just a beta issue that they haven't got to yet. If I start from Spotify then launch the Sonos app, the Sonos app does display the right track info within their app. Getting the status directly from the zone players just doesn't seem to have access to the same information yet.

I'll report the bug to Sonos & let you know if I hear anything back.

Posted on
Wed Nov 23, 2016 2:22 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

So the Sonos App also does not update? If that is the case, I feel a lot better about this -- but curious as to how Spotify is communicating with the ZonePlayers. I pray they did not build in a custom API. That would be a disaster.

Posted on
Wed Dec 21, 2016 3:42 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Sonos 7.0 with direct Spotify Control

I'm on Sonos 7.1 beta and I see this to (actually just started another thread about it, sorry).
Could I be of any assistance?
I have access to the beta tester forum on Sonos.

Best regards, L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Dec 23, 2016 5:32 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

Just posted an update for those running Indigo v7 that may fix the Spotify Connect issue. Download here: http://vulture.lagaros.com:8000/wordpress/home/sonos/

Posted on
Fri Dec 23, 2016 8:07 pm
roussell offline
User avatar
Posts: 1108
Joined: Aug 18, 2008
Location: Alabama

Re: Sonos 7.0 with direct Spotify Control

Hey Nick, FYI, the link to the zip on your webpage isn't working.

Terry

Screen Shot 2016-12-23 at 8.08.52 PM.png
Screen Shot 2016-12-23 at 8.08.52 PM.png (99.35 KiB) Viewed 5603 times

Posted on
Fri Dec 23, 2016 8:32 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos 7.0 with direct Spotify Control

Thanks. It would have helped if I copied the file to the proper directory. Just did it.. please give it a shot now.

Posted on
Sun Jan 21, 2018 9:30 pm
aaronlee offline
Posts: 1
Joined: Jan 16, 2018

Re: Sonos 7.0 with direct Spotify Control

It seems there are some errors on the progress on streaming your Spotify Music on Sonos.
If you want to solve this problem perfectly, you can try to use TuneFab Spotify Music Converter. Wish you good luck!

Posted on
Thu Jan 25, 2018 12:18 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Sonos 7.0 with direct Spotify Control

Where is the update? I only see v1.0.9 from nov.

Best regards, L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Who is online

Users browsing this forum: No registered users and 1 guest