Coloring the switch icon when status is activ in button card

I have a knx switch:

  - name: "Zisternenpumpe"
    address: "4/0/16"
    state_address: "4/1/16"

This is my layout:

cards:
  - cards:
      - show_name: true
        show_icon: true
        name: Zisternenpumpe
        type: button
        icon: mdi:water-well-outline
        tap_action:
          action: call-service
          service: switch.toggle
          target:
            entity_id: switch.zisternenpumpe
        hold_action:
          action: toggle
        show_state: true
      - show_name: true
        show_icon: true
        name: Nachfüllen
        tap_action:
          action: call-service
          service: switch.toggle
          target:
            entity_id: switch.zisterne_fullen
        type: button
        icon: mdi:water-opacity
        show_state: true
    type: horizontal-stack
  - entities:
      - type: section
        label: Rasen
      - entity: switch.box_3_kreis_gartenhaus
      - entity: switch.box_3_kreis_mitte_tr
      - entity: switch.box_3_kreis_nord_garage
      - type: section
        label: Pflanzen
      - entity: switch.box_3_kreis_boschung
      - entity: switch.box_3_kreis_gemusegarten
      - entity: switch.box_3_kreis_kirschloorbeer_west
    show_header_toggle: false
    type: entities
    title: Box 3 - West
type: vertical-stack

It look like:

I have activated show status:

But when i tap the “Zisternenpumpe” icon, the switch works fine, but the status is not shown by coloring the icon.
How can i solve this?

thx!

Your button card is not defined correctly for this to work. It should be as below:

      - show_name: true
        show_icon: true
        name: Zisternenpumpe
        type: button
        icon: mdi:water-well-outline
        entity: switch.zisternenpumpe
        tap_action:
          action: toggle

thx! that was the information i missed!