Groups displaying that I did not specify

It seems that Home Assistant automatically shows a group if all of the entities in a given group are shown on a tab by other groups. That is a bit of a mouthful, hopefully this will clarify the issue I am experiencing.

Here is how the tab “Light Control” is specified:

  light_control:
    view: yes
    name: "Light Control"
    entities:
      - group.kitchen
      - group.dining_room
      - group.lounge
      - group.living_room
      - group.computer_room
      - group.craft_room
      - group.hall_lights
      - group.laundry_room
      - group.master_bedroom
      - group.hannahs_room
      - group.basement
      - group.garage
      - group.driveway_lights
      - group.front_porch
      - group.backyard_lights
      - group.aux_lights

The two pictures below shows what is displayed. In particular, note that the group “Outdoor Light Summary” is not defined in the group code above (neither is Hall Light Summary), but it is displayed on the frontend. My assumption is that this is because all the entities in the “Outdoor Light Summary” are shown in other groups (just the single group “Backyard Lights” at this point).


How can I prevent this from happening? Hiding the unwanted group globally won’t work because it is being displayed correctly on a different tab.

I think it’s because you have them in Auxiliary Lights group, take them out of there and they won’t show up in this tab

That worked, but now whatever tab I put aux_lights into will show every group inside aux_lights separately.

If a group contains several different individual groups, then all the individual groups are also shown?

Depends how you have set it up I think, setup default view to control exactly what is shown and customize groups you don’t want shown with hidden: true in customize.yaml

Setting hidden:true in customize.yaml makes it so the group is never visible on any tab on the frontend. That hides the group globally which causes issues if you want that group to be visible on some tabs.

I think this is a bug. I am going to try and report it as an issue. This test case shows the behavior clearly.

I have defined 3 tabs on the frontend:

  test_view1:
    view: yes
    name: "Test 1"
    entities:
      - group.scheduled_items
      
  test_view2:
    view: yes
    name: "Test 2"
    entities:
      - group.outdoor_lights
      
  test_view3:
    view: yes
    name: "Test 3"
    entities:
      - group.scheduled_items
      - group.outdoor_lights

The two groups used in the test case are defined as follows:

  scheduled_items:
    name: "Scheduled Items"
    entities:
      - light.front_porch_light
      - light.sconce_lights
      - switch.living_room_lamp
      - group.driveway_lights
      - switch.tree

  outdoor_lights:
    name: "Outdoor Lights"
    entities:
      - switch.backyard_light
      - switch.deck_light
      - switch.flood_light
      - light.front_porch_light
      - switch.garage_door_light
      - switch.driveway_light

This is what is displayed. Note that test_view1 and test_view2 work correctly and test_view3 adds an additional group display.