# Gruppio/Sonoff-Homekit

Make your Sonoff Switch compatible with Apple Homekit! 🎉

Repository: https://github.com/Gruppio/Sonoff-Homekit
Canonical: https://ross.abutalabs.com/products/sonoff-homekit
Language: C
License: MIT
License Family: permissive
Topics: sonoff, homekit, apple, esp8266, esp32, arduino, itead, esp8285, sonoff-basic, sonoff-devices, sonoff-tasmota, sonoff-xxx, ifttt, api
Last push: 2025-04-16T17:09:50+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 16, release rhythm 35, longevity 100
- inputs: {"age_days": 2909, "days_push": 504, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1004, forks 170 (observed 2026-09-03T02:15:06.067769+00:00)

## What it is
Open-source firmware that makes Sonoff WiFi smart switches natively compatible with Apple HomeKit, running directly on the ESP8266/ESP32 chip without needing HomeBridge, MQTT, or any external server. It also provides a simple web page controller and REST API endpoints (/on, /off, /toggle, /state) for control from non-Apple devices.

## Use cases
- make my sonoff switch work with apple homekit
- control sonoff switch from iphone home app without homebridge
- flash custom homekit firmware on sonoff basic
- control smart switch via rest api with curl
- add cheap homekit-compatible switch without raspberry pi
- control sonoff from non-apple device via web page

## When to choose
- you want native HomeKit support on Sonoff hardware with no hub, HomeBridge, or MQTT server required
- you want REST API and web control in addition to HomeKit
- you want a free alternative to expensive certified HomeKit switches

## When to avoid
- you need a plug-and-play solution without flashing firmware
- your Sonoff model is not among the tested devices (Basic, Slampher, S26)
- you prefer Tasmota-based setups with broader device support

## Facets
- artifact type: application
- maturity: active
- function: embedded, workflow-automation, http-server, sdk
- domain: iot, apple-ecosystem, embedded-systems
- platform: embedded, iot
- tags: homekit, sonoff, esp8266, esp32, esp-homekit, smart-switch, esp-open-rtos, rest-api, firmware, apple-home, home-automation

## Member repositories
- Gruppio/Sonoff-Homekit (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:06.067769+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:13:41.439888+00:00, confidence not recorded.
  - readme: https://github.com/Gruppio/Sonoff-Homekit (fetched 2026-09-03T02:15:06.067769+00:00, sha 92bb16117dd2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
