Program based on Mixiaoxiao’s Arduino-HomeKit-ESP8266. Protocol based on Apple's HAP(non-commercial version).
Hardware based on ESP8266 & DHT11.
123-45-678
- Install Arduino IDE, Arduino-HomeKit-ESP8266 library, SimpleDHT and ESP8266 board manager.
- Edit
ssid
andpassword
inwifi_info.h
to connect your Wi-Fi. - Change download options according to your ESP8266 module. Compile and download.
- Reboot and add it to your home in Apple Home app.
- Module: Generic ESP8266 Module
- Debug Level: None (for lower memory use)
- Erase Flash: select All Flash Contents when you first upload
- CPU Frequency: 160MHz (avoid connection timeout)