Page 1 of 2

Sonos 7.0 with direct Spotify Control

PostPosted: Sun Nov 20, 2016 7:41 am
by Brady
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 :-)

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Sun Nov 20, 2016 8:09 am
by nlagaros
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?

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 12:53 pm
by Brady
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.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 1:18 pm
by Brady
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.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 1:26 pm
by nlagaros
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.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 2:06 pm
by Brady
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'}

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 2:12 pm
by nlagaros
and no further updates when you select another spotify track from the spotify app?

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 2:20 pm
by Brady
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.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Nov 23, 2016 2:22 pm
by nlagaros
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.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Wed Dec 21, 2016 3:42 am
by DrLove
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

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Fri Dec 23, 2016 5:32 pm
by nlagaros
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/

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Fri Dec 23, 2016 8:07 pm
by roussell
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 5669 times

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Fri Dec 23, 2016 8:32 pm
by nlagaros
Thanks. It would have helped if I copied the file to the proper directory. Just did it.. please give it a shot now.

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Sun Jan 21, 2018 9:30 pm
by aaronlee
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!

Re: Sonos 7.0 with direct Spotify Control

PostPosted: Thu Jan 25, 2018 12:18 pm
by DrLove
Where is the update? I only see v1.0.9 from nov.

Best regards, L