Hi Dost,
We provide different application notes for example JN-AN-1216 IoT Control Bridge and the JN-AN-1221 for the HA.
ZigBee 3.0|NXP
The control bridge will be the coordinator, so you will control it through a ZGWUI. it provides several commands for example: Managing groups.
For a better reference please take a look to this application note and look for the
Application Note: JN-AN-1216 ZigBee 3.0 IoT Control Bridge pdf.
4.2.6 Managing Groups

I recommended take a look the JN-AN-1221 and look for the ColorDiammableLight example.
ZigBee Home Automation|NXP
Please let me know if you have problems running the demo.
Best Regards,
Mario