Home » Ubiquiti Unifi Access » UniFi Access Apple Home & Siri Setup (Home Assistant Guide)
UniFi Access and Apple Home icons with an iPhone using Siri to open a garage door

UniFi Access Apple Home & Siri Setup (Home Assistant Guide)

UniFi Access doesn’t work with Apple Home out of the box. With Home Assistant acting as a bridge, though, you can control your UniFi Access doors, gates and garage doors from the Apple Home app and with Siri, including when you’re away from home.

In this guide, I’ll take a UniFi Access garage door and turn it into a proper Garage Door tile in Apple Home that shows whether the door is open or closed. Then I’ll add Siri shortcuts so you can say “Hey Siri, open garage door” as you pull onto the drive.

There’s also a video version of this guide on our YouTube channel HERE

What you’ll need

  • UniFi Access set up on your door, gate or garage. For the garage, you’ll also need a reed contact so the system knows whether the door is open or closed. I covered both in Part 1: https://youtu.be/ZtwKqIKUOnY
  • Home Assistant, already up and running. I’m using Home Assistant OS on a mini PC. If you’re starting from scratch, this setup guide is a good place to begin: https://youtu.be/Z4gvkmJ8q48
  • An iPhone or iPad with the Home app
  • An Apple home hub (Apple TV, HomePod or HomeView) if you want control away from home. Without a hub, Apple Home only works on your home Wi-Fi.

Step 1: Create an API token in UniFi Access

Home Assistant needs an API token to talk to UniFi Access.

  1. Open your UniFi console and go into the Access app. Make sure you’re in the Access app itself, not the console’s main settings.
  2. Go to Settings and find the API Token section.
  3. Create a new token and give it a name you’ll recognise, such as Home Assistant.
  4. Tick the permissions it needs. I ticked all of them.
  5. Copy the token and keep it somewhere safe. It’s only shown once.

Step 2: Add UniFi Access to Home Assistant

UniFi Access is a built-in integration in Home Assistant, so you don’t need HACS or custom components. It’s also rated Platinum, Home Assistant’s highest quality level, so it should be very stable.

  1. In Home Assistant, go to Settings → Devices & services.
  2. Click Add integration and search for UniFi Access.
  3. Enter your console’s local IP address and paste in the API token.
  4. Untick Verify SSL, because the console uses a self-signed certificate.
  5. Click Submit.

Your UniFi Access devices will now appear in Home Assistant. You can rename them and assign them to areas, but if Home Assistant is only acting as a bridge to Apple Home, that isn’t essential.

Step 3: Add the HomeKit Bridge

The HomeKit Bridge integration shares Home Assistant entities with Apple Home.

  1. Go to Settings → Devices & services → Add integration.
  2. Search for HomeKit and choose HomeKit Bridge.
  3. Choose which entity types to share. I selected Button, Binary sensor, Lock and Cover. Cover is the important one later on. You can change these at any time.
  4. Submit, then give the bridge a name and an area.

Pairing with Apple Home:

  1. In Home Assistant, open Notifications. You’ll find a pairing QR code there.
  2. On your iPhone, open the Home app, tap +, then Add Accessory, and scan the code.
  3. You’ll get an “uncertified accessory” warning. Tap Add Anyway.

At this point your garage door will appear in Apple Home, but only as a simple on/off switch: one toggle that opens and closes the door, with no idea whether it’s actually open or shut. That’s confusing and not very useful.

Because we fitted a reed contact in Part 1, Home Assistant knows the real state of the door, so we can use a template cover to turn it into a proper garage door.

Step 4: Install the File editor

To create the cover, we need to edit Home Assistant’s configuration.yaml file. The easiest way is with the File editor app.

  1. Go to Settings → Apps → Install app. In older versions of Home Assistant, apps are called add-ons.
  2. Search for File Editor and install it.
  3. Turn on Show in sidebar, then click Start.

Step 5: Find your entity IDs

The code needs the exact entity IDs for your garage door, not the friendly names you see on screen.

  1. Go to Settings → Devices & services → Entities and filter for your garage door.
  2. Click the door sensor entity, then the cog icon, and note the Entity ID.
  3. Do the same for the Unlock button.

Mine were:

  • Door sensor: binary_sensor.garage_garage_door
  • Unlock button: button.garage_garage_door_unlock

Yours will probably be different, because Home Assistant adds the area name to the start.

Check which way round the sensor reports. Open and close the door while watching the sensor’s state. Mine shows on when the door is open and off when it’s closed. If yours is the other way round, swap the "on" and "off" values in the code below.

Step 6: Add the cover to configuration.yaml

Open File editor from the sidebar, click the folder icon and select configuration.yaml. Add the following at the bottom, swapping in your own entity IDs:

YAML

template:
- cover:
- name: "Garage"
unique_id: garage_door_cover
device_class: garage
state: "{{ is_state('binary_sensor.garage_garage_door', 'on') }}"
open_cover:
- condition: state
entity_id: binary_sensor.garage_garage_door
state: "off"
- action: button.press
target:
entity_id: button.garage_garage_door_unlock
close_cover:
- condition: state
entity_id: binary_sensor.garage_garage_door
state: "on"
- action: button.press
target:
entity_id: button.garage_garage_door_unlock

What it does:

  • state reads the reed contact, so the cover always knows whether the door is open or closed.
  • open_cover only presses the unlock button if the door is currently closed.
  • close_cover only presses it if the door is currently open.
  • device_class: garage tells Apple Home to show it as a proper Garage Door accessory.

Those conditions matter. Most garage doors use a single trigger that toggles open and closed, so without them, pressing “Open” on a door that’s already open would close it.

I’ve named the cover “Garage” so it doesn’t clash with the existing “Garage Door” sensor. The new entity will be cover.garage.

Indentation matters in YAML, so use spaces, not tabs. If there’s already a template: line in your file, don’t add a second one. Put the - cover: section under the existing one.

Click the red save icon at the top of the File editor.

Step 7: Check the configuration and restart

  1. Go to Settings → Developer tools → YAML and click Check configuration. It should give you the all clear.
  2. Restart Home Assistant: Settings → ⋮ (three dots) → Restart Home Assistant.

The first time you add a template, a full restart is needed. After that, you can apply changes with the Template entitiesreload on the same YAML page, without restarting.

Once it’s back up, go to Developer tools → States and search for cover.garage. Check that its state matches the real door.

Step 8: Add it to a dashboard

The default Home dashboard in newer versions of Home Assistant only lets you add favourites, so it’s easier to create your own:

  1. Go to Settings → Dashboards → Add dashboard → New dashboard from scratch.
  2. Give it a name (I called mine Controls), add an icon if you like, and click Create.
  3. Open the new dashboard, select New section, add your Garage cover from the entities list, and click Save.

The card shows the live state of the door. Open is only available when it’s closed, and Close is only available when it’s open.

Step 9: Expose the cover to Apple Home

  1. Go to Settings → Devices & services → HomeKit Bridge and click Configure.
  2. Make sure Cover is selected and that cover.garage is in your exposed entities.
  3. Submit.

Open the Home app, and you’ll see a proper Garage Door tile showing whether the door is open or closed.

You may still see the old on/off button as well. To tidy that up, go back into the HomeKit Bridge settings and remove the unlock button from the exposed entities.

Step 10: Add Siri control with Shortcuts

  1. On your iPhone or iPad, open the Shortcuts app and tap +.
  2. Tap Edit in the top right. You don’t need to fill in the description.
  3. Search for Home and choose Control Home.
  4. Tap Scenes and Accessories, select your garage door, set the state to Open, and tap the blue tick.
  5. Rename the shortcut at the top. Whatever you type here is exactly what you’ll say to Siri. I used “Open garage door”.
  6. Repeat for a second shortcut with the state set to Close, named “Close garage door”.

To test it, hold the side button and say “Open garage door”. Once the door is fully open, say “Close garage door”.

Screenshot

Controlling it away from home

To use the Home app and Siri away from your home network, you need an Apple Home Hub: an Apple TV, HomePod or HomeView that stays at the property. When you’re out, your iPhone talks to the hub over iCloud, and the hub talks to Home Assistant locally.

The quickest way to test it is to turn off Wi-Fi on your phone and try the Siri commands on mobile data.

You can check your hub in the Home app under ⋯ → Home Settings → Home Hubs & Bridges. It should be listed as Connected.

Tip: mine didn’t work remotely at first, even though the Apple TV was listed. A quick reboot of the Apple TV fixed it.

Also, make sure the hub is on the same network as Home Assistant, or that mDNS is enabled across your VLANs in UniFi. Otherwise, it can’t see the bridge.

Troubleshooting

  • The cover doesn’t appear after saving: the first template needs a full restart, not just a reload. Also check that the YAML was saved and that Check configuration comes back clean.
  • Open and Close are the wrong way round: your sensor reports the opposite way. Swap the "on" and "off"values in the YAML.
  • The garage doesn’t appear in Apple Home: make sure Cover is selected in the HomeKit Bridge and cover.garage is in the exposed entities. Then force-close the Home app and reopen it.
  • HomeKit pairing fails: your iPhone, home hub and Home Assistant need to be on the same VLAN, or have mDNS enabled across VLANs in UniFi.
  • It works at home but not remotely: check your home hub, and try rebooting it.

Wrapping up

That’s it: UniFi Access in Apple Home, with a proper garage door tile that knows whether it’s open or closed, and Siri control from anywhere. The same approach works for gates and doors too. Just swap in the right entities. For a gate that closes itself on a timer, you can leave out the close_cover section entirely, and Apple Home will only show an Open button.

Watch the video: https://youtu.be/MrYiF8Ew8eo

Part 1, UniFi Access garage door setup: https://youtu.be/ZtwKqIKUOnY

Want this installed for you?

At Home Network Solutions, we’re UniFi-certified installers covering Berkshire and the surrounding area, providing WiFi, CCTV, access control, intercoms and smart home integration for homes and businesses.

Get in touch

Frequently asked questions

Does UniFi Access work with Apple Home (HomeKit)?
Not directly. UniFi Access has no built-in Apple Home support, but you can connect it using Home Assistant. Home Assistant’s UniFi Access integration brings your doors in, and the HomeKit Bridge shares them with Apple Home.

Can I use Siri to open UniFi Access doors?

Yes. Once your door is in Apple Home, you can control it with Siri. Creating a Shortcut lets you choose the exact phrase, such as “Open garage door”.

Do I need Home Assistant for this?

Yes. Home Assistant acts as the bridge between UniFi Access and Apple Home. It can run on a mini PC, a Raspberry Pi or a virtual machine.

Do I need HACS or a custom integration?

No. UniFi Access is an official, built-in integration in Home Assistant, rated Platinum, the highest quality level.

Why does my garage door show as a switch in Apple Home?

By default, Home Assistant shares the UniFi Access unlock button, which Apple Home shows as a simple on/off switch. Creating a template cover with device_class: garage turns it into a proper Garage Door tile with open/closed status.

Do I need a sensor on the garage door?

For the cover to show whether the door is open or closed, yes. You need a contact (reed) sensor wired to the door position input on your UniFi Access hub. For roller doors, mount it at the bottom of the door so it reports open as soon as the door starts to move.

Why doesn’t it work when I’m away from home?

Remote control in Apple Home needs a home hub: an Apple TV, HomePod or HomeView at the property. If you have one and it still doesn’t work, try rebooting it. That fixed it for me.

Can I do the same for gates and doors?

Yes. The same approach works for any UniFi Access door. For a gate that closes itself on a timer, leave out the close_cover section, and Apple Home will only show an Open button.

Can I control it with Alexa too?

Yes. Home Assistant can also share entities with Amazon Alexa, either through Home Assistant Cloud (Nabu Casa) or a manual Alexa skill setup.


Comments

Leave a Reply