Code Monkey home page Code Monkey logo

li317 / esp-homekit-direct Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leelulin/esp-homekit-direct

0.0 0.0 0.0 18.2 MB

Connect HomeKit using esp8266 without HomeBridge

License: MIT License

Shell 1.22% JavaScript 0.01% Ruby 0.25% C++ 0.15% Python 0.38% Perl 0.12% C 91.15% Emacs Lisp 0.01% Objective-C 0.02% Tcl 0.03% C# 0.44% Assembly 4.57% CSS 0.01% Makefile 0.99% HTML 0.04% Smarty 0.01% CMake 0.06% XS 0.01% Batchfile 0.01% M4 0.57%

esp-homekit-direct's Introduction

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 等待连接完成,如果失败可多试几次

esp-homekit-direct's People

Contributors

leelulin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.