When I add a card for a lock I have I do not get this behaviour, how to I enable this?
Do your locks have this feature?
That is just a smart lock without a latch opening mechanism. So that is why you are not seeing the new features.
Ah, thanks for this clarification!
I’m disappointed. Even if the door doesn’t unlatch, it can still be inadvertently unlocked which is not great behavior. Any way to add this to prevent accidental unlocking with a regular smart lock?
Hi,
in my case the door is controlled with three KNX-switches:
- Short open (latch mechanism)
- permanently open lock
- Close lock
Every switch works as a button. Only “on” has an action and they return automatically to “off” after 2 seconds.
Is there any way to use the new lock behavior? Perhaps with the lock template? But I cannot find something like the latch status.
Many thanks in advenced.
I does not seem to be supported by the template lock. So at the moment has to come direct from an integration that supports it.
You could open a Feature Request asking for support for latches in the template lock.
Added PR to HA core:
Add open action to lock entity of the template component by TiHiNi · Pull Request #116888 · home-assistant/core (github.com)
Is there anyway to apply this to other items as well? Such as a shelly for my garage door or gates?
My Danalock V3 has a latch function, that I use on my front door. However I cannot use the Lock behavior improvements with this lock. Would be great if this functionality would become more general available. I have switches that I do not wat to use by accident also…
Anyone got the Lock behavior improvements working with Danalock V3?
Is this PR working on the current HA?
I just saw it today:
gjohansson-ST finished my work with PR “Add open to Template lock by gjohansson-ST · Pull Request #129292 · home-assistant/core”
So, it should working in current HA release. I don’t want to test it with my front door while I’m away from home.
EDIT:
Made a quick test with helpers on 2024.12.5.
lock:
- platform: template
name: My template lock
value_template: "{{ 'locked' if is_state('input_boolean.door', 'on') else 'unlocked' }}"
lock:
action: input_boolean.turn_on
target:
entity_id: input_boolean.door
unlock:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.door
open:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.door_short
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- action: input_boolean.turn_off
target:
entity_id: input_boolean.door_short
- action: lock.lock
target:
entity_id: lock.garage_door
Locks like that in UI und seems to work: