Changing colour for light group

Hi all,

currently I’m fumbling around with stack cards in lovelace and had quite some success (for my needs) up to now, I’m running Hass on a Pi with an HA version 0.104.2.

The first row shows the 3 separate light units in my living room whereas the first of them is actually a group of three tradfri lights. The other two are single tradfri lights. When I click on one of singles the colour of the icon changes to resemble the on-state. The icon for the group on the first button does not change when clicked (the light itself turns on or off).
How can I add the colour change for this first icon? Do I have to change the code in the stack card? Or do I need to customise something there? Please see the code for the stack card:

type: vertical-stack
cards:
  - cards:
      - entity: group.wohnzimmercl
        name: Couch Licht
        type: entity-button
        icon: 'mdi:floor-lamp'
      - entity: light.stern
        type: entity-button
        icon: 'mdi:star'
      - entity: light.couch_lesen
        type: entity-button
        icon: 'mdi:desk-lamp'
    type: horizontal-stack
  - cards:
      - entity: light.leselampe_bett
        name: Julia Lesen
        type: entity-button
        icon: 'mdi:desk-lamp'
      - entity: switch.wlan_steckdose01
        name: Julia LED
        type: entity-button
        icon: 'mdi:led-strip-variant'
    type: horizontal-stack

Thanks for any hint!

Carsten

you want light_group not group.

1 Like

This page should help you on your way.

2 Likes

Thank you both! This was the missing link!
My switches are lights now, and the bulbs act as one!

2 Likes