Skip to content

ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)

License

Notifications You must be signed in to change notification settings

willson556/esp32-homekit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp32-homekit

This project impements Apple Homekit Accessory Protocol(HAP) on the ESP32.
You can make your own Homekit accessory with an ESP32 using this library.

Demo

ESP32 HOMEKIT

Resources

Prerequisites

The esp32-homekit is using esp-idf libraries and build.
Please install ESP-IDF (v3.1 recommended)

Add to Existing Project

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

Run Examples

Clone

$ git clone  https://github.com/willson556/esp32-homekit.git
$ cd esp32-homekit
$ git submodule update --init --recursive

WiFi Configuration

esp32-homekit uses WiFi as tranmission layer.
To connect to WiFi, you MUST configure the WiFi SSID and password.

  1. Open examples/switch/main/main.c
  2. Change EXAMPLE_ESP_WIFI_SSID, and EXAMPLE_ESP_WIFI_PASS
#define EXAMPLE_ESP_WIFI_SSID "unibj"
#define EXAMPLE_ESP_WIFI_PASS "12345678"  

Build

$ cd examples/switch
$ make
$ make flash

Setup Code

While pairing accessory and iOS devices, You must enter Setup Code in the Home App. The default setup code is

053-58-197

About

ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.5%
  • C++ 2.1%
  • Makefile 0.4%