What entities does each door get? An Unlock button, a door position binary sensor, a doorbell event, an access event with the person and method as attributes, and a door thumbnail image. The controller adds Evacuation and Lockdown switches that affect every door. Where the controller supports temporary lock rules, each door also gets a lock rule select and a rule end time sensor.
Per door, the integration has one button, Unlock. Home Assistant's documentation says it triggers the configured lock relay to open the door for its configured duration.
The door sensor is only as true as the hardware behind it. It turns on when the door is open, and Ubiquiti's door position sensor article treats a hub with no sensor wired as a closed door whatever the door is doing.
In other words, a door with no position sensor will never show open in Home Assistant. Ubiquiti notes that its Magnetic Lock has a sensor built in, and the Door Hub, Door Hub Mini, Retrofit Hub, Enterprise Access Hub and Gate Hub all have an input for one.
Two event entities carry the moments worth automating on:
- Doorbell fires a
ring event. The integration creates one for every door because the API does not say which doors can ring, so a door with no way to ring simply never fires.
- Access fires
access_granted when the controller reports a result of ACCESS, and access_denied for anything else. When available it carries the actor's name, the authentication method, such as NFC, PIN code or Face, and the raw result.
The thumbnail image shows the most recent snapshot from the door's camera, updated whenever the controller pushes a new one, for instance after an access event. Ubiquiti's recording article names the Intercom, the G3 Reader Pro and the G2 Reader Pro among the readers with built-in cameras.
Then the two switches that deserve a warning label. Evacuation unlocks every door the controller manages, and Lockdown locks every one of them, and Home Assistant's documentation asks you to restrict them on dashboards and keep them out of accidental automations. Ubiquiti adds that admins can still unlock a single door remotely during a lockdown.
Finally, the select. On controllers that support temporary lock rules, a door gets a Door Lock Rule entity with the options custom, keep_lock, keep_unlock, lock_early, lock_now, reset and schedule. A diagnostic sensor beside it reports when the active rule expires.
Everything above updates by push. The documentation describes a WebSocket that delivers lock, position and emergency mode changes in real time, with no polling at all.