#Auto door lock Automation doesn't run lock action when door manually unlocked.

1 messages · Page 1 of 1 (latest)

limpid raven
#

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?

limpid raven
#

Anyone?

balmy bay
#

Did you check the trace?

#

I wonder if the problem is that when it's unlocked for 5 seconds the sensor is reporting on

dense latch
#

I'm not sure about the schlage locks, but I do know that the yale locks also have a "manually unlocked" state. You might want to look at that, jic.