1
0

Lock door after leaving

This commit is contained in:
Przemek Grondek 2022-11-29 01:03:17 +01:00
parent 82ea8d0cec
commit 38f55f54d9

View File

@ -170,6 +170,16 @@ leave_home:
entity_id: lock.front_door_lock_doorlock entity_id: lock.front_door_lock_doorlock
state: unlocked state: unlocked
sequence: 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 - service: lock.lock
data: { } data: { }
target: target: