Connect UniFi Relay to Apple HomeKit and Home Assistant
14K views · May 15, 2026 · People & Blogs
Comments · 13
@NkySpike65 · 6 months ago
Great job, Thanks!
2
@RobertStarkDentist · 6 months ago
Great video. Thanks so much!
2
@ProjectArjunCertified · 6 months ago (edited)
Technically, you did not need the contact sensor as the UP Sense itself has a built in accelerometer which helps determine whether or not the garage door is opened/closed. I don't think that contact sensor on your garage door is communicating with the UP Sense, its placed too far from the UP Sense. Its the accelerometer in the UP Sense which is doing all the work.
@FrederickFalk · 6 months ago
You do not need the magnetic. There is a gyroscope sensor that determines which orientation the door is in and can determine if it is vertical or horizontal. I used one on my garage door without the magnetic and it can tell when the door is opened or closed.
@abn-lazarus8200 · 6 months ago
Awesome!
2
@kylebuildsweb · 4 months ago
Did you run into any issues getting the USL relay added into HA? I can get the sensor adopted but not the relay.
@Youtellatale52 · 5 months ago
Quick Question. I see you have the SuperLink Gateway listed as parts needed. Is that because the UP Sense needs to communicate over BLE and it needs to reach back to something?<br><br>Only reason I ask is i also have a 2 car garage but my stack is upstairs above the garage doors. So if its not NEEDED I dont want to spend the extra 125$ if not needed.
@jay714 · 4 months ago (edited)
Hey Jay - thank you for this video. I have a similar setup, but with the new USL-Entry sensor. I adopted your code and made some modifications that allow for the USL-Entry to control the Open / Close command within HomeKit. The one thing I ran into, which your code was correct about, was the USL-Entry sensor reporting as "Open / Closed" within HomeAssistant... "On/Off" is the correct perimeters. Hope this helps someone else!<br><br># garagedoor<br>template:<br> - cover:<br> - name: "Garage Door"<br> unique_id: garage_door_homekit_cover<br> device_class: garage<br> availability: "{{ states(' <b>*NAME OF USL-ENTRY SENSOR*</b> ') in ['on', 'off'] }}"<br> state: "{{ 'open' if is_state(' <b>*NAME OF USL-ENTRY SENSOR*</b> ', 'on') else 'closed' }}"<br> open_cover:<br> - condition: state<br> entity_id: <b>*NAME OF USL-ENTRY SENSOR*</b><br> state: "off" # only act if currently closed<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> - delay:<br> seconds: 1<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> close_cover:<br> - condition: state<br> entity_id: <b>*NAME OF USL-ENTRY SENSOR*</b><br> state: "on" # only act if currently open<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> - delay:<br> seconds: 1<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> stop_cover:<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> - delay:<br> seconds: 1<br> - action: switch.toggle<br> target:<br> entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b>
1
Up next

Your UniFi Relay Just Got a HUGE Upgrade
Ethernet Blueprint · 85K views

UniFi Relay To Open Lift Master Garage Door And LPR
Mactelecom Networks · 48K views

5 Home Assistant Helpers You Should Be Using!
Byte of Geek · 41K views

GTA 6 - Stealing a Jet From the Military Base
TmarTn2 · 12M views

In-Depth Rack Build + Ubiquiti UniFi + White Network Cabinet
Bogdan | Apex One IT · 247K views

New Rules For Home Battery Installations in the UK
Gary Does Solar ☀️ · 119K views

The Network Settings That Fixed My Apple Smart Home (Unifi IoT Setup)
Shane Whatley · 104K views

Automate Opening your Garage with the USL Relay (Full Setup)
Ethernet Blueprint · 67K views

The Complete Apple Home Masterclass (Start Here)
Shane Whatley · 214K views

The 7 UniFi Mistakes Most People Make in 2026
WunderTech · 113K views

Saramonic WITALK9BASE WiFi Web Portal Interface Walk Through
Soundstew · 26 views

Out the Box Series - Ubiquiti USL-Relay
The Tech Geeks · 4.3K views

How to get a UniFi 3D Floor Plan
Bogdan | Apex One IT · 148K views

Finally, a Home Assistant Dashboard Display that Doesn’t Suck!
Smarty Van · 218K views

UniFi Access: One Reader, Three Doors! LPR + Home Assistant (2 Garages + Side Gate)
InsideWire · 96K views

I Finally Built the Smart Home of My Dreams
Hardware Haven · 462K views

I Automated My Garage Doors & Driveway Lights with the Ubiquiti USL Relay
InsideWire · 108K views

The UniFi USL-Fob Does MORE Than You Think | Alarm, Relays, Gates & Home Assistant
InsideWire · 25K views

Connecting a UniFi Access Relay to a Garage Door Opener
Jay · 20K views

Integrate UniFi Network into Home Assistant (Automate Things You Didn't Think Possible)
Tech Me Out · 160K views