Light Groups Configuration Invalid Config

I feel so stupid for having this error out on me but I’ve checked I’m trying to make a light group so I can create a Room wide saturation + brightness slider (I’m also having problems with slider-entity row giving me custom element doesn’t exist but one problem at a time)

Light Group erroring out on me in the configuration.yaml

light:
  - platform: group
  - platform: hue
    name: Downstairs
    entities:
      - entity: light.1f_living_room_east
      - entity: light.1f_living_room_hallway
      - entity: light.1f_lc_living_room_south
      - entity: light.1f_livingroom_3_head_lamp_mid
      - entity: light.2f_lc_living_room_east
      - entity: light.2f_lc_living_room_se
      - entity: light.1f_kitchen

Config Error:

Invalid config for [light.group]: required key not provided @ data['entities']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/light.group/

My ultimate goal is to create a Light Dimmer for said lights

The Light Group page is exactly how I have it set up. Oh and when I omit the platform: hue I get these config errors.

Invalid config for [light.group]: value should be a string for dictionary value @ data['entities']. Got [OrderedDict([('entity', 'light.1f_living_room_east')]

It’ll repeat that error for every single entity in there.

Remove:

  - platform: hue

Yeah still errors out just a different one.

Also remove this from in front of all your lights in the group:

entity:

It’s not a lovelace card :slight_smile:

This is what you should have:

light:
  - platform: group
    name: Downstairs
    entities:
      - light.1f_living_room_east
      - light.1f_living_room_hallway
      - light.1f_lc_living_room_south
      - light.1f_livingroom_3_head_lamp_mid
      - light.2f_lc_living_room_east
      - light.2f_lc_living_room_se
      - light.1f_kitchen

Oh man I’m an idiot.

Thank you SO MUCH

1 Like

Sorry to resuscitate this old post, I am having the same error message.
I think am doing exactly what i am supposed to.
my error message:

Invalid config for [group]: value should be a string for dictionary value @ data['group']['light']['entities']. Got None. (See /config/configuration.yaml, line 18).

I don’t understand what’s wrong with my config.yaml at line 18 at all either… it’s empty.
Here’s lines 16 to 22 from my config.yaml:

tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

groups.yaml

light:
  - platform: group
    name: bedroom_lights
    entities:
      - light.eb2e1f10197ae01f16m3o3
      - switch.525735203c71bf3e318f_1
      - switch.36600408840d8e9a61b7_1
  - platform: group
    name: livingroom_lights
    entities:
      - light.17380350bcddc2205d2a
      - switch.17742450b4e62d747e12_1
  - platform: group
    name: office_lights
      - light.70207438b4e62d384747
      - light.eb3fa59a69dd54f121ch3d

Is it because theres switches also? I am not sure how to do this, sorry again for my noobness.

thanks

light: does not belong in your groups.yaml file.

And yes, you can not include switches in a light group.

Strange. The documentation specificly uses light: as example for group. I am getting the same error, so how to create group of lights? I understand if I put list of lights into groups.yaml

light:
  - platform: group
    name: "Music lamps"
    entities:
      - light.21800710dc4f22741488_2
      - light.bf090d369e05a12547gbhu_2

and there is entry group: !include groups.yaml in configuration.yaml, then it is exactly as in example on page Light Group - Home Assistant

S who it does not work? The error is Invalid config for [group]: value should be a string for dictionary value @ data['group']['light']['entities']. Got None. (See /config/configuration.yaml, line 31)

You can use the light group platform under light:, just like you can use the Lifx or Hue platform there.

But nowhere in the documentation does it say you can put light: in groups.yaml

Group can be a type of light but light: can not be put under group: .

Can’t see how they could have gotten confused :wink: I don’t see any ‘type’ variable under group in the docs. How do we make a group be the type ‘light’? Is this equivalent to a ‘Light Group’ or are these totally different functionality that appear similar? Thanks!

For anyone stumbling across this post and not understanding what tom_I is saying.

When you separate your lights into a groups.yaml file this is the answer

  - platform: group
    name: bedroom_lights
    entities:
      - light.eb2e1f10197ae01f16m3o3
  - platform: group
    name: livingroom_lights
    entities:
      - light.17380350bcddc2205d2a
  - platform: group
    name: office_lights
      - light.70207438b4e62d384747
      - light.eb3fa59a69dd54f121ch3d

More information can be found here Splitting up the configuration - Home Assistant

Regards

7 Likes