Files
N22/include/automations/kommerhjem.yaml
T

128 lines
2.7 KiB
YAML

- alias: 'Mor kommer hjem'
trigger:
platform: state
entity_id: device_tracker.annes_iphone_xs_4
to: 'home'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Mor kommer hjem'
- alias: 'Daniel kommer hjem (mor)'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7_3
to: 'home'
action:
service: notify.mobile_app_annes_iphone_xs
data:
message: 'Daniel kommer hjem'
- alias: 'Daniel kommer hjem'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7_3
to: 'home'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Daniel kommer hjem'
- alias: 'Andreas kommer hjem (mor)'
trigger:
platform: state
entity_id: device_tracker.andreas_iphone_12
to: 'home'
action:
service: notify.mobile_app_annes_iphone_xs
data:
message: 'Andreas kommer hjem'
- alias: 'Andreas kommer hjem'
trigger:
platform: state
entity_id: device_tracker.andreas_iphone_12
to: 'home'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Andreas kommer hjem'
- alias: 'Andreas ankommer til skole (mor)'
trigger:
platform: state
entity_id: device_tracker.andreas_iphone_12
to: 'Skole'
action:
service: notify.mobile_app_annes_iphone_xs
data:
message: 'Andreas ankommer til skole'
- alias: 'Andreas ankommer til skole'
trigger:
platform: state
entity_id: device_tracker.andreas_iphone_12
to: 'Skole'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Andreas ankommer til skole'
- alias: 'Andreas tager fra skole'
trigger:
platform: state
entity_id: device_tracker.andreas_iphone_12
from: 'Skole'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Andreas tager fra skole'
- alias: 'Daniel ankommer til skole (mor)'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7_3
to: 'Skole'
action:
service: notify.mobile_app_annes_iphone_xs
data:
message: 'Daniel ankommer til skole'
- alias: 'Daniel ankommer til skole'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7_3
to: 'Skole'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Daniel ankommer til skole'
- alias: 'Daniel tager fra skole'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7_3
from: 'Skole'
action:
service: notify.mobile_app_clausiphone
data:
message: 'Daniel tager fra skole'