Connect UniFi Relay to Apple HomeKit and Home Assistant
Angled brackets are not allowed in descriptions, refer to the video for where they are used, the code below should work. Products used (non-affiliate links, I'm not really a YouTuber) SuperLink Gateway: https://store.ui.com/us/en/category/c... UP-Sense https://store.ui.com/us/en/category/c... USL-Relay https://store.ui.com/us/en/category/c... configuration.yaml code: template: cover: name: "Main Garage Door" unique_id: main_garage_door_homekit_cover device_class: garage availability: | {{ states('[PUT_SENSOR_ENTITY_ID_HERE]') in ['on', 'off'] }} state: | {% if is_state('[PUT_SENSOR_ENTITY_ID_HERE]', 'on') %} open {% elif is_state('[PUT_SENSOR_ENTITY_ID_HERE]', 'off') %} closed {% else %} unavailable {% endif %} open_cover: action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE] delay: seconds: 1 action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE] close_cover: action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE] delay: seconds: 1 action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE] stop_cover: action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE] delay: seconds: 1 action: switch.toggle target: entity_id: [PUT_SWITCH_ENTITY_ID_HERE]

UniFi Relay To Open Lift Master Garage Door And LPR

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

demo video

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

Why I Switched BACK to Home Assistant (Goodbye Homey Pro)

This UniFi Upgrade Fixes the Biggest G6 Entry Problem

Cheap + Easy Backup Internet Solution | Unifi U5G

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

The 7 UniFi Mistakes Most People Make in 2026

Garage door with Shelly 1 Gen3 + status display, temperature & humidity Shelly App, Home Assistant

Unifi Device Bridge Switch - Their most important device?

The FULL VIDEO of Trump they didn’t want released

Why your UniFi Wi-Fi is slow - and how to optimize it properly

People Who Messed With The Royal Guard and Regretted It!

Ist Shelly geliefert? Die WAGO Matter-Aktoren sind da!

Connect Meshtastic to Home Assistant: Complete Guide! 📡

Finally Fixed: UniFi Port Profiles

Rowan Atkinson's Brilliant Humor Leaves Celebrities in Tears!

Best Ways to Use UniFi SuperLink (Sensors + Siren)

