// the find
Mixiaoxiao/Arduino-HomeKit-ESP8266
Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
A port of the esp-homekit RTOS library to bare Arduino, letting you run a native HomeKit accessory server on an ESP8266 without any bridge hardware. The pairing crypto runs directly on the chip using a carefully trimmed WolfSSL build. Aimed at hobbyists who want to add $2 microcontrollers to Apple Home without a Raspberry Pi sitting in the middle.
The memory engineering is genuinely impressive — moving 70KB of ed25519 precomputed tables into PROGMEM (Flash) instead of RAM is a real find on a chip with 80KB of heap. Disabling both the software and hardware watchdogs during the multi-second crypto operations is the correct call and they actually thought to do it. The custom ESP8266WiFi fork that strips SSL and patches the WiFiClient memory leak is a practical fix that saves ~3KB at runtime. The macro-style accessory definition in a .c file is cleaner than most Arduino HomeKit wrappers.
The repo is effectively dead — last meaningful commit was 2024, pinned to ESP8266 Arduino Core 2.6.3, and the author themselves points you to the ESP32 version as the serious alternative. Pair setup at 160MHz takes 12 seconds on step 2/3; on an 80MHz chip it will time out and drop the iOS connection, which is a hard wall newcomers will hit. The hardcoded setup code '111-11-111' in every example is a security hole waiting to be cloned into production firmware. There's no OTA update story — if you need to reprovision or update the firmware, you need physical access, which matters for anything installed in a wall.