1
0

WIP Sleep as Android automations

This commit is contained in:
pgrondek 2021-04-17 12:35:50 +02:00
parent 3398d72036
commit 09e7c125cd

View File

@ -13,7 +13,7 @@
entity_id: device_tracker.sm_g965f entity_id: device_tracker.sm_g965f
type: is_home type: is_home
- condition: template - condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}' value_template: '{{ trigger.json.event == ''sleep_tracking_started'' }}'
sequence: sequence:
- service: notify.mobile_app_sm_g965f - service: notify.mobile_app_sm_g965f
data: data:
@ -26,7 +26,7 @@
entity_id: device_tracker.sm_g965f entity_id: device_tracker.sm_g965f
type: is_home type: is_home
- condition: template - condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STOPPED'' }}' value_template: '{{ trigger.json.event == ''sleep_tracking_stopped'' }}'
sequence: sequence:
- service: notify.mobile_app_sm_g965f - service: notify.mobile_app_sm_g965f
data: data:
@ -35,5 +35,6 @@
default: default:
- service: notify.mobile_app_sm_g965f - service: notify.mobile_app_sm_g965f
data: data:
message: 'Unknown state ' title: 'Sleep As Android automation'
message: 'Unknown event: {{ trigger.json }} '