Skip to content

Commit

Permalink
Doc updates
Browse files Browse the repository at this point in the history
* Remove references to Nest auth since it's no longer working for this
integration
* Remove confusing reference to the no longer stable cookie prefix
  • Loading branch information
mattsch committed May 29, 2020
1 parent d0d2325 commit c5974ba
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ will never be as reliable as the original API
## Drawbacks

- Tested with a single thermostat, I have no other devices to test with
- Camera integration is untested by me
- Nest Protect integration is untested by me
- Nest could change their webapp api at any time, making this defunct (this has
happened before, see <https://github.com/USA-RedDragon/badnest/issues/67>)

Expand All @@ -36,32 +34,6 @@ The camera's region is one of `us` or `eu` depending on your region.
If you're not in the US or EU, you should be able to add your
two-character country code, and it should work.

### Example configuration.yaml - When you're not using the Google Auth Login

Google recently introduced reCAPTCHA when logging to Nest. That means username
and password cannot be used directly any more. Instead, you have to obtain
`user_id` and `access_token` for your account by logging in manually. To do that,
open developer tools in your browser, switch to the "Network" tab, log in to Nest
and look for the request similar to `https://home.nest.com/session?_=1578693398448`.
You will find `user_id` and `access_token` in the response to the request.

```yaml
badnest:
user_id: 11111
access_token: !secret nest_access_token
region: us

climate:
- platform: badnest
scan_interval: 10

camera:
- platform: badnest

sensor:
- platform: badnest
```

### Example configuration.yaml - When you are using the Google Auth Login

```yaml
Expand Down Expand Up @@ -100,9 +72,9 @@ you stay logged into your Google Account).
8. In the 'Filter' box, enter `oauth2/iframe`
9. Several network calls will appear in the Dev Tools window. Click on the last `iframe` call.
10. In the Headers tab, under Request Headers, copy the entire `cookie`
(beginning `OCAK=...` - **include the whole string which is several lines
long and has many field/value pairs** - do not include the `cookie:` name).
This is your `"cookie"` in `configuration.yaml`.
( **include the whole string which is several lines long and has many
field/value pairs** - do not include the `cookie:` name). This is your
`"cookie"` in `configuration.yaml`.

## Notes

Expand Down

0 comments on commit c5974ba

Please sign in to comment.