Error with remote service in picture-elements card

Hello

I have a weird problem with my harmony remote. If I use the developer tools service test, I can enter my control command and everthing works fine. In YAML mode it returns the following lines:

service: remote.send_command
data:
  command: Menu
  device: Habitron SmartControl
target:
  entity_id:
    - remote.harmony_room1

If I include these lines in a picture-elements card, it returns the error:

required key not provided @ data['command']

See the code of the card below:

type: picture-elements
Title: Window
image: /local/Window.jpg
elements:
  - type: state-icon
    entity: remote.harmony_room1
    title: 50%
    icon: mdi:arrow-collapse-vertical
    tap_action:
      action: call-service
      service: remote.send_command
      data:
        command: Menu
        device: Habitron SmartControl
      target:
        entity_id: remote.harmony_room1
    style:
      top: 50%
      left: 48%

Can someone help me?

    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: Menu
        device: Habitron SmartControl

See: https://www.home-assistant.io/dashboards/actions/#service_data

Thanks, now it works! However, I’m still wondering, why the developer tools return the code with ‘data’ rather than ‘service_data’!

The front end requires the key service_data for data, actions in automations require the key data for data.

OK, I understand. Perhaps something that could be changed in the future for simplicity…