Hello all, please forgive my ignorance if I'm doing something incorrectly. I am new to Discord (first post) and Home Assistant. I've moved over from SmartThings, have every device paired to HA (26). This is my first automation attempt and it's not going well.
I have a Schlage Connect (touch screen deadbolt with alarm) and a contact sensor model ZD2105
by Vision Security.
Physically unlocking/locking the deadbolt and opening/closing the door registers the state change almost immediately in the overview dashboard, so I know it's connected.
When I unlock the deadbolt with Home Assistant using the overview dashboard the automation seems to run perfectly and relocks the deadbolt. However, when I physically unlock the deadbolt I can see that the automation triggers because of the blue banner on the automation page says "triggered" but then nothing else happens, it just wont lock.
The following is my current automation yaml that was generated using the automation gui.
alias: AutoLock FrontDoor
description: ""
triggers:
- entity_id:
- lock.touchscreen_deadbolt
to: unlocked
trigger: state
for:
hours: 0
minutes: 0
seconds: 5
from: locked
conditions:
- condition: state
entity_id: binary_sensor.recessed_door_window_sensor_window_door_is_open_2
state: "off"
actions:
- action: lock.lock
metadata: {}
data: {}
target:
entity_id: lock.touchscreen_deadbolt
mode: single
I've spent the whole day trying to solve this. What am I doing wrong?