It is unclear how many groups a device will support (and persist). I think I understand that if the device is a multi-button scene switch, then it will have, at least, a group for each switch.
Does this mean that other devices have only 1 group?
If they have more, is there a way to tell how many?