Nest plugin for HomeBridge
This repository contains the Nest plugin for homebridge that was previously bundled in the main homebridge
repository.
It is Strongly advised that you switch to the new API but it is not required at the moment. It will fall back to the old API, but no new development will be done on the old API.
Until an alternative is determined (like Nest Weave which hasn't been released yet or setting up a website for generating tokens specifically for HomeBridge-Nest), you will have to setup an developer account for Nest. Its a simple process and if you specify that it is for Individual, then you are auto approved (at least in my experience).
WARNING: Switching to the new API means it will show up as brand new device. This is due to the fact that the unofficial API used a different device id and we have no way to link it to the official cloud device id. This means any configurations, alarms, scenes, etc to which the Nest was associated will have need to be updated with the new Nest device.
Note: The name of the device will change as well. It matches the name displayed in the Nest app. In my case, I originally configured the Nest app so the the "Where" of my Nest was "Hallway" and I also added a label which was "Nest", so the display was "Hallway (Nest)". To fix the name to say "Nest", you can use the Nest app and blank out the "Label" and use the custom "Where" of "Nest". Anther option to fix the name is through HomeKit. HomeKit allows you to rename Accessories and Services, but it requires an app like Insteon+ that has the ability to change the name.
After that you will be FINALLY done (Huzzah!). If the token is working correctly, you no longer NEED the other three configs (clientId, clientSecret, and code) nor the original username and password from the legacy system (but you can keep them around if you wish, they will be ignored).
Configuration sample:
"platforms": [
{
"platform": "Nest",
"token" : "token will be generated upon first run of homebridge without a token",
"clientId": "developer Product ID",
"clientSecret": "developer Product Secret.",
"code": "your Pincode from Nest",
"username" : "username",
"password" : "password"
}
],
Fields:
"platform": Must always be "Nest" (required)
"token": The only (and final) authentication piece you need to use the new API (required for new api, after determined)
"clientId": Can be anything (required for new api, if token not yet determined)
"clientSecret": Can be anything (required for new api, if token not yet determined)
"code": Can be anything (required for new api if trying to determine token)
Legacy Fields: