Google Nest Doorbell (Wired) - Motion

So I added the Google Nest integration, paid the $5 fee, and follow the laborious instructions to get up and running.

I quickly noticed that the only entity exposed is the stream.

I eventually discovered that both the button press and motion/person detected can be captured as an automation trigger.

That’s okay. But is it possible to use a helper to capture this information? I’m looking to incorporate some “Wasp In A Box” blueprints. And life would be infinitely easier to have a helper entity rather than an automation for every use case.

Okay, with the help of the templates channel on the Home Assistant discord server I was able to get it working.

All I had to do was paste this into my Configuration.yaml and I had a motion entity called Doorbell_Motion_YAML.

template:
    trigger:
      - platform: device
        device_id: 2e71e33a4ffb1b448df53adc3f55fe39 # Nest Doorbell
        domain: nest
        type: camera_motion
    binary_sensor:
      - name: "Doorbell_Motion_YAML"
        device_class: motion
        auto_off: 0:00:10
        state: on