In the "Write scripted automations with the script editor" page:
https://support.google.com/googlenest/answer/13460475?sjid=8690584970705461608-NA#componentsunder
starters -> device event starters you should find
"device.event.PersonDetection". Is th...