[RELEASE] Google SDM API - Nest integration

Thanks I got it working - I think by updating the main app and then installing the new driver separately.

I've now created the child device for my door bell and security camera and named them the same as the Zone in Google Home ("Zone 1" in both cases).

The parent devices continue to receive all the presence and motion updates as they did before and both child devices never receive anything.

Can you confirm that the new preferences toggle is enabled on the Parent device?

If so, please enable debug logs for the App, and post/message me with events that you expect should update the zones. We should see a zones array in the Google event for the devices.

Note: This is an undocumented feature of the API, and seems to only work for Google-branded devices (legacy Nest excluded).

Hi there

I've just noticed that I have two sets of Applications Installed in "Apps code"

One is version 1.0.8 and the other is 1.1.0 if I try to remove the earlier version it says

image

Do you know of a way to correct this? I'm assuming its the root cause is possible from this and I have installed the newer drivers but the App actually running on the hub is still the older version?

Regarding your questions.....

That option is ticked for both devices - I have removed the child device for the Security Camera to see if it is automatically re created upon an event (your instructions above indicate it would?).

Logs from the Application are below

app:6412023-11-14 16:02:10.352debugAuthorized scopes: https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/sdm.service https://www.googleapis.com/auth/pubsub

app:6412023-11-14 16:02:10.026infoRefreshing access_token from Google

app:6412023-11-14 15:02:10.371debugAuthorized scopes: https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/sdm.service https://www.googleapis.com/auth/pubsub

app:6412023-11-14 15:02:10.023infoRefreshing access_token from Google

app:6412023-11-14 14:54:32.951debugAuthorized scopes: https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/pubsub https://www.googleapis.com/auth/sdm.service

app:6412023-11-14 14:54:32.616infoRefreshing access_token from Google

app:6412023-11-14 14:54:32.585infoGoogle SDM API updating

app:6412023-11-14 14:54:30.955debugProcessing data for Kitchen and Dining: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEuWDvg6UhsfKe9_uKlw9MYkKyrtKxIefIFzJCOie9hun2vOkWPfKS6rCEul9Tu1cQIs5UZoPG4ghBBsXmFxd8Z-DA, type:sdm.devices.types.DISPLAY, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:], sdm.devices.traits.CameraLiveStream:[maxVideoResolution:[width:640, height:480], videoCodecs:[H264], audioCodecs:[AAC], supportedProtocols:[RTSP]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraSound:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.CameraEventImage:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 14:54:30.827debugProcessing data for Doorbell: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ, type:sdm.devices.types.DOORBELL, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Doorbell], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.DoorbellChime:[:], sdm.devices.traits.CameraClipPreview:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 14:54:30.746debugProcessing data for Security Camera: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEt8yyZD-8j08laRT8IPalG0Y3c-_DJxla2hvbtagXhacwIiIWM2kM-Cxn6IQfB5UX034UDAck2mWqacvJxWRHJLPA, type:sdm.devices.types.CAMERA, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Security Camera], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 14:54:28.035infoDiscovery started

app:6412023-11-14 14:54:21.609infocreateEventSubscription returned status code 409 -- subscription already exists

app:6412023-11-14 14:54:20.889infoCreating Google pub/sub event subscription

app:6412023-11-14 13:55:27.487debugAuthorized scopes: https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/sdm.service https://www.googleapis.com/auth/pubsub

app:6412023-11-14 13:55:27.063infoRefreshing access_token from Google

app:6412023-11-14 12:55:27.443debugAuthorized scopes: https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/sdm.service https://www.googleapis.com/auth/pubsub

app:6412023-11-14 12:55:27.060infoRefreshing access_token from Google

app:6412023-11-14 12:27:53.433debugProcessing data for Doorbell: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ, type:sdm.devices.types.DOORBELL, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Doorbell], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.DoorbellChime:[:], sdm.devices.traits.CameraClipPreview:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:27:53.348debugProcessing data for Security Camera: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEt8yyZD-8j08laRT8IPalG0Y3c-_DJxla2hvbtagXhacwIiIWM2kM-Cxn6IQfB5UX034UDAck2mWqacvJxWRHJLPA, type:sdm.devices.types.CAMERA, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Security Camera], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:27:51.982infoRefresh device details for Doorbell

app:6412023-11-14 12:27:51.819infoRefresh device details for Security Camera

app:6412023-11-14 12:27:40.092debug{ "eventId": "19f70332-04c4-4bb2-81a3-2f5e09d51cd2", "timestamp": "2023-11-14T12:27:14.160Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.CameraPerson.Person": { "eventSessionId": "1670018302", "eventId": "863314204", "zones": ["", "Zone 2"] } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "b1329ba5-841e-4a56-b6b3-e74c769132de", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "ENDED"}

app:6412023-11-14 12:27:40.089debugEvent received from Google pub/sub

app:6412023-11-14 12:27:21.257debug{ "eventId": "19f70332-04c4-4bb2-81a3-2f5e09d51cd2", "timestamp": "2023-11-14T12:27:14.160Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.CameraPerson.Person": { "eventSessionId": "1670018302", "eventId": "863314204", "zones": ["", "Zone 2"] } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "b1329ba5-841e-4a56-b6b3-e74c769132de", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "STARTED"}

app:6412023-11-14 12:27:21.253debugEvent received from Google pub/sub

app:6412023-11-14 12:08:35.239debugProcessing data for Security Camera: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEt8yyZD-8j08laRT8IPalG0Y3c-_DJxla2hvbtagXhacwIiIWM2kM-Cxn6IQfB5UX034UDAck2mWqacvJxWRHJLPA, type:sdm.devices.types.CAMERA, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Security Camera], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:08:34.751debugProcessing data for Doorbell: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ, type:sdm.devices.types.DOORBELL, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Doorbell], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.DoorbellChime:[:], sdm.devices.traits.CameraClipPreview:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:08:33.477infoRefresh device details for Doorbell

app:6412023-11-14 12:08:33.315infoRefresh device details for Security Camera

app:6412023-11-14 12:08:31.621debugRetrieving photo by id to get image url for device: Doorbell

app:6412023-11-14 12:08:29.626debugUploading image data to Google Drive file for device: Doorbell

app:6412023-11-14 12:08:28.543debugCreating Google Drive file for device image: Doorbell

app:6412023-11-14 12:08:28.104debugReceived ClipPreview url https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPZcDTJgvnEVq0S7MlMviK5u82BTsYub4FereruROAvC9KeHbc6PZsMr7YHQk4HUacs2kC1mga8MgVlxAlUvtqRnbfTzcxxPdWWv_EbfZupirBOf_CByOJdRAEPQ4pLuAuN1YjGfdwcXG_y9SP3ol5zhBYQah4O1LMznnMbIURAj9Gire7-I2rVOyGRv5fjiPfXU7Fkq_Kd6HY6x9YC5oeyAj1hNUd7g6OZ_oG8OI25lVMV8r8hg_DOGE9yWemBBJw4vDivoUg2Z1iNKdNx4U6MqkUqstoxHpK88N_VX_f2_iCQ7fjiR, downloading video clip

app:6412023-11-14 12:08:28.027debug{ "eventId": "8f905a22-5897-4efa-b2b7-f3ed8bad5f74", "timestamp": "2023-11-14T12:07:55.896Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.DoorbellChime.Chime": { "eventSessionId": "1670018300", "eventId": "n:1" }, "sdm.devices.events.CameraClipPreview.ClipPreview": { "eventSessionId": "1670018300", "previewUrl": "https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPZcDTJgvnEVq0S7MlMviK5u82BTsYub4FereruROAvC9KeHbc6PZsMr7YHQk4HUacs2kC1mga8MgVlxAlUvtqRnbfTzcxxPdWWv_EbfZupirBOf_CByOJdRAEPQ4pLuAuN1YjGfdwcXG_y9SP3ol5zhBYQah4O1LMznnMbIURAj9Gire7-I2rVOyGRv5fjiPfXU7Fkq_Kd6HY6x9YC5oeyAj1hNUd7g6OZ_oG8OI25lVMV8r8hg_DOGE9yWemBBJw4vDivoUg2Z1iNKdNx4U6MqkUqstoxHpK88N_VX_f2_iCQ7fjiR" } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "91ec42b6-9ca1-418f-8ac2-1dbd5dba975d", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "ENDED"}

app:6412023-11-14 12:08:28.024debugEvent received from Google pub/sub

app:6412023-11-14 12:08:11.244debugRetrieving photo by id to get image url for device: Doorbell

app:6412023-11-14 12:08:09.701debugUploading image data to Google Drive file for device: Doorbell

app:6412023-11-14 12:08:08.552debugCreating Google Drive file for device image: Doorbell

