Look, I know this has been done before, and there are tons of guides out there. But for some reason, I cannot seem to get this working.
My YAML
description: Unlock door when fingerprint is identified, then reset the sensor
triggers:
- entity_id:
- event.g4_doorbell_pro_fingerprint
trigger: state
attribute: event_type
to:
- identified
actions:
- action: lock.unlock
data: {}
target:
device_id: a3a4abc84f1075c20687d2048be4dcb4
- delay: "00:00:10"
- action: lock.lock
data: {}
target:
device_id: a3a4abc84f1075c20687d2048be4dcb4
mode: single
The issue I seem to be running into is that the Fingerprint Sensor event gets set to Identified each time a authorized fingerprint is scanned. This however is never reset, causing all further automations to fail unless a unauthorized fingerprint is detected, resetting the sensor to not_identified.
Please let me know if I am being stupid and it should be done completely different. Any help in this would be greatly appreciated.