Fix lock state
This commit is contained in:
parent
dc2e0b3461
commit
c9b2a0bcca
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue