48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
- id: presence_arrive
|
|
alias: '[Presence] Arrive Home'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: person.przemek
|
|
to: home
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Day
|
|
action:
|
|
- service: notify.mobile_app_iphone
|
|
data:
|
|
message: Arrive home
|
|
data:
|
|
actions:
|
|
- action: ARRIVE_HOME
|
|
title: Run automation
|
|
- action: ARRIVE_HOME_UNLOCK
|
|
title: Run automation & Unlock door
|
|
- action: UNLOCK_DOOR
|
|
title: Unlock door
|
|
|
|
- id: presence_leave
|
|
alias: '[Presence] Leave Home'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: person.przemek
|
|
from: home
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Away
|
|
action:
|
|
- service: notify.mobile_app_iphone
|
|
data:
|
|
message: You left home
|
|
data:
|
|
actions:
|
|
- action: LEAVE_HOME
|
|
title: Run automation
|
|
- action: LOCK_DOOR
|
|
title: Lock door
|