1.4.1 • Published 6 years ago
homebridge-nest-schmittx v1.4.1
homebridge-nest
Nest plugin for HomeBridge
Disclaimer
This is a lightly modified fork for my personal use, all credit goes to KraigM.
Installation
- Install homebridge using: npm install -g homebridge
- Install this plugin using: npm install -g homebridge-nest-schmittx
- Update your configuration file. See sample-config.json snippet below.
Initial Setup
- Go to https://developer.nest.com
- Choose Sign In
- Use your normal account to sign in
- Fill in your info in 'Step 1'
- In 'Step 2' set:
- Company Name: Homebridge-Nest
- Company URL: https://github.com/schmittx/homebridge-nest
- Country: Your Country
- Size of Company: Individual
- Then just agree to the terms and submit
- Go to Products and create a new product
- Fill in:
- Product Name: Homebridge + your name (must be unique)
- Description: Open source project to provide HomeKit integration
- Categories: Home Automation
- Users: Individual
- Support URL: https://github.com/schmittx/homebridge-nest
- Redirect URL: LEAVE BLANK
- Permissions (minimum): Enable Away with read/write v2 Enable Camera with read/write v3 Enable Smoke+CO Alarm with read v5 Enable Structure with read/write v1 Enable Thermostat with read/write v6 Permission description: fill in anything
- Now you should have a product. Now locate the id/secret section on the right of your product's page
- Copy the Product ID to your HomeBridge config as the clientId in the Nest config
- Copy the Product Secret to your HomeBridge config as the clientSecret in the Nest config
- Navigate to the Authorization URL
- Accept the terms and copy the Pin Code to your HomeBridge config as the code in the Nest config
- Run HomeBridge once (do not include the token in the config at this time) and you should find a log that says something like "CODE IS ONLY VALID ONCE! Update config to use {'token':'c.5ABsTpo88k5yfNIxZlh...'} instead." Copy the c.5ABsTpo88k5yfNIxZlh... portion to your HomeBridge config as the token in the Nest config
- You should be able to restart HomeBridge and it should succeed with the new token.
After that you will be FINALLY done. 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
Configuration sample:
"platforms": [
{
"platform": "Nest",
"clientId": "Developer product ID",
"clientSecret": "Developer product secret",
"code": "Pin code generated from Nest",
"token": "Token will be generated upon first run of Homebridge without a token"
}
]