Group not showing all entities on UI

I have some template lights configured to change switches to lights. However those template lights are not showing in the group I defined. So for whatever reason template lights are not being displayed in the Home or Living Room tabs.

From configuration.yaml:

`light:

  • platform: template
    lights:
    sitting_room_1:
    friendly_name: ‘Sitting Room Lights’
    value_template: ‘{{ states.switch.00200388a020a6352504.state }}’
    turn_on:
    service: switch.turn_on
    entity_id: switch.00200388a020a6352504
    turn_off:
    service: switch.turn_off
    entity_id: switch.00200388a020a6352504

light:

  • platform: template
    lights:
    mantel_light:
    friendly_name: ‘Mantel Lights’
    value_template: ‘{{ states.switch.00200388a020a6352c32.state }}’
    turn_on:
    service: switch.turn_on
    entity_id: switch.00200388a020a6352c32
    turn_off:
    service: switch.turn_off
    entity_id: switch.00200388a020a6352c32

light:

  • platform: template
    lights:
    fish_light:
    friendly_name: ‘Fish Room Lights’
    value_template: ‘{{ states.switch.wemo.state }}’
    turn_on:
    service: switch.turn_on
    entity_id: switch.wemo
    turn_off:
    service: switch.turn_off
    entity_id: switch.wemo`

From groups.yaml:
home:
view: yes
icon: mdi:home
entities:
- group.lightsz
- climate.thermostat_36
- cover.garage_door_opener
- camera.driveway
- group.outdoor_sensors
- group.indoor_sensors
- group.zha

living:
name: Living Room
view: yes
entities:
- light.dimmable_light_1_35
- light.gateway_light_7811dcb9e148
- light.dimmable_light_28
- light.mantel_light
- media_player.family_room_speaker
- media_player.roku_4e757u063496
- sensor.living_temp_23
- sensor.porch_door
- binary_sensor.living_motion_12

kitchen:
name: Kitchen
view: yes
entities:
- camera.kitchen
- light.ge_appliances_zll_light_001291ed_1
- light.ge_appliances_zll_light_00153923_1

alex:
name: Alex Room
view: yes
entities:
- camera.alex_room
- automation.turn_off_alex_fan
- automation.turn_on_alex_fan
- sensor.alex_door
- sensor.humidity_158d0001823a7a
- sensor.temperature_158d0001823a7a
- sensor.alex_room_temp_hot

camera:
name: Camera
view: yes
entities:
- camera.hallway
- camera.kitchen
- camera.garage
- camera.driveway
- camera.street_other
- camera.sitting_room
- camera.alex_room
- camera.dog_room
lightsz:
name: The Lights
entities:
- light.sitting_room_1
- light.dimmable_light_1_35
- light.gateway_light_7811dcb9e148
- light.dimmable_light_28
- light.ge_appliances_zll_light_001291ed_1
- light.ge_appliances_zll_light_00153923_1
- light.mantel_light
- light.osram_lightify_a19_onoffdim_0003fe4c_3

home%20tab

The way you’ve defined them they are overwriting each other so you only get one, should be:

light:
  platform: template
  lights:
    sitting_room_1:
      friendly_name: ‘Sitting Room Lights’
      value_template: ‘{{ states.switch.00200388a020a6352504.state }}’
      turn_on:
        service: switch.turn_on
        entity_id: switch.00200388a020a6352504
      turn_off:
        service: switch.turn_off
        entity_id: switch.00200388a020a6352504
    mantel_light:
      friendly_name: ‘Mantel Lights’
      value_template: ‘{{ states.switch.00200388a020a6352c32.state }}’
      turn_on:
        service: switch.turn_on
        entity_id: switch.00200388a020a6352c32
      turn_off:
        service: switch.turn_off
        entity_id: switch.00200388a020a6352c32
    fish_light:
      friendly_name: ‘Fish Room Lights’
      value_template: ‘{{ states.switch.wemo.state }}’
      turn_on:
        service: switch.turn_on
        entity_id: switch.wemo
      turn_off:
        service: switch.turn_off
        entity_id: switch.wemo
1 Like

Thank you, that fixed it. I should have noticed that I was defining multiple light sections.

1 Like