But now I can not select these groups as an entity in lovelace. Can someone explain to me what I’m doing wrong? I can not find any documentation about it.
Because a light group belongs to the light domain and not to the group domain. You can’t define light groups in the same place as you define groups as far as I know.
But this way the light group is created in group domain instead of light domain. It is 100% the same funcionslity wise?
BTW it sucks cause moving light group to groups.yaml requires changes in every place of the system where the light group is referenced
Ok I tried both Burningstone and Harry13 suggestions.
First I now created the light groups in lights.yaml (and included this in configuration.yaml)
But stil if I make a light card I cannot select the light groups. even if i manually type in the name of the newly created group. light.keuken_lichten lovelace tels me “entity is not available”
Secondly I created the group like Harry13 suggested in groups.yaml but then love lace tells me “Specify an entity from within the light domain.” And if I take a entity button card I get the “entity is not available” error
You can also easily move groups out of the configuration.yaml, without changing them to light groups.
Just add this to your configuration.yaml group: !include groups.yaml and then put your group config in groups.yaml and remove the group: at the top of the groups.yaml file
HOLDUP!!! I Restarted again. And now I can see: group.woonkamer_lichten2 and light.keuken_lichten3 but the original light.keuken_lichten from the configuration.yaml is gone. I I guess thuis is because i forgot the light: in configuration.yaml
So does it mean that light.yaml is only direct extension of configuration.yaml?
I expect then that changes in light.yaml requires HA restart too. Am I right?
Thanks.
I’m really happy for this thread, 'cause I was looking for the same answers because trying to find a way to group lights without need of restarting HA. Unfortunately got no answer at that time.
But today this thread makes it clear.
Light group and group are different animals.
light group is rather like one light however containing more light sources (something like Philips Hue scene) and for some reason cannot be created in runtime (without restart).
Common group can group various devices and can be created in runtime but it doesn’t provide functionality of light group.
Pretty limiting I would say.
I think the devs are working hard on reducing/getting rid of restarts for configuration changes. However most of the time I don’t care about this, I’m not changing my config on a daily basis and if I need to restart it takes around 20 sec, which is acceptable for me.
Yeah. And probably this is the same reason behind current design. Most of experienced HA users don’t restart HA because they have things already configured.
But some one forgot about newcomers who have a lot to configure yet in addition facing a lot of problems which leads to even more restarts