I recently dove into the world of facial recognition automation with my Nest Hello doorbell, and I must say, it’s been an exciting journey!
I wanted to create an automation that would turn on my front porch lights whenever the camera detected a face. After some research, I stumbled upon the built-in Motion-activated Light blueprint, but I knew I needed to tweak it to use the CameraPerson attribute instead of motion detection.
Here’s what I came up with:
yaml
- 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: 0:0:3:0
- service: light.turn_off
target:
entity_id: light.front_porch_overhead_light
mode: restart
max_exceeded: silent
- platform: device
This setup works beautifully! The lights automatically turn on for exactly 3 minutes when a face is detected, providing just enough time to greet visitors without wasting energy. ![]()
I’d love to hear how others have implemented facial recognition in their smart home setups. Have you tried integrating it with other devices or services? Let’s share tips and tricks to make the most out of this feature! ![]()