Working solution to stream Spotify Playlists to Google Home or Alexa (using Mopidy and Docker)

Hi all,

I had the problem that I could not stream Spotify Playlists to my Google Home with Home-Assistant. After some investigations I found out that Spotify doesnt support the automated streaming of playlists to Google Home or Alexa (although single musictracks work fine).

It is possible to send an audio stream to Google Home (like a webradio), so I thought about the following workaround:

  • Mopidy receives Spotify
  • Mopidy passes the audio signal to LiquidSoap
  • LiquidSoap Streams the audio signal into the network
  • Google Home plays the network stream

There are already many docker images that cover the above points, but sadly they use the official version of the mopidy-spotify package. Unfortunately this one has a malfunction and can’t play playlists. Therefore I created my own Docker Image which uses a bugfix version of mopidy-spoptify (kudos to kingosticks and Blacklight).

On my private blog you find the exact instructions:

Downside of this soluation: It takes about 20 to 30 Seconds till the Google Home Starts playing due to buffering in LiquidSoap.

This solution is quite “complex” to achive a simple goal, if you have an idea how to simlfy this approach, please tell me.

Thanks!

Cheers
Tom

2 Likes

Maybe this can simplify your setup https://github.com/robwolff3/google-assistant-webserver ? Using it you can play spotify playlist via GH writing like “Play my playlist metal on livingroom speaker”.

Oh wow, thank you very much. Just taken a look and it looks very useable. I will give it a shot and report back here… thanks again!

cheers
Tom