Open vihanb opened 8 years ago
Okay, I ran it with homebridge -D
and I get this line now:
[6/14/2016, 11:31:40 PM] [NestFirebase] User null is logged in with custom
which doesn't seem good but then again, I don't see any auth error
I have the same error. This needs some investigation I think.
@vihanb @roffel Has it ever worked for either of you? If it has ever worked for you then yes we need to look into this further. If not, my guess is there is something missing in your setup. The only thing I can think is there there is something messed up with the nest dev account setup.
You can try removing all the auth info (token, clientId, clientSecret, code), but make sure to keep a copy of it somewhere so you can go back to it. Then use my HomeBridgeController app to authorize instead (single button click to do all 14 steps 😄). I have not added that as an alternative on the Nest setup yet because I only have 50 auths atm; I have to get my app reviewed by Nest to get more
I'm having the same issue. Has never worked for me. Tried using the HomeBridgeController app to use the one button click to authorize and got an authentication error stating, "Error: SecureChannelFailure (Unknown Secure Transport error `PeerHandshakeFail'.)"
Similar to @vihanb, mine authenticates just fine using the new API method via token, but just doesn't pull the devices. This isn't just the thermostat either. I also have a few protects and a nest cam.
I'm having the same exact problem. I noticed that your setup instructions say to "Enable Thermostat with read/write v4", but the current permission is API v5. Would that cause any issues?
I've had the exact same issue - no devices coming through. Also seeing the null
userId. If I rule out the home bridge completely and implement a raw client in JS using the web samples from Nest Developer documentation - I actually find that the root database request returns only metadata
and does not contain any structure
or devices
nodes. I've tinkered as far as I can with permissions, different accounts, different names and settings and I just cannot get the devices
node to appear. Possibly it's a Nest issue... Only thing I haven't tested is authorising against the Owner account in my family setup (my account is not the Owner) - which I hope to test soon.
I can confirm the secondary accounts on Nest Family do not seem to work and do not return any structures or devices. However, authorising against the Owner account gave me a token that now returns everything! Sweet 👍
I am having the same issue and do not have a Nest family account. Anyone find a fix?
And I'll add that I'm having the same issue. What's a Nest Family account? What's an Owner account? How do I fix this issue? Is the setup documentation up to date?
Is homebridge-nest able to discover Nest devices for anyone with a nest developer account created since September 15? What's the secret?
Here's what I discovered. I hope these instructions help someone, perhaps jonesf14:
You must first register your product (e.g., Thermostat) with Nest. The simplest way to do this is to install the Nest app on an iOS device. Follow the instructions for setup that it presents all the way through to adding your Nest devices. End result: Nest user account and a set of registered Nest devices. I used my developer account to signin to Nest when I came to that place in the setup instructions.
You can then restart homebridge and see that each of your Nest devices are discovered by the homebridge-nest platform plugin.
To restart homebridge on OS X, type these commands in a terminal window:
launchctl unload ~/Library/LaunchAgents/com.homebridge.server.plist
launchctl load ~/Library/LaunchAgents/com.homebridge.server.plist
You should then see entries like this in your homebridge log file:
[11/24/2016, 3:58:16 PM] Initializing Nest platform...
[11/24/2016, 3:58:16 PM] Fetching Nest devices.
[11/24/2016, 3:58:18 PM] [Harmony Hub] Fetching Logitech Harmony activities...
[11/24/2016, 3:58:18 PM] Software version for Family Room Thermostat is: 5.6-7
[11/24/2016, 3:58:18 PM] Temperature unit for Family Room Thermostat is: Fahrenheit
[11/24/2016, 3:58:18 PM] Current temperature for Family Room Thermostat is: 77 F
[11/24/2016, 3:58:18 PM] Current humidity for Family Room Thermostat is: 35%
[11/24/2016, 3:58:18 PM] Target temperature for Family Room Thermostat is: 72 F
[11/24/2016, 3:58:18 PM] Target heating for Family Room Thermostat is: Heating
[11/24/2016, 3:58:18 PM] Away for Family Room Thermostat is: 0
[11/24/2016, 3:58:18 PM] Initializing platform accessory 'Family Room Thermostat'...
Thanks for the response. My nest thermostat already is registered. I removed it and reinstalled it (on my iPhone) to make sure this wasn't the problem and I'm having the same issue.
I know this thread is a bit old, but for anyone new to this and just setting this up, I was having the exact same issue described above (init/fetching worked / no devices showing) only to find there was control character in the token, so worth a quick double check on that. Works fine now! :)
So I have two thermostats. One on the upper story, one downstairs. I've installed homebridge, and I'm on node LTS (v4.4.5). I've setup the API keys and all and I go and start homebridge and I get this:
(I've removed the timestamps)
It appears to be able to successfully connect to my Nest account but, no devices actually show up.
My config also appears to be correct: