Start Spotify album/playlist on a media player?

I’m trying to figure out what link and where to get it so I can start Spotify albums/play lists on a media player (in my case Sonos).

I have figures out how to start radio stations and single tracks, but I can’t find links to albums or play lists.
Have anyone done this before?

Example (radio station):

    - service: media_player.play_media
      data:
        entity_id: media_player.bathroom_upper
        media_content_id: x-rincon-mp3radio://fm03-icecast.mtg-r.net/fm03_mp3
        media_content_type: music

Does the Sonos know what to do when it receives a Spotify URI? My Squeezebox does, so I can pass it URIs for albums, tracks or playlists. Example:

I don’t know :confused:

I actually found the thread you link to 30min ago and tested one of the links but no luck.

Sorry to use another thread, I didn’t want to open a new one, browsing on HackerNews I found this project: https://github.com/pwittchen/spotify-cli-linux I think it could be useful to integrate Spotify in HA

Use: spotify:playlist:playlistid. Example:

    - service: media_player.play_media
      data:
        entity_id: media_player.bathroom_upper
        media_content_id: spotify:playlist:6Gmf7DVGQ167rXL9NF5ba5
        media_content_type: music

You can use open.spotify.com to identify the playlist id of the playlist you want to play.