06-29-2024 04:11 PM
I am trying to write an automation that will unlock my Yale front door lock when the Nest doorbell recognizes me. I've been able to write most of it, but I cannot figure out how to insert the parameter that specifies it should only do it when it's me. Any ideas? Following is my script so far. The only error that pops up is for the "eventuate" line:
metadata:
name: Unlock the door when Nick is seen by the doorbell
description: When Nick is seen by the doorbell, unlock the door.
automations:
- starters:
- type: device.event.PersonDetection
device: Front door doorbell - Front door
eventdata: Nick
actions:
- type: device.command.LockUnlock # Lock or unlock the device.
devices:
- Front Door - Front door
lock: false