{"id":14962058,"url":"https://github.com/gruppio/sonoff-homekit","last_synced_at":"2025-04-04T07:07:20.034Z","repository":{"id":55630472,"uuid":"148889787","full_name":"Gruppio/Sonoff-Homekit","owner":"Gruppio","description":"Make your Sonoff Switch compatible with Apple Homekit! 🎉","archived":false,"fork":false,"pushed_at":"2020-09-29T18:08:44.000Z","size":876,"stargazers_count":1002,"open_issues_count":5,"forks_count":172,"subscribers_count":135,"default_branch":"master","last_synced_at":"2025-04-04T07:07:14.523Z","etag":null,"topics":["api","apple","arduino","esp32","esp8266","esp8285","homekit","ifttt","itead","sonoff","sonoff-basic","sonoff-devices","sonoff-tasmota","sonoff-xxx"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gruppio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-15T09:52:31.000Z","updated_at":"2025-04-04T00:26:42.000Z","dependencies_parsed_at":"2022-08-15T04:51:02.724Z","dependency_job_id":null,"html_url":"https://github.com/Gruppio/Sonoff-Homekit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruppio%2FSonoff-Homekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruppio%2FSonoff-Homekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruppio%2FSonoff-Homekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruppio%2FSonoff-Homekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gruppio","download_url":"https://codeload.github.com/Gruppio/Sonoff-Homekit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","apple","arduino","esp32","esp8266","esp8285","homekit","ifttt","itead","sonoff","sonoff-basic","sonoff-devices","sonoff-tasmota","sonoff-xxx"],"created_at":"2024-09-24T13:28:59.603Z","updated_at":"2025-04-04T07:07:20.015Z","avatar_url":"https://github.com/Gruppio.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonoff Homekit\n\nThis firmware makes the **Sonoff WIFI Smart Switch** compatible with **Apple Homekit**!\n\n\u003cimg src=\"https://raw.githubusercontent.com/Gruppio/Sonoff-Homekit/images/images/sonoffonly.png\" alt=\"Sonoff\" width=\"180\"/\u003e \u003cimg src=\"https://raw.githubusercontent.com/Gruppio/Sonoff-Homekit/images/images/transparent.png\" alt=\" \" width=\"20\"/\u003e\u003cimg src=\"https://raw.githubusercontent.com/Gruppio/Sonoff-Homekit/images/images/homekit.png\" alt=\"Works with Apple Homekit\" width=\"180\"/\u003e\n\n### Homekit runs on the Sonoff ! 😳\n\nUnlike other projects on github, this firmware does NOT require anything else in order to work.\nIt is not based on the Tasmota Fw, you don't need HomeBridge running on a Raspberry-Pi or an MQTT server, since HomeKit runs natively are enough a Wi-Fi connection and an Apple Device!\n\nThe implementation use Apple provided specifications for developers, so it is a stable and supported software and it will keep working for a long time.\n\nNow you finally can have a HomeKit devices without spending a lot of money!\n\n### Compatible Devices\nThis Software is currently tested on: **Sonoff Basic**, **Sonoff Slampher**, **Sonoff S26** (thanks Arjan)\n\n### Video Demo\n\nClick on the image for play the video:\n\u003cbr\u003e\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=_PLeu4v50h0\n\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/_PLeu4v50h0/0.jpg\" \nalt=\"Video\" width=\"480\" height=\"270\" border=\"10\" /\u003e\u003c/a\u003e\n\n---\n\n## New Functionalities\n\n### Web Page Controller\nFor control your Sonoff from a non Apple device just navigate to the Sonoff IP address and a web page will allow you to turn it on or off\n\n### Rest APIs\nA full set of Rest APIs are available:\n* **/on**\n* **/off**\n* **/toggle**\n* **/state**\n\nAll the request are in **GET** and are relative to the IP address of the Sonoff.\nIn order to turn on the Sonoff at IP 192.168.0.22 you can: `$ curl 192.168.0.22/on`\n\n### AutoReconnect after power outage\nA problem with the old firmware was that after a power outage the Sonoff was immediately searching for the stored WIFI connection, but since the router was still powering on the Sonoff was prompting the configuration procedure. Now this problem is fixed, if the Sonoff does not have a WIFI Connection every 10min the Sonoff will restart.\n\n### Selectable PowerOn state\nBy default the Sonoff will have a Enabled state at power on, you can change this by selecting \"OFF\" in the `flash.sh` script\n\n---\n\n## Installation Instructions\n\n### Flash the Sonoff\n 1) Unplug your sonoff from the power line _(or you can burn your PC)_\n 2) Connect your Sonoff to a serial adapter @ 3.3v\n 3) Run the `flash.sh` script \n\n### Add Sonoff to Home app\n 1) Connect your iPhone or iPad to the new wifi network `Sonoff Switch-xxx`\n 2) Wait for the Captive Portal and select your WiFi network\n 3) Insert your WiFi Password\n 4) Open the `Home` app\n 5) Click the `+` symbol\n 6) Click `I don't have the code...`\n 7) Select the Sonoff-xxx Switch \n 7.1 If the Sonoff-xxx does not appear on top of the page try to press the sonoff button a couple of times and kill the Home App\n 9) Confirm that you want to add the Sonoff\n 10) Insert the Password that is `11111111`\n\nDone! 🎉 \n\n## If you like this project please:\n\n\u003ca href=\"https://bmc.xyz/l/SonoffHomekit\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/Gruppio/Sonoff-Homekit/images/images/buymeacoffee.png\" alt=\"Buy Me A Coffee\" width=\"300\" \u003e\u003c/a\u003e\n\nMy supporters will also receive immediately:\n\n* A **Step-by-Step Video Tutorial** that will help you to flash and connect your Sonoff\n* A personal **E-Mail** where you can write to me your Issues\n\n---\n\n#### Special thanks to:\n@maximkulkin\n\nThis project would not have existed without:\nhttps://github.com/maximkulkin/esp-homekit\nhttps://github.com/maximkulkin/esp-homekit-demo\nhttps://github.com/maximkulkin/esp-wifi-config\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruppio%2Fsonoff-homekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgruppio%2Fsonoff-homekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruppio%2Fsonoff-homekit/lists"}