Spotify playlist not playing on script

Hi there!!!.
I have my spotify integration working as I am using it with the custom mini media player card.
Anyway, I’m trying to setup an script which part of it is launching an specific playlist. but it is not working:
following the yaml edition. is there any error?

service: media_player.play_media
target:
  entity_id: media_player.google_dormitoriopral
data:
  media_content_id: >-
    https://open.spotify.com/album/.....
  media_content_type: playlist

Thanks for any help you may provide.

Try to target it to your Spotify Media Player and use Spotify playlist URI like the below example-

  - service: media_player.play_media
    target:
      entity_id: media_player.spotify_your_entity
    data:
      media_content_id: spotify:user:spotify:playlist:37i9dQZF1DWT1y71ZcMPe5
      media_content_type: playlist

Thanks, but how do I create the entity: media_player.spotify_your_entity ?
The only entity I have is media_player.spotify_SpotifyUserName, so I don’t have one that may direct the playlist to one specific google from the 3 that I have.

Change it to match your entity.