Newborn Newborn Python PY
↑ 34
xiaomihub elvin-li/xiaomihub

Xiaomi Central Hub backup & failover gateway (~27 MB native sidecar / ~95 MB de-shelled official hub pack, BLE/Mesh 2.0 & HA MQTT) for HAOS, Docker & macOS

HEALTH 90 / Healthy
// solo builder// hidden gem

// momentum

tracking since W49

// why it's here

  • Created 2 days ago and already shipping
  • Built almost entirely by one person
  • Health 90/100 with only 50 stars

// how to help

// readme

XiaomiHub — 小米中枢备网关与容灾网关(HAOS Add-on / ARM Docker / macOS)

许可声明 / License:本项目为 源码公开・仅限个人非商用原样自用(Source-Available, Personal Non-Commercial, No-Derivatives),非开源软件。未经 elvin-li 书面许可,禁止复制代码、修改衍生、再分发及任何商业用途。详见 LICENSE。

小米中枢备网关、BLE/Mesh 2.0 网关与局域网工具链(纯原生侧车模式约 27 MB 内存;加载去壳优化的完整官方 central_software_pack 约 95 MB PSS 内存,支持官方主备实时同步与独立主中枢故障接管、BLE 广播与 Mesh 2.0 GATT Proxy、Home Assistant MQTT 自动发现、零 nginx 极客版 Web UI、LuCI/身份导入面板与原地验签 OTA)。

主备选举用官方逻辑:加载官方 central_software_pack 时,由官方 central_service(和小米云)决定本机的角色。平时本机是备中枢;只有本机在局域网上看不到主中枢时(主中枢离线,或本机自己断网;看的是局域网 mDNS),官方选举才可能让本机接管;主中枢回来后,本机按官方逻辑交还,退回备中枢。 The primary/backup election is the official one: with the official pack, this box is normally a backup hub, takes over only when it can no longer see the primary hub on the LAN (the primary is off, or this box lost its own network), and hands back when that hub returns.

快速部署

1. Home Assistant OS (HAOS) 加载项(推荐)

支持 aarch64(树莓派 4/5、ARM 盒子、Apple Silicon VM)、armv7、amd64:

Read the full README on GitHub ↗

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity — divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated