Group Cards Not Showing

brand new user. set up home assistant, all seems to be working. added nest, sonos, wink. also have hue, which autodetected. then i tried to add room based groups for all my lights. no matter what i do to configure the groups, the web gui never shows the groups. its still shows all lights under a single light group. moreover, i also specified each group was a view - there are no tabs. i simply added my groups to the end of my config file.

here’s the group config i added:

group:
  Living Room:
    name: Living Room
    view: yes
    entities:
      - light.living_room_c_table
      - light.living_room_corner
      - light.living_room_flood_left
      - light.living_room_flood_right

  Master:
    name: Master
    view: yes
    entities:
      - light.master
      - light.master_corner
      - light.master_left_night_stand
      - light.master_right_night_stand

  Basement:
    name: Basement
    view: yes
    entities:
      - light.basement
      - light.basement_ceiling_couch
      - light.basement_ceiling_table
      - light.basement_ceiling_table
      - light.basement_wall

  Den:
    name: Den
    view: yes
    entitites:
      - light.den
      - light.den_corner
      - light.den_window

  Kitchen:
    name: Kitchen
    view: yes
    entities:
      - light.kitchen_left_stove
      - light.kitchen_right_stove

i’ve tried every combination of changes to above to try and get it work that i can think of - comma delimited lists of entities, no spaces between group items, adding a default view which is a group of groups, moving the group definition to other spots in the configuration.yaml file.

HA version 0.19, ubuntu 14.04 running in virtualenv from command line.

any help would be appreciated.
thanks.

Hi! I assume you have tried to refresh your browser :wink:
If so, here you have my groups config, to compare:

Familia:
  entities:
    - device_tracker.dani_iphone
    - device_tracker.ana_s5
Luces:
  entities:
    - light.sofa
    - light.mueble
    - light.tiraled_2_0
    - light.mesitadani
    - light.mesitaana
    - light.tiraled_6_0
    - light.lampara_del_despacho
Multimedia:
  entities:
    - sensor.harmony
    - media_player.mini
    - switch.tv_salon
    - switch.plex
    - switch.radio
    - sensor.mini_despacho
Mov./Apert.:
  entities:
    - binary_sensor.fibaro_system_fgms001_motion_sensor_sensor_2
    - binary_sensor.movyluz_3_0
    - binary_sensor.contacto_1_0
    - binary_sensor.contacto_10_0
Temp-Humedad:
  entities:
    - sensor.sensebender_micro_5_1
    - sensor.sensebender_micro_5_2
    - sensor.fibaro_system_fgms001_motion_sensor_temperature_2
    - sensor.sensor_humetem_9_1
    - sensor.sensor_humetem_9_0
Lux:
  entities:
    - sensor.movyluz_3_1
    - sensor.fibaro_system_fgms001_motion_sensor_luminance_2
    - sensor.sensorluz_7_0
Exterior:
  entities:
    - sun.sun
    - sensor.elevacion
Escenas:
  entities:
    - scene.despiertasalon
    - scene.despiertacuarto
    - scene.tarde
    - scene.noche
    - scene.dimsalon
    - scene.apagar
Scenes:
  view: yes
  icon: 'mdi:lightbulb'
  entities: group.escenas
Reglas:
  entities:
    - input_boolean.despcuarto
    - input_select.alarma_cuarto
    - input_boolean.luztarde
    - input_boolean.entrarsalirdecasa
    - input_boolean.lucesplex
    - input_boolean.entrarsalircuarto
    - input_boolean.lucesmesitacomedor
Rules:
  view: yes
  icon: 'mdi:settings'
  entities: group.reglas

Try formatting yours to better readability.

Thanks,
It didn’t paste correctly, but there is proper indenting like yours.
You don’t use the word group in yours though.

I will try that & also ensure I have the indentation ( I am using spaces) but I did I run it thru a yaml checker and it was OK…

Sorry, I copied from my groups.yaml , but yes, it should be before the first line.
Also, do you get any errors in the log?

good idea on the log.
there is an error, but i dont know what to try to resolve it:
homeassistant.bootstrap: Invalid config for [group]: [group] is an invalid option for [group]. Check: group->group.

Paste again your group config, formatting it. You have to use three backticks ( ` ) after and before the code,

group:
  living_room:
    name: Living Room
    view: yes
    entities:
      - light.living_room_c_table
      - light.living_room_corner
      - light.living_room_flood_left
      - light.living_room_flood_right
  master:
    name: Master
    view: yes
    entities:
      - light.master
      - light.master_corner
      - light.master_left_night_stand
      - light.master_right_night_stand
  basement:
    name: Basement
    view: yes
    entities:
      - light.basement
      - light.basement_ceiling_couch
      - light.basement_ceiling_table
      - light.basement_ceiling_table
      - light.basement_wall
  den:
    name: Den
    view: yes
    entitites:
      - light.den
      - light.den_corner
      - light.den_window
  kitchen:
    name: Kitchen
    view: yes
    entities:
      - light.kitchen_left_stove
      - light.kitchen_right_stove

Do you have another group entry on yout config?
I don’t see any mistake at that config, but try quoting your group names, and try removing the view just to test if they work.

no - i have not other group config.

i tried taking the group config out of the main config and added instead:

group: !include group.yaml

into configuration.yaml and putting this:

Living Room:
  entities:
  - light.living_room_c_table
  - light.living_room_corner
  - light.living_room_flood_left
  - light.living_room_flood_right
Master:
  entities:
    - light.master
    - light.master_corner
    - light.master_left_night_stand
    - light.master_right_night_stand
Basement:
  entities:
    - light.basement
    - light.basement_ceiling_couch
    - light.basement_ceiling_table
    - light.basement_ceiling_table
    - light.basement_wall
Den:
  entitites:
    - light.den
    - light.den_corner
    - light.den_window
Kitchen:
  entities:
    - light.kitchen_left_stove
    - light.kitchen_right_stove

into group.yaml.

so i got rid of the name and view clauses… still same error as above in the log
thanks.

It’s in your Den. “entitites” instead of ‘entities’. :grin:

:hushed:
oops…
Thanks very much.

YAML is a finicky beast. I’ve made this same mistake dozens of times myself as I am getting up to speed. You should take a look at this page on splitting your config files. It really makes debugging things like this a whole lot easier.

Glad I could help!

1 Like

Bringing up an old topic here, but I thought this might be better than starting a new thread. I am trying to setup a living room group with all the lights in my living room. I used this thread and realized that I made the group, but what it did was add a new tab called living room at the top of HA (which is totally okay with me actually, I like it this way), but my main living room light has three philip hue bulbs in it. I’m trying to figure out how to make a switch to turn on all three bulbs at the same time, or dim all of them at the same time. I did this for my configuration.yaml file:

group:
    living_room:
        name: Living Room
        view: yes
        entities:
            - light.lrb
            - light.lrw
            - light.lrbh

Now I would like that switch at the top, this just gives me a second page, but still just lists all the bulbs individually. Also, I’m really new at this coding stuff, so take it easy on me. :slight_smile:

Thanks!

Turns out if I set the view to no, instead of yes, I get the switch I’m looking for.

and please don’t call YAML “coding”. It’s worse than assembly language. LOL

1 Like

Haha duelly noted. Didn’t know that :smiley:

If you want to have Living Room as a tab and still have a switch to control all the lights you can try nesting the groups like this:

group:
living_room:
    name: Living Room
    view: yes
    entities: 
      group.living_room_lights

living_room_lights:
   entities:
     - light.lrb
     - light.lrw
     - light.lrb

i m having problem to make the group appear as a tab on frontend.
I did manage to create the group appear as entity though.

i notice some are using view: true, and some are using view: yes. WHich is the correct one?
I tried using both, but still cant get the tab appear… any idea why?

default_view:
  view: yes
  icon: mdi:home
  entities:
    - group.night
    - group.away
    - group.climate
    
night:
  name: modenight
  view: yes
  entities:
    - switch.sonoff_10004a2f53 #back light
    - switch.sonoff_10003bf2fa #kitchen 2
    
    
away:
  name: modeaway
  view: no
  entities:
    - switch.sonoff_10004a2f53 #back light
    - switch.plug_158d0001a4fcb0 #stand light

Unless you are using the old states page, groups are no longer used for creating frontend views.

In the top right of screen there are 3 dots, click on that and then select configure UI. you can then create tabs from there and ad cards to them. You can convert to using the ui-lovelace.yaml file at a later stage if you need to

Suggest you have a look here for more information on the Lovelace UI… https://www.home-assistant.io/lovelace/

my bad. just noticed that the thread is also 2 yrs old. anyway, i was referring to https://www.home-assistant.io/components/group/
Guess it is not updated.

Thanks!