Problems with groups (newbie)

Hey everybody,

I got some problems understanding the groups and views.

What i’m trying to do is group my two lights thats in the livingroom.
Their name is:
light.vardagsrum__stativ
light.vardagsrum__tak

I want it as a tab named “Vardagsrum”.

What is confusing is that under states i see this groups:
group.all_devices
group.all_lights
group.all_automations

Where are they set in the config file?

When I tried it I used the code in my groups.yaml then every other card is removed.
My groups.yaml file:

#Views
default_view:
  view: yes
  entities: 
    - group.light_vardagsrum

    
    
#Groups

    light_vardagsrum:
      name: Vardagsrum
      entities:
      - light.vardagsrum__stativ
      - light.vardagsrum__tak

group.all_devices
group.all_lights
group.all_automations
These are automatically created by HA

Try define group first in yaml.
Then list views.not sure if the ordering matters

when you define a view called default_view: it overrides the system created default view which has everything. That’s why all other cards not declared in the entities list get removed. Define groups then define views. and make sure your YAML formatting and indentation is correct.

Hey guys,

Thanks for your input, now I got a tab “Vardagsrum
But on the “Home” page they are still visible.
Can that be fixed?

Do these need to be in a group? What would you have done?:
sun.sun
sensor.vader_temperature (yr)
zones

edit: I added the new zwave stick now, and it doesn’t show up. Do I have to set the entity under groups for it to show up? Can I do something different.

Now it looks like this in my groups.yaml:

####GROUPS#####

  default_view:
   view: yes
   entities:
   - group.automationer_vardagsrum
   - group.automationer_zoner
   - group.light_vardagsrum
   - group.media_player1
   - group.media_player2
   - group.scenes_vardagsrum
   - device_tracker.bella_bella
   - device_tracker.oskar_oskar
   - sun.sun
   - sensor.vader_temperature

  vardagsrum:
name: Vardagsrum
view: yes
entities:
- group.scenes_vardagsrum
- group.automationer_vardagsrum
- group.light_vardagsrum

  


####GROUPS#####
   
  light_vardagsrum:
name: Vardagsrum Lampor
entities:
- light.vardagsrum__stativ
- light.vardagsrum__tak
 
  scenes_vardagsrum:
 name: Scener Vardagsrum
 entities:
 - scene.livingroom_dim
 - scene.livingroom_normal
 
  media_player1:
 name: Kerneheds Vardagsrum
 entities:
 - media_player.kerneheds_vardagsrum

 
  media_player2:
 name: Evenices Rum
 entities:
 - media_player.evenices_rum
 
  automationer_vardagsrum:
 name: Automationer i Vardagsrum
 entities:
 - automation.media_player_pausedstopped
 - automation.media_player_playing

  automationer_zoner:
 name: Automationer Zoner
 entities:
 - automation.bella_ej_hemma
 - automation.bella_hemma
 - automation.bella_jobb
 - automation.oskar_ej_hemma