This project provides a simple Zigbee-enabled switch implementation for ESP32 devices. It utilizes the ESP32 Espressif 3.1.2 library to support contact switches.
- Zigbee Color Dimmable Light control
- Two Contact Switch endpoints
- Factory reset via button press
- RGB LED state indication
- Tested on ESP32-C6 Mini
- ESP32 board (tested on ESP32-C6 Mini)
- Zigbee module
- ESP32 Espressif 3.1.2 library
- Arduino IDE or PlatformIO
- Install the ESP32 Espressif 3.1.2 library.
- Connect the GPIO pins as specified in the code.
- Compile and upload the firmware to your ESP32 device.
- Open the serial monitor at 115200 baud rate to debug the connection.
| Device | Status |
|---|---|
| ESP32-C6 Mini | ✅ OK |
- The device will attempt to connect to a Zigbee network on startup.
- Contact switches update their states based on GPIO inputs.
- The factory reset button restores Zigbee settings after a long press.
This project is open-source and available under the MIT License.