chrisjshull / homebridge-nest

Nest plugin for HomeBridge
700 stars 112 forks source link

Homebridge configuration rejected #562

Closed Coderinsightmaven closed 2 years ago

Coderinsightmaven commented 2 years ago

Hello, I'm currently trying to link my Google account for my nest stuff with the homebridge plugin. Everytime I run the login.js script I click the generated link, then get my auth code. Then I paste it in there then I get my refresh token. Upon receiving my refresh token I put it into the nest homebridge plugin I get the error indicated below. I don't think I'm doing anything wrong as I am using the GUI and the script for getting this as recommended in the guide here but I am not able to get it working.

Auth failed: access token specified in Homebridge configuration rejected [9/10/2022, 12:20:54 PM] [Nest] Unable to authenticate with Google/Nest. [9/10/2022, 12:20:54 PM] [Nest] NOTE: Because we couldn't connect to the Nest service, your Nest devices in HomeKit will not be responsive.

Coderinsightmaven commented 2 years ago

Here is my config from my homebridge plugin aswell.

Coderinsightmaven commented 2 years ago

{ "name": "Nest", "refreshToken": "1//0fa7rAtSZXqlGCgYIARAAGA8SNwF-L9IrsaKlrhIJDs_6ycUi1TkVmIvF1XktFTQWosHDPuCTiZAg7ho1o2IZzeaiJ5Qp8m_ISDs", "options": [ "Nest.FieldTest.Enable" ], "_bridge": { "username": "0E:9A:68:42:31:7D", "port": 55048 }, "platform": "Nest" }

adriancable commented 2 years ago

If using an FT account you need to generate the token with node login.js -ft. Sorry this isn't clear in the docs - I will update.

Question: are Nest FT accounts still in active use i.e. any reason to continue using them? I'm thinking of removing this feature because I don't have an FT account, so don't have any easy way to test it and address bit rot over time. But want to hear your feedback.

Coderinsightmaven commented 2 years ago

Ohhh there we go it works now I removed the -ft flag and no more errors. Thanks for responding so quickly!