Lock Door with Retry Limit and Custom Timeouts

Lock Door with Retry Limit and Custom Timeouts is a Home Assistant automation blueprint designed to ensure your door remains securely locked. This automation monitors the state of your door lock and door sensor to maintain security. If the door fails to stay closed, the automation will attempt to lock it multiple times (up to a defined retry limit). After exceeding the maximum retries, it can send you a notification, allowing you to take further action. This blueprint offers customizable timeouts and integrates seamlessly with your existing Home Assistant setup.

I suggest you add a my- link to make it easier for people to load your blueprint…

I created a retry lock if jammed blueprint, for example for Switchbot locks. I found that the built in door open sensor is not always correct, but the door jammed state is always correct.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

It will also need a corresponding automation to clear the retry counter once it detected that it successfully locked, whether automatically or manually. You can create it either either the UI or the YAML

alias: Reset door lock retry counter when it's successfully locked
description: ""
triggers:
  - device_id: 0X
    domain: lock
    entity_id: aX
    type: locked
    trigger: device
conditions: []
actions:
  - action: counter.reset
    metadata: {}
    data: {}
    target:
      entity_id: counter.door_lock_jammed_retries
mode: single

@garnser you read my mind! In my current/legacy automation system I did this in an automation also. I provided it 3 tries, which worked fine 99.5% of the time.

have you looked at integrating what @purplepanda did? I do find my Schlage locks jam sometimes too.

@garnser Any chance you might extend this BP? Would love to see these included options for…

  • Disable set hour range during the day (eg… 7:00 am to 8:00 pm)
  • Disable if Helper with specific state or value (eg… House Mode set to Disarm)

Heyhey
I just found this blueprint and it might be extremely usefull for me as my brandnew Nuki Pro (5th gen) often loses connection.
My door should be locked DIRECTLY after the door contact is closed.
In this blueprint the minimum for door_close_timeout is 1.
Is there any way to set this to 0? Or maybe adjust it in seconds?