Automation spotify when light is on

Hi
why its not work for me ? what wrong ?

- id: '1573038110403'
  alias: test2
  description: ''
  trigger:
  - entity_id: light.slvn
    for: 00:00:05
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: media_player.kitchen_speaker
      media_content_id: spotify:user:spotify:playlist:0ztMQWTqq8pM1ej5sf4lMn
      media_content_type: playlist
      random_song: true
    service: spotify.play_playlist

What isn’t working? It’s not triggering? Or the action doesn’t work? Do you see any error messages? Anything in the log that can help narrow down where the problem is? Have you tried manually triggering the automation to see if the action works?

i get this error call service
extra keys not allowed @ data[‘entity_id’]

There’s your answer. You’re not using the service correctly. Check out its documentation.

i try again the call service … no error and no have something in the logs
the playlist not work. why its happen ?

Sorry, I don’t use media_player or spotify, so I can’t answer why that isn’t working. Maybe someone else who does can help you.

Are you using a Chromecast speaker? Spotify cannot play to idle chromecast speakers, but the Spotcast custom component can.

thank you . this exactly what i am searching .