Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

douglasf13

macrumors 68000
Jul 2, 2010
1,782
1,083
If you know that you haven’t made any changes to the file, then choose the Y option to keep it up to date with the changes made by the distributor.

If on the other hand you have modified the file then you’re going to want to choose the default option, N, otherwise the configuration you have setup will be overwritten. The new file will be saved with the -new extension so that you can compare changes.

If none of this makes any real sense and you just did a standard installation in the first place, you should be ok to just select Y to stay up to date.

If you’re really unsure then choose Z so that you can compare the files before making a decision.

Hi. You seem really knowledgeable about this, so I thought I'd ask you some basics. I have a bunch of cheapie Wi-fi switches made by Epicka that I bought of Amazon, so I was thinking about trying Homebridge to use them with my new HomePod. I can't seem to find a Homebridge plugin for my particular switches, so does that mean I'm out of luck, or is there another way? Thanks!
 

bjornand

macrumors newbie
Feb 14, 2018
19
1
So, Homebridge on the Mac worked without very little fiddling around. But, I am unsure whether the benefits justify a Raspberry Pi installation. I really wanted to use Homebridge to take signals from my alarm system components and use Home to control my door lock, but the verisure plugins do not work with my system setup (I have components that are not supported by the plugins). Perhaps I should instead put pressure on the alarm company to open their system...
 

TrueBlou

macrumors 601
Sep 16, 2014
4,531
3,619
Scotland
Hi. You seem really knowledgeable about this, so I thought I'd ask you some basics. I have a bunch of cheapie Wi-fi switches made by Epicka that I bought of Amazon, so I was thinking about trying Homebridge to use them with my new HomePod. I can't seem to find a Homebridge plugin for my particular switches, so does that mean I'm out of luck, or is there another way? Thanks!


I don’t know that I’d go so far as knowledgeable, I just like the sound of my own voice, even if it is typed :p

Seriously though, it’s not a brand I’m familiar with and as a rule of thumb if there isn’t a plugin specifically for the brand you’re looking for, I’m afraid you are often out of luck.

The exception to that rule being if your device has compatibility with other brands or protocols. So for instance if your switches were compatible with a SmartThings hub, or supported the Zigbee protocol, then there would be a way to get them to work.

Do you know if they are compatible with any other manufacturers hubs or products?
[doublepost=1518728309][/doublepost]
So, Homebridge on the Mac worked without very little fiddling around. But, I am unsure whether the benefits justify a Raspberry Pi installation. I really wanted to use Homebridge to take signals from my alarm system components and use Home to control my door lock, but the verisure plugins do not work with my system setup (I have components that are not supported by the plugins). Perhaps I should instead put pressure on the alarm company to open their system...


Well that sucks after all of your efforts. I’m surprised though, I thought there were quite a number of verisure items supported.

Is it different product categories or manufacturers causing the problem? I just wondered if you could break them out individually on the Homebridge/kit side of things, or are they all too tightly integrated.
 
  • Like
Reactions: douglasf13

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
Just to report, after maybe an hour or so I have NEST Thermostat installed on my HomeKit and it's all working great! I can control it through my phone.

It was a paid getting the config.json to work, as I've not seen anyone really do this in a clear way, but the best guy for me was attached below! Thanks TrueBlou again for trying to help :D

Now, this Raspberry is plugged in on my desk in my home office. I want to move it to somewhere without a monitor... I guess I need to work that one out next!


edit: Okay that was easier than expected. Just shut it down, plugged it in at its new home and logged in and kicked off homebridge. Simple.
[doublepost=1518730415][/doublepost]Ah okay, when I shutdown terminal on my mac it seems to kill homebridge on the Raspberry Pi. Anyone know why that is and how I can make it stay on?
 
Last edited:

alm99

macrumors 6502
Oct 30, 2008
320
13
Just to report, after maybe an hour or so I have NEST Thermostat installed on my HomeKit and it's all working great! I can control it through my phone.

It was a paid getting the config.json to work, as I've not seen anyone really do this in a clear way, but the best guy for me was attached below! Thanks TrueBlou again for trying to help :D

Now, this Raspberry is plugged in on my desk in my home office. I want to move it to somewhere without a monitor... I guess I need to work that one out next!


edit: Okay that was easier than expected. Just shut it down, plugged it in at its new home and logged in and kicked off homebridge. Simple.
[doublepost=1518730415][/doublepost]Ah okay, when I shutdown terminal on my mac it seems to kill homebridge on the Raspberry Pi. Anyone know why that is and how I can make it stay on?

I followed this and got my Nest working with Homekit. Awesome!

Now I need to figure out how to get my Sengled lightbulbs to work with Homebridge and Nest. It gives me an error about reading my config file when I put in the configuration sample, with my credentials, found on this page for the plugin: https://www.npmjs.com/package/homebridge-sengled

Anyone smarter than me have any ideas?
 

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
Ah okay, when I shutdown terminal on my mac it seems to kill homebridge on the Raspberry Pi. Anyone know why that is and how I can make it stay on?
You probably started homebridge from your terminal session with command „homebridge“ right?
Try command
Code:
homebridge&
or
Code:
homebridge  &
instead, one of them should do the trick. You won't get any immediate output if it opens correctly. But you can get the status by typing:
Code:
ps -ef | grep homebridge
Output will look somehow like this:
Code:
pi@raspberrypi:~ $ ps -ef | grep homebridge
homebri+  1184     1  0 Jan10 ?        01:30:51 homebridge                           
pi       19068 19053  0 19:41 pts/0    00:00:00 grep --color=auto homebridge
pi@raspberrypi:~ $
I propose you should look into using systemd to start homebridge on bootup and for automatic restart if it crashes. Please make a backup of your working configuration before, just in case something goes wrong.

Anyone smarter than me have any ideas?
No, but may i suggest to copy & paste the content of your config .json to <Click me> and see if you get any errors/suggestions? It is probably an error in the syntax...
 
Last edited:

alm99

macrumors 6502
Oct 30, 2008
320
13
You probably started homebridge from your terminal session with command „homebridge“ right?
Try command
Code:
homebridge&
or
Code:
homebridge  &
instead, one of them should do the trick. You won't get any immediate output if it opens correctly. But you can get the status by typing:
Code:
ps -ef | grep homebridge
Output will look somehow like this:
Code:
pi@raspberrypi:~ $ ps -ef | grep homebridge
homebri+  1184     1  0 Jan10 ?        01:30:51 homebridge                          
pi       19068 19053  0 19:41 pts/0    00:00:00 grep --color=auto homebridge
pi@raspberrypi:~ $
I propose you should look into using systemd to start homebridge on bootup and for automatic restart if it crashes. Please make a backup of your working configuration before, just in case something goes wrong.


No, but may i suggest to copy & paste the content of your config .json to <Click me> and see if you get any errors/suggestions? It is probably an error in the syntax...

I did get an error, but it's a foreign language to me:


Error: Parse error on line 26:
...rd": "12121" } { "platform": "Se
--------------------^
Expecting 'EOF', '}', ',', ']', got '{'
 

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
I did get an error, but it's a foreign language to me:


Error: Parse error on line 26:
...rd": "xxxx" } { "platform": "Se
--------------------^
Expecting 'EOF', '}', ',', ']', got '{'
Ok so your config file is not valid an thus can not be loaded.
Try to add a "," between } and { :
Code:
rd": "xxxx"        }    ,    {            "platform": "Se
If this does not work maybe PM me the whole .json without any real usernames & passwords (Just replace with "test" or something) and i will see what i can do. I hope the xxxx before "rd" is not the password for the platform before.
 

alm99

macrumors 6502
Oct 30, 2008
320
13
Ok so your config file is not valid an thus can not be loaded.
Try to add a "," between } and { :
Code:
rd": "xxxx"        }    ,    {            "platform": "Se
If this does not work maybe PM me the whole .json without any real usernames & passwords (Just replace with "test" or something) and i will see what i can do. I hope the xxxx before "rd" is not the password for the platform before.

Adding the comma "," between validated it on the json website, but now homebridge will not load.
 

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
Adding the comma "," between validated it on the json website, but now homebridge will not load.
It now reads the config file, but it does not work anyway? Have a look in the logfile to see why hombridge terminates. Are you sure homebridge is not loading/running? To be sure type:
Code:
ps -ef | grep homebridge
into the terminal.

Edit:Ok i see you sent me a PM.
 
Last edited:

rworne

macrumors 6502a
Jul 23, 2002
653
124
Los Angeles
Ah okay, when I shutdown terminal on my mac it seems to kill homebridge on the Raspberry Pi. Anyone know why that is and how I can make it stay on?

Best way to do that is to set it up as a service. It will start automatically when power is applied to the Raspberry Pi. Here's my configuration files, the passwords and other items have been obfuscated.

This assumes you have a good config.json and all your devices work.

I put my files in /var/lib/homebridge:
Code:
pi@raspberrypi:~ $ ls -al /var/lib/homebridge/
total 20
drwxr-xr-x  4 homebridge homebridge 4096 Feb 11 09:59 .
drwxr-xr-x 30 root       root       4096 Feb 11 08:53 ..
drwxr-xr-x  2 homebridge homebridge 4096 Feb 11 06:09 accessories <- made automatically by homebridge
-rw-r--r--  1 homebridge homebridge  856 Feb 11 09:59 config.json <-need to put this file here
drwxr-xr-x  2 homebridge homebridge 4096 Feb 11 06:04 persist <- made automatically by homebridge

Here I put the config file:
Code:
pi@raspberrypi:~ $ cat /var/lib/homebridge/config.json
{
  "bridge": {
    "name": "Homebridge",
    "username": "AA:BB:CC:DD:EE:FF",
    "port": 45525,
    "pin": "111-22-333"
  },
  "description": "SmartHome with Homebridge",
  "platforms": [
      {
          "platform": "Nest",
          "token": "c.blahblahblahreallylongstring",
          "clientId": "b7b43e14-54a0-413b-b743-XXXXXXXXXXXX",
          "clientSecret": "0eHWwcq5jHPwXXXXXXXXXXX",
          "code": "XXXXXXX",
          "username" : "XXX@XXXXX.com",
          "password" : "XXXXXXX"
      }
   ],

    "accessories": [
    {
        "accessory": "Roomba690",
        "model":"890",
        "name": "Roomba",
        "hostname": "192.168.1.11",
        "blid":"316XXXXXXXXXXXXX",
        "password":":1:XXXXXXXXXX:XXXXXXXXX"
    }
    ]
}

make a homebridge user:
Code:
useradd --system homebridge

fix permissions:
Code:
chown -R homebridge.homebridge /var/lib/homebridge

Put this file in /etc/default and name it homebridge:
Code:
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge

# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*

Put this file in /etc/systemd/system and name it homebridge.service:
Code:
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target

[Service]
Type=simple
User=homebridge
EnvironmentFile=/etc/default/homebridge
# Adapt this to your specific setup (could be /usr/bin/homebridge)
# See comments below for more information
ExecStart=/opt/nodejs/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process

[Install]
WantedBy=multi-user.target

Enable and run service:
Code:
systemctl daemon-reload
systemctl enable homebridge
systemctl start homebridge

When done properly, homebridge starts up whenever the PI gets power. I have mine running on a Pi Zero W.
 
Last edited:

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
You probably started homebridge from your terminal session with command „homebridge“ right?
Try command
Code:
homebridge&
or
Code:
homebridge  &
instead, one of them should do the trick. You won't get any immediate output if it opens correctly. But you can get the status by typing:
Code:
ps -ef | grep homebridge
Output will look somehow like this:
Code:
pi@raspberrypi:~ $ ps -ef | grep homebridge
homebri+  1184     1  0 Jan10 ?        01:30:51 homebridge                          
pi       19068 19053  0 19:41 pts/0    00:00:00 grep --color=auto homebridge
pi@raspberrypi:~ $
I propose you should look into using systemd to start homebridge on bootup and for automatic restart if it crashes. Please make a backup of your working configuration before, just in case something goes wrong.


No, but may i suggest to copy & paste the content of your config .json to <Click me> and see if you get any errors/suggestions? It is probably an error in the syntax...

Best way to do that is to set it up as a service. It will start automatically when power is applied to the Raspberry Pi. Here's my configuration files, the passwords and other items have been obfuscated.

This assumes you have a good config.json and all your devices work.

I put my files in /var/lib/homebridge:
Code:
pi@raspberrypi:~ $ ls -al /var/lib/homebridge/
total 20
drwxr-xr-x  4 homebridge homebridge 4096 Feb 11 09:59 .
drwxr-xr-x 30 root       root       4096 Feb 11 08:53 ..
drwxr-xr-x  2 homebridge homebridge 4096 Feb 11 06:09 accessories <- made automatically by homebridge
-rw-r--r--  1 homebridge homebridge  856 Feb 11 09:59 config.json <-need to put this file here
drwxr-xr-x  2 homebridge homebridge 4096 Feb 11 06:04 persist <- made automatically by homebridge

Here I put the config file:
Code:
pi@raspberrypi:~ $ cat /var/lib/homebridge/config.json
{
  "bridge": {
    "name": "Homebridge",
    "username": "AA:BB:CC:DD:EE:FF",
    "port": 45525,
    "pin": "111-22-333"
  },
  "description": "SmartHome with Homebridge",
  "platforms": [
      {
          "platform": "Nest",
          "token": "c.blahblahblahreallylongstring",
          "clientId": "b7b43e14-54a0-413b-b743-XXXXXXXXXXXX",
          "clientSecret": "0eHWwcq5jHPwXXXXXXXXXXX",
          "code": "XXXXXXX",
          "username" : "XXX@XXXXX.com",
          "password" : "XXXXXXX"
      }
   ],

    "accessories": [
    {
        "accessory": "Roomba690",
        "model":"890",
        "name": "Roomba",
        "hostname": "192.168.1.11",
        "blid":"316XXXXXXXXXXXXX",
        "password":":1:XXXXXXXXXX:XXXXXXXXX"
    }
    ]
}

make a homebridge user:
Code:
useradd --system homebridge

fix permissions:
Code:
chown -R homebridge.homebridge /var/lib/homebridge

Put this file in /etc/default and name it homebridge:
Code:
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge

# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*

Put this file in /etc/systemd/system and name it homebridge.service:
Code:
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target

[Service]
Type=simple
User=homebridge
EnvironmentFile=/etc/default/homebridge
# Adapt this to your specific setup (could be /usr/bin/homebridge)
# See comments below for more information
ExecStart=/opt/nodejs/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process

[Install]
WantedBy=multi-user.target

Enable and run service:
Code:
systemctl daemon-reload
systemctl enable homebridge
systemctl start homebridge

When done properly, homebridge starts up whenever the PI gets power. I have mine running on a Pi Zero W.

Thank you for the replies. I actually got it running in the end, I just forgot to post an update. I actually did what you're suggested here above.

Thanks again for taking the time to post.
 

rworne

macrumors 6502a
Jul 23, 2002
653
124
Los Angeles
Thank you for the replies. I actually got it running in the end, I just forgot to post an update. I actually did what you're suggested here above.

Thanks again for taking the time to post.

Good to hear it.

What annoyed me is that there was no one place to get all the information on how to set it up that way. I had to hop between 3 sites to get the "homebridge as a service" info and two more to get the Nest working properly.
 

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
Good to hear it.

What annoyed me is that there was no one place to get all the information on how to set it up that way. I had to hop between 3 sites to get the "homebridge as a service" info and two more to get the Nest working properly.

Agreed. I wrote down everything I did in case I need to do it again for some reason.

Something I have noticed though, is having left the house this morning and checked on Nest via the Home App for the first time, it is showing as no response which is strange. Perhaps because I'm not on the same network?
 

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
Something I have noticed though, is having left the house this morning and checked on Nest via the Home App for the first time, it is showing as no response which is strange. Perhaps because I'm not on the same network?
What is you home hub? AppleTV, iPad or both?
 

rworne

macrumors 6502a
Jul 23, 2002
653
124
Los Angeles
Something I have noticed though, is having left the house this morning and checked on Nest via the Home App for the first time, it is showing as no response which is strange. Perhaps because I'm not on the same network?

It's normal for a short delay with nest devices in my experience.

One important thing with the Nest:
Make sure you have it set up correctly because if you don't get the secure token and add it to the config file, it will only work once and you will need to repeat the process of getting another PIN (which also works only once). Additionally, widen the terminal window when doing this, because if you did get the secure token, it may have cut off a few characters.

If you check the status of homebridge and you see errors or restarting, this is one big cause of problems.
 

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
What is you home hub? AppleTV, iPad or both?

I don't think I understand your question. I have a Raspberry Pi with Homebridge installed which I have setup to allow me to connect to the Nest Thermostat via Apple Home

It's normal for a short delay with nest devices in my experience.

One important thing with the Nest:
Make sure you have it set up correctly because if you don't get the secure token and add it to the config file, it will only work once and you will need to repeat the process of getting another PIN (which also works only once). Additionally, widen the terminal window when doing this, because if you did get the secure token, it may have cut off a few characters.

If you check the status of homebridge and you see errors or restarting, this is one big cause of problems.

Everything was set up and working fine for a couple of days (it was running smoothly from Friday all through the weekend). It was only today that it stopped working, and I couldn't ssh into the Raspberry from my mac anymore. I unplugged it and brought it to my office to plug it into the monitor up here (which in turn rebooted it and got it working again).

I can only assume the Raspberry crashed and didn't reboot itself to correct it. Having turned it off and on again seems to have sorted whatever went wrong with it.
 

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
I don't think I understand your question. I have a Raspberry Pi with Homebridge installed which I have setup to allow me to connect to the Nest Thermostat via Apple Home
I thought that you need an AppleTV or iPad (i forgot the HomePod) for controlling HomeKit devices from remote.
  • To control your HomeKit accessories remotely, you need a HomePod, an Apple TV 4K, Apple TV (4th generation), Apple TV (3rd generation),* or iPad.
That‘s from the Apple Support site. But maybe I got it wrong.
 
Last edited:

Donar

macrumors 6502
Jul 12, 2008
385
73
Germany
Ok, i asked because some people got rid of the „Not responding“ problem by replacing their iPad as Hub with an AppleTV. But as you couldn‘t ssh to your Raspberry it surely was the Raspberry. If you experience this problem more often maybe get a better power supply or try another SD card for the Raspberry.
 
Last edited:

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
Ok, i asked because some people got rid of the „Not responding“ problem by replacing their iPad as Hub with an AppleTV. But as you couldn‘t ssh to your Raspberry it surely was the Raspberry. If you experience this problem more often maybe get a better power supply or try another SD card for the Raspberry.

Thanks, I'll consider that. I bought a bundle from Amazon that was recommended. It ran through the night again okay and I can connect find this morning. There are no preferences on the Pi that might cause it to shut itself down after a while, are there? Maybe disconnect from the internet or something?
 

rworne

macrumors 6502a
Jul 23, 2002
653
124
Los Angeles
Thanks, I'll consider that. I bought a bundle from Amazon that was recommended. It ran through the night again okay and I can connect find this morning. There are no preferences on the Pi that might cause it to shut itself down after a while, are there? Maybe disconnect from the internet or something?

Strange problem. Especially if it's the basic install of the OS + Homebridge (I'm using Raspian Stretch Lite). Mine stays up as long as I have it powered on. I made no changes to the base OS other than the Homebridge install, the WiFi setup, and enabling ssh in raspi-config.

Which PI are you using? The Pi 3 has pretty hefty power requirements and needs a stronger power supply than a typical 500mA USB port (2.1-3A IIRC). I run my setup on a Pi Zero W, and it runs just fine off plugged into an unused USB port on my router.
 

bjornand

macrumors newbie
Feb 14, 2018
19
1
I don’t know that I’d go so far as knowledgeable, I just like the sound of my own voice, even if it is typed :p

Seriously though, it’s not a brand I’m familiar with and as a rule of thumb if there isn’t a plugin specifically for the brand you’re looking for, I’m afraid you are often out of luck.

The exception to that rule being if your device has compatibility with other brands or protocols. So for instance if your switches were compatible with a SmartThings hub, or supported the Zigbee protocol, then there would be a way to get them to work.

Do you know if they are compatible with any other manufacturers hubs or products?
[doublepost=1518728309][/doublepost]


Well that sucks after all of your efforts. I’m surprised though, I thought there were quite a number of verisure items supported.

Is it different product categories or manufacturers causing the problem? I just wondered if you could break them out individually on the Homebridge/kit side of things, or are they all too tightly integrated.

Hi again, Verisure is a security company in the Scandinavian countries offering some smart home components. Most typically door/window sensors, smoke alarms, door lock, and such, but also more "exotic" components like water leak sensor and even a mouse sensor for attics or basements. I have both these latter two units and they break the login when running the Verisure plugin (these are obviously identified through my user). I was hoping there might be a way to select which components to load, but it seems not.

However, I have had homebridge running successfully on my Mac for a few days with two platforms (Harmony and Sensibo), to see whether I want to make the Pi investment. To get more out of homebridge, I yesterday tried to install the Ring doorbell platform, but that did not work. After removing it, I now get an error with the setup that has worked, and I just can't figure out how to get it working again. Here is the error message I get when starting homebridge:


Fan-Andersen-Home-iMac:~ famandersen$ homebridge

[2/20/2018, 9:21:10 PM] Loaded plugin: homebridge-harmonyhub

[2/20/2018, 9:21:10 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loaded plugin: homebridge-sensibo-sky

[2/20/2018, 9:21:10 PM] Registering platform 'homebridge-sensibo-sky.SensiboSky'

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loaded config.json with 0 accessories and 1 platforms.

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loading 1 platforms...

[2/20/2018, 9:21:10 PM] [Harmony Hub] Initializing HarmonyHub platform...

[2/20/2018, 9:21:10 PM] Loading 0 accessories...

Setup Payload:

X-HM://0023ISYWZ4D15

Scan this code with your HomeKit app on your iOS device to pair with Homebridge:























































Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:



┌────────────┐

│ 031-45-155 │

└────────────┘



events.js:160

throw er; // Unhandled 'error' event

^


Error: bind EADDRINUSE 0.0.0.0:5224

at Object.exports._errnoException (util.js:1018:11)

at exports._exceptionWithHostPort (util.js:1041:20)

at _handle.lookup (dgram.js:219:18)

at _combinedTickCallback (internal/process/next_tick.js:83:11)

at process._tickCallback (internal/process/next_tick.js:104:9)

at Module.runMain (module.js:606:11)

at run (bootstrap_node.js:393:7)

at startup (bootstrap_node.js:150:9)

at bootstrap_node.js:508:3

Fan-Andersen-Home-iMac:~ famandersen$

[Restored 21 Feb 2018 at 06:41:17]

Last login: Wed Feb 21 06:41:10 on console

Restored session: Tue Feb 20 22:17:04 CET 2018

Fan-Andersen-Home-iMac:~ famandersen$


When this worked, it would load the three Harmony activities so there might be something with Harmony? Any insights into this?
 

AdamA9

macrumors 65816
Feb 2, 2010
1,232
355
Strange problem. Especially if it's the basic install of the OS + Homebridge (I'm using Raspian Stretch Lite). Mine stays up as long as I have it powered on. I made no changes to the base OS other than the Homebridge install, the WiFi setup, and enabling ssh in raspi-config.

Which PI are you using? The Pi 3 has pretty hefty power requirements and needs a stronger power supply than a typical 500mA USB port (2.1-3A IIRC). I run my setup on a Pi Zero W, and it runs just fine off plugged into an unused USB port on my router.

I just checked and it's still working. It might have just been a one off. I will keep an eye on it and hope it keeps running now.

For info I have the Raspberry Pi 3 Model B Quad Core with this power lead, which is the recommended 5v 2.5A: https://www.amazon.co.uk/gp/product/B01CCR5P8U/ref=oh_aui_detailpage_o03_s02?ie=UTF8&psc=1
 

TrueBlou

macrumors 601
Sep 16, 2014
4,531
3,619
Scotland
Hi again, Verisure is a security company in the Scandinavian countries offering some smart home components. Most typically door/window sensors, smoke alarms, door lock, and such, but also more "exotic" components like water leak sensor and even a mouse sensor for attics or basements. I have both these latter two units and they break the login when running the Verisure plugin (these are obviously identified through my user). I was hoping there might be a way to select which components to load, but it seems not.

However, I have had homebridge running successfully on my Mac for a few days with two platforms (Harmony and Sensibo), to see whether I want to make the Pi investment. To get more out of homebridge, I yesterday tried to install the Ring doorbell platform, but that did not work. After removing it, I now get an error with the setup that has worked, and I just can't figure out how to get it working again. Here is the error message I get when starting homebridge:


