Lock door after leaving
This commit is contained in:
parent
82ea8d0cec
commit
38f55f54d9
@ -170,6 +170,16 @@ leave_home:
|
||||
entity_id: lock.front_door_lock_doorlock
|
||||
state: unlocked
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_door_open_close
|
||||
state: 'on'
|
||||
sequence:
|
||||
- wait_for_trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door_open_close
|
||||
to: 'off'
|
||||
- service: lock.lock
|
||||
data: { }
|
||||
target:
|
||||
|
Loading…
Reference in New Issue
Block a user