Group in a group

Hi,
I’m trying to make a view with two cards in it:

  • “Bookshelfs” with all the lights in this group
  • “All Lights” with other lights and “Bookshelfs”

So what i did was creatre a group “Bookshelfs” lights within group “All Lights” but it results with all the lights in it.

Like this:
image

What i would like to have is Bookshelfs in “All Lights” instead of Shelf 1, Shelf 2 and Shelf 3.

This is in my groups.yaml:

livingroom:
  name: "Living Room"
  view: yes
  entities:
    - group.all_lights
    - group.bookshelfs
      
bookshelfs:
  name: "Bookshelfs"
  entities:
    - light.shelf_1
    - light.shelf_2
    - light.shelf_3

How do i do this?

I use this with switches instead of lights and it works fine.
I only have an issue if I use the ‘view; yes’ setting. As long as I leave that out I have no problem.

The last two switches are actually groups of switches:

170997_Group_In_A_Group

livingroom:
  name: "Living Room"
  view: yes
  entities:
    - group.house_lights
      
bookshelves:
  name: "Bookshelves"
  entities:
    - light.shelf_1
    - light.shelf_2
    - light.shelf_3

house_lights:
  name: "House Lights"
  entities:
    - light.couch
    - light.office_ceiling
    - group.bookshelves
1 Like

Aha! Thank you very much, i see it and understand now!

nespresso plug?

= easily the most important piece in my home automation system; it makes sure that the Nespresso machine is pre-heated already when I get into the kitchen in the morning by switching it on via my TP-Link plug :wink: