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

Hanging at Fetching Nest devices. #125

Open
djfatal opened this issue May 12, 2017 · 32 comments
Open

Hanging at Fetching Nest devices. #125

djfatal opened this issue May 12, 2017 · 32 comments

Comments

@djfatal
Copy link

djfatal commented May 12, 2017

I started having trouble with the new API tonight. When I run homebridge it will hang at Fetching Nest devices. If I remove token from my config.json it will work in Legacy API.

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[5/11/2017, 11:32:53 PM] Loaded plugin: homebridge-nest
[5/11/2017, 11:32:54 PM] Registering platform 'homebridge-nest.Nest'
[5/11/2017, 11:32:54 PM] ---
[5/11/2017, 11:32:54 PM] Loaded config.json with 0 accessories and 1 platforms.
[5/11/2017, 11:32:54 PM] ---
[5/11/2017, 11:32:54 PM] Loading 1 platforms...
[5/11/2017, 11:32:54 PM] [Nest] Initializing Nest platform...
[5/11/2017, 11:32:54 PM] [Nest] Fetching Nest devices.

@dvd2000k
Copy link

Same issue here...

@PencilDH
Copy link

PencilDH commented May 12, 2017

Ditto -> stuck on fetching devices , crashed last night

Last time things like this happened was to do with nest, rather than the plugin, a short term fix was to fall back to legacy API, but i thought the plugin was supposed to be updated to be more robust to nest API tantrums???

/usr/local/lib/node_modules/homebridge-nest/node_modules/firebase/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/websocket_extensions.js:133
    this._pipeline.processIncomingMessage(message, callback, context);
                  ^

TypeError: Cannot read property 'processIncomingMessage' of undefined
    at instance.processIncomingMessage (/usr/local/lib/node_modules/homebridge-nest/node_modules/firebase/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/websocket_extensions.js:133:19)

@PencilDH
Copy link

PencilDH commented May 12, 2017

#110 #109 #106 ?? Seems like it's not crashing but just hanging now?

@julianrv
Copy link

For me it just hangs but it prevents homebridge from starting, perhaps it would be a good idea to implement some timeout to avoid this situation

@fafoulon
Copy link

Same problem for me, was crashing in the night, and now it's hanging

@luisiam
Copy link

luisiam commented May 12, 2017

Same issue. Now I have to remove the plugin temporarily

@PencilDH
Copy link

PencilDH commented May 12, 2017

Did anyone try to fall back to legacy API of now? I didn't have time to check it out yet?

Edit: Yes it works......

Do do this

  1. make a back-up copy of your config.json ,
  2. in original song file just delete:
   		"token" : "c.5ABsTpo88k5yfNIxZlh...",
   		
   		"clientId": "developer client id",
   		"clientSecret": "developer client secret.",
   		"code": "Pin Code",

You will get an error but the API will fallback to legacy and home bridge will be up and running with all nest controls working too

@Danno665
Copy link

Same issue here.
Resulting in installing everything from the ground up.... :)

I wanted to install a new configuration of Homebridge anyway.
Strange thing is, the beginning of the configuration with creating a token with pincode still works.

I guess it has to do something with the status of the Nest itself.
App of Nest is working just correctly.

@sleepyarmistice
Copy link

Running home bridge on an rpi, tried to go to legacy as described above to no effect.

@PencilDH
Copy link

PencilDH commented May 12, 2017

@sleepyarmistice I run rpi and it works .... did you thing say [5/12/2017, 12:12:34 PM] [Error: You did not specify {'token'} or {'clientId','clientSecret','code'}, one set of which is required for the new API] [5/12/2017, 12:12:34 PM] Falling back to legacy API. if not you didn't fall back to legacy...

@sleepyarmistice
Copy link

sleepyarmistice commented May 12, 2017 via email

@neutrl
Copy link

neutrl commented May 12, 2017

Ditto, same issue here. Even attempted to re-create the app on the Nest developer portal.

Legacy authorization still works fine.

@d3bing
Copy link

d3bing commented May 12, 2017

Same here...

@gerarddvb
Copy link

gerarddvb commented May 12, 2017

Same here, broke my setup.
Legacy works

@joe248
Copy link

joe248 commented May 12, 2017

Same issue starting last night. I don't think Homebridge itself is hanging because I'm still seeing log messages from my other devices, but trying to use the new Nest API causes all devices in the iOS Home app to show "No Response". Using the legacy auth for homebridge-nest works okay.

@Slepperpon
Copy link

Same problem here removed nest and all other platforms work just fine.

@djfatal
Copy link
Author

djfatal commented May 12, 2017

@PencilDH Yes the Legacy API is still working. Can't figure out why it hangs on the new API.

@kcharwood
Copy link

Same issue

@starlessblack
Copy link

Reverted to legacy mode for the time being. Any ideas on what the long-term fix.

@Gawls
Copy link

Gawls commented May 12, 2017

I'm tracking this thread as well as I have the same problems.

@gizbod
Copy link

gizbod commented May 12, 2017

Same issue, following

@starlessblack
Copy link

Anyone try regenerating the client token of the homebridge nest plugin?

@neutrl
Copy link

neutrl commented May 12, 2017

Anyone try regenerating the client token of the homebridge nest plugin?

I have, didn't seem to change anything. I just fell back to legacy for now.

@djfatal
Copy link
Author

djfatal commented May 12, 2017

I was actually using the camera's motion and smoke and co sensor with the new API. It was nice that when motion was detected I would get a notification with a camera image as well. But in legacy the only thing that works is the thermostat.

@safzal
Copy link

safzal commented May 12, 2017

it looks like this issue has been solved it working now...

@d3bing
Copy link

d3bing commented May 12, 2017

yup, revert to new API and back on track... guess it was Nest

@djfatal
Copy link
Author

djfatal commented May 12, 2017

Good to know, will try it when I get home tonight! Thanks @safzal

@fafoulon
Copy link

I activated it again, and it's also working for me now

@RobotLimeLtd
Copy link

Getting the same issue - legacy API works fine. Completely recreated a new product at developer.nest.com, generates token fine, but hands when trying to connect.

Is there a fix for this?

@Krocko
Copy link

Krocko commented Feb 7, 2018

Same for me. Has anyone a solution?

@chrisjshull
Copy link

OK, a couple of things I'd try:

  1. use my fork, it has a lot of fixes from people merged in: npm install -g "https://github.com/chrisjshull/homebridge-nest"
  2. run homebridge with debug logging: DEBUG=* homebridge -D
  3. I don't think this is the issue people are seeing, but it should be noted that the NEST API has a rate limit that will just reject commands for a while if you trigger it.

Let me know how that goes, and share whatever logging you get.

@RobotLimeLtd
Copy link

Somewhat embarassingly, I think it was option 3. from your list in my case. I left it a couple of days, and then tried again with my token, and homebridge started up fine, adding the Nest device.

I had had some spurious 2-factor auth text messages recently that seemed to indicate someone had tried to access my account which perhaps caused it to become locked.

I may try your fork out anyway, as I feel the plugin should handle this situation a little more gracefully.

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