Closes #881 - Obsolete Service_TEMPLATE and Data_TEMPLATE

This commit is contained in:
ccostan
2020-09-26 10:52:45 -04:00
parent 5ca2927919
commit b17be0e2f1
74 changed files with 171 additions and 170 deletions

View File

@@ -2,6 +2,7 @@
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
## Plays the number of cuckoos per hour and 1 on the half hour.
# More Info and Video: https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html
#####################################################################
- alias: Cuckoo Clock
@@ -35,7 +36,7 @@
- wait_template: "{{ not is_state('media_player.livingroomCC', 'playing') }}"
- service: media_player.play_media
data_template:
data:
entity_id: >
{% if states.group.bed.state == 'off' %}
media_player.livingroomCC

View File

@@ -13,7 +13,7 @@
action:
- service: script.tweet_engine_image
data_template:
data:
tweet: >-
{{ [
"While they sleep, I self heal the #Z-Wave network with #Wink. (https://github.com/CCOSTAN/Home-AssistantConfig#hubs)",

View File

@@ -7,14 +7,14 @@
action:
- service: script.notify_engine
data_template:
data:
value1: 'Check the Wink Hub. Update is needed.'
value2: "{{ states.binary_sensor.carlowink.attributes }}"
value3: ''
who: 'carlo'
- service: notify.html5
data_template:
data:
title: "Wink Update Available"
message: "Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
data:
@@ -27,10 +27,10 @@
notification_id: "update_available"
- service: ifttt.trigger
data_template: {"event":"GitPost", "value1":"Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value2":"{{ states.binary_sensor.carlowink.attributes }}"}
data: {"event":"GitPost", "value1":"Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value2":"{{ states.binary_sensor.carlowink.attributes }}"}
- service: script.tweet_engine_no_image
data_template:
data:
tweet: >
{{ [
"Check @TheWinkApp Hub @CCostan. Update is needed. {{ states.binary_sensor.carlowink.attributes }}",

View File

@@ -10,7 +10,7 @@
action:
- service: script.notify_engine
data_template:
data:
value1: 'Bad Login: '
value2: 'There was a Hack attempt!'
value3: 'Go Check the GUI for details.'
@@ -18,7 +18,7 @@
apns_id: 'information'
- service: script.tweet_engine_image
data_template:
data:
tweet: >
{{ [
"Seriously, I am a Smart Home. I am logging your hack attempt.",

View File

@@ -39,7 +39,7 @@
action:
- service: light.turn_on
data_template:
data:
entity_id: "{{ trigger.event.data.entity_id }}"
brightness: >
{% set hour=states("sensor.time").split(':')[0] | int %}

View File

@@ -22,7 +22,7 @@
volume_level: 0.22
- service: media_player.play_media
data_template:
data:
entity_id: >
{% if states.group.bed.state == 'off' %}
media_player.livingroomCC

View File

@@ -14,7 +14,7 @@
to: 'True'
action:
- service: script.notify_engine
data_template:
data:
value1: 'Changed IP address:'
value2: "New IP: {{ states('sensor.exteral_ip') }}"
value3: ' - Be sure to Change DNS!'
@@ -22,7 +22,7 @@
apns_id: 'ip-change'
- service: script.tweet_engine_no_image
data_template:
data:
tweet: >
{{ [
"That's weird. Looks like my IP address changed. @CCostan, please check it out.",

View File

@@ -31,10 +31,10 @@
action:
- service: ifttt.trigger
data_template: {"event":"Rachio_Rain_Delay"}
data: {"event":"Rachio_Rain_Delay"}
- service: script.tweet_engine_image
data_template:
data:
tweet: >
{{ [
"Looks like Rain, Pausing the @_Rachio for 24 hours. (https://github.com/CCOSTAN/Home-AssistantConfig#landscaping)",

View File

@@ -9,13 +9,13 @@
event_type: feedreader
action:
- service: script.notify_engine
data_template:
data:
value1: 'Check the MQTT Dump'
value2: '/dump/{{ trigger.platform }}'
who: 'carlo'
apns_id: 'information'
- service: mqtt.publish
data_template:
data:
topic: '/dump/{{ trigger.platform }}'
retain: false
payload: >-

View File

@@ -15,17 +15,17 @@
action:
- service: script.notify_engine
data_template:
data:
title: 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} '
value1: "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available."
who: 'carlo'
apns_id: 'information'
- service: ifttt.trigger
data_template: {"event":"GitPost", "value1":"Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available.", "value2":"{{ states.binary_sensor.updater.attributes.newest_version }} "}
data: {"event":"GitPost", "value1":"Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available.", "value2":"{{ states.binary_sensor.updater.attributes.newest_version }} "}
- service: script.tweet_engine_image
data_template:
data:
tweet: >-
{% macro getIntro() %}
{{- [

View File

@@ -16,7 +16,7 @@
#Turn it off!
action:
- service: homeassistant.turn_off
data_template:
data:
entity_id: "{{ trigger.entity_id }}"
- alias: Make it Right WatchDog!
@@ -33,7 +33,7 @@
#Turn it off!
action:
- service: homeassistant.turn_off
data_template:
data:
entity_id:
- switch.front_landscaping
- switch.back_landscaping