Files
N22/include/automations/kommerhjem.yaml
T
claus cce5ee594d Changed iphone entity
Could gollum be something?
2022-01-30 09:40:17 +01:00

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_claus_iphone8
data:
message: 'Mor kommer hjem'
- alias: 'Daniel kommer hjem (mor)'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7
to: 'home'
action:
service: notify.mobile_app_annes_iphone_xs_4
data:
message: 'Daniel kommer hjem'
- alias: 'Daniel kommer hjem'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7
to: 'home'
action:
service: notify.mobile_app_claus_iphone8
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_4
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_claus_iphone8
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_4
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_claus_iphone8
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_claus_iphone8
data:
message: 'Andreas tager fra skole'
- alias: 'Daniel ankommer til skole (mor)'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7
to: 'Skole'
action:
service: notify.mobile_app_annes_iphone_xs_4
data:
message: 'Daniel ankommer til skole'
- alias: 'Daniel ankommer til skole'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7
to: 'Skole'
action:
service: notify.mobile_app_claus_iphone8
data:
message: 'Daniel ankommer til skole'
- alias: 'Daniel tager fra skole'
trigger:
platform: state
entity_id: device_tracker.daniels_iphone_7
from: 'Skole'
action:
service: notify.mobile_app_claus_iphone8
data:
message: 'Daniel tager fra skole'