Skip to content

LeeLulin/esp-homekit-direct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp-homekit-direct

无需HomeBridge,使用esp8266直连HomeKit
使用esp8266-01s连接苹果家庭App,控制继电器

首先感谢两位作者
https://github.com/RavenSystem/esp-homekit-devices
https://github.com/Gruppio/Sonoff-Homekit

使用说明

下载

git clone https://github.com/LeeLulin/esp-homekit-direct.git

注意:使用之前需要先配置好 esp-open-sdk 的编译环境
参考: 在 Ubuntu 上搭建 esp-open-sdk 环境在 Docker 中使用 esp-open-sdk 编译固件 本项目示例型号为 esp8266-01s,如果使用其他型号,需要修改 /devices/switch/main.c 文件中的引脚定义

编译固件

cd esp-homekit-direct

make -C devices/switch all

编译完成会在 /devices/switch/firmware 目录下生成 switch.bin 文件

刷写固件

Windows

1.安装python

2.安装esptool

pip install esptool

3.把 /devices/switch/firmware 目录下的三个文件:rboot.bin blank_config.bin switch.bin 复制到python根目录下

4.清空Flash

esptool.py -p [端口] erase_flash
例:esptool.py -p COM4 erase_flash

5.烧录固件

esptool.py -p [端口] -b 115200 write_flash -fs 1MB -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 switch.bin

连接HomeKit

1.手机wifi搜索并连接名称为 Switch-XXXXXXX 的热点,配置wifi信息

2.打开 家庭 App

点击右上角+号选择 添加或扫描配件 选择 我没有或无法扫描代码

选择名称为 Sonoff Switch-XXXXXXX 的配件

输入代码 11111111 等待连接完成,如果失败可多试几次

About

Connect HomeKit using esp8266 without HomeBridge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published