app:6412023-11-14 12:08:07.967debugReceived ClipPreview url https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPZcDTJgvnEVq0S7MlMviK5u82BTsYub4FereruROAvC9KeHbc6PZsMr7YHQk4HUacs2kC1mga8MgVlxAlUvtqRnbfTzcxxPdWWv_EbfZupirBOf_CByOJdRAEPQ4pLuAuN1YjGfdwcXG_y9SP3ol5zhBYQah4O1LMznnMbIURAj9Gire7-I2rVOyGRv5fjiPfXU7Fkq_Kd6HY6x9YC5oeyAj1hNUd7g6OZ_oG8OI25lVMV8r8hg_DOGE9yWemBBJw4vDivoUg2Z1iNKdNx4U6MqkUqstoxHpK88N_VX_f2_iCQ7fjiR, downloading video clip

app:6412023-11-14 12:08:07.917debug{ "eventId": "8f905a22-5897-4efa-b2b7-f3ed8bad5f74", "timestamp": "2023-11-14T12:07:55.896Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.DoorbellChime.Chime": { "eventSessionId": "1670018300", "eventId": "n:1" }, "sdm.devices.events.CameraClipPreview.ClipPreview": { "eventSessionId": "1670018300", "previewUrl": "https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPZcDTJgvnEVq0S7MlMviK5u82BTsYub4FereruROAvC9KeHbc6PZsMr7YHQk4HUacs2kC1mga8MgVlxAlUvtqRnbfTzcxxPdWWv_EbfZupirBOf_CByOJdRAEPQ4pLuAuN1YjGfdwcXG_y9SP3ol5zhBYQah4O1LMznnMbIURAj9Gire7-I2rVOyGRv5fjiPfXU7Fkq_Kd6HY6x9YC5oeyAj1hNUd7g6OZ_oG8OI25lVMV8r8hg_DOGE9yWemBBJw4vDivoUg2Z1iNKdNx4U6MqkUqstoxHpK88N_VX_f2_iCQ7fjiR" } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "91ec42b6-9ca1-418f-8ac2-1dbd5dba975d", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "UPDATED"}

app:6412023-11-14 12:08:07.915debugEvent received from Google pub/sub

app:6412023-11-14 12:08:02.928debug{ "eventId": "63ee0c0b-e38c-4346-8d73-7efbcf33015e", "timestamp": "2023-11-14T12:07:55.896Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.DoorbellChime.Chime": { "eventSessionId": "1670018300", "eventId": "n:1" } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "91ec42b6-9ca1-418f-8ac2-1dbd5dba975d", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "STARTED"}

app:6412023-11-14 12:08:02.925debugEvent received from Google pub/sub

app:6412023-11-14 12:04:28.908debugProcessing data for Security Camera: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEt8yyZD-8j08laRT8IPalG0Y3c-_DJxla2hvbtagXhacwIiIWM2kM-Cxn6IQfB5UX034UDAck2mWqacvJxWRHJLPA, type:sdm.devices.types.CAMERA, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Security Camera], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:04:28.865debugProcessing data for Doorbell: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ, type:sdm.devices.types.DOORBELL, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Doorbell], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.DoorbellChime:[:], sdm.devices.traits.CameraClipPreview:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:04:27.139infoRefresh device details for Doorbell

app:6412023-11-14 12:04:26.990infoRefresh device details for Security Camera

app:6412023-11-14 12:04:16.091debugProcessing data for Doorbell: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ, type:sdm.devices.types.DOORBELL, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Doorbell], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraImage:[maxImageResolution:[width:1920, height:1200]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:], sdm.devices.traits.DoorbellChime:[:], sdm.devices.traits.CameraClipPreview:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:04:15.526debugProcessing data for Security Camera: [name:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEt8yyZD-8j08laRT8IPalG0Y3c-_DJxla2hvbtagXhacwIiIWM2kM-Cxn6IQfB5UX034UDAck2mWqacvJxWRHJLPA, type:sdm.devices.types.CAMERA, assignee:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, traits:[sdm.devices.traits.Info:[customName:Security Camera], sdm.devices.traits.CameraLiveStream:[videoCodecs:[H264], audioCodecs:[OPUS], supportedProtocols:[WEB_RTC]], sdm.devices.traits.CameraPerson:[:], sdm.devices.traits.CameraMotion:[:]], parentRelations:[[parent:enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/structures/AVPHwEtpqLdMWNvtDfBRNBVI1URv-Yy_vUitHhgoG1lqc_pdJ2_qKJCcsBwzqqtNWq4EqeIw6bP4vKcqBs1sW0lAhZpY3w, displayName:Home]]]

app:6412023-11-14 12:04:14.422infoRefresh device details for Doorbell

app:6412023-11-14 12:04:14.216infoRefresh device details for Security Camera

app:6412023-11-14 12:04:13.679debugRetrieving photo by id to get image url for device: Doorbell

app:6412023-11-14 12:04:12.198debugUploading image data to Google Drive file for device: Doorbell

app:6412023-11-14 12:04:11.317debugCreating Google Drive file for device image: Doorbell

app:6412023-11-14 12:04:10.826debugReceived ClipPreview url https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPbHFqrMoDGu11_Y09sSg8SzyIJIC85Vnx7uc0tD-Otr-ju-tpmpM_Z92Rb64AtQDb0v9wSAlCGu1NHlEzxjFd5HXFbA_d65MqEuVj7cZY4w2C9t4IBkSsDpGZkRqWZSWQEdxu6pHRJ6PZXNfH8nsmb8cv1VSf1_wQzXrbuJusPjo54l16s_gXqeKBXrkhLtjlZHkUuah-06xB2JgXvT50vLdtVj31fn6RgGxkszMKM5q4pBFH3YAXID_q1TImZ3aIQZRoFoUwQ_g3P8mC07fM2t1cUecFkiPUh50LHAr48qAIK2zMbB, downloading video clip

app:6412023-11-14 12:04:10.777debug{ "eventId": "ea6c5835-b9cf-4e48-83b3-83175596f6c8", "timestamp": "2023-11-14T12:03:36.959Z", "resourceUpdate": { "name": "enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ", "events": { "sdm.devices.events.DoorbellChime.Chime": { "eventSessionId": "1670018298", "eventId": "n:1" }, "sdm.devices.events.CameraClipPreview.ClipPreview": { "eventSessionId": "1670018298", "previewUrl": "https://nest-camera-frontend.googleapis.com/frontend/encrypted/clippreview/AZXIIPbHFqrMoDGu11_Y09sSg8SzyIJIC85Vnx7uc0tD-Otr-ju-tpmpM_Z92Rb64AtQDb0v9wSAlCGu1NHlEzxjFd5HXFbA_d65MqEuVj7cZY4w2C9t4IBkSsDpGZkRqWZSWQEdxu6pHRJ6PZXNfH8nsmb8cv1VSf1_wQzXrbuJusPjo54l16s_gXqeKBXrkhLtjlZHkUuah-06xB2JgXvT50vLdtVj31fn6RgGxkszMKM5q4pBFH3YAXID_q1TImZ3aIQZRoFoUwQ_g3P8mC07fM2t1cUecFkiPUh50LHAr48qAIK2zMbB" } } }, "userId": "AVPHwEtrJnh7leTtrb_fuxGFK2HKh-wF6yxLlDAofkMk", "eventThreadId": "ab5e3cb7-12d1-455a-be35-7396902c1cd6", "resourceGroup": ["enterprises/07f51d91-e935-4653-985b-1c5fa3065f5b/devices/AVPHwEskVodyaf8CdHZ-_L9OygXnD4lE286yIHM6-VngcG6wNsuMYj-3fj4YeKhtroJrHPpakTTZPOToQKnliaQiAPAxuQ"], "eventThreadState": "ENDED"}

app:6412023-11-14 12:04:10.774debugEvent received from Google pub/sub

Logs from the Doorbell Parent Device are below

dev:9032023-11-14 14:54:30.928debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 14:54:30.917debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 14:54:30.867debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 14:54:30.856debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 14:54:30.845debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:27:53.496debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 12:27:53.485debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 12:27:53.474debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 12:27:53.464debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 12:27:53.453debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:27:51.927debugDoorbell: Sound -- not detected

dev:9032023-11-14 12:27:51.892debugDoorbell: Motion -- inactive

dev:9032023-11-14 12:27:51.859debugDoorbell: Person -- not present

dev:9032023-11-14 12:27:40.117debugDoorbell: after remove - current active threads:[]

dev:9032023-11-14 12:27:40.115debugDoorbell: b1329ba5-841e-4a56-b6b3-e74c769132de ended -- marking events inactive: [person]

dev:9032023-11-14 12:27:40.111debugDoorbell: Person -- not present

dev:9032023-11-14 12:27:21.295debugDoorbell: after append - current active threads:[b1329ba5-841e-4a56-b6b3-e74c769132de]

dev:9032023-11-14 12:27:21.293debugDoorbell: person event is active in thread: b1329ba5-841e-4a56-b6b3-e74c769132de

dev:9032023-11-14 12:27:21.289debugDoorbell: Person -- present

dev:9032023-11-14 12:08:34.809debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 12:08:34.799debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 12:08:34.789debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 12:08:34.779debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 12:08:34.768debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:08:33.420debugDoorbell: Sound -- not detected

dev:9032023-11-14 12:08:33.385debugDoorbell: Motion -- inactive

dev:9032023-11-14 12:08:33.353debugDoorbell: Person -- not present

dev:9032023-11-14 12:08:28.082debugDoorbell: after remove - current active threads:[]

dev:9032023-11-14 12:08:28.080debugDoorbell: 91ec42b6-9ca1-418f-8ac2-1dbd5dba975d ended -- marking events inactive: [person]

dev:9032023-11-14 12:08:28.077debugDoorbell: Person -- not present

dev:9032023-11-14 12:08:07.946debugDoorbell: after append - current active threads:[91ec42b6-9ca1-418f-8ac2-1dbd5dba975d]

dev:9032023-11-14 12:08:07.944debugDoorbell: person event is active in thread: 91ec42b6-9ca1-418f-8ac2-1dbd5dba975d

dev:9032023-11-14 12:08:07.942debugDoorbell: Person -- present

dev:9032023-11-14 12:08:02.963debugDoorbell: after append - current active threads:[91ec42b6-9ca1-418f-8ac2-1dbd5dba975d]

dev:9032023-11-14 12:08:02.961debugDoorbell: person event is active in thread: 91ec42b6-9ca1-418f-8ac2-1dbd5dba975d

dev:9032023-11-14 12:08:02.958debugDoorbell: Person -- present

dev:9032023-11-14 12:08:02.946debugDoorbell: Doorbell/chime pressed

dev:9032023-11-14 12:04:28.927debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 12:04:28.916debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 12:04:28.904debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 12:04:28.894debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 12:04:28.883debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:04:27.099debugDoorbell: Sound -- not detected

dev:9032023-11-14 12:04:27.067debugDoorbell: Motion -- inactive

dev:9032023-11-14 12:04:27.025debugDoorbell: Person -- not present

dev:9032023-11-14 12:04:16.150debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 12:04:16.140debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 12:04:16.130debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 12:04:16.119debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 12:04:16.109debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:04:14.332debugDoorbell: Sound -- not detected

dev:9032023-11-14 12:04:14.298debugDoorbell: Motion -- inactive

dev:9032023-11-14 12:04:14.254debugDoorbell: Person -- not present

dev:9032023-11-14 12:04:10.805debugDoorbell: after remove - current active threads:[]

dev:9032023-11-14 12:04:10.803debugDoorbell: ab5e3cb7-12d1-455a-be35-7396902c1cd6 ended -- marking events inactive: null

dev:9032023-11-14 12:04:10.800debugDoorbell: Person -- not present

dev:9032023-11-14 12:04:09.673debugDoorbell: updating state -- videoFormat: WEB_RTC

dev:9032023-11-14 12:04:09.662debugDoorbell: updating state -- imgHeight: 1200

dev:9032023-11-14 12:04:09.651debugDoorbell: updating state -- imgWidth: 1920

dev:9032023-11-14 12:04:09.640debugDoorbell: updating state -- captureType: clip

dev:9032023-11-14 12:04:09.624debugDoorbell: updating state -- room: Home

dev:9032023-11-14 12:04:07.663debugDoorbell: Sound -- not detected

dev:9032023-11-14 12:04:07.626debugDoorbell: Motion -- inactive

dev:9032023-11-14 12:04:07.588debugDoorbell: Person -- not present

dev:9032023-11-14 12:04:04.365debugDoorbell: after remove - current active threads:[ab5e3cb7-12d1-455a-be35-7396902c1cd6]

dev:9032023-11-14 12:04:04.364debugDoorbell: 21d39938-ee51-4b59-b863-44427fd3baa7 ended -- marking events inactive: [person]

