Cannot Integrate Service in Script (or Button)

Hi all, I have a strange issue with what should be a simple thing: changing volume level of a media player.
When I test the service in the “Developer tools”, it works perfectly: calling the service increases volume level.

service: media_player.volume_up
target:
  entity_id: media_player.rez_de_chaussee

But, when I try to use this service as a tap_action for a button, I get an error message: "service must contain at least one of entity_id, device_id, area_id

tap_action:
  action: call-service
  service: media_player.volume_down
  target:
    - entity_id: media_player.rez_de_chaussee

What am I doing wrong?

See the documentation examples:

type: button
name: Turn Off Lights
show_state: false
tap_action:
  action: call-service
  service: script.turn_on
  service_data:
    entity_id: script.turn_off_lights
1 Like

ok my bad, for some reason I couldn’t find it. Thanks