Multiple button cards inside entities card

Hi everyone,
I’m having this dashboard and it works currently:
image

my code:

title: "Living Room"
path: "livingroom"
cards:

  - type: entities
    title: Panasonic Fan
    show_header_toggle: false
    entities:
      - type: button
        name: Power
        show_state: false
        show_icon: true
        icon: mdi:power
        tap_action:
          action: call-service
          service: script.fan_livingroom_power
          data:
            entity_id: script.fan_livingroom_power
      - type: button
        name: Speed
        show_state: false
        show_icon: true
        icon: mdi:fan
        tap_action:
          action: call-service
          service: script.fan_livingroom_speed
          data:
            entity_id: script.fan_livingroom_speed

Now I want press to icon Power instead of press “Run” button
The dashboard I would like to have like this (I edited it by MS Paint):
image

Is there any way to achieve that? I woud like to create more and more buttons in sinde the “Panasonic Fan” card.

Thanks in advance

There are better cards than entities for doing this.

Glance Card is a simple way to do it Glance Card - Home Assistant (home-assistant.io). There are options for what text etc. to display and what to do when pressed, should the defaults not meet your needs.

I use Grid Cards, sometimes nested, with mostly Button Cards to get a similar effect with a bit more control over the layout.

1 Like

Or there is this:

1 Like

Thank you ! Using glance type is suitable for me.