Spotify play song/playlist not working in made UI automation

Hello everyone,

I have an automation that turns out the lights when I leave the zone, which works fine. In the same automation I tried (through UI) to make a Google cast device to start playing a playlist on Spotify.

Lights go out but the Chromecast doesn’t seem to work for the playlist.

First marked works, but second doesn’t .
I tried to get it to work without turning on the device, but that didn’t work either.

How should I go with this from here?

Here is the Yaml code made by the UI:

target:
  entity_id: media_player.nesthub4eb1
data:
  media_content_id: >-
    spotify://0ef3556f2f84348434433ca19bd02438/spotify:playlist:3IbSpRPX7UKMtjTU5mfK2d
  media_content_type: spotify://playlist
metadata:
  title: Relaxing Dog Music calm your dogs
  thumbnail: >-
    https://image-cdn-ak.spotifycdn.com/image/ab67706c0000bebbb5e6b1f52ec94643f59353d4
  media_class: playlist
  children_media_class: track
  navigateIds:
    - {}
    - media_content_type: spotify://library
      media_content_id: spotify://0ef3556f2f84348434433ca19bd02438
    - media_content_type: spotify://current_user_playlists
      media_content_id: spotify://0ef3556f2f84348434433ca19bd02438/current_user_playlists
    - media_content_type: spotify://playlist
      media_content_id: >-
        spotify://0ef3556f2f84348434433ca19bd02438/spotify:playlist:3IbSpRPX7UKMtjTU5mfK2d

Solved: I learned about Spotcast.