Ads skipped

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. &nbsp;I have a similar setup, but with the new USL-Entry sensor. &nbsp; I adopted your code and made some modifications that allow for the USL-Entry to control the Open / Close command within HomeKit. &nbsp;The one thing I ran into, which your code was correct about, was the USL-Entry sensor reporting as &quot;Open / Closed&quot; within HomeAssistant... &quot;On/Off&quot; is the correct perimeters. &nbsp; Hope this helps someone else!<br><br># garagedoor<br>template:<br> &nbsp;- cover:<br> &nbsp; &nbsp; &nbsp;- name: &quot;Garage Door&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;unique_id: garage_door_homekit_cover<br> &nbsp; &nbsp; &nbsp; &nbsp;device_class: garage<br> &nbsp; &nbsp; &nbsp; &nbsp;availability: &quot;{{ states(&apos; <b>*NAME OF USL-ENTRY SENSOR*</b> &apos;) in [&apos;on&apos;, &apos;off&apos;] }}&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;state: &quot;{{ &apos;open&apos; if is_state(&apos; <b>*NAME OF USL-ENTRY SENSOR*</b> &apos;, &apos;on&apos;) else &apos;closed&apos; }}&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;open_cover:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- condition: state<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-ENTRY SENSOR*</b><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state: &quot;off&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# only act if currently closed<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- delay:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;seconds: 1<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> &nbsp; &nbsp; &nbsp; &nbsp;close_cover:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- condition: state<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-ENTRY SENSOR*</b><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state: &quot;on&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # only act if currently open<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- delay:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;seconds: 1<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> &nbsp; &nbsp; &nbsp; &nbsp;stop_cover:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- delay:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;seconds: 1<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- action: switch.toggle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;target:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;entity_id: <b>*NAME OF USL-RELAY CHANNEL TO TRIGGER*</b>

    1

Up next

LIVE

Your UniFi Relay Just Got a HUGE Upgrade

Ethernet Blueprint · 85K views

LIVE

UniFi Relay To Open Lift Master Garage Door And LPR

Mactelecom Networks · 48K views

LIVE

5 Home Assistant Helpers You Should Be Using!

Byte of Geek · 41K views

LIVE

GTA 6 - Stealing a Jet From the Military Base

TmarTn2 · 12M views

LIVE

In-Depth Rack Build + Ubiquiti UniFi + White Network Cabinet

Bogdan | Apex One IT · 247K views

LIVE

New Rules For Home Battery Installations in the UK

Gary Does Solar ☀️ · 119K views

LIVE

The Network Settings That Fixed My Apple Smart Home (Unifi IoT Setup)

Shane Whatley · 104K views

LIVE

Automate Opening your Garage with the USL Relay (Full Setup)

Ethernet Blueprint · 67K views

LIVE

The Complete Apple Home Masterclass (Start Here)

Shane Whatley · 214K views

LIVE

The 7 UniFi Mistakes Most People Make in 2026

WunderTech · 113K views

LIVE

Saramonic WITALK9BASE WiFi Web Portal Interface Walk Through

Soundstew · 26 views

LIVE

Out the Box Series - Ubiquiti USL-Relay

The Tech Geeks · 4.3K views

LIVE

How to get a UniFi 3D Floor Plan

Bogdan | Apex One IT · 148K views

LIVE

Finally, a Home Assistant Dashboard Display that Doesn’t Suck!

Smarty Van · 218K views

LIVE

UniFi Access: One Reader, Three Doors! LPR + Home Assistant (2 Garages + Side Gate)

InsideWire · 96K views

LIVE

I Finally Built the Smart Home of My Dreams

Hardware Haven · 462K views

LIVE

I Automated My Garage Doors & Driveway Lights with the Ubiquiti USL Relay

InsideWire · 108K views

LIVE

The UniFi USL-Fob Does MORE Than You Think | Alarm, Relays, Gates & Home Assistant

InsideWire · 25K views

LIVE

Connecting a UniFi Access Relay to a Garage Door Opener

Jay · 20K views

LIVE

Integrate UniFi Network into Home Assistant (Automate Things You Didn't Think Possible)

Tech Me Out · 160K views

YouTube, with the door locked.

Aegis plays a clean stream instead of YouTube's player, so pre-roll ads, trackers, and fingerprinting never ride along. Drop Shields any time if you want the official player back.