# Legacy Nest access

For Nest Protect device integration you can use the Legacy Nest tab. To gain access you need to provide two fields to the app. The fields are IssuTokenURI that will request a token from Google NEST and a Cookie that is associated with that Token. The two fields will be used by the app to mimic a browser session to NEST like you are being logged on to NEST.

The instructions below will set up this session in incognito mode of Chrome. When you are ready and auth is verified with the app, DO NOT LOGOUT of the session, just close the tab/browser.

If you do logout, the session will cease to exist in both the app as in the browser.

The most convenient way to copy the values across is to open Homey Developer page on <https://tools.developer.homey.app/tools/app-settings> .

### Instructons

* Open Chrome in incognito mode
* Allow cookies for 3rd parties.
* Open Developer Tools (CTRL-SHIFT-I)
* Click de Network tab, select **preserve log**&#x20;
* Type **issueToken** in the filter field
* Go to Home.nest.com and login with Google
* The development tools will show an entry with iframerpc. Click on the entry and under headers, general section, you will see a request url that starts with account.google.com. click right and copy value.&#x20;
* Paste the value in the app settings field **NEST Session Issue Token UR**I&#x20;
* Type **oauth2/iframe** in the filter field of the developer tools.
* There will be a number of  iframerpc calls, click on the bottom one.
* Below Headers, request headers you will find a field starting with **cookie** staan. Click ight and copy value.
* Paste it in the app settings field **NEST Session Cookie**&#x20;
* Click Save Session Fields
* Go to the Log and check if a message **auth() NEST Legacy Authentication successful**. appears. it might take a few seconds (press log to refresh).
* Do not logout!!!! Go to browser home page and disable cookies again, close the browser.

![](/files/KqoOJrWGahX3vGdL8F8v)

![](/files/KqoOJrWGahX3vGdL8F8v)

*

![](/files/UKVlrnDyItqGFh5kvc8q)

Select the Google account that is related to Nest

![](/files/avH8NVApNN9eAmmBInGY)

Click <mark style="background-color:blue;">ALLOW</mark>

![](/files/3EFRyg1BluPGboLU6NxU)

<mark style="background-color:green;">Click on the copy to clipboard icon</mark>

![](/files/YbPCdGgqaZ7EWNybBtWd)

<mark style="background-color:green;">Paste the code into the Homey Nest SDM app and</mark> <mark style="background-color:blue;">SAVE CODE</mark> the code.

![](/files/UKVlrnDyItqGFh5kvc8q)

#### Done with the access to Nest Legacy


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://martin-verbeek.gitbook.io/homey-google-nest-sdm/english-guide/app-setup/legacy-nest-access.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
