How to transfer playback to Sonos Arc after using zeroconf apis? #22
Replies: 11 comments 23 replies
-
@andrew-kennedy Everything in your Questions:
Note that if you don't have a password setup for your Spotify account (e.g. you utilize the "Continue with Google" or other non-password methods for login), then you will need to define a "device password" in order to use the ZeroConf Connect service; use the Spotify Set Device Password page to define a device password. You will then use your Spotify username and the device password to Connect to the device.
Other things to try: Do whatever you need to do to get the Sonos device back in the Spotify Connect device list (reboot Sonos maybe?), and start playing a track on it (from Spotify mobile app | desktop app | web | etc - whatever works).
If the above works then we know that the IP address, port, CPath, and Version parameters are good, so it's a matter of your Spotify user credentials. |
Beta Was this translation helpful? Give feedback.
-
Ok, I hit the same point...
Then I get this response from my sonos speaker (using a ikea symfonisk) Failed to call service spotifyplus.zeroconf_device_connect. ZeroconfResponse: SpotifyError="0" Status="103" StatusString="ERROR-UNKNOWN" Let me know if you have any other ideas... It would be sooo sick getting this to work Note: using the .31 release from a few hours ago |
Beta Was this translation helpful? Give feedback.
-
@s00500 This should return information for the Spotify Connect device - something like this (my device example):
|
Beta Was this translation helpful? Give feedback.
-
Did another update to .34 today. Again moving from sonos to my mac works fine, the other way around I get this error again Failed to call service media_player/select_source. SAM0001E - An unhandled exception occured while processing method "PlayerTransferPlayback". SAM1003E - Spotify ZeroConf API returned an error status while processing the "Connect" method. Status: 103 - ERROR-UNKNOWN Message: "ZeroconfGetInfo: SpotifyError="0" Status="103" StatusString="ERROR-UNKNOWN" ActiveUser="" Aliases=[] Availability="" SupportedDrmMediaFormats=[] Version="2.9.0"" |
Beta Was this translation helpful? Give feedback.
-
@andrew-kennedy [ 1.0.41 ] - 2024/07/18
This should give you the ability to transfer playback to another Spotify Connect device, including Sonos devices; use the Player Transfer Playback service, specifying the Spotify Connect device name to transfer to. Like so:
I also put together a Spotify Connect Brand Notes page that documents some of the quirks and oddities that I have ran into trying to control Sonos Spotify Connect devices. Note that I only have a Sonos Symfonisk (gen 2) device to test with, so let me know if it works with any other Sonos device types. I would like to document the specific Sonos device types it does / does not work with. Give it a try and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
@andrew-kennedy @s00500 [ 1.0.44 ] - 2024/07/24
@andrew-kennedy - please let me know if this is still working for you, and I will close Issue #27. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi Lukas, Andrew - can you guys verify that the SpotifyPlus integration v1.0.45 still works for you? I apparently broke something in the v1.0.43-4 releases that impacted some users. If you guys have a minute, please confirm it still works for you. I appreciate it - thanks! FYI - just released a new version of the SpotifyPlus integration . [ 1.0.45 ] - 2024/07/30
This should fix the transfer playback issues. Please see the Sonos Limitations wiki documentation for detailed information on Sonos device limitations. You may still have to switch the music source via the Spotify Desktop / Mobile app if you use multiple music sources on your Sonos device(s). |
Beta Was this translation helpful? Give feedback.
-
Meanwhile: to me this discussion is successfully solved and also my ticket in case you want to close any of these :-) |
Beta Was this translation helpful? Give feedback.
-
Hey @thlucas1 ! As of 1.0.50 transferring playback using your new oauth method seems to properly use the spotify connect queue and all is almost perfect. I am able to transfer playback and the spotify app shows the state as playing, the track appear to continue to advance, etc, but I don't get any audio until I pause and resume the music once I call the player transfer playback service. I have tried with "start playback" both on and off, to no avail. My workaround right now is to add a pause call, a wait, and a resume call:
It's working well enough for me, but I figured you may want to know! |
Beta Was this translation helpful? Give feedback.
-
FYI - just released a new version of the SpotifyPlus integration [ 1.0.52 ] - 2024/08/19
To avoid having to regenerate the OAuth2 token, move and rename the Give this release a try and let me know how it goes. Thanks |
Beta Was this translation helpful? Give feedback.
-
Just tested, works great ! (have not tested the audiobook features though) |
Beta Was this translation helpful? Give feedback.
-
I'm trying to set up an automation to dynamically move playback from my iPhone to my home sonos speakers. Here's an example of the output from the zeroconf discover devices service:
Given this, I made a call to zeroconf getinformation service which yields this (redacted private info):
Given this info didn't add anything else, I tried to call zeroconf device connect to put the zeroconf sonos speaker in my spotify connect devices list:
But this just gives me an internal server error. Am I doing something wrong? does this not work with sonos? I'm basically hoping using these zeroconf apis I can avoid having to run this proxy spotify connect device in a docker container: https://github.com/philippe44/SpotConnect
Beta Was this translation helpful? Give feedback.
All reactions