Mark Coleman

Mark Coleman is a full stack developer focusing on the latest in web technologies. Mark enjoys learning about new programming trends. Mark also likes to share his knowledge by attending local development groups and blogging (kramnameloc.com) about programming topics. When Mark is not absorbing everything development he enjoys photography, anything pertaining to The Simpsons, and a part time craft beer/bacon aficionado.

After a few seconds I ran the command homebridge and just as the guide said I received an error about setting up the config file.

Marks-iMac:HomeBridge markcoleman$ homebridge
No plugins found. See the README for information on installing plugins.
Couldn't find a config.json file at '/Users/xxxxxxx/.homebridge/config.json'. Look at config-sample.json for examples of how to format your config.js and add your home accessories.

Next I navigated to the directory in the error message and ran touch config.json to create the file and then nano config.json. Now what should this config file look like? In the root of the repo there is a sample config file.

Running the command homebridge again resulted in an error which I sort of expected since I didn't install any plugins. Let's back track a bit and install the sample lock first.

sudo npm install -g homebridge-lockitron

Now I think we need to alter the config.json

But what do we adjust? The install plugin section references

Plugins can publish Accessories and/or Platforms. Accessories are individual devices, like a smart switch or a garage door. Platforms act like a single device but can expose a set of devices, like a house full of smart lightbulbs.

On the capabilities tab for the project file clicking fix issue did resolve the one issue but still ran into the problem of App ID with identifier .... is not available.

Over to stack overflow this answer seemed promising. I went to the general tab on the project file, came up with a new bundle identifier, back to the capabilities tab, and clicked fix issue. Wonderful! all issues should now be fixed, let's press play.

It is running! now what?

Inside of the app I added a new home

Added a new accessory which discovered homebridge

I had to type in the code manually, the camera might have worked but this was easier.

We now appear to be all linked together. If I go under the control tab of the app and adjust the lockitron state I receive the expected errors in the terminal window where homebridge is running. I think the first phase of this process is complete.

Mental recap

homebridge is fairly easy to get setup once the pieces are installed

app id's need to be unique and clicking fix issue most of the time will fix your issue

Mark Coleman is a full stack developer focusing on the latest in web technologies. Mark enjoys learning about new programming trends. Mark also likes to share his knowledge by attending local development groups and blogging (kramnameloc.com) about programming topics. When Mark is not absorbing everything development he enjoys photography, anything pertaining to The Simpsons, and a part time craft beer/bacon aficionado.