Configs2026年5月27日·1 分钟阅读

Homebridge — Bring Any Smart Device to Apple HomeKit

Homebridge is a lightweight Node.js server that bridges non-HomeKit smart home devices into Apple's Home ecosystem. It supports thousands of plugins covering cameras, lights, thermostats, and more.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Homebridge Overview
直接安装命令
npx -y tokrepo@latest install 3b4d4515-5983-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Homebridge exposes non-HomeKit devices to Apple's Home app by emulating the HomeKit Accessory Protocol. A single Raspberry Pi or always-on server can unify dozens of incompatible smart home brands under one roof.

What Homebridge Does

  • Runs a HAP (HomeKit Accessory Protocol) server that Apple devices discover on the local network
  • Loads community plugins to support brands like Ring, Nest, TP-Link, Tuya, Hue, and thousands more
  • Provides a web-based configuration UI (homebridge-config-ui-x) for plugin management and logs
  • Supports child bridges so each plugin runs in its own process for stability
  • Publishes accessories that appear natively in the iOS/macOS Home app and respond to Siri

Architecture Overview

Homebridge is a Node.js process that loads plugins at startup. Each plugin registers accessories or platforms that map vendor APIs to HAP characteristics. The built-in mDNS advertiser makes accessories discoverable. Child bridge mode spawns separate HAP servers per plugin, isolating crashes and improving responsiveness.

Self-Hosting & Configuration

  • Runs on Linux, macOS, Windows, or Docker; Raspberry Pi is the most popular host
  • Official Docker image available at homebridge/homebridge
  • Config lives in ~/.homebridge/config.json; the web UI can edit it visually
  • Plugins install via npm or through the web UI's plugin search
  • Systemd service or hb-service ensures Homebridge starts on boot

Key Features

  • Over 2,000 community plugins covering nearly every smart home protocol and brand
  • Child bridge isolation prevents one faulty plugin from crashing the whole server
  • Web dashboard with real-time logs, accessory status, and backup/restore
  • Works entirely on the local network with no cloud dependency for HomeKit control
  • Supports cameras with snapshot and live streaming via FFMPEG

Comparison with Similar Tools

  • Home Assistant — full home automation platform with dashboards and automations; Homebridge focuses solely on HomeKit bridging
  • Scrypted — HomeKit and Google Home bridge with a focus on cameras; Homebridge has a broader plugin ecosystem
  • HOOBS — commercial Homebridge distribution with a polished UI; Homebridge itself is free and community-driven
  • Matter — emerging standard that may reduce the need for bridges, but legacy devices still require Homebridge
  • Node-RED with HomeKit nodes — more flexible but requires manual flow programming

FAQ

Q: Does Homebridge require an Apple device to set up? A: You need an Apple device to pair Homebridge with HomeKit initially. After pairing, accessories work via any paired Apple device or HomePod hub.

Q: Can Homebridge run alongside Home Assistant? A: Yes. Many users run both: Home Assistant for automations and dashboards, Homebridge for HomeKit integration of devices Home Assistant does not natively expose to HomeKit.

Q: How many accessories can Homebridge handle? A: HomeKit supports up to 150 accessories per bridge. Child bridge mode lets you run multiple bridges to exceed this limit.

Q: Is Homebridge affected by Apple's HomeKit architecture changes? A: Homebridge tracks HAP specification updates and adapts. The maintainers actively update the core library when Apple introduces changes.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产