If you have a MyQ-enabled garage door opener, and you want to hook your door into HomeKit, take a look at Homebridge. Homebridge is a NodeJS server that runs on your Mac, or on a Linux machine such as a Raspberry Pi. Homebridge acts as a HomeKit bridge and allows you to use certain non-HomeKit devices with HomeKit. That might sound like a mouthful, and it certainly isn’t trivial to set up, but it isn’t as difficult as it might seem.

To use Homebridge, you’ll need to keep the server running 24/7. I keep a Mac Mini running in my house as a media server, so it was a perfect candidate for Homebridge. It took me some trial and error, using these instructions, to get Homebridge working. A few tips that might help you:

  • as noted in the “Installation” section of the instructions linked above, you may need to use the “–unsafe-perm” flag if you get any permission errors;
  • if that doesn’t cure any permission errors during the installation, try adding “sudo” to the front of the command you type in Terminal. That runs the command at an administrator level;
  • make sure you also install the liftmaster2 plugin (instructions at the link);
  • the trickiest part for me was setting up the config.json file mentioned in the instructions. First, the file needs to go in your Homebridge directory. To see that directory, though, you need to first show hidden folders on your Mac. You should then see a “.homebridge” directory in your user directory (e.g., evan/.homebridge);
  • here was my config.json file:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"

},

"description": "JSON API",
"platforms": [{
"platform": "LiftMaster2",
"username": "user@mymail.com",
"password": "passsword123"
}]
}

Note that the username in the “bridge” section of the config.json file needs to be formatted like a device’s MAC address, but it’s just a made up number not tied to any real MAC address. If you don’t know what that means (or even if you do), you can just use the above configuration file verbatim, with the exception of the username and password in the Liftmaster2 section. That needs to be your actual MyQ username and password. You’ll want to create this file in a text editor, such as Text Wrangler. Some users caution against using TextEdit.

Once I was done, I was able to add my garage door as an accessory in HomeKit on my iPhone, and ended up with this:

 

I think my favorite part of this is being able to raise my Apple Watch, and tell Siri to “open the garage door.” Next up – trying to get my Belkin Wemo and Netatmo Weather Station tied into HomeKit, and then get some actual HomeKit devices.