Automation Help Google/Nest Template

I was using my Nest Doorbell with the prior “Nest” integration. Now I’m converted to the unified Google Authentication with my Nest Doorbell.

I had an automation that would unlock my door when the nest doorbell detected a phone arrive at home and within 5 minutes a person detected by the doorbell.

The problem now, is that the Google/Nest integration no longer has a status of binary sensor to monitor and instead uses events, specially the “nest_event” and the type of “camera_person”. What I’m wondering is, how can I re-create my template to wait for this event type to occur before it proceeds?

This is the current template.

{{ is_state('binary_sensor.front_door_camera_person_detected','on')}}

How could this be adjusted to listen for the correct event and give me a “true” when it’s detected.

The reason for the “wait for template” is so that I can limit the amount of time I’m willing to wait for all things to be true before unlocking the front door.

Thank you in advance.

Is it possible it’s this easy? I haven’t had a chance to test this since it’s late here… but??

Yes, it should be simple like that. Binary sensors are the old way to do this, and device automations are the new way.

What you have looks similar to the docs:

1 Like

hi @allenporter , I couldn’t believe it was this simple. it worked the first try when I walked up to the door.

Thanks so much for responding and confirming.

Cheers and happy holidays!