WTH can I group the same class of entries in a group through the front end, but of different classes in the YAML?

So in my YAML config my XmasLights group contains lights and switches.

I tried to recreate that as a group through the front end because that would be easier to maintain. Sadly I can either have switches, or lights.

And yes I can make the switch a light but sometimes when it’s Xmas I use it as a switch. So it would be much easier if groups were treated the same in YAML and Lovelace.

The old school yaml groups came with a slew of problems, which is why they are being phased out. They aren’t being brought to the frontend either. The replacement for grouping any entity together is the labeling system, which is available in the UI. I recommend requesting additional WTHs related to labels.