Question about Light Groups and Entities

Hello,
I have a question regarding light groups and the light entities within these groups. Here an example from my current config:

light:
  - platform: group
    name: Nightmode
    entities:
      - light.wardrobe_led
      - light.livingroom_led
      - light.kitchen_floor_led
  - platform: group
    name: Kitchen LED 
    entities:
      - light.kitchen_floor_led
      - light.kitchen_workbench_short_led
      - light.kitchen_workbench_long_led

For these 2 groups, i have 2lLovelace buttons for turning on and off. And as you can see, the entity “light.kitchen_floor_led” exists in both groups.
Now, when I turn on the light “Kitchen LED”, the button “Nightmode” also lights up (And the same when I turn on “Nightmode”)

Is it possible that the lovelace buttons only gets marked as activated when all members of the group have the state “on” ?

I don’t think the light group supports the all: true option of the generic group. It’s not documented on the light group page.

But may be worth trying? https://www.home-assistant.io/integrations/group/#all

It doesn´t seem so:

Invalid config for [light.group]: [all] is an invalid option for [light.group]. Check: light.group->all. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/light.group/

Ok it was worth a try. You could request it be added as an option.

The work-around in the meantime could be to use normal groups with the all: true option set. It just means you have to use the homeassistant.turn_on/off service instead of the light.turn_on/off service. Also you would not have access to other features of the light domain like brightness or transition time.

thanks, I´ll give it a try !

Although it’s been awhile, I ran into this issue myself and decided to implement the all: true option into light groups.

You can track the changes for it here: Add all option to light group by JeffResc · Pull Request #68447 · home-assistant/core · GitHub

1 Like