Group Invert Behavior

Can someone let me know if I’m doing this wrong?

By default, a group is “on” if any thing in the group is “on”. I would like to invert this as per the documentation to set the group to on only if all the lights in the group are on.

The part that is relevant:

Group behavior

By default when any member of a group is on then the group will also be on . Similarly with a device tracker, when any member of the group is home then the group is home . If you set the all option to true though, this behavior is inverted and all members of the group have to be on for the group to turn on as well.

Does anyone have an example of setting this correctly?

Based on the documentation you just linked to it would be something like

group:
  upstairs:
    name: Kids
    all: true
    entities:
      - input_boolean.notify_home
      - camera.demo_camera
      - device_tracker.demo_paulus
      - group.garden

Is that not working, or did you not try it?

Oh I tried it… too many times… I’m getting an invalid configuration error when adding either of the 2 lines to a group:

all: true
all: yes

I’m adding my groups to the groups.yaml file. When adding “all: true” to a group and rest the service, the web ui displays the error “invalid config”

The problem section:

downstairs_lights:
  name: Downstairs Lights
  all: true
  entities:
    - switch.foyer_lamp

Commenting out the all: true fixes the issue.

What version of homeassistant are you running?

The current version is 0.80.1

This functionality was added in 81.0, you need to upgrade to use it.

1 Like

Thank you. Completely missed it in the release notes: