allenporter / python-google-nest-sdm

Home Page:https://allenporter.github.io/python-google-nest-sdm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is with regards to not all person/motion detection activities pop up.

bsrishi opened this issue · comments

This is with regards to not all person/motion detection activities pop up.

(unfortunately not all the activities in the activity feed comes through)

This is because Google is limiting what they notify us.

https://developers.google.com/nest/device-access/traits/device/camera-person

Please refer to the above link and the below forum for more information.

https://community.home-assistant.io/t/nest-integration-some-types-of-nest-cam-do-not-trigger-events/364107/47

How do we make sure we use updateable notifications??? Unless we don't use it, Value isn't added and this will remain useless.

https://developers.google.com/nest/device-access/api/events#updateable-notifications

We need to be able to use the UPDATEABLE NOTIFICATIONS feature of Google SDM API as below.

{
"eventId" : "fc25fa92-0b39-413e-8797-daa24ef66f52",
"timestamp" : "2019-01-01T00:00:01Z",
"resourceUpdate" : {
"name" : "enterprises/project-id/devices/device-id",
"events" : {
"sdm.devices.events.CameraPerson.Person" : {
"eventSessionId" : "CjY5Y3VKaTZwR3o4Y19YbTVfMF...",
"eventId" : "cpwRFG-0N-BjZgCY6krxEkclUz...",
}
}
}
"userId" : "AVPHwEuBfnPOnTqzVFT4IONX2Qqhu9EJ4ubO-bNnQ-yi",
** #"eventThreadId" : "d67cd3f7-86a7-425e-8bb3-462f92ec9f59",
"eventThreadState" : "STARTED",
**
"resourceGroup" : [
"enterprises/project-id/devices/device-id"
]
}

We need to be able to use the above eventthreadid and eventthreadstate

Originally posted by @bsrishi in #448