How to integrate Vera with Apple HomeKit using VeraLink running on MacOS
I found it to be fairly easy to get HomeKit working with Vera by using VeraLink. Despite the readme claiming no support for dimmer switches and that device status isn’t reported correctly, I’ve found both of those things and everything else I’ve tried work perfectly.
- An old Apple iMac running the latest version of MacOS - High Sierra
- VeraPlus, latest firmware, UI7
- VeraLink aka homebridge-Vera on github
- On the Mac start the Terminal application.
- Run npm once to install it and Xcode tools. To do so, type: sudo npm and follow the on-screen prompts
- Install node-gyp. Type: sudo npm i node-gyp
- Install homebridge. Type: sudo npm i -g --unsafe-perm homebridge
- Install VeraLink. Type: sudo npm i -g homebridge-vera
- Create or edit the config.json file. I did this by typing: vi .homebridge/config.json
Mine looks like this:
Obviously you’ll want to change the “pin” and “veraIP” at the least. There are other parameters though I didn’t take the time to set them (see the github page linked above).
- Test it by running homebridge from the command line via Terminal. Type: homebridge
To quit the app press CTRL-C
- Once you’ve tested it and everything is working, set it so the Terminal will run homebridge every time it’s launched. Go to the Terminal finder menu, then to Preferences. Under Profiles, click the Shell tab. Tick the box next to “Run command” and type homebridge in the textbox. Leave Run inside shell ticked.
- Set Terminal to run at login. Go to System Preferences, then Users & Groups. Click Login Items and add Terminal.