There is not much to look at. The current integration in 0.105 shows all sources provided by the Spotify API. There is no filtering on our end for that.
Thanks for the reply!!
Yeah, we’ve settled that this is a Spotify API problem…
But @peglegreg is right… mobile apps have a different way of fetching the available sources on the local network, since they all show as available most of the time. Isn’t there any way for the HA integration to make a scan the same way the mobile apps do instead of fetching the sources from the API?
What you see additionally on your mobile, are the Chromecast devices.
In theory, it should be possible. But that is not made/created easily.
Yes, but not only…
For instance, my Samsung TV, my PS4… they show up in my android app but not on the desktop app, which also gets the source list from the API.
There’s only one source available at all times and that’s my Yamaha receiver. I wonder why…?
Why are the Chromecast devices listed in the Spotify Lovelace Card, while they are not available in the official Spotify API, and thus not in the sources of the media_player in HA? Anyone knows?
I had the same problem but thanks to reading about Spotify Lovelace Card, I found the following solution. Works perfect for me!
My wife’s Spotify account also doesn’t list any device. I can stream to Chromecast devices now through Spotcast, but I have other devices I want to start playback on (HEOS in my case). None of these are in the source_list of the media_player
entity of the Spotify integration of my wife, until I start the playback myself manually through the Spotify app on her phone. Then the source_list
is populated as it should be.
Also checked the api of Spotify and got this returned:
{
"devices": []
}
The web player of Spotify also returns no other speakers at all
Guess there is no way to resolve this issue for now?
Do not think so. Yesterday i went with This topic
Was working perfectly for 24 hours. The system was idle for over 2 hours and now i cannot even get i working again.
Hello guys, my speakers are only listed, if I used them directly from the Spotify App. How can I fix the devices in HA? Can I setup the “Sources” ??
My Config:
configuration.yaml
spotify:
client_id: xxxxxxxxxxxxx
client_secret: xxxxxxxxxxxxxx
HA 0.117.6
Background: If I turn on my speaker, I can’t use it. e.g. TAG reader
This has been an issue for years and it is unfortunately a limitation in the Spotify integration/API.
The good news is that depending on what speakers you have there might be ways to work around it.
If your speakers are Cast compatible (might also work with Spotify Connect) I highly recommend the spotcast custom component mentioned a few posts above.
ok, thanks!
Hi, @pappajohan
Could you explain in details the procedure to get the aliases?
I was following your instructions but it seems that something wrong because Spotify is not logging the aliases at the logs.
Thank you in advance.
Hi, after some times using 2 Sonos speakers apparently they disappeared from source_list in media_player.spotify entity. I can see in my Spotify iphone app, as well in Spotify android app, but missing in HA. The Sonos entity/devices are fine, but cannot select the speakers from lovelace or forcing the service select_source… I have uninstalled Sonos integration, Spotify connect integrations and reinstalled, no solution… someone have same problem? I have doubled the speakers entities with Alexa integration, maybe I can just use the speakers under platform ‘Amazon’?
My apologies,
I have been away for quite some time. I am hoping to be back in town in a couple of weeks and see if anything still works in my installation.
/Johan
Sometime last year, Sonos speakers stopped working as Spotify sources (targets really). It even says so on the HA Spotify integration page: “Although Sonos is a Spotify Connect device, it is not supported by the official Spotify API”. Too bad. I hope someone can do something about it.
I’ve lost hope about that… I played a bit with Spotify dev console, it looks that Sonos device have no ID anymore in Spotify API command. So it’s not recognize anymore if you call a PLAY command or move the source from a speaker from another. Maybe with Node Red it’s possible to create an automation to avoid this problem, but I hope Spotify will start again to support Sonos.
If you have both the Spotify and Sonos integrations configured and are on the latest HA release, you can use the new media browser feature to interactively browse/play Spotify media on your Sonos speaker(s), and the “Play media” action step to pick specific Spotify media to play in an automation/script.
Yes that works nice, thanks. I’d love the official Spotify integ to be able to cast to all of my speakers from one place though.
Yes I have read the releases notes when updated, I will try! Thx
I’m facing the same issue as in this thread for my HEOS devices: Play spotify on source from multiple accounts
Just to make sure I understand correctly, on the spotcast github they write:
“Home Assistant custom component to start Spotify playback on an idle chromecast device or a Spotify Connect device (thanks to @kleinc80) which means that you can target your automation for chromecast as well as connect devices.”
That doesn’t mean it is able to do what the spotify apps for android/ios/windows/… can do: start playing music on devices that are not listed in the list of source devices in Spoitify API (and therefore Home Assistant)?
And there is no other way of activating those source devices than using the spotify apps on android/ios/windows… right?