{"id":713,"date":"2020-02-11T22:28:51","date_gmt":"2020-02-12T04:28:51","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=713"},"modified":"2020-02-11T22:28:51","modified_gmt":"2020-02-12T04:28:51","slug":"obtain-nest-access_token","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=713","title":{"rendered":"Obtain Nest access_token"},"content":{"rendered":"<p>Thanks to <a href=\"https:\/\/github.com\/chrisjshull\/homebridge-nest\/issues\/195\">DJBenson, who posted the instructions below<\/a>:<\/p>\n<p>Log in to <a href=\"https:\/\/home.nest.com\">https:\/\/home.nest.com<\/a> with your credentials then browse to <a href=\"https:\/\/home.nest.com\/session\">https:\/\/home.nest.com\/session<\/a> in the same tab, you will see a JSON object of your session. Look for the string enclosed in the quotes after &#8220;access_token&#8221; and copy that to the clipboard (copy the full string between the two quotes).<\/p>\n<p>It looks something like this:<\/p>\n<p>{&#8220;2fa_state&#8221;:&#8221;none&#8221;,&#8221;access_token&#8221;:&#8221;REDACTED&#8221;&#8230;<\/p>\n<p>In your Homebridge config.json, remove the email and password fields and create a new parameter called &#8220;access_token&#8221; like such:<\/p>\n<p><code>    {<br \/>\n        \"platform\": \"Nest\",<br \/>\n        \"access_token\": \"***REDACTED***,<br \/>\n        \"options\": [<br \/>\n            \"HomeAway.AsOccupancySensor\",<br \/>\n            \"Protect.MotionSensor.Disable\"<br \/>\n        ]<br \/>\n    },<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to DJBenson, who posted the instructions below: Log in to https:\/\/home.nest.com with your credentials then browse to https:\/\/home.nest.com\/session in the same tab, you will see a JSON object of your session. Look for the string enclosed in the quotes &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=713\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=713"}],"version-history":[{"count":1,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions"}],"predecessor-version":[{"id":714,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions\/714"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}