Error: Entity media_player.spotify_USERNAME does not support action media_player.play_media

      - action: media_player.select_source
        target:
          entity_id: media_player.spotify_USERNAME
        data:
          source: GoogleNestDeviceName
      - action: media_player.play_media
        target:
          entity_id: media_player.spotify_USERNAME
        data:
          media_content_id: https://open.spotify.com/track/1j3bbdHv9eEUVSMIv7iJu6
          media_content_type: music

Does not work and gives the error as in the title.
Any fix?

SpotifyPlus can easily do this using its Player Media Play Tracks service:

service: spotifyplus.player_media_play_tracks
data:
  entity_id: media_player.spotifyplus_YOUR_USERNAME
  uris: spotify:track:1j3bbdHv9eEUVSMIv7iJu6
  device_id: GoogleNestDeviceName

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.

There is also a SpotifyPlus Card user-interface that contains a media player, and allows you to 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!

thanks that one works!

1 Like