Apple HomeKit accessory server library for ESP8266/ESP32 Arduino
This Arduino library is a native Apple HomeKit accessory implementation for the ESP8266 Arduino core, and works without any additional bridges.
I ported the RTOS-based implementation of esp-homekit to the pure Arduino environment, aimed at easy and fast building project using Arduino IDE (or Eclipse with sloeber, PlatformIO).
Enjoy the “one-key” build, “one-key” upload, and work to link various other Arduino libraries with Apple Home kit!
Here is a discussion about the RTOS is required for running Apple HomeKit, and this project is a proof of concept that Apple HomeKit can be implemented and work fine without the RTOS.
This library is built with ESP8266 Arduino Core 2.6.3. Lower versions may compile with errors.
ESP32 is supported now (2020–04–15)
This is a “only-can-work” version for ESP32 without merged into the original library. There remains something to be optimized.
WolfSSL used for ESP32 is based on
4.3.0-stable version with Hardware Acceleration Support.
The HomeKit running on ESP32 has a GREAT PERFORMANCE which Pair-Setup can be done in ~1.2s and Pair-Verify in < 0.1s (10x faster than ESP8266).
The HomeKit storage on ESP32 is based on
GitHub Repository : https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266
Steps for Sample Blink Example (LED)
Go to GitHub repo and download the library for esp8266
Install Library to Arduino IDE
connect LED to D4 pin
Select Simple LED example
Upload Sketch to esp8266 and using ur Wifi user name and password.
Open home kit of your iPhone and connect it to same WiFi network that esp8266 connected. then it will find your device and request setup code .
enter setup code : 111–11–111 or you can change setup code in your programme using
After success full connect your you can access your LED using homeKit
Hope you get idea about this library and it’s time to do a hand on session and change it according to your requirement.