Confused by ZHA groups

Long backstory short: dismayed with the state of deCONZ (light/group name changes not persisting across reboots etc.) I decided to give ZHA a go, reset and re-paired all my lights and smart plugs (IKEA Tradfri plugs and bulbs plus one Hue bulb).

All works, but I get confused when I create groups. All groups contain a mix of bulbs and smart plugs, but some (with no readily apparent logic) are created as ‘lights’ (in the domain 'light) and some as switches (in the domain ‘switch’). Those created as lights correctly toggle the states of all their members, whereas those created as switches do not – the devices turn on/off as expected, but the states of individual devices are not visibly toggled in the Lovelace UI.

Can anyone help me make sense of this? Thank you kindly.

What are you looking to do:

  1. change groups; or
  2. sort out your device domains?

I’m looking to understand:

1)What decides whether the group becomes a switch. group or a light. group
2)Why light. groups correctly toggle the states of all their members whereas switch. groups do not.