This project impements Apple Homekit Accessory Protocol(HAP) on the ESP32.
You can make your own Homekit accessory with an ESP32 using this library.
The esp32-homekit
is using esp-idf libraries and build.
Please install ESP-IDF (v3.1 recommended)
- ESP-IDF Setup Guide
Add as a submodule in the components
folder of your project:
$ git submodule add https://github.com/willson556/esp32-homekit.git components/homekit
$ git submodule update --init --recursive
$ git clone https://github.com/willson556/esp32-homekit.git
$ cd esp32-homekit
$ git submodule update --init --recursive
esp32-homekit uses WiFi as tranmission layer.
To connect to WiFi, you MUST configure the WiFi SSID and password.
- Open examples/switch/main/main.c
- Change EXAMPLE_ESP_WIFI_SSID, and EXAMPLE_ESP_WIFI_PASS
#define EXAMPLE_ESP_WIFI_SSID "unibj"
#define EXAMPLE_ESP_WIFI_PASS "12345678"
$ cd examples/switch
$ make
$ make flash
While pairing accessory and iOS devices, You must enter Setup Code in the Home App. The default setup code is