From 0581f0780751166d586306585d80a22e29d6ff99 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 30 Nov 2016 23:38:11 +0000 Subject: [PATCH] Use the New Script to send alerts to IFTTT and Me. --- automation/device_status.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/automation/device_status.yaml b/automation/device_status.yaml index a6c63779..e2009f56 100755 --- a/automation/device_status.yaml +++ b/automation/device_status.yaml @@ -25,5 +25,10 @@ - sensor.garadget_small - sensor.garadget_large action: - service: ifttt.trigger - data_template: {"event":"ifttt_notify", "value1":"{{ trigger.entity_id.split('.')[1] }} is ", "value2":"{{ trigger.to_state.state }}"} + service: script.turn_on + entity_id: script.notify_ifttt + data_template: + variables: + value1: 'Device Status ' + value2: "{{ trigger.entity_id.split('.')[1] }} is " + value3: "{{ trigger.to_state.state }}"