How do components like light generate a group?

There are automatic groups like group.all_devices, group.all_lights, and group.all_switches. How are these generated programatically? I’ve been looking at for awhile, but I can’t see how it build them. I do see references to group.all_lights, but wasn’t sure how it was created.

I actually found it as I was finishing writing it up:


I just wanted to mention that I personally appreciate that every time you look for something, when you find it you share your links with everyone. It’s that kind of participation that makes this a great community. Thanks!

1 Like