See https://github.com/cameronnewell/m5NanoC6_Zigbee_light for instructions how to build this device.