PvS
(Pepijn)
November 26, 2021, 12:50pm
1
I decided to redo everything and disabled my old installation.
Also reinstalled the IKEA gateway as ZHA was causing a lot of trouble and
weird behavior with 5-way remotes. After connecting back to the
IKEA TRADFRI Gateway, I re-paired all lights again, I was able to set up
the lights again. Then I wanted to setup the light groups and now I’m stumped.
I’ve tried several ways of creating them like;
configuration.yaml
light:
- platform: group
name: Dining Table Lights
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
lights_group.yaml
- platform: group
name: Dining Table Lights
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
No matter what, I only get : This entity (‘light.dining_table_lights’) does not
have a unique ID, therefore its settings cannot be managed from the UI.
I’ve search Hi-and-Lo in the forums but even when trying to recreate them in
the old installation, this fails. What has changed??
francisp
(Francis)
November 26, 2021, 12:58pm
2
This simply means you can not setup in the UI, you need to setup in .yaml
PvS
(Pepijn)
November 26, 2021, 12:59pm
3
I am, like I said using: configuration.yaml or light_group.yaml.
So how can I have/get them active in the UI?
petro
(Petro)
November 26, 2021, 1:02pm
4
light groups support unique_id’s , so add it to your yaml and then you can adjust it from the ui.
petro
(Petro)
November 26, 2021, 1:04pm
5
Only you will know which one to add that to. Inside your entire configuration, you can only have 1 light section. If your light section is pointing to light_group.yaml, then it goes there. If your light section is in configuration.yaml, it goes there.
PvS
(Pepijn)
November 26, 2021, 1:08pm
6
Thanks, I know that. Yet, when I use: configuration.yaml with: light groups: !include light_groups.yaml
And inside light_groups.yaml
- platform: group
name: Dining Table Lights
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
No other light settings.
I get the light group but without an unique id.
francisp
(Francis)
November 26, 2021, 1:11pm
7
try
- platform: group
name: Dining Table Lights
unique_id: 9f07967c-a601-4658-87ac-500f3858a7c8
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
petro
(Petro)
November 26, 2021, 1:13pm
8
because you don’t have the unique_id
set… does your configuration have the word unqiue_id
in it?
EDIT: See @francisp ’s example
1 Like
petro
(Petro)
November 26, 2021, 1:14pm
9
The it in this post was referring to adding unqiue_id
to your configuration of the light group.
PvS
(Pepijn)
November 26, 2021, 1:15pm
10
Just did so, still grayed out. Unavailable.
PvS
(Pepijn)
November 26, 2021, 1:20pm
12
I restarted the group first, then a full restart. Unfortunately.
petro
(Petro)
November 26, 2021, 1:21pm
13
you’re looking at the wrong entity. That’s the original one, search for the new one.
PvS
(Pepijn)
November 26, 2021, 1:24pm
14
I added XXX in front to distinguish.
I’ve no other entities with XXX
petro
(Petro)
November 26, 2021, 1:25pm
15
post your entire configuration for the light groups then.
PvS
(Pepijn)
November 26, 2021, 1:26pm
16
# Setup light groups
- platform: group
name: XXXDining Table Lights
unique_id: 9f07967c-a601-4658-87ac-500f3858a7c8
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
- platform: group
name: Living Room Lights
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
- light.living_room_front_left
- light.living_room_front_right
- platform: group
name: Living Room Front Lights
entities:
- light.living_room_front_left
- light.living_room_front_right
- platform: group
name: Living Room Back Lights
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
- platform: group
name: Living test
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
petro
(Petro)
November 26, 2021, 1:26pm
17
because that entity_id looks like the first configured one, and the fact that it’s unavailable means you’re looking at the old entity, not the new one. But I can’t confirm that without looking at the entire configuration.
petro
(Petro)
November 26, 2021, 1:28pm
18
based on that configuration, i would expect your entity_id to be light.xxxdining_room_lights or light.9f07967…etc
PvS
(Pepijn)
November 26, 2021, 1:29pm
19
I’ve generated a random uuid again.
# Setup light groups
- platform: group
name: YYYDining Table Lights
unique_id: 931484c6-4ebc-11ec-81d3-0242ac130003
entities:
- light.dining_table_front
- light.dining_table_middle
- light.dining_table_back
- platform: group
name: Living Room Lights
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
- light.living_room_front_left
- light.living_room_front_right
- platform: group
name: Living Room Front Lights
entities:
- light.living_room_front_left
- light.living_room_front_right
- platform: group
name: Living Room Back Lights
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
- platform: group
name: Living test
entities:
- light.living_room_back_sphere
- light.living_room_back_hemisphere
Still unavailable: