diff --git a/automations/files/automations/phone-automations.yaml b/automations/files/automations/phone-automations.yaml index 369d849..7bd0cbb 100644 --- a/automations/files/automations/phone-automations.yaml +++ b/automations/files/automations/phone-automations.yaml @@ -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 }} '