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.

Hey Jonathan, really appreciate the walkthrough! Would you mind helping me take a look at my setup:
– G6 Pro Entry
– Access Hub Door
– UNVR
– Home Assistant Green
– Home Assistant Connect ZBT-2
– Aqara U300 smart lock
This is the high level goal: Face/PIN/NFC on G6 → UA-Hub-Door grants access → UniFi Access registers unlock event → Home Assistant sees the event → HA sends unlock command to Aqara U300 → Door unlocks
Hi!
This set-up is indeed similar to mine. You connect the G6 Pro Entry to the Door Hub directly, which allows you to use these access methods in UniFi Access. You will see an Access Granted event in Home Assistant using the UniFi Access integration, which you can use as a trigger in an automation in Home Assistant to open the U300.
Did you already manage to set this up? Feel free to let me know if you have any questions, happy to help!
That makes sense, thanks! Do you think the door hub could be placed where I have my switch/UNVR? It looks like the flow is Switch -> Access Hub -> G6 Pro Entry. So technically as long as I’m able to wire the entry with my hub, it doesn’t matter where the hub is placed?
As long as the G6 Entry is directly plugged into the Access hub, it should be fine.
Hey Jonathan I have a question: could you make a video or some kind of tutorial for a Nuki Smart Lock?
my Setup is
– G6 Pro Entry
– Access Hub Door
– UNVR
Nuki Smart Lock ultra
Matter about Apple homepod
raspberry Pi4 Home Assistant
Hi!
I’m planning to create a video with a full guide on combining the UniFi G6 (Pro) Entry with a residential smart lock via Home Assistant in the coming weeks. It will feature the Aqara U200 instead of the Nuki Ultra, but the process will be the same. I will let you know here when it’s up on YouTube. Already created a video about this, but in the new one I want to show every step in more detail.
Not sure why this isn’t triggering on the device. When I run it in the HA interface it unlocks my door. When I try PIN, NFC card or faceID on my G6 Pro Entry, the lock (ZWAVE connected to Habitat then to HA) does nothing.
Appreciate any insight and tips you could share.
Thanks for sharing!
here’s my YAML:
alias: Unlock Front Door on Access Granted
description: “”
triggers:
– entity_id:
– event.door_7ce9_door_event
trigger: state
conditions:
– condition: template
value_template: >
{{ state_attr(‘event.door_7ce9_door_event’, ‘event_type’) ==
‘access_granted’ and
state_attr(‘event.door_7ce9_door_event’, ‘result’) == ‘ACCESS’ and
trigger.from_state.state != trigger.to_state.state }}
actions:
– action: lock.unlock
target:
entity_id: lock.front_door_2
data: {}
– action: notify.mobile_app
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
I understood there is a bug im the current Access version on Home Assistant, which should be fixed in the May release of Home Assistant. So I would wait for te update and see if it’s fixed. If not, let me know, happy to help!
Just updated to the May Ha update. Still does not work :/
Hi thanks for the great guide! I’ve beign using mine with a Nuki pro lock for a month now and for some reason when i update my Unifi network or my Protect or UNVR when its done and the G6 restarted it opens my lock then my frond door is wide open any idea what this could be ?
Hi!
Your automation condition might not be strict enough and see these updates as an event as well. You could try the following condition: {{trigger.to_state.attributes.result == ‘ACCESS’}}
This should avoid unwanted unlock events. Hope this helps!