2023-06-12 21:56:22 +00:00
|
|
|
- id: presence_arrive
|
2022-04-19 22:49:00 +00:00
|
|
|
alias: '[Presence] Arrive Home'
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: person.przemek
|
|
|
|
to: home
|
2022-11-29 00:06:33 +00:00
|
|
|
condition:
|
2022-11-29 00:06:33 +00:00
|
|
|
- condition: not
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
2022-04-19 22:49:00 +00:00
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-04-19 22:49:00 +00:00
|
|
|
data:
|
|
|
|
message: Arrive home
|
|
|
|
data:
|
|
|
|
actions:
|
|
|
|
- action: ARRIVE_HOME
|
|
|
|
title: Run automation
|
2024-03-31 20:24:41 +00:00
|
|
|
- action: ARRIVE_HOME_UNLOCK
|
|
|
|
title: Run automation & Unlock door
|
2022-04-19 22:49:00 +00:00
|
|
|
- action: UNLOCK_DOOR
|
|
|
|
title: Unlock door
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: presence_leave
|
2022-04-19 22:49:00 +00:00
|
|
|
alias: '[Presence] Leave Home'
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: person.przemek
|
|
|
|
from: home
|
2022-11-29 00:06:33 +00:00
|
|
|
condition:
|
2022-11-29 00:06:33 +00:00
|
|
|
- condition: not
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Away
|
2022-04-19 22:49:00 +00:00
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-04-19 22:49:00 +00:00
|
|
|
data:
|
|
|
|
message: You left home
|
|
|
|
data:
|
|
|
|
actions:
|
|
|
|
- action: LEAVE_HOME
|
|
|
|
title: Run automation
|
|
|
|
- action: LOCK_DOOR
|
|
|
|
title: Lock door
|