#Do not allow locking when door open

1 messages · Page 1 of 1 (latest)

zinc flare
#

Hi all, I have a door lock from Nuki and an Eve Door sensor. Everything works very well, however do have childeren that do play a lot and are very active. Was wondering if it is possible not to allow locking the door while it is open?

#

My current setup recognises the door is open, but still locks it: alias: Lock Door Only When Closed
triggers:

  • entity_id: lock.nuki_3_0_pro
    to: locking
    trigger: state
    conditions:
  • condition: state
    entity_id: binary_sensor.front_door_door
    state: "off"
    actions:
  • target:
    entity_id: lock.nuki_3_0_pro
    action: lock.lock
    data: {}
    mode: single
fathom zinc
#

Trigger on the door contact sensor, not the lock. When the contact sensor closes, engage the lock.

jade furnaceBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

zinc flare
#

ok, that would lock the door when it closes. But was wondering if it is possible disable to lock when the door is open or abort locking when the door is open?

fathom zinc
#

Ohhhhh, I see what you mean. Yes, but flip the "off" to "on" in your condition.

zinc flare
#

hmm.. doesn't work unfortunately..

fathom zinc
#

Ohhhhhh... wait... your trigger is basically when the lock IS locking... I don't think you can intercept that and stop it. You could just unlock it again instead.

zinc flare
#

ahh pity. I had already a 2nd automation to unlock yes. But hoped, maybe there's something I wasn't aware off

#

Thanks for the advice!

fathom zinc
#

No worries. Now that you mention it, I have the same problem (sans the small children), but I just unlock again after an errant lock event.

zinc flare
#

Hehehehe

#

So many automations are made around them

fathom zinc
#

lol I have like 5 automations just for my door locks

zinc flare
#

Oh wow! Can you share what they are? Maybe there’s something I can reuse?

fathom zinc
#

Nothing special really... just auto-locking "things" as doors close and stuff like that.

#

Auto lock doors is kinda cool. So, when I get home, the doors unlock. But, I may come in one door or the other. So, after 5 minutes, if the door is closed, it makes sure it's locked.

zinc flare
#

Ah yes, Auto Locking I’ve especially didn’t make them. What if I leave my phone or smartwatch out. My wife isn’t that vigilant with her phone. So me ringing would still leave me locked outside.
Instead I made TTS notifications over all my homepods and lightshows after the door isn’t closed or locked for a few minutes

fathom zinc
#

All my locks have keypads for that very reason (although, the chances of me not having my watch or phone as slim). Plus, I do presence with my watch, phone, car and tablet. Soooo, the chances of me having none of those are slim, if at all.

#

But also, TOTALLY get it too lol