diff --git a/scripts/10.modes.yaml b/scripts/10.modes.yaml index 8ec7282..e730e5e 100644 --- a/scripts/10.modes.yaml +++ b/scripts/10.modes.yaml @@ -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: