#Do not allow locking when door open
1 messages · Page 1 of 1 (latest)
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
Trigger on the door contact sensor, not the lock. When the contact sensor closes, engage the lock.
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.
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?
Ohhhhh, I see what you mean. Yes, but flip the "off" to "on" in your condition.
hmm.. doesn't work unfortunately..
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.
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!
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.
lol I have like 5 automations just for my door locks
Oh wow! Can you share what they are? Maybe there’s something I can reuse?
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.
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