Page 1 of 2

Homebridge on RaspberryPi

PostPosted: Thu Jun 23, 2016 12:36 pm
by yassi
I know, not directly related to Mac, but an issue with the homebridge-indigo plugin.

I've successfully installed Homebridge on a Pi.
It's version 0.3.4
Also, I was able to add the "accessory" Homekit to two iOS apps (Devices and Hesperus)
But I think I have an issue, because no device is recognized.

Please have a look to my config.json and the screenshot (actually I've installed Homebridge as a service on the Pi), but also tested it manually.

Maybe someone can help with the Indigo plugin.

Thx!

Re: Homebridge on RaspberryPi

PostPosted: Mon Jun 27, 2016 12:10 pm
by yassi
yassi wrote:
I know, not directly related to Mac, but an issue with the homebridge-indigo plugin.

I've successfully installed Homebridge on a Pi.
It's version 0.3.4
Also, I was able to add the "accessory" Homekit to two iOS apps (Devices and Hesperus)
But I think I have an issue, because no device is recognized.

Please have a look to my config.json and the screenshot (actually I've installed Homebridge as a service on the Pi), but also tested it manually.

Maybe someone can help with the Indigo plugin.

Thx!



So, no one can tell me why I can't see my devices?
I don't have too much devices, but no one appears.
They have "remote display" enabled, my config.json doesn't exclude them.

Re: Homebridge on RaspberryPi

PostPosted: Thu Jun 30, 2016 7:49 pm
by Devildog0331
Did you ever resolve the issue? I have a Pi3 running homebridge - but I haven't included Indigo yet (project for this weekend).

Re: Homebridge on RaspberryPi

PostPosted: Fri Jul 01, 2016 1:47 am
by yassi
Devildog0331 wrote:
Did you ever resolve the issue? I have a Pi3 running homebridge - but I haven't included Indigo yet (project for this weekend).


No.
I can't see any device, don't know why.

Wonder that no one has/ had this issue.

yassi

Re: Homebridge on RaspberryPi

PostPosted: Sat Jul 02, 2016 7:25 pm
by webdeck
I don't have a raspberry pi to test with, but I know others have gotten homebridge to work on it. Have you followed all of the steps here? https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

Does your configuration work if you run it on a Mac instead? Since you have to have Indigo running on a Mac anyway, there's no real disadvantage to running it on the Mac. Most of the people using homebridge on a raspberry pi don't have a computer running 24/7, but for Indigo, we already have that.

-Mike

Re: Homebridge on RaspberryPi

PostPosted: Mon Jul 04, 2016 12:59 am
by yassi
webdeck wrote:
I don't have a raspberry pi to test with, but I know others have gotten homebridge to work on it. Have you followed all of the steps here? https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

Does your configuration work if you run it on a Mac instead? Since you have to have Indigo running on a Mac anyway, there's no real disadvantage to running it on the Mac. Most of the people using homebridge on a raspberry pi don't have a computer running 24/7, but for Indigo, we already have that.

-Mike


Yes, that's how I've installed it - and on the Pi is running.
I will try another plugin for Homebridge, let's see if another one will work.

I've tried in the past to install Homebridge on the same Mac where Indigo is running, but because it's an old SingleCore MacMini and it runs 10.6 (last one) I was not able to geht Homebridge running on it.
I had a lot of errors regarding Xcode, compiler and so on, and I gave it up.
There must be somewhere here some posts about this.

Re: Homebridge on RaspberryPi

PostPosted: Mon Jul 04, 2016 9:23 am
by webdeck
I think I see the problem - the config.json needs to be in the .homebridge directory under your home directory - it looks like you have it in your home directory instead.

Re: Homebridge on RaspberryPi

PostPosted: Mon Jul 04, 2016 10:27 pm
by Devildog0331
I got mine up,and running on a pie. It wouldn't work on the standard port (8176) but it did when I switched it to the web port. Here's my config file:

Re: Homebridge on RaspberryPi

PostPosted: Mon Jul 04, 2016 10:47 pm
by Devildog0331
Also... Delete all the files in your ~/.homebridge/persist folder if you still don't see anything after making those changes.

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 6:27 am
by yassi
webdeck wrote:
I think I see the problem - the config.json needs to be in the .homebridge directory under your home directory - it looks like you have it in your home directory instead.


No, I didn't installed it in my home directory or in .homebridge.

I've installed it in /opt as described in this article (he installed it in /var):
https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

I've specified the file with the -U parameter.

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 11:01 am
by webdeck
yassi wrote:
webdeck wrote:
I think I see the problem - the config.json needs to be in the .homebridge directory under your home directory - it looks like you have it in your home directory instead.


No, I didn't installed it in my home directory or in .homebridge.

I've installed it in /opt as described in this article (he installed it in /var):
https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

I've specified the file with the -U parameter.


The screenshot you posted doesn't show the -U parameter, and the output is consistent with what happens when homebridge can't find the config,json file.

-Mike

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 1:01 pm
by yassi
webdeck wrote:
yassi wrote:
webdeck wrote:
I think I see the problem - the config.json needs to be in the .homebridge directory under your home directory - it looks like you have it in your home directory instead.


No, I didn't installed it in my home directory or in .homebridge.

I've installed it in /opt as described in this article (he installed it in /var):
https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

I've specified the file with the -U parameter.


The screenshot you posted doesn't show the -U parameter, and the output is consistent with what happens when homebridge can't find the config,json file.

-Mike


Mike, sorry forgot this obviously.

Here is the second link how I've installed it as a systemd service:
You can see the -U parameter for the HOMEBRIDGE_OPTS variable in the screenshot



https://gist.github.com/johannrichard/0 ... adb9eb61a/

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 1:21 pm
by webdeck
Does it work if you just run it from the command line? You should rule that out before getting systemd all setup.

This is a guess, but I think you need quotes around the value of HOMEBRIDGE _OPTS, since it has a space, e.g.:
Code: Select all
HOMEBRIDGE_OPTS="-U /opt/homebridge"

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 2:03 pm
by yassi
webdeck wrote:
Does it work if you just run it from the command line? You should rule that out before getting systemd all setup.

This is a guess, but I think you need quotes around the value of HOMEBRIDGE _OPTS, since it has a space, e.g.:
Code: Select all
HOMEBRIDGE_OPTS="-U /opt/homebridge"


Actually it worked , it didn't showed up errors.
And the homebridge was and is visible in the HomeKit Apps. I was able to add it with the PIN code.
But, no device appears.

Maybe I will try my Synology NAS instead, there is a plugin too.

That could be an option, but in all articles I've found they are not using quotes.
Here is another one:

https://gist.github.com/impressiver/175 ... 89a056cd19

Re: Homebridge on RaspberryPi

PostPosted: Tue Jul 05, 2016 6:24 pm
by Devildog0331
If you stop your Indigo Server and restart it, you'll get the screen where you can set some options. Look for the "Override web server (HTTP) port number" part. The number in there is what I used in my Homebridge config.json file. The default port of 8176 gave me the same issue you have... No devices but no errors either. Once I changed that... Everything populated as it should have.