Groups not working

I’m new with Home Assistant, but unfortunately I have a lot of trouble in creating groups. I woul like to organize the dashboards per room. So let’s say I have one room, the bedroom. In the bedroom I have some Lifx bulbs which are named as group.all_lights entity. The groups.yaml file looks like this:

group:
 bedroom:
  name: Bedroom
  view: yes
  entities:
   - group.all_lights

The formatting doesn’t look ok here, but in the file it should be fine.

I get the following error whole the time:

Failed config
  group: 
    group: [source /home/dario/.homeassistant/groups.yaml:1]
      bedroom: [source /home/dario/.homeassistant/groups.yaml:2]
        entities: [source /home/dario/.homeassistant/groups.yaml:5]
          - group.all_lights
        name: Bedroom
        view: True

General Errors:
- Setup failed for group: Invalid config.
- Unable to setup dependencies of automation. Setup failed for dependencies: group
- Setup failed for automation: Could not setup all dependencies.
- Unable to setup dependencies of light. Setup failed for dependencies: group
- Setup failed for light: Could not setup all dependencies.

How can I fixt that?

Probably a config issue.
put your config (here in the forum) within triple backticks like this
```
config here
```

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: **
  longitude: **
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 656
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Zurich


# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL or running in Docker etc
  # base_url: example.duckdns.org:8123
  api_password: **
  ssl_certificate: **
  ssl_key: **


# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

# Track the sun
#sun:

# Weather Prediction
sensor:
  - platform: mqtt
    state_topic: "myhome/dariobedroom/temperature"
    name: 'Dario Bedroom Temperature'
    unit_of_measurement: "°C"
  - platform: mqtt
    state_topic: "myhome/dariobedroom/humidity"
    unit_of_measurement: "%"

# Text to speech
tts:
  platform: google

group: !include groups.yaml


automation: !include automations.yaml

light:
- platform: lifx

mqtt:
 broker: localhost
 port: 1883
 username: **
 password: **
 keepalive: 60

and

group:
  bedroom:
    name: Bedroom
    entities:
      - group.all_lights

light:

  • platform: lifx

The above should be double spaced…

light:
  - platform: lifx

I think that’s why all_lights is not working as I think they are auto discovered but since the yaml is wrong HA won’t discover them?

mqtt as well needs double spacing.

drop the initial ‘group’ (first line) out of your groups.yaml file?

bedroom:
  name: Bedroom
  view: yes
  entities:
  - group.all_lights

That’s a good catch :smiley:

Perfect, it worked, many thanks!

I have another question. At the moment my bedroom tab looks like this:

But I would prefer to have just one switch for the light and not three, maybe one switch named “Light”. Does anyone know how I can do that?

Group the lamps separately and add that group to the bedroom one.

Super, it worked. How can I hidden the lamps group from the home tab now?

https://home-assistant.io/docs/configuration/group_visibility/

Also…