From bec6903fb1b7621e908adcc95da4a8cda4aa6a78 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 1 Dec 2016 04:20:45 +0000 Subject: [PATCH] Scripting Notify IFTTT --- automation/watchdog.yaml | 7 +++++-- script/switch_turn_off.yaml | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 script/switch_turn_off.yaml diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index 0bb4d185..baa097b5 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -58,6 +58,9 @@ value_template: "{{ states('cover.garadget_small') == 'opened' }}" action: - - service: ifttt.trigger - data: {"event":"ifttt_notify", "value1":"Check Garage Doors: ", "value2":"Small: {{ states('cover.garadget_small')}}", "value3":"Large: {{ states('cover.garadget_large')}} "} + service: script.ifttt_notify + data_template: + value1: 'Check Garage Doors:' + value2: "Small: {{ states('cover.garadget_small')}}" + value3: "Large: {{ states('cover.garadget_large')}}" diff --git a/script/switch_turn_off.yaml b/script/switch_turn_off.yaml new file mode 100755 index 00000000..19f5e594 --- /dev/null +++ b/script/switch_turn_off.yaml @@ -0,0 +1,15 @@ +###################################################################################################### +###Script to send notifications to IFTTT to notify me on the mobile Phone! Call like this: +###################################################################################################### + +switch_turn_off: + sequence: + - service: switch.turn_off + entity_id: switch.kitchen_accents + - delay: '00:00:30' + - service: switch.turn_off + entity_id: switch.kitchen_accents + - delay: '00:00:30' + - service: switch.turn_off + entity_id: switch.kitchen_accents + - delay: '00:00:30' \ No newline at end of file