Fan-Andersen-Home-iMac:~ famandersen$ homebridge

[2/20/2018, 9:21:10 PM] Loaded plugin: homebridge-harmonyhub

[2/20/2018, 9:21:10 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loaded plugin: homebridge-sensibo-sky

[2/20/2018, 9:21:10 PM] Registering platform 'homebridge-sensibo-sky.SensiboSky'

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loaded config.json with 0 accessories and 1 platforms.

[2/20/2018, 9:21:10 PM] ---

[2/20/2018, 9:21:10 PM] Loading 1 platforms...

[2/20/2018, 9:21:10 PM] [Harmony Hub] Initializing HarmonyHub platform...

[2/20/2018, 9:21:10 PM] Loading 0 accessories...

Setup Payload:

X-HM://0023ISYWZ4D15

Scan this code with your HomeKit app on your iOS device to pair with Homebridge:























































Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:



┌────────────┐

│ 031-45-155 │

└────────────┘



events.js:160

throw er; // Unhandled 'error' event

^


Error: bind EADDRINUSE 0.0.0.0:5224

at Object.exports._errnoException (util.js:1018:11)

at exports._exceptionWithHostPort (util.js:1041:20)

at _handle.lookup (dgram.js:219:18)

at _combinedTickCallback (internal/process/next_tick.js:83:11)

at process._tickCallback (internal/process/next_tick.js:104:9)

at Module.runMain (module.js:606:11)

at run (bootstrap_node.js:393:7)

at startup (bootstrap_node.js:150:9)

at bootstrap_node.js:508:3

Fan-Andersen-Home-iMac:~ famandersen$

[Restored 21 Feb 2018 at 06:41:17]

Last login: Wed Feb 21 06:41:10 on console

Restored session: Tue Feb 20 22:17:04 CET 2018

Fan-Andersen-Home-iMac:~ famandersen$


When this worked, it would load the three Harmony activities so there might be something with Harmony? Any insights into this?


The Harmony plugin is famously temperamental, to say the least. If you haven't already, the first thing I'd try is to just remove it and then re-install it (you don't need to touch your config file) then do a reboot and check it's status again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.