diff --git a/README.md b/README.md index 6c7a834..8e304ac 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/custom_components/nest_protect/manifest.json b/custom_components/nest_protect/manifest.json index 64a7b9f..b754883 100644 --- a/custom_components/nest_protect/manifest.json +++ b/custom_components/nest_protect/manifest.json @@ -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" } diff --git a/custom_components/nest_protect/strings.json b/custom_components/nest_protect/strings.json index aadbf00..f4283e4 100644 --- a/custom_components/nest_protect/strings.json +++ b/custom_components/nest_protect/strings.json @@ -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%]" @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations/en.json b/custom_components/nest_protect/translations/en.json index ebcfa94..6b8d0f8 100644 --- a/custom_components/nest_protect/translations/en.json +++ b/custom_components/nest_protect/translations/en.json @@ -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" @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations_legacy/de.json b/custom_components/nest_protect/translations_legacy/de.json index e10472d..202f896 100644 --- a/custom_components/nest_protect/translations_legacy/de.json +++ b/custom_components/nest_protect/translations_legacy/de.json @@ -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" @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations_legacy/en.json b/custom_components/nest_protect/translations_legacy/en.json index 0b59794..d386682 100644 --- a/custom_components/nest_protect/translations_legacy/en.json +++ b/custom_components/nest_protect/translations_legacy/en.json @@ -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" @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations_legacy/fr.json b/custom_components/nest_protect/translations_legacy/fr.json index b27216c..ba6773e 100644 --- a/custom_components/nest_protect/translations_legacy/fr.json +++ b/custom_components/nest_protect/translations_legacy/fr.json @@ -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" @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations_legacy/nl.json b/custom_components/nest_protect/translations_legacy/nl.json index e0abd3a..6377d4c 100644 --- a/custom_components/nest_protect/translations_legacy/nl.json +++ b/custom_components/nest_protect/translations_legacy/nl.json @@ -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" @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/custom_components/nest_protect/translations_legacy/pt-BR.json b/custom_components/nest_protect/translations_legacy/pt-BR.json index f2df9cf..628cc48 100644 --- a/custom_components/nest_protect/translations_legacy/pt-BR.json +++ b/custom_components/nest_protect/translations_legacy/pt-BR.json @@ -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" @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +}