Cannot get groups and views working

What is it what im doing wrong? tried editing the configruation.yaml file and the groups.yaml file…
No matter what i do i cant get the groups and views working or showing up at all???

here something i tried in the groups.yaml file
default_view:
view: yes
icon: mdi:home
entities:
- group.all_lights
- group.all_devices
meter_readings:
name: Stroom
view: yes
icon: mdi:flash
entities:
- sensor.power_consumption_low
- sensor.power_consumption_normal
- sensor.power_production_low
- sensor.power_production_normal
- sensor.gas_consumption

default_view:
  view: yes
  icon: mdi:home
  entities:
    - group.all_lights       <-------------- These won't show up unless un-hidden in customize
    - group.all_devices   <--------------

meter_readings:
  name: Stroom
  view: yes <---------------- will make the card/badges show up in a tab'ed view
  icon: mdi:flash
  entities:
    - sensor.power_consumption_low
    - sensor.power_consumption_normal
    - sensor.power_production_low
    - sensor.power_production_normal
    - sensor.gas_consumption

Note the way it’s formatted, it’s very important, everything under a name (default_view, meter_readings) is what’s called nested and is indented by 2 (two) spaces. Under entities you will notice they are indented by a further 2 (two) spaces because they are considered a list since they begin with - (dash).

Now about the default view :- from the docs…

By default, every group appears in the HOME tab. If you create a group default_view it will REPLACE the contents of the HOME tab so you can customize the HOME tab as you wish.

This means nothing will show up in the home tab unless you specify it in the groups.

So given that you are defining a default view with nothing in it (the group.all_* will not show up without first customizing them), you will get a blank home tab.

You should however (if it’s formatted correctly) get a tab with the sensors in it :slight_smile:

I suggest you read up on groups here…

https://home-assistant.io/components/group/

A quick example of my groups.yaml…

#default_view:   <----------------------- commented out so everything appears in my home tab as I've not sorted out yet where I want everything
my_home:
  name: Keiths Home
  view: yes
  entities:    
    - group.livingroom
    - group.kitchen
    - group.bedroom
    - group.hall
    - group.bathroom
    - group.alclock
    - group.birthdays
    
livingroom:
  name: Livingroom
  #view: yes
  entities:    
    - binary_sensor.door_window_sensor_158d00016c7797
    - binary_sensor.door_window_sensor_158d0001d68370
    - binary_sensor.door_window_sensor_158d0001d62fb6
    - binary_sensor.motion_sensor_158d00015e8e04 # LR Motion Sensor
    - switch.rfl_dusk_sensor
    - sensor.rfl_dusk_state
    - light.zw_uplight_dimmer_level
    - switch.rfl_livingroom_blue_lava_light
    - light.rfl_livingroom_ceiling_light
    - input_number.lruplighterbrightness_slider
    - input_number.lrceilingbrightness_slider
    - switch.livingroom_table_lamp_rgb
    - switch.rfl_garden_cam_lhd
    - switch.rfl_garden_cam_rhd
    - switch.rfl_dusk_sensor
    - switch.zw_tvandsoundbar_switch
    - switch.tasker_say
    - input_select.broadlinkcmdrgbtablelamp
    - switch.rgb_table_lamp
    - switch.rgb_table_lamp_blue
    - switch.rgb_table_lamp_colour_wheel
    - switch.rgb_table_lamp_red
    - switch.rfl_livingroom_blinds
    - switch.rfl_livingroom_charge_station
    - switch.rfl_livingroom_pir
    - sensor.rfl_livingroom_temp_battery
    - sensor.rfl_livingroom_temperature
    - sensor.dark_yet
    - sensor.illumination_34ce0088a1e8
    - group.livingroomlights
    - group.livingroomallswitches

livingroomallswitches:
  name: LivingroomSwitches
  entities:
    - light.zw_uplight_dimmer_level
    - switch.rfl_livingroom_blue_lava_light
    - switch.livingroom_table_lamp_rgb
    - switch.rfl_garden_cam_lhd
    - switch.rfl_garden_cam_rhd
    - switch.zw_tvandsoundbar_switch
    - switch.rgb_table_lamp
    - switch.rfl_livingroom_blinds
    - switch.rfl_livingroom_charge_station
    
livingroomlights:
  name: LivingroomLights
  entities:
    - light.zw_uplight_dimmer_level
    - light.rfl_livingroom_ceiling_light
    - switch.rfl_livingroom_blue_lava_light

Thanks for your reply i only have 2 groups and these are made automatic the group.all_devices and the group.all_lights
trying to make new groups for dsmr slimme meter. i read the page you are referring to but cant get the grip on it :frowning:

image

Did you read my reply at all? Indentation is 2 (two) spaces you have four :stuck_out_tongue: you can’t have group.meter_readings

use…

meter_readings:
  name: Stroom
  view: yes
  hidden: false
  icon: mdi:flash 
  entities:
    - sensor..........
    - sensor........
    - etc

Oh no sorry feel so dump right now! But hey thanks i now understand it :smiley:
Only thing i wonder is how i can get the new groups to fill up with other then the icons above?

Thanks for the reply :smiley:
When i have the time im learning a bit more of home assistant everyday :wink:

humm… well i would think here you ALSO have to ADD these entities to a “group” and then add this “group” to the view you have created… then they will be in a “card” within your tab :slight_smile:

so first - create a group with these “entities” in them
then create a VIEW with this “group” as an entity

something like this:

  name: Living Room Lights
  entities:
    - light.tyler
    - light.dimmable_led
    - light.kurt
    - light.led_wohnraum

this creates a group with these entities in it.
then:

  name: Living Room
  view: yes
  entities:
    - group.living_room_lights
    - group.living_room_blinds
    - media_player.kitchen_home

this creates a “tab” or a group which is a view (tab) with the living room groups which i craeted before hand.