Skip to content

Commit

Permalink
1. Stop blocking Homebridge load if Nest authentication fails.
Browse files Browse the repository at this point in the history
2. Added documentation for Nest.FieldTest.Enable option.
  • Loading branch information
adriancable committed Apr 22, 2020
1 parent 4b7a145 commit 1ae8e46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# homebridge-nest
Nest plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the native Nest API. See what's new in [release 4.4.4](https://github.com/chrisjshull/homebridge-nest/releases/tag/v4.4.4).
Nest plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the native Nest API. See what's new in [release 4.4.6](https://github.com/chrisjshull/homebridge-nest/releases/tag/v4.4.6).

Integrate your Nest Thermostat (including Nest Temperature Sensors), Nest Protect, and Nest x Yale Lock devices into your HomeKit system. Both Nest Accounts (pre-August 2019) and Google Accounts are supported.

Expand Down Expand Up @@ -131,6 +131,7 @@ Set `"options"` in `config.json` to an array of strings chosen from the followin
* `"Protect.Disable"` - exclude Nest Protects from HomeKit
* `"Protect.MotionSensor.Disable"` - disable *MotionDetector* accessory for Nest Protects
* `"Lock.Disable"` - exclude Nest x Yale Locks from HomeKit
* `"Nest.FieldTest.Enable"` - set this option if you're using a Nest Field Test account (experimental)

By default, options set apply to all devices. To set an option for a specific device only, add `.device_id` to the corresponding `option`, where `device_id` is shown in the Homebridge logs, or in HomeKit itself as *Serial Number* in the Settings page for your device. For example, to disable one specific thermostat with serial number 09AC01AC31180349, add `"Thermostat.Disable.09AC01AC31180349"` to the `"options"` array.

Expand Down
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ class NestPlatform {

const conn = new NestConnection(this.config, this.log, verbose, fieldTestMode);

try {
await conn.auth();
if (await conn.auth()) {
return conn;
} catch(error) {
throw('Unable to connect to Nest service.', error);
} else {
throw('Unable to authenticate with Google/Nest.');
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
"prepublishOnly": "npm run lint",
"preversion": "npm run lint"
},
"version": "4.4.4",
"version": "4.4.6",
"warnings": [
{
"code": "ENOTSUP",
"required": {
"node": ">=7.0.0",
"homebridge": ">=0.2.5"
},
"pkgid": "[email protected].4"
"pkgid": "[email protected].6"
}
]
}

0 comments on commit 1ae8e46

Please sign in to comment.