KraigM / homebridge-harmonyhub

HomeBridge Plugin for Logitech Harmony Hub
181 stars 52 forks source link

No activities added? #64

Open alanhartless opened 7 years ago

alanhartless commented 7 years ago

I've setup the everything and homebridge runs. In the output, I get

[11/3/2016, 2:44:19 AM] Loaded plugin: homebridge-harmonyhub
[11/3/2016, 2:44:22 AM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[11/3/2016, 2:44:22 AM] ---
[11/3/2016, 2:44:22 AM] Loaded config.json with 0 accessories and 1 platforms.
[11/3/2016, 2:44:22 AM] ---
[11/3/2016, 2:44:22 AM] Loading 1 platforms...
[11/3/2016, 2:44:22 AM] [Harmony Hub] Initializing HarmonyHub platform...
[11/3/2016, 2:44:23 AM] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

But none of my harmony hub activities are added. Is my hub not found? It's on, on the same IP range (using Raspberry PI which is connected via ethernet but the hub is on wifi although but are on the same router/network; could that have something to do with it?).

Thanks.

RXM307 commented 7 years ago

On 3 November 2016 at 12:49, Alan Hartless notifications@github.com wrote:

I've setup the everything and homebridge runs. In the output, I get

[11/3/2016, 2:44:19 AM] Loaded plugin: homebridge-harmonyhub [11/3/2016, 2:44:22 AM] Registering platform 'homebridge-harmonyhub.HarmonyHub' [11/3/2016, 2:44:22 AM] --- [11/3/2016, 2:44:22 AM] Loaded config.json with 0 accessories and 1 platforms. [11/3/2016, 2:44:22 AM] --- [11/3/2016, 2:44:22 AM] Loading 1 platforms... [11/3/2016, 2:44:22 AM] [Harmony Hub] Initializing HarmonyHub platform... [11/3/2016, 2:44:23 AM] Loading 0 accessories... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

But none of my harmony hub activities are added. Is my hub not found? It's on, on the same IP range (using Raspberry PI which is connected via ethernet but the hub is on wifi although but are on the same router/network; could that have something to do with it?).

Thanks.

This is almost definitely a network broadcast issue, similar to https://github.com/KraigM/homebridge-harmonyhub/issues/50

I'd be guessing that your router does not forward broadcast traffic between the wifi and wired networks (some routers wont even broadcast between 2.4GHz & 5GHz) and direct IP connectivity has since been removed as per the readme.md

"In order to fix many connectivity issues, give faster responses, and add auto discovery, the discovery/connection systems wer greatly altered and integrated with one another. Given this, plus the fact that multi-hub support is built right into the platform, the ability to hard code the IP address of the hub in the config has been removed (for now). Eventually, we will likely reintegrate that feature in some way, but we will likely work on better, alternative solutions to unique cases as hard coding IP addresses is not a good long term solution. If you have one of these unique cases, feel free to write up an issue in GitHub or (preferably) submit a pull request with a better solution to your case."

you may have better luck if both homebridge & the harmony hub are on the same wifi network (and perhaps both locked to either 2.4GHz or 5GHz)

Cheers,

Anthony

alanhartless commented 7 years ago

Hi Anthony,

Thank you - ok so I tried using a wifi usb to connect my Pi to the same wifi network the hub is on ( (both 2.4GHz as I have the 5GHz on a separate SSID). Disconnected the ethernet cable from the PI and still no activities were found when I ran homebridge. Anyway I can debug this?

Thanks, Alan

RXM307 commented 7 years ago

perhaps your router is blocking broadcast between wifi clients, what model router do you have?

the only thing I can suggest is perform some tcpdumps on the Pi and see what if being sent and received

tcpdump -n "broadcast or multicast or host "

alanhartless commented 7 years ago

I have an apple airport time capsule. I'll try tcpdump-ing. Thanks.

alanhartless commented 7 years ago

No matter what I tried - I couldn't get the activities to show up. I ended up downgrading to 0.1.1 so I could define the IP. That worked. I guess some functionality is better than no functionality. Hopefully the option to define an IP will be added back to 0.2.x or I something is figured out for this to work.

sommo commented 7 years ago

i have the "next" issue, all correct (seems), homebridge running on raspberry pi (via cable) i can see the activies displayed on homebrudge startup, but i can't see them in any homekit ios app

djh1202 commented 7 years ago

I have the same issue as OP--"Loading 0 Accessories"; I rolled back to 0.1.1 but there I repeatedly have the ECONNRESET issue. I'm using an Airpot Express.

Any updates on when we'll be able to specifyy IP on 0.2.x ?

djrobx commented 7 years ago

I have the same problem also. The auto detect routine does not find my hub. The old version 0.1.1 with the IP hardcoded seems to work great.

It's also worth noting that my Harmony remote has no problem finding its hub, even if I connect to a separate AP connected over ethernet. So it seems there must be a better way to accomplish this. I personally have no issue with a hardcoded IP. I have my Harmony hub registered with a static entry in my DHCP server so I know it will always be on the same IP.

smartymanav commented 6 years ago

I am having the same issue, is downgrading the only option?