Skip to content

Commit

Permalink
0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Dec 30, 2024
1 parent 1786d23 commit 64d85fe
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 41 deletions.
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,21 @@ Copy the `custom_components/nest_protect` to your custom_components folder and r
The values of "issue_token" and "cookies" are specific to your Google Account. To get them, follow these steps (only needs to be done once, as long as you stay logged into your Google Account).

1. Open a Chrome/Edge browser tab in Incognito Mode (or clear your cookies).
2. Open Settings, select Privacy and Security, select Cookies and other site Data, select Allow all cookies
3. Open Developer Tools (View/Developer/Developer Tools).
4. Click on **Network** tab. Make sure 'Preserve Log' is checked.
5. In the **Filter** box, enter `issueToken`
6. Go to home.nest.com, and click **Sign in with Google**. Log into your account.
7. One network call (beginning with iframerpc) will appear in the Dev Tools window. Click on it.
8. In the Headers tab, under General, copy the entire Request URL (beginning with https://accounts.google.com). This is your _'issue_token'_ in the configuration form.
9. In the **Filter** box, enter `oauth2/iframe`
10. Several network calls will appear in the Dev Tools window. Click on the last iframe call.
11. In the **Headers** tab, under **Request Headers**, copy the entire cookie (include the whole string which is several lines long and has many field/value pairs - do not include the cookie: name). This is your _'cookies'_ in the configuration form.
12. Do not log out of home.nest.com, as this will invalidate your credentials. Just close the browser tab.
1. Allow third-party cookies in your browser settings to prevent the Nest website from entering a redirect loop. Follow these steps:

- **In Chrome**: Go to Settings, select Privacy and Security -> Third-party cookies. Enable "Allow third-party cookies."
- **In Edge**: Go to Settings, select Cookies and site permissions -> Manage and delete cookies and site data. Disable "Block third-party cookies."

1. Open Developer Tools (View/Developer/Developer Tools).
1. Click on **Network** tab. Make sure 'Preserve Log' is checked.
1. In the **Filter** box, enter `issueToken`
1. Go to home.nest.com, and click **Sign in with Google**. Log into your account.
1. One network call (beginning with iframerpc) will appear in the Dev Tools window. Click on it.
1. In the Headers tab, under General, copy the entire Request URL (beginning with https://accounts.google.com). This is your _'issue_token'_ in the configuration form.
1. In the **Filter** box, enter `oauth2/iframe`
1. Several network calls will appear in the Dev Tools window. Click on the last iframe call.
1. In the **Headers** tab, under **Request Headers**, copy the entire cookie (include the whole string which is several lines long and has many field/value pairs - do not include the cookie: name). This is your _'cookies'_ in the configuration form.
1. Do not log out of home.nest.com, as this will invalidate your credentials. Just close the browser tab.

## Advanced

Expand Down
30 changes: 14 additions & 16 deletions custom_components/nest_protect/manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"domain": "nest_protect",
"name": "Nest Protect",
"codeowners": [
"@imicknl"
],
"config_flow": true,
"dhcp": [
{
"macaddress": "CCA7C1*"
}
],
"documentation": "https://github.com/imicknl/ha-nest-protect",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/imicknl/ha-nest-protect/issues",
"requirements": [],
"version": "0.4.0b9"
"domain": "nest_protect",
"name": "Nest Protect",
"codeowners": ["@imicknl"],
"config_flow": true,
"dhcp": [
{
"macaddress": "CCA7C1*"
}
],
"documentation": "https://github.com/imicknl/ha-nest-protect",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/imicknl/ha-nest-protect/issues",
"requirements": [],
"version": "0.4.0"
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"account_link": {
"description": "Unfortunately, Google does not provide an official API for this integration. To get it working, you will need to manually retrieve your issue_token and cookies by following the instructions in the integration README (https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies). Please paste them below.",
"description": "Unfortunately, Google does not provide an official API for this integration. To get it working, you will need to manually retrieve your issue_token and cookies by following the instructions in the integration README (https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies). Please paste them below.",
"data": {
"issue_token": "[%key:common::config_flow::data::issue_token%]",
"cookies": "[%key:common::config_flow::data::cookies%]"
Expand Down Expand Up @@ -36,4 +36,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"account_link": {
"description": "Unfortunately, Google does not provide an official API for this integration. To get it working, you will need to manually retrieve your issue_token and cookies by following the instructions in the integration README (https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies). Please paste them below.",
"description": "Unfortunately, Google does not provide an official API for this integration. To get it working, you will need to manually retrieve your issue_token and cookies by following the instructions in the integration README (https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies). Please paste them below.",
"data": {
"issue_token": "Issue_token",
"cookies": "Cookies"
Expand All @@ -36,4 +36,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations_legacy/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"account_link": {
"description": "Bitte holen Sie sich Ihr Issue_Token und Ihre Cookies gemäß den Anweisungen in der [Integrations-README](https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies) und fügen Sie sie unten ein.",
"description": "Bitte holen Sie sich Ihr Issue_Token und Ihre Cookies gemäß den Anweisungen in der [Integrations-README](https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies) und fügen Sie sie unten ein.",
"data": {
"issue_token": "issue_token",
"cookies": "cookies"
Expand All @@ -42,4 +42,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations_legacy/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"account_link": {
"description": "Please retrieve your issue_token and cookies manually, following the instructions in the [integration README](https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies) and paste them below.",
"description": "Please retrieve your issue_token and cookies manually, following the instructions in the [integration README](https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies) and paste them below.",
"data": {
"issue_token": "issue_token",
"cookies": "cookies"
Expand All @@ -42,4 +42,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations_legacy/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"account_link": {
"description": "Veuillez récupérer votre issue_token et vos cookies en suivant les instructions du fichier [README](https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies) d'intégration et collez-les ci-dessous.",
"description": "Veuillez récupérer votre issue_token et vos cookies en suivant les instructions du fichier [README](https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies) d'intégration et collez-les ci-dessous.",
"data": {
"issue_token": "issue_token",
"cookies": "cookies"
Expand All @@ -42,4 +42,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations_legacy/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"account_link": {
"description": "Verkrijg uw issue_token en cookies handmatig, volgens de instructies in de [README](https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies) en plak ze hieronder.",
"description": "Verkrijg uw issue_token en cookies handmatig, volgens de instructies in de [README](https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies) en plak ze hieronder.",
"data": {
"issue_token": "issue_token",
"cookies": "cookies"
Expand All @@ -42,4 +42,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/nest_protect/translations_legacy/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"account_link": {
"description": "Obtenha seu issue_token e cookies seguindo as instruções no [LEIA-ME](https://github.com/iMicknl/ha-nest-protect/tree/beta#retrieving-issue_token-and-cookies) de integração e cole-os abaixo.",
"description": "Obtenha seu issue_token e cookies seguindo as instruções no [LEIA-ME](https://github.com/iMicknl/ha-nest-protect/tree/#retrieving-issue_token-and-cookies) de integração e cole-os abaixo.",
"data": {
"issue_token": "issue_token",
"cookies": "cookies"
Expand All @@ -42,4 +42,4 @@
}
}
}
}
}

0 comments on commit 64d85fe

Please sign in to comment.