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

Error when register #13

Closed
emmtte opened this issue Jul 8, 2016 · 15 comments
Closed

Error when register #13

emmtte opened this issue Jul 8, 2016 · 15 comments

Comments

@emmtte
Copy link

emmtte commented Jul 8, 2016

hue register
please go and press the link button on your base station
failed to pair to Hue Base Station 192.168.0.12

/usr/local/lib/node_modules/hue-cli/hue-cli.js:251
        throw err;
        ^
Error
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/helpers.js:7:22)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/Hue.js:5:20)
    at Module._compile (module.js:541:32)
@Baloobear
Copy link

Baloobear commented Jul 13, 2016

+1

I have the same problem. It's impossible to register the hue-cli at the hue bridge. I have the current round-edged box-shaped bridge (and registering other apps worked fine, so far).

$ hue config
{
  "name": "Philips hue",
  "swversion": "01033370",
  "apiversion": "1.13.0",
  "mac": "xx:xx:xx:xx:xx:xx",
  "bridgeid": "<id>",
  "factorynew": false,
  "replacesbridgeid": null,
  "modelid": "BSB002"
}

(I removed the mac and the bridgeid, of course.)

I use node v4.4.7 (LTS).

@pieshop
Copy link

pieshop commented Jul 13, 2016

+1

Just upgraded to the second version of the bridge (homekit)

$hue search : finds the bridge ok.
$hue config : "code": "ETIMEDOUT"
$hue --host xxx.xxx.xxx.xxx register : returns

please go and press the link button on your base station
failed to pair to Hue Base Station xxx.xxx.xxx.xxx

/Users/stephenhamilton/.npm-global/lib/node_modules/hue-cli/hue-cli.js:251
throw err;
^
Error
at Object. (/Users/stephenhamilton/.npm-global/lib/node_modules/hue-cli/node_modules/hue.js/lib/helpers.js:7:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/stephenhamilton/.npm-global/lib/node_modules/hue-cli/node_modules/hue.js/lib/Hue.js:5:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

@jaredpalmer
Copy link

+1

@mave007
Copy link

mave007 commented Aug 5, 2016

same problem here.

One thing to notice is that I have replaced the old bridge (round) with the squared new one and
hue config shows that the bridge have been replaced.

$ hue config
{
  "name": "Hue bridge mave ",
  "swversion": "01033989",
  "apiversion": "1.14.0",
  "mac": "xxxxxxxxxxxxxxx",
  "bridgeid": "xxxxxxxxxxxxxA1",
  "factorynew": false,
  "replacesbridgeid": "xxxxxxxxxxxxxxxCA",
  "modelid": "BSB002"
}

Still not able to register

/usr/local/lib/node_modules/hue-cli/hue-cli.js:251
        throw err;
        ^
Error
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/helpers.js:7:22)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/Hue.js:5:20)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)

@niklasR
Copy link

niklasR commented Aug 20, 2016

+1 - with the old bridge.

@pieshop
Copy link

pieshop commented Aug 21, 2016

I actually found I was already registered.

Once I did hue -H xx.xx.xx.xx config I could see the config - it was defaulting to the old ip and so erroring.

So I did hue -host xx.xx.xx.xx --save, which saved the new ip in the config file, and from there 'hue lights' and other commands worked fine.

@pieshop
Copy link

pieshop commented Aug 21, 2016

As a side note - when I switched the bridge the only way I could get the transfer to work was to use a new dhcp assigned ip address!

@mattbucci
Copy link
Contributor

fixed by #14

@Baloobear
Copy link

@bahamas10 will u plz merge the pull request(s)?! thanks.

@bahamas10
Copy link
Owner

@Baloobear plz give me more than 8 hours to respond! :p

I only have the old bridge, so I will be limited to testing the new bridge sometime this weekend when I go to my friends house who has it himself.

My comments to the pr by @mattbucci will be that thread

@TwizzyDizzy
Copy link

TwizzyDizzy commented Sep 15, 2016

Have the new bridge here, so could provide testing if needed.

Cheers
Thomas

@dopeghoti
Copy link

Same problem here on a fresh install with a first-gen bridge:

$ hue -H 192.168.x.y register
please go and press the link button on your base station
failed to pair to Hue Base Station 192.168.x.y

/usr/local/lib/node_modules/hue-cli/hue-cli.js:251
        throw err;
        ^
Error
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/helpers.js:7:22)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/hue-cli/node_modules/hue.js/lib/Hue.js:5:20)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)

@TwizzyDizzy
Copy link

Please refer to #14. This issue has recently been fixed by @mattbucci and awaits merging into master by @bahamas10.

Cheers
Thomas

@TwizzyDizzy
Copy link

Hey @ManuCart,

please test with the latest version from npm and close this issue as it should be fixed by the PR mentioned above.

Cheers
Thomas

@emmtte
Copy link
Author

emmtte commented Sep 22, 2016

Yes!!!! Working
Thanks you all for help

@emmtte emmtte closed this as completed Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants