See [light switch example](https://github.com/nrfconnect/ncs-zigbee/blob/main/samples/light_switch/src/main.c) for the firmware implementation.
See light switch example for the firmware implementation.