Mushroom / fold-entity-row: Action: toggle dans head ne fonctionne pas

Bonjour,

Je n’arrive pas à exécuter des actions sur les butons qui se trouvent dans l’entête de fold-entity-row

Voici le code:

type: vertical-stack
cards:
  - type: custom:mushroom-title-card
    title: Ne fonctionne pas
    title_tap_action:
      action: none
    subtitle_tap_action:
      action: none
  - type: entities
    entities:
      - type: custom:vertical-stack-in-card
        cards:
          - type: custom:fold-entity-row
            head:
              type: custom:vertical-stack-in-card
              horizontal: true
              cards:
                - type: custom:mushroom-template-card
                  entity: scene.chambre_ayline_1_1_eteindre
                  primary: Eteindre
                  secondary: ''
                  icon: mdi:lightbulb-off-outline
                  icon_color: '#ffe9ca'
                  tap_action:
                    action: toggle
                - type: custom:mushroom-template-card
                  entity: scene.chambre_ayline_1_1_ambiance_1
                  primary: Ambiance 1
                  secondary: ''
                  icon: mdi:lightbulb-on-40
                  icon_color: '#ffd597'
                  tap_action:
                    action: toggle
                - type: custom:mushroom-template-card
                  entity: scene.chambre_ayline_1_1_ambiance_2
                  primary: Ambiance 2
                  secondary: ''
                  icon: mdi:lightbulb-on-80
                  icon_color: '#ffbd5c'
                  tap_action:
                    action: toggle
                - type: custom:mushroom-template-card
                  entity: scene.chambre_ayline_1_1_tous
                  primary: Tous
                  secondary: ''
                  icon: mdi:lightbulb-on
                  icon_color: '#ff9800'
                  tap_action:
                    action: toggle
            padding: 0
            entities:
              - type: custom:vertical-stack-in-card
                cards:
                  - type: horizontal-stack
                    cards:
                      - type: custom:mushroom-light-card
                        entity: light.chambre_ayline_1_1_eclairage_leche_mur
                        name: Lèche mur
                        icon: mdi:lightbulb-spot
                      - type: custom:mushroom-number-card
                        entity: number.chambre_ayline_1_1_consigne_eclairage_leche_mur
                        icon_type: none
                        primary_info: none
                        secondary_info: none
                        fill_container: true
                        layout: horizontal
                        display_mode: buttons
                  - type: custom:mushroom-light-card
                    entity: light.chambre_ayline_1_1_eclairage_piece
                    name: Pièce
                    icon: mdi:ceiling-light
    card_mod:
      style: |
        ha-card {
          margin-left: 0px;
          --ha-card-border-width: 0;
          --ha-card-box-shadow: 0;
          padding: 0px 0px;
                }
        ha-card #states {
          padding:0px;
                        }

Sans utiliser fold-entity-row, les actions fonctionnent bien:

type: vertical-stack
cards:
  - type: custom:mushroom-title-card
    title: Fonctionne
    title_tap_action:
      action: none
    subtitle_tap_action:
      action: none
  - type: custom:vertical-stack-in-card
    horizontal: true
    cards:
      - type: custom:mushroom-template-card
        entity: scene.chambre_ayline_1_1_eteindre
        primary: Eteindre
        secondary: ''
        icon: mdi:lightbulb-off-outline
        icon_color: '#ffe9ca'
        tap_action:
          action: toggle
      - type: custom:mushroom-template-card
        entity: scene.chambre_ayline_1_1_ambiance_1
        primary: Ambiance 1
        secondary: ''
        icon: mdi:lightbulb-on-40
        icon_color: '#ffd597'
        tap_action:
          action: toggle
      - type: custom:mushroom-template-card
        entity: scene.chambre_ayline_1_1_ambiance_2
        primary: Ambiance 2
        secondary: ''
        icon: mdi:lightbulb-on-80
        icon_color: '#ffbd5c'
        tap_action:
          action: toggle
      - type: custom:mushroom-template-card
        entity: scene.chambre_ayline_1_1_tous
        primary: Tous
        secondary: ''
        icon: mdi:lightbulb-on
        icon_color: '#ff9800'
        tap_action:
          action: toggle

Avez-vous une idée?

Merci d’avance

Gwendal

Bonjour,

J’ai changé de méthode
image