The ESP32-C3 Switch Panda is designed to serve lazy individuals, eliminating the need for them to get out of bed to search for the switch. With just a gentle touch on the notification bar, you can enjoy an elegant and convenient lighting control experience. Leave the task of turning off the lights to the Switch Panda, allowing lazy individuals to lie down flatter and more comfortably. This project successfully tackles the significant challenge of turning off the lights before bedtime during the winter season.
Direct HomeKit Connection: Enables local network control, supports Siri control and direct control through the notification bar, with fast response. It can also be integrated with the ESP Rainmaker cloud platform for remote control.
Easy Configuration: Only requires scanning the QR code twice to complete the configuration, allowing you to start using it with ease.
Low Power Consumption Configuration: Balances fast response and battery life. Equipped with a 2000mAh battery, it can achieve a standby time of approximately 90 days with ESP Rainmaker control alone, and approximately 45 days with HomeKit+ESP Rainmaker.
Zero-code Replication
: The code, hardware, and structure are completely open source.
Supports low battery level alerts and automatic shutdown, ensuring stable functionality.
Elegant design with a total material cost of approximately 30 yuan.
Prerequisites: You have an ESP32-C3 Switch Panda. Other ESP32-C3 development boards can also be used, but you will need to connect the servo motor yourself, otherwise you can only observe the control effect through logs*.
Burning:
Connect the Switch Panda to your computer.
Press and hold the Reset button and the BOOT button (IO9) on the Switch Panda at the same time, then release the BOOT button first and then the Reset button to force the chip into burning mode.
Click "Connect" and select the corresponding serial port for the Switch Panda to establish a connection. The serial port name is usually similar to USB JTAG/serial debug unit (COMXX) - Paired
.
Click "Flash" to start burning.
Network configuration:
Done!
If you want to make modifications based on this code, please follow the steps below to compile:
Prerequisites: ESP-IDF needs to be installed, and the code for ESP Rainmaker and ESP HomeKit SDK needs to be pulled. Links are provided, and if you encounter any issues, please feel free to open an issue in the project.
Make sure the above environment is installed and the paths are correctly imported.
Clone this repository under the esp-rainmaker/example directory:
cd esp-rainmaker/examples/
git clone git@github.com:lisir233/esp_smart_light_controller.git
Build
cd esp_smart_light_controller
idf.py build
Hardware Open Source Links:
ESP Rainmaker: espressif/esp-rainmaker: ESP RainMaker Agent for firmware development (github.com)
ESP HomeKit SDK: espressif/esp-homekit-sdk (github.com)