1
0

Fix look with locking door

This commit is contained in:
Przemek Grondek 2022-11-29 00:58:23 +01:00
parent 8f10b821b7
commit 82ea8d0cec

View File

@ -42,9 +42,17 @@ good_night:
- cover.bedroom_blinds - cover.bedroom_blinds
- cover.dining_blinds - cover.dining_blinds
- cover.office_blinds - cover.office_blinds
- choose:
- conditions:
- condition: state
entity_id: lock.front_door_lock_doorlock
state: unlocked
sequence:
- service: lock.lock - service: lock.lock
data: { }
target: target:
entity_id: lock.front_door_lock_doorlock entity_id: lock.front_door_lock_doorlock
- choose: - choose:
- conditions: - conditions:
- condition: numeric_state - condition: numeric_state
@ -156,7 +164,14 @@ leave_home:
entity_id: entity_id:
- switch.printer_switch - switch.printer_switch
- service: script.pc_sleep - service: script.pc_sleep
- choose:
- conditions:
- condition: state
entity_id: lock.front_door_lock_doorlock
state: unlocked
sequence:
- service: lock.lock - service: lock.lock
data: { }
target: target:
entity_id: lock.front_door_lock_doorlock entity_id: lock.front_door_lock_doorlock
- service: script.tv_off - service: script.tv_off