New Nest Home integration development (pledged 260Euro)

I am doing an overhaul on the setup part (making it a bit more less error prone and simpler at the same time) and Fixing some issues before publishing outside of the community store.

Hi,

is a beginner at this
have tried and do this

Install the app and start configure app
Create a Google cloud project
Create the credentials for your cloud project
Enable APIs for your cloud project
Create the Device Access project

Google Nest SDM
Select the devices you want to add
403 Forbidden

What have I done wrong ?

try and add my doorbell!

will there be support for Nest fire alarms?

Could you do a logout and login again in the app. And paste a piece of the log after this.

Google GCP Google Nest Log
ENABLE OAUTH2 DEBUG INFO
2021-04-27 23:31:32 Create Cloud problem Error: 403 Forbidden at NestOAuth2Client.onHandleNotOK (/node_modules/homey-oauth2app/lib/OAuth2Client.js:616:17) at NestOAuth2Client.onHandleResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:592:28) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async NestOAuth2Client.onRequestResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:532:20) { status: 403, statusText: ‘Forbidden’ }
2021-04-27 23:31:31 login() → authenticated
2021-04-27 23:31:31 login() → received OAuth2 code
2021-04-27 23:31:00 login() → created new temporary OAuth2 client
2021-04-27 23:31:00 login() → no existing OAuth2 client available

I was logget out, last time i tried from https://my.homey.app/ i got an pop up to log in

2021-04-27 22:16:25 [Driver:doorbell] Pair Session Disconnected
2021-04-27 22:16:14 [Driver:doorbell] onPairListDevices()
2021-04-27 22:14:04 [Driver:doorbell] Pair Session Disconnected
2021-04-27 22:06:44 [Driver:doorbell] onPairListDevices()
2021-04-27 22:06:42 Deleting session default 8732b810-8944-4886-aced-5e7e277f3cd8…
2021-04-27 22:06:42 [Driver:doorbell] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:54:13 setHomeyWebhook() → created webHook
2021-04-27 21:54:13 [Driver:thermostat] onOAuth2Init() → success
2021-04-27 21:54:13 [Driver:thermostat] onOAuth2Init()
2021-04-27 21:54:13 [Driver:hub] onOAuth2Init() → success
2021-04-27 21:54:13 [Driver:hub] onOAuth2Init()
2021-04-27 21:54:13 [Driver:doorbell] onOAuth2Init() → success
2021-04-27 21:54:13 [Driver:doorbell] onOAuth2Init()
2021-04-27 21:54:13 [Driver:camera] onOAuth2Init() → success
2021-04-27 21:54:13 [Driver:camera] onOAuth2Init()
2021-04-27 21:54:13 Google Nest SDM 3.0.0 has initialised.
2021-04-27 21:54:13 setOAuth2ConfigNest() Set Nest Device Access Config
2021-04-27 21:54:13 capturing stderr
2021-04-27 21:54:12 capturing stdout
2021-04-27 21:51:03 App unload called, save logs
2021-04-27 21:47:36 [Driver:doorbell] Pair Session Disconnected
2021-04-27 21:47:33 [Driver:doorbell] onPairListDevices()
2021-04-27 21:47:31 [Driver:doorbell] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:37:53 [Driver:doorbell] onPairListDevices()
2021-04-27 21:37:51 [Driver:doorbell] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:36:53 [Driver:doorbell] Pair Session Disconnected
2021-04-27 21:36:44 [Driver:doorbell] onPairListDevices()
2021-04-27 21:36:42 [Driver:doorbell] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:14:56 [Driver:hub] Pair Session Disconnected
2021-04-27 21:14:53 [Driver:hub] onPairListDevices()
2021-04-27 21:14:51 [Driver:hub] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:14:32 [Driver:camera] Pair Session Disconnected
2021-04-27 21:14:19 [Driver:camera] onPairListDevices()
2021-04-27 21:14:18 [Driver:camera] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:14:14 [Driver:doorbell] Pair Session Disconnected
2021-04-27 21:14:01 [Driver:doorbell] onPairListDevices()
2021-04-27 21:13:59 [Driver:doorbell] Multi-Session disabled. Selected 8732b810-8944-4886-aced-5e7e277f3cd8 as active session.
2021-04-27 21:13:05 Create Cloud problem Error: 403 Forbidden at NestOAuth2Client.onHandleNotOK (/node_modules/homey-oauth2app/lib/OAuth2Client.js:616:17) at NestOAuth2Client.onHandleResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:592:28) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async NestOAuth2Client.onRequestResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:532:20) { status: 403, statusText: ‘Forbidden’ }
2021-04-27 21:13:04 login() → authenticated
2021-04-27 21:13:03 login() → received OAuth2 code
2021-04-27 21:11:25 login() → created new temporary OAuth2 client
2021-04-27 21:11:25 login() → no existing OAuth2 client available
2021-04-27 21:11:25 setOAuth2ConfigNest() Set Nest Device Access Config
2021-04-27 21:11:25 GCPClientId 907164674258-uuh2bqcm8p07j6vtvcn182eqj1ki1m42.apps.googleusercontent.com
2021-04-27 21:11:25 GCPProjectId My Project 22226 Homey
2021-04-27 21:11:25 SDMTopicId projects/sdm-prod/topics/enterprise-6fe6b410-8915-4e2e-98e0-63fab3f3cffa
2021-04-27 21:11:25 SDMProjectId 6fe6b410-8915-4e2e-98e0-63fab3f3cffa
2021-04-27 21:11:25 New settings:
2021-04-27 17:10:12 setHomeyWebhook() → created webHook
2021-04-27 17:10:12 [Driver:thermostat] onOAuth2Init() → success
2021-04-27 17:10:12 [Driver:thermostat] onOAuth2Init()
2021-04-27 17:10:12 [Driver:hub] onOAuth2Init() → success
2021-04-27 17:10:12 [Driver:hub] onOAuth2Init()
2021-04-27 17:10:12 [Driver:doorbell] onOAuth2Init() → success
2021-04-27 17:10:12 [Driver:doorbell] onOAuth2Init()
2021-04-27 17:10:12 [Driver:camera] onOAuth2Init() → success
2021-04-27 17:10:12 [Driver:camera] onOAuth2Init()
2021-04-27 17:10:12 Google Nest SDM 3.0.0 has initialised.
2021-04-27 17:10:12 setOAuth2ConfigNest() Nest Device Access or GCP Settings incomplete
2021-04-27 17:10:12 capturing stderr
2021-04-27 17:10:12 capturing stdout
2021-04-27 17:10:09 App unload called, save logs
2021-04-27 17:08:18 setHomeyWebhook() → created webHook
2021-04-27 17:08:18 [Driver:thermostat] onOAuth2Init() → success
2021-04-27 17:08:18 [Driver:thermostat] onOAuth2Init()
2021-04-27 17:08:18 [Driver:hub] onOAuth2Init() → success
2021-04-27 17:08:18 [Driver:hub] onOAuth2Init()
2021-04-27 17:08:18 [Driver:doorbell] onOAuth2Init() → success
2021-04-27 17:08:18 [Driver:doorbell] onOAuth2Init()
2021-04-27 17:08:18 [Driver:camera] onOAuth2Init() → success
2021-04-27 17:08:18 [Driver:camera] onOAuth2Init()
2021-04-27 17:08:17 Google Nest SDM 3.0.0 has initialised.
2021-04-27 17:08:17 setOAuth2ConfigNest() Nest Device Access or GCP Settings incomplete
2021-04-27 17:08:17 capturing stderr
2021-04-27 17:08:17 capturing stdout

Are you sure that your APIs are enabled ?

Hi,

image

image

image

image

Google GCP Google Nest Log
ENABLE OAUTH2 DEBUG INFO
2021-04-28 12:26:17 [Driver:doorbell] Pair Session Disconnected
2021-04-28 12:26:00 [Driver:doorbell] onPairListDevices()
2021-04-28 12:25:59 [Driver:doorbell] Multi-Session disabled. Selected 28abd6cf-cb4a-4c42-844f-47db5b190082 as active session.
2021-04-28 12:19:25 [Driver:doorbell] Pair Session Disconnected
2021-04-28 12:19:22 [Driver:doorbell] onPairListDevices()
2021-04-28 12:19:21 [Driver:doorbell] Multi-Session disabled. Selected 28abd6cf-cb4a-4c42-844f-47db5b190082 as active session.
2021-04-28 12:18:41 [Driver:doorbell] Pair Session Disconnected
2021-04-28 12:18:32 [Driver:doorbell] onPairListDevices()
2021-04-28 12:18:30 [Driver:doorbell] Multi-Session disabled. Selected 28abd6cf-cb4a-4c42-844f-47db5b190082 as active session.
undefined-Invalid Date-undefined undefined ET at Pipe.onStreamRead (internal/stream_base_commons.js:205:27) { errno: ‘ECONNRESET’, code: ‘ECONNRESET’, syscall: ‘read’ }
2021-04-27 23:31:32 Create Cloud problem Error: 403 Forbidden at NestOAuth2Client.onHandleNotOK (/node_modules/homey-oauth2app/lib/OAuth2Client.js:616:17) at NestOAuth2Client.onHandleResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:592:28) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async NestOAuth2Client.onRequestResponse (/node_modules/homey-oauth2app/lib/OAuth2Client.js:532:20) { status: 403, statusText: ‘Forbidden’ }
2021-04-27 23:31:31 login() → authenticated

Something goes wrong during cloud creation.

Could you go into the app and under LOG enable oauth debug.

Then logout and login again, it will go through cloud create.

Then PM me the log output.

Kun je voor mij een duidelijke handleiding maken in het Nederlands. Is bij mij iets helemaal mis gegaan en kom er niet meer uit.

Ik ga mijn best doen…

1 Like

Respect voor de moeite die je gaat nemen.

If you could please keep the conversation in English as much as possible, then more people will be able to participate. If you would rather not or can’t communicate in English then please check out Non-English boards/categories:
https://community.homey.app/c/non-english