Make the static group. Use the expand function (A home assistant function used to expand groups into state objects) inside a template. Then use the state objects to map the information that you want. I’m not sure what you mean by this
Or this
This however, does exactly what you claim PSA: Turn on/off all lights in Home Assistant 0.104+ (group.all_* changes) doesn’t do. It creates a group of all lights or all switches, and then you can turn on or off the groups.