Extra Keys Not Allowed error

Greetings all, I have the below call service, as per the documentation attached to a button, however I get the error Failed to call service media_player/media_play. extra keys not allowed @ data['media_content_id']

I can’t see any formatting errors and the device_id is correct. Do you know whats going on?

show_name: false
show_icon: true
type: button
tap_action:
  action: call-service
  service: media_player.media_play
  target:
    device_id: 43202a13d4d016b5cfe86996339d862d
  data:
    media_content_id: 24
    media_content_type: channel
icon: mdi:alphabetical-variant

Are you sure that service call shouldn’t be

media_play.play_media

I don’t think they are interchangable.

Thanks, thats done the trick

1 Like