Invalid config - setting up groups

Hi there,

I’ve just had the chance to start rebuilding my hassio from a very old version to the newest one. I’m trying to setup group entities but I’m getting errors:

Right now, I don’t have anything in the automations.yaml and scripts.yaml. I just feel it’s easier for me to rebuild this with groups already configured.

Invalid config for [scene]: expected a dictionary @ data['states'][0]. Got None. (See ?, line ?). Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got 'include groups.yaml'. (See ?, line ?). Unexpected error calling config validator: 'str' object has no attribute 'items'
Invalid config for [group]: [balcony_lights] is an invalid option for [group]. Check: group->group->group->balcony_lights. (See /config/configuration.yaml, line 8).
Invalid config for [automation]: expected dictionary. Got OrderedDict([('default_config', {}), ('tts', [OrderedDict([('platform', 'google_translate')])]), ('group', 'include groups.yaml'), ('automation', 'include automations.yaml'), ('script', 'include scripts.yaml'), ('scene', 'include scenes.yaml')]). (See ?, line ?).
Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got 'include groups.yaml'. (See ?, line ?). Please check the docs at https://www.home-assistant.io/integrations/group
Invalid config for [group]: [balcony_lights] is an invalid option for [group]. Check: group->group->group->balcony_lights. (See /config/configuration.yaml, line 8). Please check the docs at https://www.home-assistant.io/integrations/group
Unexpected error validating config
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 145, in async_check_ha_config_file
    await config_validator.async_validate_config(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/script/config.py", line 44, in async_validate_config
    for object_id, cfg in config[DOMAIN].items():
AttributeError: 'str' object has no attribute 'items'

This is my groups.yaml:

group:
  balcony_lights:
    name: Balcony Lights
    entities:
      - light.balcony_right_light
      - light.balcony_left_light
  entryway_lights:
    name: Entryway Lights
    entities:
      - light.front_door_light
  living_room_lights:
    name: Living Room Lights
    entities:
      - light.orb_light
  bedroom_lights:
    name: Bedroom Lights
    entities:
      - light.bedroom_light
  upstairs_lights:
    name: Upstairs Lights
    entities:
      - light.god_light

This is my configuration.yaml



# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

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

In your groups.yaml file, her you need to comment out or remove group:

I have it like this in my file.

#group:
  time_and_date:
    name: Time and Date
    entities:
      - group.time_date_sensors
  time_date_sensors:
    name: Time Date
    entities:
      - sensor.date
      - sensor.time
1 Like

Wow! Thanks! I feel so dumb. You saved my life.