From bd42bcd8a620cce9069884cfd83f3450539a8d7f Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 2 Feb 2021 23:57:01 +0100 Subject: [PATCH] Update phone automations switch order script with notification add debug automation --- .../files/automations/phone-automations.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/automations/files/automations/phone-automations.yaml b/automations/files/automations/phone-automations.yaml index 9aca129..509a302 100644 --- a/automations/files/automations/phone-automations.yaml +++ b/automations/files/automations/phone-automations.yaml @@ -13,10 +13,10 @@ entity_id: device_tracker.sm_g965f type: is_home action: - - service: script.goodnight - service: notify.mobile_app_sm_g965f data: message: Sleep automation + - service: script.good_night - id: phone-sleep-end alias: '[Phone] Sleep end' @@ -33,7 +33,18 @@ entity_id: device_tracker.sm_g965f type: is_home action: - - service: script.goodmorning - service: notify.mobile_app_sm_g965f data: message: Sleep automation + - service: script.good_morning + +- id: phone-webhook + alias: '[Phone] Webhook' + mode: single + trigger: + - platform: webhook + webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512 + action: + - service: notify.mobile_app_sm_g965f + data: + message: 'Automation {{ trigger.event.data.event }}' \ No newline at end of file