Groups in both configuration and groups.yaml

Somehow I seem to have ended up with a group of lights in configuration.yaml

light:
  - platform: group
    name: Interior Lights
    entities:
      - light.attic
      - light.mary_desk
      - light.attic_ensuite

and in groups.yaml

door_sensors:
  name: door sensors
  entities:
      - binary_sensor.front_door
      - binary_sensor.kitchen_door

any idea if one is preferable to the other? bit confused why I’ve got both ! haha

The first one is the new and preferred method.

The second one is the old style. See: Group - Home Assistant

You should use a binary sensor group instead.

1 Like