WIP Sleep as Android automations
This commit is contained in:
parent
3398d72036
commit
09e7c125cd
@ -13,7 +13,7 @@
|
||||
entity_id: device_tracker.sm_g965f
|
||||
type: is_home
|
||||
- condition: template
|
||||
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}'
|
||||
value_template: '{{ trigger.json.event == ''sleep_tracking_started'' }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_sm_g965f
|
||||
data:
|
||||
@ -26,7 +26,7 @@
|
||||
entity_id: device_tracker.sm_g965f
|
||||
type: is_home
|
||||
- condition: template
|
||||
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STOPPED'' }}'
|
||||
value_template: '{{ trigger.json.event == ''sleep_tracking_stopped'' }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_sm_g965f
|
||||
data:
|
||||
@ -35,5 +35,6 @@
|
||||
default:
|
||||
- service: notify.mobile_app_sm_g965f
|
||||
data:
|
||||
message: 'Unknown state '
|
||||
title: 'Sleep As Android automation'
|
||||
message: 'Unknown event: {{ trigger.json }} '
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user