The esp8266 HomeKit switch controller uses the esp8266 HomeKit library to implement a simple switch controller that can be controlled through Siri or Apple's Home app.
- Short press the button to switch between switches
- Press and hold the button for 5 seconds to clear the distribution network information, HomeKit pairing information, and restart
- During network configuration, if the phone is connected to 5G WiFi, it will cause network configuration failure. It is necessary to connect the phone to 2.4G WiFi in order to successfully configure the network.
- HomeKit: IOS phones require the installation of the Home app to use Siri to control the switch. After opening the Home app, click on the+sign in the upper right corner, select Add Accessories, scan the QR code to add accessories. After successful addition, you can control the switch in the Home app or use Siri to control the switch.。
Modify control pins
#define LED_PIN 2 // switch PIN Switch control pin
#define BTN_PIN 0 // Button PIN Button control pin
1.Fixed The distribution network library used is WiFiManager. After clearing the distribution network information and restarting, it was found that you can still connect to the previously configured WiFi. The problem has not been resolved yet, or you can replace the distribution network library. If there is a solution, please let me know. Thank you!