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]