r/homeautomation • u/alfo152 • 8h ago
PROJECT One G3 Intercom, 3 families: I built an open-source router so only the called apartment rings (Home Assistant + Apple Home)
Our building has one entrance and three families, each with its own Home Assistant and Apple Home. We're planning a UniFi G3 Intercom with one directory entry per family. The UniFi apps already ring only the right people, but smart home integrations only see "someone rang", so every apartment would ring.
How it works
- A small service per family listens to the official UniFi Access API (notifications WebSocket).
- When a visitor calls, the `access.remote_view` event carries the `room_id` of the called directory entry. Each family's router acts only on its own `room_id`.
- Home Assistant gets everything via MQTT discovery: a doorbell event, call state, call result, and one unlock button + one lock entity per door (front door, gate, garage).
- Apple Home through the Home Assistant HomeKit Bridge: the doorbell rings only for that family, with snapshot and live video; door locks open with Face ID. A ready-to-copy package is included.
Details
Local only, no cloud. One API token per family, TLS certificate pinning, Python standard library only. Home Assistant add-on or Docker compose stack. MIT license, docs in English and Italian.
Status
v0.2.0, 161 automated tests and a simulated 3-family building, but not yet confirmed on a real G3. If you have a G3 Intercom with 2+ directory entries, a 5-minute read-only script shows whether each entry gets its own `room_id`.
Most of the code was written with an AI assistant (Claude); I defined the requirements and I'm testing it.