This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Manual Authentication
Brandon McFarlin edited this page Aug 31, 2020
·
19 revisions
The values of "issueToken"
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).
- If the plugin is installed globally, run
homebridge-nest-cam login
, otherwise, ensure that you are in the plugin's root directory and runnode dist/login.js
. - Login to your Nest account.
- Copy the output to your
config.json
.
Notes:
- If your account has 2 factor authentication, use the
-h
flag to start the chromium browser in headful mode. - If you are unable to open the chromium browser, you may need to install it manually and try again.
- Open a Chrome browser tab in Incognito Mode (or clear your cache).
- Open Developer Tools (View/Developer/Developer Tools).
- Click on 'Network' tab. Make sure 'Preserve Log' is checked.
- In the 'Filter' box, enter
issue
. - Go to
home.nest.com
, and click 'Sign in with Google'. Log into your account. - Click on the last
iframerpc
call. - In the Headers tab, under General, copy the entire
Request URL
(beginning withhttps://accounts.google.com
, ending withnest.com
). This is your"issueToken"
inconfig.json
. - 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). This is your"cookies"
inconfig.json
. - Do not log out of
home.nest.com
, as this will invalidate your credentials. Just close the browser tab.
Notes:
- If you are using this guide to authenticate homebridge-nest as well, your
"apiKey"
will be the same as the previous value. It should never change. Simply copy the new"issueToken"
and"cookies"
into the old ones and leave"apiKey"
alone, and it should work.