Light Groups become unavailable in Lovelace

Hey there,

I’ve set up some nested light groups and added those to my lovelace dashbaord using the light card.
Sometimes this works without any issue but out of the sudden those cards show “unavailable”. Reloading my groups by going to “Configuration->Server Controls->YAML configuration reloading->Groups, Group Entities…” immediately fixes the issue.

What’s going on here?
Thanks!

I have to push this one since it really annoys me. Whenever I restart or update HA, I habe to reload the Groups manually. This can’t be intended.

To everyone having the same problem: I found the solution.

Light groups are created sequentially. So if you use nested light groups (light groups in light groups), make sure to define the light groups you want to use in higher level light groups before you define those.
For example, if you want to have light groups like those:

  • Living Room Ceiling
  • Living Room Ambience
  • Living Room All
    … then you have to make sure to define the “All” group after “Ceiling” and “Ambience” because it needs them to be defined in advance.
2 Likes