mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Using IFTTT as a script using a data template and variables!
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
platform: numeric_state
|
||||
entity_id: sensor.badlogin
|
||||
above: 1
|
||||
|
||||
action:
|
||||
service: ifttt.trigger
|
||||
data: {"event":"ifttt_notify", "value1":"Home Assistant Error: ", "value2":"Login Failure Detected"}
|
||||
service: script.ifttt_notify
|
||||
data_template:
|
||||
value1: 'Bad Login: '
|
||||
value2: 'There was a Hack attempt!'
|
||||
value3: ''
|
||||
|
@@ -25,10 +25,8 @@
|
||||
- sensor.garadget_small
|
||||
- sensor.garadget_large
|
||||
action:
|
||||
service: script.turn_on
|
||||
entity_id: script.notify_ifttt
|
||||
service: script.ifttt_notify
|
||||
data_template:
|
||||
variables:
|
||||
value1: 'Device Status '
|
||||
value2: "{{ trigger.entity_id.split('.')[1] }} is "
|
||||
value3: "{{ trigger.to_state.state }}"
|
||||
value1: 'Device Status:'
|
||||
value2: "{{ trigger.entity_id.split('.')[1] }} is "
|
||||
value3: "{{ trigger.to_state.state }}"
|
||||
|
@@ -8,10 +8,8 @@
|
||||
platform: event
|
||||
event_type: homeassistant_start
|
||||
action:
|
||||
service: script.turn_on
|
||||
entity_id: script.notify_ifttt
|
||||
service: script.ifttt_notify
|
||||
data_template:
|
||||
variables:
|
||||
value1: "Startup: Home Assistant is Up and Running!"
|
||||
value2: ""
|
||||
value3: ""
|
||||
value1: 'Startup: Home Assistant is Up and Running!'
|
||||
value2: ''
|
||||
value3: ''
|
||||
|
@@ -9,8 +9,11 @@
|
||||
value_template: "{{ states('updater.updater') != 'unknown' }}"
|
||||
|
||||
action:
|
||||
- service: ifttt.trigger
|
||||
data: {"event":"ifttt_notify", "value1":"Home Assistant Update: ", "value2":"Available"}
|
||||
- service: script.ifttt_notify
|
||||
data_template:
|
||||
value1: 'There is a new Version of Home-Assistant Available.'
|
||||
value2: "{{ states('updater.updater') }}"
|
||||
value3: ''
|
||||
|
||||
- service: notify.html5
|
||||
data_template:
|
||||
|
Reference in New Issue
Block a user