All Projects → andreacucci → Sonoff-ESP8266-HomeKit

andreacucci / Sonoff-ESP8266-HomeKit

Licence: Apache-2.0 license
Firmware to control your Sonoff natively and directly through HomeKit.

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to Sonoff-ESP8266-HomeKit

Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! 🎉
Stars: ✭ 722 (+1144.83%)
Mutual labels:  esp8266, homekit, sonoff
Esp Homekit Devices
Project to add native Apple HomeKit support to any device with an ESP8266 chip
Stars: ✭ 1,153 (+1887.93%)
Mutual labels:  esp8266, homekit, sonoff
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+79.31%)
Mutual labels:  esp8266, homekit, sonoff
Homekit Ws2812b Controller
ESP8266 based  Homekit controller for WS2812B lightstrips with WS2812FX support🌈
Stars: ✭ 110 (+89.66%)
Mutual labels:  esp8266, homekit
Sonoffsocket
Switching Sonoff Basic and Sonoff S20 (Webserver or MQTT).
Stars: ✭ 28 (-51.72%)
Mutual labels:  esp8266, sonoff
Esparto
Esparto v3.3 is a rapid development framework, synchronous task queue and GPIO manager with web UI for ESP8266 devices
Stars: ✭ 108 (+86.21%)
Mutual labels:  esp8266, sonoff
Esp Homekit
Apple HomeKit accessory server library for ESP-OPEN-RTOS
Stars: ✭ 720 (+1141.38%)
Mutual labels:  esp8266, homekit
Sonoff wifi switch
Прошивка для ESP8266 (Умный дом)-Firmware for ESP8266 (Smart Home)
Stars: ✭ 156 (+168.97%)
Mutual labels:  esp8266, sonoff
Itead sonoff
Alternative firmware for Itead Sonoff switches, based on the MQTT protocol and a TLS connection
Stars: ✭ 115 (+98.28%)
Mutual labels:  esp8266, sonoff
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+248.28%)
Mutual labels:  esp8266, homekit
Sonoff-HomeKit
Эта прошивка делает Sonoff Basic совместимым с Apple Homekit
Stars: ✭ 24 (-58.62%)
Mutual labels:  homekit, sonoff
Esp Homekit Demo Stepbystep
tutorial step by step esp homekit demo
Stars: ✭ 24 (-58.62%)
Mutual labels:  esp8266, homekit
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+1313.79%)
Mutual labels:  esp8266, sonoff
Tasmota
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
Stars: ✭ 16,624 (+28562.07%)
Mutual labels:  esp8266, sonoff
ESP8266-HomeKit-Air-Quality-Sensor-Elgato-Eve-Room
ESP8266 based  Homekit Indoor Air Quality sensor that acts like Eve Room🌱
Stars: ✭ 58 (+0%)
Mutual labels:  homekit, esp8266-homekit
Tasmocompiler
Web GUI for custom Tasmota compilation
Stars: ✭ 143 (+146.55%)
Mutual labels:  esp8266, sonoff
esp8266 homekit temp
Small project to send data from a temperature sensor connected to an esp8266 to a HomeKit server, running on a Raspberry Pi.
Stars: ✭ 38 (-34.48%)
Mutual labels:  esp8266, homekit
Tasmoadmin
Website to manage Sonoff Devices flashed with Tasmota
Stars: ✭ 560 (+865.52%)
Mutual labels:  esp8266, sonoff
Esp Homekit Demo
Demo of Apple HomeKit accessory server library
Stars: ✭ 657 (+1032.76%)
Mutual labels:  esp8266, homekit
Espurna
Home automation firmware for ESP8266-based devices
Stars: ✭ 2,650 (+4468.97%)
Mutual labels:  esp8266, sonoff

Sonoff-HomeKit implementation

Firmware to control your Sonoff natively and directly through HomeKit.

Only iTead Sonoff Basic is supported.

Build instructions for Sonoff-Homekit

Prerequisites

Build Instructions

Setting your WiFi

If you did not set up your WiFi, do so by uncommenting the first block of code in the user_init routine and filling the SSID and password. After, do not forget to to comment it out again and remove your password. Its bad for flash to write it each time and you would not want to upload your password to GitHub by accident.

Compiling

~$ export SDK_PATH=<your SDK directory>
~$ export BIN_PATH=<where your binaries will be>
~$ cd Sonoff-ESP8266-HomeKit
~/Sonoff-ESP8266-HomeKit$ ./gen_misc.sh

Use all the defaults or experiment with alternatives...
This will create (after several minutes) the files:

  • $BIN_PATH/eagle.flash.bin
  • $BIN_PATH/eagle.irom0text.bin

If you answer all the questions by default, ESP8266-HomeKit will need more space than originally foreseen in ESP8266_RTOS_SDK 1.5.0 which was to start irom at 0x20000. To address this it is needed to change the ESP8266_RTOS_SDK/ld/eagle.app.v6.ld file:

diff ld/eagle.app.v6.ld.0 ld/eagle.app.v6.ld
29c29,30
<   irom0_0_seg :                       	org = 0x40220000, len = 0x5C000
---
> /*irom0_0_seg :                       	org = 0x40220000, len = 0x5C000 */
>   irom0_0_seg :                       	org = 0x40214000, len = 0x67000

for convenience also change the master ESP8266_RTOS_SDK/Makefile:

diff ESP8266/source/ESP8266_RTOS_SDK-master-v1.5.0/Makefile Makefile 
271c271
< 	@echo "eagle.irom0text.bin---->0x20000"
---
> 	@echo "eagle.irom0text.bin---->0x14000"

Flashing:

esptool.py --baud 230400 -p /dev/yourUSBid write_flash 0x00000 $BIN_PATH/eagle.flash.bin 0x14000 $BIN_PATH/eagle.irom0text.bin

Usage:

  • After boot, if the device is not yet paired, an srp-key is calculated in about 25 seconds
  • After that the server starts and mulicastdns starts to advertize
  • The default pincode is 031-45-154
  • The code writes clients keys to sector 0x13000
  • After you unpair from the original device, the keys will be destroyed and you can pair again.
  • if something went wrong, go to the foundation, and change the signature string to something else and you can start from scratch
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].