KraigM / homebridge-harmonyhub

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

Multiple Hubs #6

Open jer78 opened 8 years ago

jer78 commented 8 years ago

Not sure where else to ask this question but is there a way to add multiple harmony hubs? I have 2 in separate rooms and would love to have both working with HomeKit. Thanks for this great plugin! Really enjoying it!

KraigM commented 8 years ago

This is not currently supported, but I think you are the third or fourth person to ask this week so its obviously a needed feature :-)

KraigM commented 8 years ago

For right now you can hard code one ip_address and it will work for just that hub

jer78 commented 8 years ago

Thanks! I do have it working for one and it works very well. Looking forward to multiple hubs :) Keep up the great work!!!

EnigmaFx commented 8 years ago

manually assign an ip and a different name to each hub and it works with out a hitch Confirmed and tested ---> http://d.pr/i/17Jb9

EnigmaFx commented 8 years ago

FYI The config File chould look something like this ---> http://d.pr/i/fyNE <---

KraigM commented 8 years ago

Has issues if you have the same activity name for multiple hubs (i.e. "Watch TV" on more then one hub). Also if the IP Address changes.

Since this plugin uses mdns (aka bonjour or zeroconf) under the hood, it should be possible to auto setup the multiple hubs, as well as take care of loss of connection and IP changes. The current problem that would need to be delete with is the fact that we cannot add/remove accessories after it has already started (per @nfarina)

dustindclark commented 8 years ago

@KraigM , can you publish the package with this enhancement? Thanks.

KraigM commented 8 years ago

@dustindclark to my knowledge, no one has implemented this yet.

dustindclark commented 8 years ago

@KraigM , my bad...saw the closed duplicate issue and mistook it for a fix.

asrusch commented 8 years ago

Definitely add me to the multiple-hubs wishlist.

xwave commented 8 years ago

Love the work so far, multiple hub support would be amazing.

KraigM commented 8 years ago

In the next version (0.2.0) this is included and handled much more gracefully (compared to registering the platform multiple times). It is currently in alpha. If you wish to try it out (keeping in mind that it is a prerelease) you can upgrade to the alpha version using: npm install -g homebridge-harmonyhub@0.2.0-alpha

brentratliff commented 8 years ago

I installed 0.2.0-alpha. Do you have a sample config.json for the changes? I didn't see the 0.2.0 branch in the repo.