Using facial recognition in automation as actions?

Trying to make an automation to turn on front porch lights if Nest Hello sees a face. Woudl love to use the built in blueprint Motion-activated Light but I want to use CameraPerson attribute of Nest Hello doorbell as the trigger. Having trouble identifying where I can find the equivalent to the following action between the astericks. From what I gather, it will wait until the facial recognition has stopped in order to start the countdown of a delay to then turn off the lights:


mode: restart
max_exceeded: silent

trigger:
  platform: state
  entity_id: !input motion_entity
  from: "off"
  to: "on"

action:
  - service: light.turn_on
    target: !input light_target
***
  - wait_for_trigger:
      platform: state
      entity_id: !input motion_entity
      from: "on"
      to: "off"
***
  - delay: !input no_motion_wait
  - service: light.turn_off
    target: !input light_target

Here is what I got so far:

- id: '1623719440978'
  alias: Face Recognized-Front Porch
  description: 'Turn front porch light on for 3 minutes after face recognized '
  trigger:
  - platform: device
    device_id: edc3e9b4453aeecf7f2933774a36043f
    domain: nest
    type: camera_person
  condition:
  - condition: sun
    before: sunrise
    after: sunset
    after_offset: -01:00:00
  action:
  - service: light.turn_on
    target:
      entity_id: light.front_porch_overhead_light
  - delay:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - service: light.turn_off
    target:
      entity_id: light.front_porch_overhead_light
  mode: restart
  max_exceeded: silent