dev:9032023-11-14 12:04:04.359debugDoorbell: Person -- not present

Logs from the Child Device are below

dev:10772023-11-14 12:27:51.966debugDoorbell_Zone 1: Sound -- not detected

dev:10772023-11-14 12:27:51.923debugDoorbell_Zone 1: Motion -- inactive

dev:10772023-11-14 12:27:51.888debugDoorbell_Zone 1: Person -- not present

dev:10772023-11-14 12:08:33.461debugDoorbell_Zone 1: Sound -- not detected

dev:10772023-11-14 12:08:33.416debugDoorbell_Zone 1: Motion -- inactive

dev:10772023-11-14 12:08:33.382debugDoorbell_Zone 1: Person -- not present

dev:10772023-11-14 12:04:27.124debugDoorbell_Zone 1: Sound -- not detected

dev:10772023-11-14 12:04:27.095debugDoorbell_Zone 1: Motion -- inactive

dev:10772023-11-14 12:04:27.061debugDoorbell_Zone 1: Person -- not present

dev:10772023-11-14 12:04:14.385debugDoorbell_Zone 1: Sound -- not detected

dev:10772023-11-14 12:04:14.329debugDoorbell_Zone 1: Motion -- inactive

dev:10772023-11-14 12:04:14.294debugDoorbell_Zone 1: Person -- not present

dev:10772023-11-14 12:04:07.693debugDoorbell_Zone 1: Sound -- not detected

dev:10772023-11-14 12:04:07.660debugDoorbell_Zone 1: Motion -- inactive

dev:10772023-11-14 12:04:07.622debugDoorbell_Zone 1: Person -- not present

Yes, your logs look good - we can see the zone data in the event from Google. I think you've isolated it, running the older App code, which does not pass the zone data to the Driver for processing.

Probably the duplicate was the effect of HPM, perhaps you could try a "repair" in there. Or under Apps Code, delete the newer (not in use) App definition, and edit the 1.0.8 version - paste in the newer raw code and Save

That definitely seems to have progressed things.

The HPM repair didnt change anything but a copy and paste of the code from the new to the old and then a hub reboot has had an affect.

The Security Camera now has a child device and the logs tie up to when I walk outside, which is good.

Thanks for continuing to work on this :slight_smile:

Is there any sign or talk in the industry that in the future that Google will open things up further to allow:

  • Pass through the name of the person it thinks is in an event using its facial recognition (Nest Aware)
  • Pass through live video so it can be pushed to a dashboard
  • Allow connection to smoke/CO2 detectors so any alarm can trigger through the platform as well as in person

Thanks once again....

@user4286 You should go into the HPM settings and "unmatch" this package in there. Then manually delete any duplicated not-in-use code from drivers / apps. Finally run a match up in HPM and match the package up again. This will make future updates work correctly. When your first issue with updating came up all you had to do was run a repair to fix it.

1 Like

Apologies all, getting in a bit of a mess here.

Original

What do I need to do if I change my Google account password? As if you are telling a 5 year old, please...

I tried the Auth Link and clicked through, logged in etc. but my Thermostat is showing offline and not refreshing in hubitat.

EDIT: Apparently it just needed some time to reflect. Appears to be updating now and I didn;t do anything else!

EDIT2: - Nope, something is up. If I adjust the setpoint temp on the Nest App or Physically, the setpoint updates in Hubitat (and Sharptools). If I use the shaprtools tile to adjust the setpoint, the nest will update.

What is not working, is the actual temperature reading - it is not updating at all, not even if I click refresh from inside the device.

Has anyone seen this before? Setpoint working both ways, but actual temperature not? @dkilgore90

I have deleted and re-added the subscription, hasn't helped - still just setpoint working.

EDIT3: Must be something Google's end. Seems to be working suddenly now with no action on my part :man_facepalming:

Very intriguing, to say the least. Not sure I have any concrete suggestions (at the moment it sounds like all is well). You can enable debug logs on the App to see the full JSON when events are received and for the refresh API response. That will at least confirm if Google is sending the wrong data.

Does anyone know what this relates to?

This occurs every 10 - 20 mins in my logs.

This is the rate limiting on the API from Google - specifics here. It could be a burst of commands triggered by rules (or manually), or possibly the out of order handling for thermostat events which automatically triggers a refresh on the device - this should be evident from surrounding logs.