Each relay or dimmer has a group assigned to it per module relative to the address and type module it is.
There are 8 relays on a relay module so, the relays on module addressed to "1" would be 0101-0108. The relay on the top back of the module is number 1. The one on the top front is number 2.
Relay 0101 is also group 0101
There are 6 dimmers on a dimmer module so, the relays on a module addressed to "2" would be 0201-0206. The top dimmer on a module addressed to "2" would be 0201.
Dimmer 0206 is also group 0106
Every relay on module 1 belongs to group 0117
Every dimmer on module 2 belongs to group 0217
Every dimmer or relay in a panel belongs to group 0000