Fix lock state

This commit is contained in:
Jakob Lechner 2024-05-07 00:02:55 +00:00
parent dc2e0b3461
commit c9b2a0bcca

View file

@ -49,15 +49,16 @@ lock:
- platform: template
name: "Türschloss"
id: tuerschloss
optimistic: true
assumed_state: true
lock_action:
- output.turn_on: btn_lock
- delay: 250ms
- output.turn_off: btn_lock
- delay: 5s
- lambda: id(tuerschloss).publish_state(LOCK_STATE_LOCKED);
unlock_action:
- output.turn_on: btn_unlock
- delay: 250ms
- output.turn_off: btn_unlock
- delay: 5s
- lambda: id(tuerschloss).publish_state(LOCK_STATE_UNLOCKED);