I am working on zigbee Network design for Home Automation. I need to add lights, switches, curtains and other devices to the network and I have to implement logic to group these devices into rooms while adding to the network. I understand that this can be done at the app level, but I don't want to implement it at app level for a few reasons. (I want to persist the grouping in zigbee devices and not in app so it will be available to all users)
I plan to utilize groups in zigbee network for this purpose. I would have a fixed number of rooms with fixed group id for them. Any device when added to network via the coordinator should be added to the group of the room. When I would require to list devices in a room , i would then query all devices in that group. Similarly sending command to all devices in a room can be achieved by sending that command to the group.
I would like to know if there is a better approach to this and get suggestions from those who have experience in this field.