I just wanted to add my garage door opener to Apple's Home App.¶
It really bothered me, for no real reason, that I couldn't. Maybe that's why it bothered me, because I couldn't.
A couple of years ago I would have been able to. The makers of my garage door opener had an open API that many home apps could use.
And then they decided to make it into a subscription model and walled off their 'garden'.
I had mostly written off adding the garage door opener until the YouTube algorithm fed me a video on adding a GDO device that was Home App ready (sort of).
So, I bought the device (a Konnected GDO blaQ), read, watched (and re-watched) the video on how to get it all set up.
However, the Apple Home App support was in Beta and mostly didn't work for me, so I decided to try out the Home Assistant (the device's preferred) approach.
What is Home Assistant?¶
Home Assistant is an open-source home automation platform. It's a single place to see and control everything in the house, no matter who made it: lights, locks, cameras, thermostats, speakers, sprinklers, even the smoker. Rather than juggling a dozen vendor apps, each with its own idea of "scenes" and "routines," Home Assistant pulls them all into one system. Then you can build automations that span brands, like "when everyone leaves, close the garage and lock the front door." It runs on hardware you own, and much of it works locally, without a round trip through someone else's cloud.
Holy shit ... I did not expect to go this deep¶
What started out as just getting Home Assistant set up so that I could add my garage door opener to my Apple Home App turned into a several-day adventure to add EVERY IoT device on my network to Home Assistant so that I had a single, unified tool to work from.
It turns out just about anything can get added to Home Assistant! So I added everything. Light switches from several different manufacturers? Check. Sonos Speakers? Check. Synology? Check. Essentially everything. It took the better part of a couple of days to get it all added and set up (not because it was hard ... but because cancer treatments suck and my daughter was home for the Thanksgiving holiday so I wanted to spend time with her!)
In all I added 37 different devices across 17 integrations. Home Assistant thinks I have 80. Apparently the Sun is a device now1, and so is every sprinkler zone and every hard drive in my Synology.
This is a bit overwhelming.
Organizing it all¶
Since there are so many devices (both real and 'virtual') I needed a good way to organize them. And they all needed to have better human friendly names. They get imported with names like GDO blaQ H4567. I know what that means right now, but in 2 weeks will I know it's my garage door opener? The chemo meds say probably not. Also, how is anyone in my household supposed to know what that means?
So I went about doing three things:
- Organizing the devices into areas
- Adding Floors for groupings
- Renaming the devices to be more human friendly
Areas¶
Areas were mostly imported from the various hubs and devices that I added. I did have to do a bit of cleaning up (like renaming Master Bedroom to Main Bedroom), and removing areas that were added that I didn't have (Study for example). I did this clean up manually at first and then used Claude to help me go through and rename things when necessary (this was part of the Device Renaming below).
Floors¶
Home Assistant has the concept of 'Floors' though I would argue that 'Area Groups' might be a better name since that's what it's doing for me2.
Here I exclusively used the Home Assistant API and Claude to group things together. The initial need was I had an area called 'Outdoors', but really outdoors meant:
- The Front Yard
- The Back Yard
- The Patio
- The South Yard (a small strip of grass that has its own sprinklers)
- The North Side of the House (a small strip of concrete that has a security camera and is the location of the condenser for my HVAC)
Once I realized that Floors weren't really Floors but Area groupings, I was able to split the house up into several Floors for better organization:
- Home Interior
- Attached Garage
- Outside
- People
- Services
Device Renaming¶
I used Claude to help with the renaming of items using the Home Assistant API in a very interactive session. I had to approve all of the name changes and would provide alternatives if / when it just wasn't getting it.
OK, now what?¶
Automations galore ... that's what!
I've set up 16 automations so far. Some are silly, like turning on an Apple TV, opening the FloSports app 10 minutes before a Firebirds game. Some are more security conscious like ensuring that the garage door is closed and the front door is locked when no one is home. I've also got alerts for my Synology when it gets too hot, and alerts for when the battery on my front door gets below a certain percentage so the battery can be replaced.
Here's an example of the Firebirds automation:
alias: Firebirds game in the living room
triggers:
- trigger: time
at:
entity_id: sensor.firebirds_next_game
offset: "-00:10:00"
conditions:
- condition: state
entity_id: input_select.firebirds_watch_location
state:
- Living Room
- Both
- condition: template
value_template: "{{ state_attr('sensor.firebirds_goals', 'state') == 'scheduled' }}"
- condition: or
conditions:
- condition: state
entity_id: person.ryan
state: home
- condition: state
entity_id: person.spouse
state: home
actions:
- action: media_player.turn_on
target:
entity_id: media_player.living_room_apple_tv
- wait_template: "{{ not is_state('media_player.living_room_apple_tv', 'off') }}"
timeout: "00:01:00"
continue_on_timeout: true
- action: media_player.select_source
target:
entity_id: media_player.living_room_apple_tv
data:
source: FloSports
continue_on_error: true
- action: notify.mobile_app_ryans_iphone_18
data:
title: Firebirds
message: >-
Game vs {{ state_attr('sensor.firebirds_goals', 'opponent') }} starts at
{{ state_attr('sensor.firebirds_goals', 'startTime') }}. The Living Room
Apple TV is on with FloSports.
mode: single
Instead of a fixed time, the trigger watches a sensor that holds the start time of the next Firebirds game3, and the offset tells it to fire 10 minutes early. When the schedule changes, the automation just follows along.
Wall Panel¶
With all of this in place I've installed the Home Assistant Companion App on my phone and my wife's phone, as well as an old iPad that has a Dashboard with several tabs that allow for control of the lights, and playing music at various Sonos Speakers. It feels very 'Home of the Future' 🚀
The (Nerdy) Details¶
For those of you that are curious about how it's set up, this section is for you.
How I host it¶
There are several ways to run Home Assistant: a dedicated device like the Home Assistant Green, a Raspberry Pi, a virtual machine, or a plain Docker container. I already have home servers managed with Coolify, so I went with the container. It runs from the official home-assistant:stable image, defined as a Coolify service. The Coolify setup itself lives in my infrastructure-as-code repo (OpenTofu).
Some things to know about the container route:
- Host networking is required. Discovery for things like HomeKit, ESPHome and Apple TVs relies on multicast (mDNS), and that doesn't cross Docker's bridge network. The container runs with
network_mode: host. - No Supervisor, so no "add-ons". Anything that would normally be an add-on runs as its own container next to Home Assistant. For me that's the Matter server and a security bridge.
- Backups are your job. Coolify doesn't back up service volumes. I set up Home Assistant's built-in backups: nightly, encrypted, sent to my Synology, which copies them to B2 for an offsite backup.
A friendly URL with Nginx Proxy Manager¶
Out of the box, Home Assistant lives at http://<server-ip>:8123. That works, but it's not something I want to type, and it's not HTTPS. I already run Nginx Proxy Manager (NPM) on another home server to front my internal services, so Home Assistant got a proxy host there.
- Wildcard certificate. NPM has a wildcard Let's Encrypt certificate for
*.ryancheley.com, issued with a DNS challenge. One certificate covers every internal service, and the individual hostnames never show up in public certificate-transparency logs. - DNS. An A record points at the proxy server, managed in OpenTofu like the rest of my DNS.
- Tell Home Assistant it's behind a proxy. It rejects proxied requests unless you set
use_x_forwarded_forand list the proxy undertrusted_proxies. Otherwise you get a400: Bad Request. One quirk I ran into is that on a container install, those HTTP settings had moved into Home Assistant's internal storage, so anhttp:block inconfiguration.yamlwas ignored.
Tailscale considerations¶
I don't expose Home Assistant to the internet. Its URL record points at the proxy's Tailscale address, so the name resolves anywhere, but it only connects from devices on my tailnet. That gets me remote access without opening ports. But there are trade-offs:
- Every client needs Tailscale. Every phone, tablet or laptop that uses the app has to be on the tailnet.
- Cloud webhooks can't reach it. Some integrations rely on the vendor's cloud pushing updates in. My front door lock is one, and its webhook can't reach a tailnet-only address. Home Assistant has to poll instead, so the lock's status can be a few minutes behind.
- Certificates need a DNS challenge. Let's Encrypt can't reach a private address to validate it, so the certificate has to be issued through DNS.
- Inside the house, the local network still matters. Device discovery and local control happen on the LAN, so the server itself sits on the home network and Tailscale is only the way in for people and apps.
What's next¶
More automations ... a little more money to be spent.
I've bought a few lightbulbs for outside my garage door and plan to add an automation to have their color match any holidays / seasons to add a bit of whimsy. I usually put up Christmas lights, but getting up on a ladder isn't something I (or my wife) feel comfortable with me doing so this will have to do until next year.
I also bought some light switches for my hallway. The idea is to add an automation so that after sunset, when someone gets home and comes in through the garage, the hallway lights turn on so they don't walk into a dark house. It's something I've wanted when coming home from hockey games, so I'm going to get that set up for when I can go to a hockey game again.
Working with Claude¶
A lot of what I did here I did with the help of Claude. It really did get me up and running quickly, especially with getting Home Assistant self-hosted, which is what made everything else possible. I'm not sure if collaboration is the right word here for what was done, but it did feel collaborative. I didn't just set it off to do its thing and come back to a mess. Claude and I iterated, each of us checking our own work and the other's. It helped turn a project that started as adding my garage door opener to Apple Home into the full-fledged home automation setup I've wanted for a while.
- Living in the desert, I guess it makes sense 😄. It's also what lets automations know when sunset is. ↩︎
- I live in a single story home and so I initially didn't think about using Floors at all. It was only when Claude put some areas into a Floor that I realized they could be used in a way that the name was blocking me from realizing. ↩︎
- That sensor comes from a little scoreboard service I run on a Raspberry Pi, which pulls game data from the AHL's feed. Home Assistant reads it like any other device. ↩︎
This post is part 5 of the "learnings-on-leave" series: