Button-card in Multiple Entity Row

Hello

Im trying to put some button-card entities in a multiple entity row one.

This is my code :


type: entities
entities:
  - entity: switch.led_ch_1
    type: custom:multiple-entity-row
    entities:
      - entity: sensor.led_ch_1_device_temperature
        type: custom:button-card
        name: ' '
        show_icon: false
        show_name: false
        show_state: true
        styles:
          card:
            - color: |
                [[[
                  if (entity.state < 60) return 'white';
                  if (entity.state >= 60) return 'orange';
                  if (entity.state >= 80) return 'red';
                ]]]

If i remove the multiple entity row it’s working…
Thanks.

You are doing smth which was not specified as a supported feature.

You mean if it is not planned by the dev, we can’t use a custom component in another custom component ?

if it is not supported officially - you cannot.
Still you may try anything…

With apologies for the thread necromancy, I got around this by re-implementing the multiple-entity-row control using layout-card’s flexible grid control, which fully supports button-card controls.