-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple host configuration #45
Comments
here is my -D output when trying to get HA-bridge working. I created a second user and ran a second instance of homebrige with only the hue plugin configured. -D ourput
[1/13/2017, 12:52:42 PM] Homebridge is running on port 51827. Config.json "bridge": { "accessories": [ "platforms": [ |
Here's the initial, unauthenticated GET
Looks like my fear that HA-Bridge wouldn't support this is ungrounded: homebridge-hue has received and understood the response (it found the bridge name, type and api version):
However, when it trying the authenticated GET
Note that homebridge-hue doesn't log the full path with the request, not to reveal the username in the log output. It should be GET As homebridge-hue doesn't get the bridge state, it cannot find any lights, and only exposes the accessory for the bridge:
Could you try:
And see if that returns a 404 as well? And without the trailing slash? |
v0.1.10 supports multiple values for |
Tried curl http://192.168.1.99/api/961f615166664b86a5803b75d0db6de0/ Also tested the multiple host setup. seems to be working! |
http://192.168.1.99/api/961f615166664b86a5803b75d0db6de0/ returned nothing i get a valid response this was my config.json for when i used homebridge-philipshue |
I didn't know this was possible until I read your other post, but in that case, you need to specify two platform objects for homebridge-hue, with different settings. I did a quick check and homebridge seems to like this, but I'm not sure if this is intentional or accidental. For all intents and purposes, the two platform entries act as if they are different plugins. homebridge instantiates two different Be mindful of the 99 bridges accessories HomeKit limit (see Caveats), as homebridge-hue only checks per
Did you try Note that the username you specified in config.json,
|
just for kicks i started over and deleted the username i had for the ha-bridge. used the multiple host option and this was what homebridge returned. "platforms": [ however when i use curl when i run with this user |
oh and same thing happens with my-homebridge as username. |
Looks like, unlike the real Hue bridge, HA-Bridge chokes on the the trailing slash Could you try v0.1.12, that version should issue a GET Note that now the username created for homebridge-hue is in the HA-Bridge config whitelist. |
nice! Now i need to remember how to make homebrigde appear again when searching for the accessory from the homekit apps. |
Ok confirmed i see all the harmony activities via ha bridge. Perhaps give the option of not exposing the "philips hue" bridge? |
spoke a little too soon about the harmony activities working via ha-bridge. However when i try to actually turn on my apple tv activity i get errors. Here are the relevant errors i get. [1/14/2017, 8:26:04 PM] [Philips Hue 2] Watch Apple TV: homekit power changed from 1 to true |
You're using a HomeKit app that uses values What is weird: apparently, your app allows you to turn on the "light", while it's already on. Did you try any other HomeKit apps?
It looks like homebridge-hue is communicating with the HA-Bridge alright, but the HA-Bridge doesn't accept the command to turn on the Watch Apple TV "light". The error number (6) and corresponding message (Should not get here, no harmony hub available) are returned by HA-Bridge. Maybe this is because the "light" is already on? Otherwise, I'm afraid I cannot help you here. Can you control the Watch Apple TV "light" from the Hue app, when connected to the HA-Bridge?
On the next heartbeat, homebridge-hue reads the value from the
Again, your app allows you to turn the "light" on, while it's already on. |
Thanks for your support. I use a combination of the Matthias' Home app and the apple built in Home app. But i'm good now with my multiple bridge setup (HA-bridge and Philips Hue bridge). I didn't end up using the multiple host parameter and went with the double platform config in my config.json. Had to because i needed different settings for each hub/bridge. |
Yeah, that would try and turn the light on while it's already on.
Today it only supports dumping the bridge state on Identify (see Troubleshooting in the README) and dynamically setting the heartrate (as of v0.1.8). With dynamic platform accessories (see issue #4), it will be used instead of config.json to store the username and configuration parameters per bridge.
I appreciate that, and I'm glad that it works out for you. I still fear it's accidental rather than intentional, though. It might break when I'll be moving to dynamic platform accessories. However, one of the reasons to use these is being able to store settings persistently in the bridge accessory, dynamically settable from HomeKit, rather than statically from config.json. |
Sounds like with dynamic settings configured from homekit i'd be able to go with one platform setup in config.json and change my settings for exposing only non philips hue bulbs, on or off per bridge. |
I'm attempting to connect multiple bridges using Homebridge-hue. One is an HA-Bridge
https://github.com/bwssytems/ha-bridge
This emulates a hue bridge and exposes among other things harmony hub activities to homekit as "lights".
The other bridge is a real hue bridge 2.0.
The problem is that HA-Bridge does not identify itself to the meethue portal. This means i need to specify the host parameter. But since i have two bridges i'd then need to specify two hosts.
This would avoid the need for a second instance of homebridge to be used.
I'm sure that perhaps others with multiple real bridges might find it useful to just specify the host ip's as well.
The text was updated successfully, but these errors were encountered: