Skip to content
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

HA-Bridge and V4.1 #107

Closed
pponce opened this issue May 4, 2017 · 8 comments
Closed

HA-Bridge and V4.1 #107

pponce opened this issue May 4, 2017 · 8 comments
Labels

Comments

@pponce
Copy link

pponce commented May 4, 2017

I believe 4.1 release broke my ability have my harmony activities that HA-Bridge exposes as lights.

I get this error when starting with a fresh config and letting homebridge hue find my ha-bridge "hue" hub.
[5/3/2017, 5:12:50 PM] 192.168.1.99: hue bridge request #1: get philipshue/config
[5/3/2017, 5:12:50 PM] 192.168.1.99: hue bridge http status 404

I get the same error when i use my old working user id and specify the host ip directly.
[5/3/2017, 5:18:43 PM] [HA-Bridge] 192.168.1.99: hue bridge request #1: get philipshue/config
[5/3/2017, 5:18:43 PM] [HA-Bridge] 192.168.1.99: hue bridge http status 404

any ideas?

@ebaauw ebaauw added the bug label May 4, 2017
@ebaauw
Copy link
Owner

ebaauw commented May 4, 2017

Oops, looks like I broke v0.4.1. I accidentally published a hack I needed to get deCONZ working. Will fix that asap.

I also started whitelisting bridges. You'll probably get an unknown bridge warning after the (first) fix. Please post that message here and I'll add the HA-Bridge.

@ebaauw
Copy link
Owner

ebaauw commented May 4, 2017

I accidentally published a hack I needed to get deCONZ working.

Note to self: I really don't know how I did that - it's in a commit after the release, which somehow got included in the npm package. The other file changed in that commit didn't make it to the npm package. Maybe I committed the change while npm publish was still busy?

@ebaauw
Copy link
Owner

ebaauw commented May 4, 2017

I also started whitelisting bridges. You'll probably get an unknown bridge warning after the (first) fix. Please post that message here and I'll add the HA-Bridge.

You already posted the HA-Bridge config in issue #45. It identifies itself with modelid BSB002, so homebridge-hue will think it's a regular v2 Hue bridge. No need to whitelist it separately.

@pponce, did HA-Bridge use the modelid BSB002 spontaneously, or did you configure that somewhere? If needed, I could recognise that it's no Philips Hue bridge by looking at the mac address (Philips mac addresses start with 00:17:88), but I think it's cleaner for HA-Bridge to show who/what it really is.

ebaauw added a commit that referenced this issue May 4, 2017
@ebaauw
Copy link
Owner

ebaauw commented May 4, 2017

Oops, looks like I broke v0.4.1.

Fixed in v0.4.22.

@pponce
Copy link
Author

pponce commented May 4, 2017

Thanks for looking into this.
With latest version i'm getting this error now.

with no host set or user name set:
[5/4/2017, 7:26:18 AM] 192.168.1.99: hue bridge request #1: get /config
[5/4/2017, 7:26:18 AM] 192.168.1.99: hue bridge http status 500

with proper configuration of host IP and last working user name:
[5/4/2017, 6:47:03 AM] [HA-Bridge] 192.168.1.99: hue bridge request #1: get /config
[5/4/2017, 6:47:03 AM] [HA-Bridge] 192.168.1.99: hue bridge http status 500

So something has changes but still getting an error.
let me know if i can run and any commands to get you more info,

@pponce
Copy link
Author

pponce commented May 4, 2017

Oh and BSB002 is what HA-Bridge appears to report spontaneously. I had nothing to do with that model ID.

@ebaauw
Copy link
Owner

ebaauw commented May 4, 2017

HTTP status 500 is an internal server error. Unlike the 4xx statuses, the 5xx statuses aren't caused by (shouldn't be reported because of) an invalid client request. Did you try and restart the HA-Bridge?

@pponce
Copy link
Author

pponce commented May 4, 2017

Ok. i'm back in business.
HA-Bridge had also recently added some security options. I upgraded homebridge-hue and ha-bridge together.
https://github.com/bwssytems/ha-bridge/wiki/Security-Configuration
HA-bridge now Included an enable link button option (default off) and an option to use or not use username and pass for hue api (default to not use HUE api username and pass).
I enabled both and all looks well now. The hue api user name and pass option not being on was my issue after you fixed homebridge-hue.

thanks!

@pponce pponce closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants