Custom button card -> how to call knx button

I have already a button integrated by knx

button.sektionaltor_fahren

Screenshot 2023-12-01 094516

I’m using a custom:button-card for managing different icon on different states:

cards:
  - cards:
      - show_name: true
        show_icon: true
        entity: binary_sensor.schiebetor_geschlossen
        type: custom:button-card
        state:
          - value: 'on'
            icon: mdi:lock-outline
            color: green
          - value: 'off'
            icon: mdi:lock-open-outline
            color: red
        tap_action:
          action: call-service
          service: knx.send
          data:
            entity_id: button.sektionaltor_fahren
        name: Schiebetor

Screenshot 2023-12-01 094429

But how can i manage the tap action therefore the knx button is called?

Any ideas?
thx

Hi :wave:!

knx.send is a service that sends arbitrary KNX telegrams. It doesn’t handle HA entities in any way. You can use it to send a telegram according to https://www.home-assistant.io/integrations/knx/#send - no need for a button entity then.

Or you can instead use the button.press service to have your button entity “pressed”.

button.press service was the thing i missed!

thx for your help!