Compare commits
3 Commits
8f10b821b7
...
715b599324
Author | SHA1 | Date | |
---|---|---|---|
715b599324 | |||
38f55f54d9 | |||
82ea8d0cec |
@ -4,6 +4,11 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: person.przemek
|
entity_id: person.przemek
|
||||||
to: home
|
to: home
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
@ -21,6 +26,11 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: person.przemek
|
entity_id: person.przemek
|
||||||
from: home
|
from: home
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Away
|
||||||
action:
|
action:
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
|
@ -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,24 @@ 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:
|
||||||
|
- 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: { }
|
||||||
target:
|
target:
|
||||||
entity_id: lock.front_door_lock_doorlock
|
entity_id: lock.front_door_lock_doorlock
|
||||||
- service: script.tv_off
|
- service: script.tv_off
|
||||||
|
Loading…
Reference in New Issue
Block a user