It was working as of last night, but I was trying to figure out how to setup AlexaCookieNodeJs on my pi and might have screwed with my Homebridge setup...
I'm fairly new to all this...as you can tell, thanks in advance!
You're using Tonesto7's version, which is fine, but it's known to add a burden to the hub. There's a Hubitat specific version now that put's no load on the hub. Instead of installing Tonesto7's app, you install a native Hubitat app called MakerAPI and then reconfig your rPi to use that version to listen to MakerAPI.
ENETUNREACH is of course "network unreachable" and your rPi is unable to reach that IP apparently. I'm guessing this is the same rPi that worked for homebridge on ST but ST is a different address and I'm wondering if there's some firewall or firewall like function preventing traffic (reply) from that IP?
From your rPi you should be successful at:
curl 10.0.1.15/apps/api/97
You should get an instant json formatted data saying the token is bad.. LOL
maybe something like this:
<error_description>null</error_description>invalid_token
If you get a timeout, then you will want to track that down.
I was not using Homebridge with ST (I was but I stoped it). This is a new setup from scratch with HE. It was working fine until I tried to setup the Pi as an Alexa Token server.
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Fetching Hubitat-MakerAPI devices. This can take a while depending on the number of devices are configured!
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Refreshing All Device Data
[5/27/2019, 10:36:09] Homebridge is running on port 51826.
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Received All Device Data
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Loading Modes
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Processing Modes
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Device Added - Name Mode - Day, ID Day HomebridgePi
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Device Added - Name Mode - Evening, ID Evening HomebridgePi
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Device Added - Name Mode - Night, ID Night HomebridgePi
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] Device Added - Name Mode - Away, ID Away HomebridgePi
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] attempt connection to ws://192.168.7.65/eventsocket
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] latest version on npmjs is 0.2.8
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] your version of the plugin is up2date
[5/27/2019, 10:36:09] [HomebridgePi hhm:0.2.8] connection to ws://192.168.7.65/eventsocket established
You are definitely failing at the operating system TCP level.... this is not at the plugin level yet. I have never used noobs but do it use something like selinux?
I assume the Pi and Hubitat are on the same switch, correct? Are there any application level firewalls on the Unifi system that might block you? I would concentrate on the network layer to see if you can see any kind of blocking happening there right now
Not necessarily, an application level firewall can treat things differently. You are running Homebridge as a service / systemd, right? Have you tried not running it as a service and running it as the same user that you used for curl? You can just type “homebridge” and it will try to start. You might have to copy the config to that users home directory. Just tying to isolate where the problem might be...
Never tried this version of Homebridge either, but you might try not using noobs. It can be problematic with Homebridge I recall reading somewhere.
You’re also dealing with a number of variables which is going the increase the difficulty in troubleshooting this. I too would not suggest systemd until you get this running correctly. Just makes it that much more difficult to see what’s going on. Maybe also take the Unifi out of the loop for now.