UniFi has recently launched the Unifi G6 Pro Entry, their latest Access reader and doorbell. Compared to the G6 Entry, it features a better camera and a touchscreen, which you can use to enter a pincode, scan a QR code via the package camera or choose a directory. With the Access features, you can also integrate this doorbell into Home Assistant, which allows you to unlock a residential smart lock, like the Aqara U200, U300 or U400, a Nuki Smart Lock or any other smart lock integrated in Home Assistant. In this article, we will guide you through the steps to set this up for the G6 Entry or G6 Pro Entry from UniFi.
Requirements
To control your smart lock with the UniFi G6 (Pro) Entry, you will need to connect the G6 Pro Entry directly to a UniFi Access Hub, like the Door Hub Mini. This will enable all the Access features, like pincode, nfc, touchpads and Face ID unlock. Next, you wil need to run Home Assistant and integrate your smart lock in Home Assistant, for example via Zigbee, WiFi or Thread. In UniFi, you can unlock your the door hub mini, which will work as a trigger in Home Assistant.
If you don’t work with Home Assistant, but do have Homey running, it’s also possible to automate your smart lock and let it work with the G6 Pro Entry using Homey, with one of the community Access integrations. Unlocking the Door hub will create an event in Homey which you can use as an action in one of your flows.
UniFi Access integration in Home Assistant
In Home Assistant 2026.4, the Access integration will launch. As of the time of writing this article, this version is still in beta. You can enable updates by going to settings -> System -> Updates -> Three dots in the right upper corner and choose Join beta channel. This allows you to update to the beta version of 2026.4. After the installation, you can go to settings -> Devices and services and add the integration called UniFi Access. You will need to use the IP address of your Unifi network and an API token for UniFi Access. The API key can be created in UniFi Access -> Settings -> Create new API token. After a successful installation, your G6 Pro Entry will show up in Home Assistant. You can unlock the door hub you’ve connected to it, see a thumbnail of the camera and an event which will show ‘Access granted’ when you use the G6 Pro Entry with a pincode or any other verification method.
Automate your smart lock
To automate your smart lock, you can use an event change as a trigger to unlock your door. There are several pieces of information available after each unlock event in the attributes, like the actor (person unlocking the door), the verification method, like NFC, Touchpass or pincode, and if access was granted or denied. The event state itself changes to the date and time of the last event. To unlock your smart lock in Home Assistant, you can create a new automation by using the YAML code below and adjusting it to your own entity names. Of course you can alter anything you like. It also includes a notification with the unlock event, including the actor, verification method and a timestamp.
alias: Unlock Front Door on Access Granted triggers: - entity_id: - event.frontdoor_access trigger: state conditions: - condition: template value_template: > {{ state_attr('event.frontdoor_access', 'event_type') == 'access_granted' and state_attr('event.frontdoor_access', 'result') == 'ACCESS' and trigger.from_state.state != trigger.to_state.state }} actions: - action: lock.open target: entity_id: - lock.aqara_smart_lock_u200 data: {} - action: notify.mobile_app_macbook_air_m4 metadata: {} data: message: >- {{ state_attr('event.frontdoor_access', 'actor').split(' ')[0] }} unlocked the front door with {% set auth = state_attr('event.frontdoor_access', 'authentication') %} {% if auth == 'FACE' %}face id{% elif auth == 'PIN_CODE' %}pincode{% elif auth == 'REMOTE_THROUGH_UAH' %}remote control{% elif auth == 'NFC' %}nfc{% elif auth == 'WALLET_NFC_IPHONE' %}Touchpass{% else %}{{ auth }}{% endif %} at {{ as_timestamp(trigger.to_state.state) | timestamp_custom("%H:%M") }}. mode: single
With the above automation, your smart lock should unlock only in case of a successful acces event via the UniFi G6 Pro Entry. In case of any questions, feel free to leave a comment below this article or our Youtube video.
UniFi G6 Pro Entry availability
The UniFi G6 Pro Entry is currently available to purchase via the UniFi Store. The automation in this article works with all locks integrated in Home Assistant, like the Aqara U200, a Nuki Smart Lock or the SwitchBot Lock Ultra.
