I can tell you from my experiences with mixing Sonos with other device types (Bose in my case, Linkplay in yours) that you will have issues like these. It’s due to the fact that Sonos is considered a restricted device by the Spotify Web API, as it does not fully implement the Spotify Player API. If you are just switching play output then it usually works fine.
The weirdness starts happening when you issue play track or play context commands to the Sonos device. It cannot do those functions natively due to the device restrictions, but the SpotifyPlus gets around this by building a local queue on the Sonos device and transferring play to the Sonos device local queue. When that happens, the Sonos device disconnects from Spotify and is playing totally from its local queue. Then if you transfer play back to a non-Sonos device, it’s totally different because the Spotify player is not in sync with the Sonos local queue. It’s confusing I know, but it’s all due to Sonos being a restricted device.
@rene-zuch
Chrome cast devices are currently not supported at this time, as I don’t have any devices to test with. It’s on the list for a future enhancement, but I cannot do anything until I have a device(s) to test with.
Hello, I’ve been using the integration for a few days now and I’m completely thrilled! Super performance! However, as I like to listen to the radio, my question is whether it is somehow possible to integrate radio stations ( url,…)?
@Richi
Hi Stefan - Are you referring to Spotify Radio? If so, then it’s as easy as searching for the Spotify Radio item that you want (usually an artist) and clicking on the tile to play it. Note that Spotify Radio stations are just playlists. You can also set user preset items for your favorite Spotify radio stations. For example:
userPresets:
- name: MercyMe Radio
subtitle: Radio Preset
image_url: https://pickasso.spotifycdn.com/image/ab67c0de0000deef/dt/v1/img/radio/artist/6APm8EjxOHSYM5B4i3vT3q/en
uri: spotify:playlist:37i9dQZF1E4yDJXskjdgzU
type: playlist
If you are referring to TuneIn or some other type of radio play, then those are not supported in SpotifyPlus.
@Richi
Hi Stefan - I get those messages sometimes too with my Bose devices. It is due to the device only being able to handle only 1 request at a time on its exposed Spotify Connect Zeroconf web-service. This can happen when the device is being polled, or if another Spotify Connect player is issuing a command. It can also happen due to SpotifyPlus polling the device every 5 minutes for updated status.
You should be able to try the operation again within a couple of seconds, and the operation should succeed.
What’s the manufacturer of the device in question (e.g. Sonos? Bose? etc)?
@rene-zuch
Thanks for the offer, but I have not researched what it would take to enable Chromecast device support since I do not have any Chromecast devices to test with.
Questions for you …
do the Chromecast devices show up in the SpotifyPlus card devices display after they have been “woken up” by another process? For example, if you start play on a Chromecast device via the Spotify desktop player, will it then show up in the SpotifyPlus card device list? I am trying to determine if the Chromecast device just needs to be woken up, or if it requires special processing to control play functions as well.
do Chromecast devices show up in the source list for the standard HA Spotify player? Just curious how they work with the HA Spotify player.
is the SpotifyCard (not SpotifyPlus Card) required in order to play Spotify on Chromecast devices? And I think SpotCast is required as well, correct?
@rene-zuch
Thanks Rene. From the SpotifyPlus Card Device Browser, can you do a click and hold on one of the Chromecast devices to display the details? If you could take a screen capture and replay back with it that would be great.
It will look something like this (this is for one of my Bose SoundTouch 10 devices):
@rene-zuch
Thank you, that is really helpful. It appears that the Chromecast devices are not registered with Spotify Connect ZeroConf, as proven by the IP address of localhost and the IsDynamicDevice = true.
Supporting Chromecast will require similar processing as I do for Sonos devices, which will be a big effort to implement and support. This is not something I would attempt without having a device to test with.
@thlucas I ask you because you have always been kind in helping me. You are doing a great job, and for months I have switched to using Spotify Plus as well as Soundtouch Plus. Now I am confused again. I see updates on Spotcast, and on the original Spotify applications. I have generated many duplicate things, I wonder what is the best solution for me. In the end I am simply interested in being able to start music from spotify on google home, for a lullaby routine for my daughter, everything else I do by voice. I think that only spotcast allows me this, right? Sorry for the trivial question and outside of your automation, but if I understood correctly, this possibility is not on spotify plus, in fact after deleting spotcast, I could no longer obtain this. Correct?
For the same reason, even your beautiful new spotify card, does not show me the google home devices, but only those associated with spotify connect, right?
@Diegocampy Not a problem, happy to help.
Chromecast devices are currently not fully supported by the SpotifyPlus integration. You can perform player functions (e.g. pause, resume, next track, etc) if the device is the currently active player, but you can’t wake up a device or initiate play of tracks / context.
This has been one of the most requested features, and I would love to provide support for these devices. The problem is that I do not have any Chromecast devices to test with, so I am not able to develop a solution.
If it were me, I would continue using the SpotCast features. I saw a post on the community forum about SpotCast V5 that might be of interest to you as well; it sounds like it’s a new version of SpotCast, though I am not familiar enough with SpotCast to know what it adds or replaces.
yes i saw it and i’m trying it. Now i remember how i got to spotify plus, it was the only way to continue playing spotify from my account on my bose soundtouch.
For my needs i will have to continue using spotify plus, spotcast, and soundtouch plus maybe i will be able to abandon the official version of spotify one day, just in case i leave it there now
When i use Get Current Users Profile, i always get Login ID as my username as string. It is not canonical (like 31l77y75hfnhk79f7gk6jkk878mg) as you mentioned. It is only the username without the @ mail address part. Should i use this username as my LoginID?
@febalci
Note that for some Spotify accounts, the LoginId and Username values are the same. Not sure why that is, as it’s a Spotify internals kind of thing.
The LoginId value can easily be found using the Spotify Developer Web portal, using the Get Current Users profile service. Click on the Try It button, then find the id response value.
@thlucas as mentioned earlier in this thread, I have an entirely Chromecast-based ecosystem. I have been looking for this type integration and dashboard panel for Spotify since I started using Home Assistant 4+ years ago. You noted that you do not have any Chromecast devices, however, depending on your model, the Bose Soundtouch may already support it: Chromecast Built-in FAQ | Bose. If you do work on Chromecast support at any point, I’d be glad to help with testing. Thanks, again, for developing this amazing and much needed integration.