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

Nest camera zones undocumented feature

allenporter opened this issue · comments

The SDM API appears to be sending zone information in updates for new cameras, however it is not documented.

{
  'eventId': 'XXX,
  'timestamp': '2022-01-24T16:51:01.933Z',
    'resourceUpdate': {
        'name': 'enterprises/YYY/devices/ZZZ',
        'events': {
            'sdm.devices.events.CameraPerson.Person': {
                'eventSessionId': 'XXX',
                'eventId': 'XXX',
                'zones': ['Zone 1']
            }
        }
    },
    'userId': 'XXX',
    'eventThreadId': 'XXX',
    'resourceGroup': ['XXX'],
    'eventThreadState': 'ENDED'
}

We should be able to expose these through to the EventMessage so they can be used by downstream projects.