[SOLVED] Groups Error - Can't figure out what the issue is

My HA keeps throwing 2 errors. The error disappears if i remove all data from the groups.yaml file.

  • 2021-03-13 08:41:00 ERROR (MainThread) [homeassistant.config] Invalid config for [group]: expected a dictionary for dictionary value @ data[‘group’]. Got [OrderedDict([(‘platform’, ‘group’), (‘name’, ‘Living Room Lamps’), (‘entities’, [‘light.dimmable_light_1’, ‘light.dimmable_light_1’])])]. (See /config/configuration.yaml, line 18). Please check the docs at https://www.home-assistant.io/integrations/group

  • 2021-03-13 08:41:00 ERROR (MainThread) [homeassistant.setup] Setup failed for group: Invalid config.

Below is my groups.yaml

- platform: group
  name: Living Room Lamps
  entities:
    - light.dimmable_light_1
    - light.dimmable_light_2

and below is my configuration.yaml

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

homeassistant:
  customize: !include customize.yaml

# Part of LetsEncrypt for DuckDNS setup
http:
  server_port: 443
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  
# Text to speech
tts:
  - platform: google_translate


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

# Unflashed SONOFF devices
sonoff:
  username: !secret sonoff_username
  password: !secret sonoff_password
  reload: always
# Not in use but can be used to change sonoff class
#  devices:  
#    10004f4ae6:
#      device_class: light
#      name: Box Room Lamp
#    1000bf75aa:
#      device_class: [light, light, light]
#      name: Living Room Wall Switch  
  
# SPEED TEST
speedtestdotnet:
  server_id: 1756
  scan_interval:
    minutes: 5
  monitored_conditions:
    - ping
    - download
    - upload  
    
# Deluge configuration.yaml entry
# Reference for how to use https://www.home-assistant.io/integrations/deluge/

#sensor:
#  - platform: deluge
#    host: 192.168.0.214
#    username: !secret deluge_username
#    password: !secret deluge_password
#    monitored_variables:
#      - 'current_status'
#      - 'download_speed'
#      - 'upload_speed'

#switch:
#  - platform: deluge
#    host: 192.168.0.214
#    username: !secret deluge_username
#    password: !secret deluge_password

# Virgin Media Router Device Tracker
device_tracker:
  - platform: upc_connect
    password: !secret virgin_router_pass
    host: 192.168.0.1
    
# Bluetooth Device Tracker    
  - platform: bluetooth_tracker    

# Emby integration
media_player:
  - platform: emby
    host: 192.168.0.214
    port: 8096
    api_key: 
    
# notifications for android tv
notify:
  - platform: nfandroidtv
    name: Living Room TV
    host: 192.168.0.143

The light group platform goes under light, not group.

Like this on the groups.yaml file?

light:
  - platform: group
    name: Living Room Lamps
    entities:
      - light.dimmable_light_1
      - light.dimmable_light_2

No. This:

- platform: group
  name: Living Room Lamps
  entities:
    - light.dimmable_light_1
    - light.dimmable_light_2

in your lights.yaml file. Which looking at your configuration.yaml file you will have to create. Then add this to your configuration.yaml file:

light: !include lights.yaml

and restart.

That makes sense :grinning:. Thanks @tom_l