Zigbee light switch #11652
Zigbee light switch
#11652
-
I Would like to create a zigbee light switch Enddevice to control a commercial zigbee lamp. I think to that it needs to expose the genOnOff cluster Could you provide an example on how to build a remote control device? |
Beta Was this translation helpful? Give feedback.
Answered by
P-R-O-C-H-Y
Jul 27, 2025
Replies: 1 comment 1 reply
-
Hi, you can find the example here: https://github.com/espressif/arduino-esp32/tree/master/libraries/Zigbee/examples/Zigbee_On_Off_Switch You can change the Zigbee role to act as a ROUTER or END DEVICE in the code. Check other examples on how it's done. I also suggest looking into docs and this example: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mvoss96
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, you can find the example here: https://github.com/espressif/arduino-esp32/tree/master/libraries/Zigbee/examples/Zigbee_On_Off_Switch
You can change the Zigbee role to act as a ROUTER or END DEVICE in the code. Check other examples on how it's done.
I also suggest looking into docs and this example:
arduino-esp32/libraries/Zigbee/examples/Zigbee_On_Off_MultiSwitch/Zigbee_On_Off_MultiSwitch.ino
Line 90 in c7520cc