Play Spotify To Google Home Speaker

Hey there,

just wondering how to make spotify cast to my google home devices:? I have a Media Control Card Configuration setup and it shows my current spotfiy song playing etc just no way to select where to cast it too

type: media-control
entity: media_player.spotify_unstoppableprob

this may help.

Install Spotcast as mentioned above and then…

service: spotcast.start
data:
  entity_id: media_player.living_room_display
  uri: 'spotify:playlist:myplaylistid'
  shuffle: true
  random_song: true

I have spotcast installed already, so where do I put

service: spotcast.start
data:
  entity_id: media_player.living_room_display
  uri: 'spotify:playlist:myplaylistid'
  shuffle: true
  random_song: true

Also in the uri: am I copying that line the exact same as you did?

to get the URI, you go to Spotify on your browser andreplace “myplaylistid” with the long alphanumeric string at the end of the specific playlist address…

image

As for where you put that specific service call, it could be the action of an automation, or the on-tap of a custom button card, or anywhere else you can call a service.

Okay I did that but its the part on where I use that code :stuck_out_tongue: I am new to this so I appreciate your time, I am trying todo something like this so I can control spotify in each room of my house through a google home mini.

Instead of mini media player, you may wanna use the Spotify Card for that.

https://github.com/custom-cards/spotify-card Also available in HACS.

I have that installed and it works just cannot select where to stream too (my Google mini) only way it works is if I open spotify on my phone and stream to the google home and then it shows up here but I wanna not have to use my phone

Do you not have “Choose Player” at the bottom of the card?

I think I am using the media player card actually

What should the code be if I add a card and then click custom card then code editor what should the code in there be ?

I would just use the Spotify card and follow the directions in the repository for it.

I’ve been using this integration for a while, yet, recently it stopped working.
When doing further testing, (perhaps it’s a coincidence, but) I found that it still works when playing spotify on devices with screens (in my case, Lenovo clocks) but not speakers (google home, nor minis).
Has anyone else experienced this?

I have the same issue. Looking for an alternative.

Whenever a custom integration stops working, it’s always worth checking its GitHub repository for any issues, such as this one. Basically due to changes by Spotify, Spotcast is permanently broken in its current form.

You could participate in testing its replacement by installing the current alpha version.

Or you could try an alternative like SpotifyPlus which offers a solution for Google speakers. Needs a few extra installation steps for these specific endpoints though.

1 Like

@marc.forn
As @reste_narquois mentioned in the previous post …

Check out the SpotifyPlus Integration; it can do everything that the HA Spotify integration can do, supports Spotify Connect enabled devices (Bose, Sonos, Chromecast, Amazon Alexa, Denon, JBL, and more), and provides 95+ custom services that can be used in HA automations and scripts. Spotcast is not required.

For ChromeCast and Sonos devices, make sure you follow the Spotify Desktop Player Authentication Configuration instructions to enable support for those device types.

There is also a SpotifyPlus Card user-interface that allows you to control the player, manage your Spotify favorites, as well as search the Spotify catalog. You have to install the SpotifyPlus integration first though, and get it configured before you can use the SpotifyPlus Card.

Both are easily installed via HACS.

I’m the author of both, as well as the underlying spotifywebapipython package; feel free to reach out with questions.

Hope it helps!