From bbf93ac1320b2010a00c52a04e1d7bb5b6c7a503 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Mon, 28 Nov 2016 19:38:17 +0000 Subject: [PATCH] Send alerts via IFTTT_NOTIFY event --- automation/device_status.yaml | 2 +- automation/watchdog.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/automation/device_status.yaml b/automation/device_status.yaml index 52ef3e86..a6c63779 100755 --- a/automation/device_status.yaml +++ b/automation/device_status.yaml @@ -26,4 +26,4 @@ - sensor.garadget_large action: service: ifttt.trigger - data_template: {"event":"ifttt_notify", "value1":"{{ trigger.entity_id.split('.')[1] }}", "value2":"{{ trigger.to_state.state }}"} + data_template: {"event":"ifttt_notify", "value1":"{{ trigger.entity_id.split('.')[1] }} is ", "value2":"{{ trigger.to_state.state }}"} diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index ee839bf1..37c09ed3 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -47,6 +47,10 @@ - platform: sun event: sunset offset: '+01:00:00' + - platform: state + entity_id: group.family + state: not_home + for: 00:05:00 condition: - condition: sun