Page 1 of 1

How to implement door switches in Zigbee controllers

Posted: Thu Oct 19, 2023 2:47 pm
by Sanyidev
I would like to get an ESP32C6 Zigbee controller up and running and add standard door switches. I would like to receive just open and close commands (regardless of zones, etc).
How do I do that?

Re: How to implement door switches in Zigbee controllers

Posted: Fri Oct 20, 2023 5:05 pm
by doctor567
I am new to programming the ESP32 C6 and H2 myself, but have you checked out https://github.com/espressif/esp-zigbee ... off_switch ? It seems like it would be a pretty good starting point. The door sensor would replace the switch in the example.

Getting setup to build, flash, and debug using ESP-IDF took some doing, but I have it mostly working now.