Closes #881 - Obsolete Service_TEMPLATE and Data_TEMPLATE
This commit is contained in:
parent
5ca2927919
commit
b17be0e2f1
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'VERY HIGH WINDS:'
|
title: 'VERY HIGH WINDS:'
|
||||||
value1: >-
|
value1: >-
|
||||||
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
||||||
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
|
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
- service: script.emergency
|
- service: script.emergency
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
{% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
||||||
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
|
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
action:
|
action:
|
||||||
# This Group is defined in the groups directory.
|
# This Group is defined in the groups directory.
|
||||||
- service: group.set
|
- service: group.set
|
||||||
data_template:
|
data:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
add_entities: >-
|
add_entities: >-
|
||||||
{{ trigger.to_state.entity_id }}
|
{{ trigger.to_state.entity_id }}
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
- delay: '00:01:00'
|
- delay: '00:01:00'
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
# {% set person = state_attr(trigger.entity_id, "friendly_name")%} This is another way to do it.
|
# {% set person = state_attr(trigger.entity_id, "friendly_name")%} This is another way to do it.
|
||||||
# {% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
# {% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
||||||
personarriving: >
|
personarriving: >
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
|
|
||||||
- service: group.set
|
- service: group.set
|
||||||
data_template:
|
data:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
entities: []
|
entities: []
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
value1: "The {{ trigger.to_state.attributes.friendly_name }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
value1: "The {{ trigger.to_state.attributes.friendly_name }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
@ -31,6 +31,6 @@
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
call_inside_weather: 1
|
call_inside_weather: 1
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"Guest Mode has been enabled for the rest of the day.",
|
"Guest Mode has been enabled for the rest of the day.",
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.guest_mode
|
- input_boolean.guest_mode
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"Guest Mode has been disabled and normal automations will continue.",
|
"Guest Mode has been disabled and normal automations will continue.",
|
||||||
|
|
|
@ -19,6 +19,6 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
NestStatus: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}."
|
NestStatus: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}."
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
{{ not is_state('media_player.livingroomCC', 'playing') }}
|
{{ not is_state('media_player.livingroomCC', 'playing') }}
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
NewDevice: "There has been a new device detected on the network. Be sure to appropriately catagorize {{trigger.event.data.host_name}} within Circle."
|
NewDevice: "There has been a new device detected on the network. Be sure to appropriately catagorize {{trigger.event.data.host_name}} within Circle."
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"New Device on the Network! @MeetCircle has alerted me and now it is locked down.",
|
"New Device on the Network! @MeetCircle has alerted me and now it is locked down.",
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# @CCOSTAN
|
# @CCOSTAN
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
## Plays the number of cuckoos per hour and 1 on the half hour.
|
## 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
|
- alias: Cuckoo Clock
|
||||||
|
@ -35,7 +36,7 @@
|
||||||
- wait_template: "{{ not is_state('media_player.livingroomCC', 'playing') }}"
|
- wait_template: "{{ not is_state('media_player.livingroomCC', 'playing') }}"
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if states.group.bed.state == 'off' %}
|
{% if states.group.bed.state == 'off' %}
|
||||||
media_player.livingroomCC
|
media_player.livingroomCC
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"While they sleep, I self heal the #Z-Wave network with #Wink. (https://github.com/CCOSTAN/Home-AssistantConfig#hubs)",
|
"While they sleep, I self heal the #Z-Wave network with #Wink. (https://github.com/CCOSTAN/Home-AssistantConfig#hubs)",
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Check the Wink Hub. Update is needed.'
|
value1: 'Check the Wink Hub. Update is needed.'
|
||||||
value2: "{{ states.binary_sensor.carlowink.attributes }}"
|
value2: "{{ states.binary_sensor.carlowink.attributes }}"
|
||||||
value3: ''
|
value3: ''
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
|
||||||
- service: notify.html5
|
- service: notify.html5
|
||||||
data_template:
|
data:
|
||||||
title: "Wink Update Available"
|
title: "Wink Update Available"
|
||||||
message: "Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
message: "Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
||||||
data:
|
data:
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
notification_id: "update_available"
|
notification_id: "update_available"
|
||||||
|
|
||||||
- service: ifttt.trigger
|
- 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
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Check @TheWinkApp Hub @CCostan. Update is needed. {{ states.binary_sensor.carlowink.attributes }}",
|
"Check @TheWinkApp Hub @CCostan. Update is needed. {{ states.binary_sensor.carlowink.attributes }}",
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Bad Login: '
|
value1: 'Bad Login: '
|
||||||
value2: 'There was a Hack attempt!'
|
value2: 'There was a Hack attempt!'
|
||||||
value3: 'Go Check the GUI for details.'
|
value3: 'Go Check the GUI for details.'
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Seriously, I am a Smart Home. I am logging your hack attempt.",
|
"Seriously, I am a Smart Home. I am logging your hack attempt.",
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: "{{ trigger.event.data.entity_id }}"
|
entity_id: "{{ trigger.event.data.entity_id }}"
|
||||||
brightness: >
|
brightness: >
|
||||||
{% set hour=states("sensor.time").split(':')[0] | int %}
|
{% set hour=states("sensor.time").split(':')[0] | int %}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
volume_level: 0.22
|
volume_level: 0.22
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if states.group.bed.state == 'off' %}
|
{% if states.group.bed.state == 'off' %}
|
||||||
media_player.livingroomCC
|
media_player.livingroomCC
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
to: 'True'
|
to: 'True'
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Changed IP address:'
|
value1: 'Changed IP address:'
|
||||||
value2: "New IP: {{ states('sensor.exteral_ip') }}"
|
value2: "New IP: {{ states('sensor.exteral_ip') }}"
|
||||||
value3: ' - Be sure to Change DNS!'
|
value3: ' - Be sure to Change DNS!'
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
apns_id: 'ip-change'
|
apns_id: 'ip-change'
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"That's weird. Looks like my IP address changed. @CCostan, please check it out.",
|
"That's weird. Looks like my IP address changed. @CCostan, please check it out.",
|
||||||
|
|
|
@ -31,10 +31,10 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: ifttt.trigger
|
- service: ifttt.trigger
|
||||||
data_template: {"event":"Rachio_Rain_Delay"}
|
data: {"event":"Rachio_Rain_Delay"}
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Looks like Rain, Pausing the @_Rachio for 24 hours. (https://github.com/CCOSTAN/Home-AssistantConfig#landscaping)",
|
"Looks like Rain, Pausing the @_Rachio for 24 hours. (https://github.com/CCOSTAN/Home-AssistantConfig#landscaping)",
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
event_type: feedreader
|
event_type: feedreader
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Check the MQTT Dump'
|
value1: 'Check the MQTT Dump'
|
||||||
value2: '/dump/{{ trigger.platform }}'
|
value2: '/dump/{{ trigger.platform }}'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: '/dump/{{ trigger.platform }}'
|
topic: '/dump/{{ trigger.platform }}'
|
||||||
retain: false
|
retain: false
|
||||||
payload: >-
|
payload: >-
|
||||||
|
|
|
@ -15,17 +15,17 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} '
|
title: 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} '
|
||||||
value1: "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available."
|
value1: "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available."
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
||||||
- service: ifttt.trigger
|
- 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
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{% macro getIntro() %}
|
{% macro getIntro() %}
|
||||||
{{- [
|
{{- [
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#Turn it off!
|
#Turn it off!
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data_template:
|
data:
|
||||||
entity_id: "{{ trigger.entity_id }}"
|
entity_id: "{{ trigger.entity_id }}"
|
||||||
|
|
||||||
- alias: Make it Right WatchDog!
|
- alias: Make it Right WatchDog!
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
#Turn it off!
|
#Turn it off!
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data_template:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- switch.front_landscaping
|
- switch.front_landscaping
|
||||||
- switch.back_landscaping
|
- switch.back_landscaping
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{{ not is_state('media_player.whole_house', 'playing') }}
|
{{ not is_state('media_player.whole_house', 'playing') }}
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
call_no_announcement: 1
|
call_no_announcement: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
|
|
|
@ -40,5 +40,5 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
data_template:
|
data:
|
||||||
entity_id: "{{ trigger.entity_id }}"
|
entity_id: "{{ trigger.entity_id }}"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
event: start
|
event: start
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Home Assistant StartUp'
|
title: 'Home Assistant StartUp'
|
||||||
value1: 'Home Assistant is Up and Running!'
|
value1: 'Home Assistant is Up and Running!'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
payload: "get-status"
|
payload: "get-status"
|
||||||
|
|
||||||
- service: group.set
|
- service: group.set
|
||||||
data_template:
|
data:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
entities: []
|
entities: []
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
entity_id:
|
entity_id:
|
||||||
- group.landscaping
|
- group.landscaping
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Even though they are sleeping, I still turn off the outdoor lights before sunrise.",
|
"Even though they are sleeping, I still turn off the outdoor lights before sunrise.",
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
action:
|
action:
|
||||||
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"Right before sunset, I turn on the outdoor lights.",
|
"Right before sunset, I turn on the outdoor lights.",
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.outdoor_bathroom
|
- light.outdoor_bathroom
|
||||||
data_template:
|
data:
|
||||||
brightness: >
|
brightness: >
|
||||||
{% if states.group.family.state == 'home' -%}
|
{% if states.group.family.state == 'home' -%}
|
||||||
10
|
10
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
kelvin: 5500
|
kelvin: 5500
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "It is getting a little dark inside the house because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain')|replace('counter','lightning') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}} outside. I will turn on some extra lights in the living room."
|
value1: "It is getting a little dark inside the house because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain')|replace('counter','lightning') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}} outside. I will turn on some extra lights in the living room."
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.tv_time
|
entity_id: scene.tv_time
|
||||||
|
|
||||||
- service_template: >
|
- service: >
|
||||||
{% set hour=states("sensor.time").split(':')[0] | int %}
|
{% set hour=states("sensor.time").split(':')[0] | int %}
|
||||||
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
|
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
|
||||||
switch.turn_off
|
switch.turn_off
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
message: "Took Medicine today."
|
message: "Took Medicine today."
|
||||||
|
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
payload: '{{ states("sensor.date") }}'
|
payload: '{{ states("sensor.date") }}'
|
||||||
topic: 'dash/medicine/medicine_time'
|
topic: 'dash/medicine/medicine_time'
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Medicine Reminder Completed'
|
title: 'Medicine Reminder Completed'
|
||||||
value1: 'Carlo Took Medicine today.'
|
value1: 'Carlo Took Medicine today.'
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
|
|
|
@ -242,7 +242,7 @@ automation:
|
||||||
data:
|
data:
|
||||||
entity_id: climate.downstairs
|
entity_id: climate.downstairs
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"The {{ trigger.to_state.attributes.friendly_name }} has been opened for about 5 minutes. I will shut down the Air Conditioner so you can enjoy the fresh air.",
|
"The {{ trigger.to_state.attributes.friendly_name }} has been opened for about 5 minutes. I will shut down the Air Conditioner so you can enjoy the fresh air.",
|
||||||
|
@ -326,7 +326,7 @@ automation:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.tv_time
|
entity_id: scene.tv_time
|
||||||
|
|
||||||
# - service_template: >-
|
# - service: >-
|
||||||
# {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
# {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||||
# light.turn_on
|
# light.turn_on
|
||||||
# entity_id:
|
# entity_id:
|
||||||
|
@ -353,7 +353,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Someone has opened up the Alarm Panel Door!'
|
value1: 'Someone has opened up the Alarm Panel Door!'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
|
@ -109,12 +109,12 @@ automation:
|
||||||
state: 'home'
|
state: 'home'
|
||||||
action:
|
action:
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.alarm_clock
|
- media_player.alarm_clock
|
||||||
volume_level: 0.3
|
volume_level: 0.3
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.alarm_clock
|
- media_player.alarm_clock
|
||||||
#media_content_id: "http://listen.181fm.com/181-kickincountry_128k.mp3"
|
#media_content_id: "http://listen.181fm.com/181-kickincountry_128k.mp3"
|
||||||
|
|
|
@ -32,7 +32,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
DoorLocked: "The {{ trigger.to_state.name }} is now {{ trigger.to_state.state }}."
|
DoorLocked: "The {{ trigger.to_state.name }} is now {{ trigger.to_state.state }}."
|
||||||
|
|
||||||
- alias: 'Door UnLocked Announcement'
|
- alias: 'Door UnLocked Announcement'
|
||||||
|
@ -46,5 +46,5 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
DoorUnLocked: "The {{ trigger.to_state.name }} has been {{ trigger.to_state.state }} for 10 minutes. I will lock it in 10 minutes if it is still unlocked."
|
DoorUnLocked: "The {{ trigger.to_state.name }} has been {{ trigger.to_state.state }} for 10 minutes. I will lock it in 10 minutes if it is still unlocked."
|
||||||
|
|
|
@ -48,12 +48,12 @@ automation:
|
||||||
value_template: "{% if states('sensor.low_battery') %}true{% endif %}"
|
value_template: "{% if states('sensor.low_battery') %}true{% endif %}"
|
||||||
action:
|
action:
|
||||||
- service: persistent_notification.create
|
- service: persistent_notification.create
|
||||||
data_template:
|
data:
|
||||||
title: Low Battery
|
title: Low Battery
|
||||||
message: "{{ states('sensor.low_battery') }}"
|
message: "{{ states('sensor.low_battery') }}"
|
||||||
notification_id: low-battery-alert
|
notification_id: low-battery-alert
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Low battery levels: {{ states('sensor.low_battery') }}"
|
value1: "Low battery levels: {{ states('sensor.low_battery') }}"
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
|
@ -30,7 +30,7 @@ automation:
|
||||||
- service: blink.blink_update
|
- service: blink.blink_update
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Check Fridge'
|
title: 'Check Fridge'
|
||||||
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
@ -39,7 +39,7 @@ automation:
|
||||||
- wait_template: "{{ states.group.family.state == 'home' }}"
|
- wait_template: "{{ states.group.family.state == 'home' }}"
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
||||||
no_fridge: 1
|
no_fridge: 1
|
||||||
|
|
||||||
|
|
|
@ -27,12 +27,12 @@ automation:
|
||||||
- wed
|
- wed
|
||||||
action:
|
action:
|
||||||
- service: persistent_notification.create
|
- service: persistent_notification.create
|
||||||
data_template:
|
data:
|
||||||
title: Low Ink
|
title: Low Ink
|
||||||
message: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
|
message: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
|
||||||
notification_id: low-battery-alert
|
notification_id: low-battery-alert
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
|
value1: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
|
@ -21,7 +21,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Somebody just hit {{ trigger.entity_id }} steps on the #Fitbit!",
|
"Somebody just hit {{ trigger.entity_id }} steps on the #Fitbit!",
|
||||||
|
|
|
@ -108,7 +108,7 @@ automation:
|
||||||
for: '00:02:30'
|
for: '00:02:30'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
# - service_template: >
|
# - service: >
|
||||||
# {% set hour=states("sensor.time").split(':')[0] | int %}
|
# {% set hour=states("sensor.time").split(':')[0] | int %}
|
||||||
# {% if hour >= 7 and hour <= 9 and states.input_boolean.school_mode.state == 'on'%}
|
# {% if hour >= 7 and hour <= 9 and states.input_boolean.school_mode.state == 'on'%}
|
||||||
# input_boolean.turn_off
|
# input_boolean.turn_off
|
||||||
|
@ -118,7 +118,7 @@ automation:
|
||||||
# entity_id: input_boolean.alert_mode
|
# entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ automation:
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Check/Close Garage Doors - High Speed Wind Alert:'
|
title: 'Check/Close Garage Doors - High Speed Wind Alert:'
|
||||||
value1: "Small: {{ states('cover.small_garage_door')}}"
|
value1: "Small: {{ states('cover.small_garage_door')}}"
|
||||||
value2: "Large: {{ states('cover.large_garage_door')}}"
|
value2: "Large: {{ states('cover.large_garage_door')}}"
|
||||||
|
@ -156,7 +156,7 @@ automation:
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
|
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
|
||||||
{% if is_state('cover.large_garage_door', 'open') -%}
|
{% if is_state('cover.large_garage_door', 'open') -%}
|
||||||
|
@ -168,7 +168,7 @@ automation:
|
||||||
{% endif %}"
|
{% endif %}"
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, I'm going to close the @garadget doors.",
|
"Wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, I'm going to close the @garadget doors.",
|
||||||
|
@ -226,7 +226,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Check Garage Doors:'
|
title: 'Check Garage Doors:'
|
||||||
value1: "Small: {{ states('cover.small_garage_door')}}"
|
value1: "Small: {{ states('cover.small_garage_door')}}"
|
||||||
value2: "Large: {{ states('cover.large_garage_door')}}"
|
value2: "Large: {{ states('cover.large_garage_door')}}"
|
||||||
|
@ -235,5 +235,5 @@ automation:
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Please check the garage doors. The Small garage is {{ states('cover.small_garage_door')}} and the large garage is {{ states('cover.large_garage_door')}}"
|
value1: "Please check the garage doors. The Small garage is {{ states('cover.small_garage_door')}} and the large garage is {{ states('cover.large_garage_door')}}"
|
||||||
|
|
|
@ -35,7 +35,7 @@ automation:
|
||||||
offset: '+02:30:00'
|
offset: '+02:30:00'
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"I have just finished crunching the numbers and here is the latest #Solar Production graph. "
|
"I have just finished crunching the numbers and here is the latest #Solar Production graph. "
|
||||||
|
|
|
@ -20,10 +20,10 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: ifttt.trigger
|
- service: ifttt.trigger
|
||||||
data_template: {"event":"GitPost", "value2":"HACS - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value1":"Update to HACS {{state_attr('sensor.hacs','repositories')}}: There is {{ states.sensor.hacs.state }} update."}
|
data: {"event":"GitPost", "value2":"HACS - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value1":"Update to HACS {{state_attr('sensor.hacs','repositories')}}: There is {{ states.sensor.hacs.state }} update."}
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
Hey @CCostan - There are {{ states.sensor.hacs.state }} updates to HACS components:
|
Hey @CCostan - There are {{ states.sensor.hacs.state }} updates to HACS components:
|
||||||
{%- for repo in state_attr("sensor.hacs","repositories") -%}
|
{%- for repo in state_attr("sensor.hacs","repositories") -%}
|
||||||
|
|
|
@ -22,7 +22,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: '{{trigger.event.data.title}} - {{trigger.event.data.link}}'
|
tweet: '{{trigger.event.data.title}} - {{trigger.event.data.link}}'
|
||||||
image: >-
|
image: >-
|
||||||
{% set pictures = [
|
{% set pictures = [
|
||||||
|
|
|
@ -160,7 +160,7 @@ automation:
|
||||||
|
|
||||||
- delay: '0{{ (range(4, 8)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
- delay: '0{{ (range(4, 8)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Today is {{ states.sensor.holiday.state }}. Time to adjust the outside light colors!",
|
"Today is {{ states.sensor.holiday.state }}. Time to adjust the outside light colors!",
|
||||||
|
|
|
@ -69,7 +69,7 @@ automation:
|
||||||
actionName: NOT_HOME
|
actionName: NOT_HOME
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Medicine Reminder'
|
title: 'Medicine Reminder'
|
||||||
value1: 'Ok. I will remind you when you get home.'
|
value1: 'Ok. I will remind you when you get home.'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
@ -77,7 +77,7 @@ automation:
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ states.person.carlo.state == 'home' }}
|
{{ states.person.carlo.state == 'home' }}
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Medicine Reminder'
|
title: 'Medicine Reminder'
|
||||||
value1: 'Now that your home, please take your medicine!'
|
value1: 'Now that your home, please take your medicine!'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
@ -107,7 +107,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Medicine Alert!'
|
title: 'Medicine Alert!'
|
||||||
value1: 'Please take your Medicine!'
|
value1: 'Please take your Medicine!'
|
||||||
ios_category: "tablet"
|
ios_category: "tablet"
|
||||||
|
|
|
@ -28,7 +28,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode."
|
value1: "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode."
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
@ -70,7 +70,7 @@ automation:
|
||||||
entity_id: switch.juicebox_restart
|
entity_id: switch.juicebox_restart
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"The #JuiceBox Pro had to be restarted. It was unable to connect back to @emotorwerks servers.",
|
"The #JuiceBox Pro had to be restarted. It was unable to connect back to @emotorwerks servers.",
|
||||||
|
@ -106,13 +106,13 @@ automation:
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
|
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
apns_id: 'JuiceBox'
|
apns_id: 'JuiceBox'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
|
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
|
||||||
|
|
||||||
- delay: 00:02:00
|
- delay: 00:02:00
|
||||||
|
@ -140,13 +140,13 @@ automation:
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately."
|
value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately."
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
apns_id: 'JuiceBox'
|
apns_id: 'JuiceBox'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately."
|
value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately."
|
||||||
|
|
||||||
- delay: 00:02:00
|
- delay: 00:02:00
|
||||||
|
@ -162,7 +162,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ range(0,3) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ range(0,3) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"The #Chevy Bolt Charged for {{(states.sensor.carlojuice_charge_time.state | int /60) | round() }} minutes and Juiced up {{states.sensor.carlojuice_energy_added.state |int /1000}} KwHs.",
|
"The #Chevy Bolt Charged for {{(states.sensor.carlojuice_charge_time.state | int /60) | round() }} minutes and Juiced up {{states.sensor.carlojuice_energy_added.state |int /1000}} KwHs.",
|
||||||
|
|
|
@ -58,7 +58,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Lightning Warning!'
|
title: 'Lightning Warning!'
|
||||||
value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Be careful if outdoors."
|
value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Be careful if outdoors."
|
||||||
ios_category: "LIGHTNING"
|
ios_category: "LIGHTNING"
|
||||||
|
@ -66,7 +66,7 @@ automation:
|
||||||
apns_id: 'Alert'
|
apns_id: 'Alert'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Please make sure everyone is inside the house."
|
value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Please make sure everyone is inside the house."
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
@ -75,7 +75,7 @@ automation:
|
||||||
minutes: 20
|
minutes: 20
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home.",
|
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home.",
|
||||||
|
|
|
@ -32,11 +32,11 @@ automation:
|
||||||
# - input_select.log_component
|
# - input_select.log_component
|
||||||
action:
|
action:
|
||||||
- service: logger.set_level
|
- service: logger.set_level
|
||||||
data_template:
|
data:
|
||||||
homeassistant.components: "{{ states.input_select.log_level.state }}"
|
homeassistant.components: "{{ states.input_select.log_level.state }}"
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: "My logging level has just been set to {{ states.input_select.log_level.state }}"
|
tweet: "My logging level has just been set to {{ states.input_select.log_level.state }}"
|
||||||
image: >-
|
image: >-
|
||||||
{{ [
|
{{ [
|
||||||
|
|
|
@ -36,7 +36,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.justin_go
|
entity_id: light.justin_go
|
||||||
data_template:
|
data:
|
||||||
color_name: >
|
color_name: >
|
||||||
{% if states.sensor.bear_stone.state|int == 1 %}
|
{% if states.sensor.bear_stone.state|int == 1 %}
|
||||||
gold
|
gold
|
||||||
|
@ -48,7 +48,7 @@ automation:
|
||||||
red
|
red
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if states.sensor.bear_stone.state|int > 0 %}
|
{% if states.sensor.bear_stone.state|int > 0 %}
|
||||||
light.turn_on
|
light.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -41,7 +41,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"#Neato returning to base. Vacuumed up a TON. (https://amzn.to/2CKHZya)",
|
"#Neato returning to base. Vacuumed up a TON. (https://amzn.to/2CKHZya)",
|
||||||
|
@ -77,7 +77,7 @@ automation:
|
||||||
- wait_template: "{{ states.group.family.state == 'home' }}"
|
- wait_template: "{{ states.group.family.state == 'home' }}"
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{% set error = states.vacuum.carlo_neato.attributes['status'] %}
|
{% set error = states.vacuum.carlo_neato.attributes['status'] %}
|
||||||
{{ [
|
{{ [
|
||||||
|
@ -91,7 +91,7 @@ automation:
|
||||||
entity_id: vacuum.carlo_neato
|
entity_id: vacuum.carlo_neato
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Help Neato'
|
title: 'Help Neato'
|
||||||
value1: "{{ states.vacuum.carlo_neato.attributes['status'] }}"
|
value1: "{{ states.vacuum.carlo_neato.attributes['status'] }}"
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
|
|
@ -54,21 +54,21 @@ automation:
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
|
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."
|
value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."
|
||||||
who: "family"
|
who: "family"
|
||||||
apns_id: '{{ trigger.to_state.attributes.friendly_name }}'
|
apns_id: '{{ trigger.to_state.attributes.friendly_name }}'
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} @CCostan (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)"
|
tweet: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} @CCostan (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)"
|
||||||
|
|
||||||
- service: script.emergency
|
- service: script.emergency
|
||||||
data_template:
|
data:
|
||||||
call_garage_open: 1
|
call_garage_open: 1
|
||||||
|
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
|
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
|
||||||
who: "family"
|
who: "family"
|
||||||
apns_id: '{{ trigger.to_state.attributes.friendly_name }}'
|
apns_id: '{{ trigger.to_state.attributes.friendly_name }}'
|
||||||
|
|
|
@ -148,11 +148,11 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Offline Devices:'
|
value1: 'Offline Devices:'
|
||||||
value3: "{{ states.sensor.network_detail.state }}"
|
value3: "{{ states.sensor.network_detail.state }}"
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
|
||||||
# - service: script.speech_engine
|
# - service: script.speech_engine
|
||||||
# data_template:
|
# data:
|
||||||
# value1: "The following Devices are in an Offline state {{ trigger.to_state.state }}"
|
# value1: "The following Devices are in an Offline state {{ trigger.to_state.state }}"
|
||||||
|
|
|
@ -37,7 +37,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"Attention please. The Phyn unit has detected a possible leak. Please verify there are no leaks in the house. "
|
"Attention please. The Phyn unit has detected a possible leak. Please verify there are no leaks in the house. "
|
||||||
|
@ -45,7 +45,7 @@ automation:
|
||||||
call_no_announcement: 1
|
call_no_announcement: 1
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"The @Phyn has detected a {{ trigger.event.data.alert_type }} and notified us using Home Assistant. ",
|
"The @Phyn has detected a {{ trigger.event.data.alert_type }} and notified us using Home Assistant. ",
|
||||||
|
@ -61,7 +61,7 @@ automation:
|
||||||
{{ states.sun.sun.state == 'above_horizon' }}
|
{{ states.sun.sun.state == 'above_horizon' }}
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Phyn Leak Detection'
|
title: 'Phyn Leak Detection'
|
||||||
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
|
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
|
@ -77,17 +77,17 @@ automation:
|
||||||
actionName: PHYN_WATER_ON
|
actionName: PHYN_WATER_ON
|
||||||
action:
|
action:
|
||||||
- service: ifttt.trigger
|
- service: ifttt.trigger
|
||||||
data_template: {"event":"phyn_water_on"}
|
data: {"event":"phyn_water_on"}
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Phyn Leak Detection'
|
title: 'Phyn Leak Detection'
|
||||||
value1: 'Request Recieved. Attempting to Turn the Water back on.'
|
value1: 'Request Recieved. Attempting to Turn the Water back on.'
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
apns_id: 'IFTTT_Phyn'
|
apns_id: 'IFTTT_Phyn'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"I have been asked to Turn the House Water back on. Please verify there are no leaks in the house. "
|
"I have been asked to Turn the House Water back on. Please verify there are no leaks in the house. "
|
||||||
|
|
|
@ -15,7 +15,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '00:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '00:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"I blocked {{states.sensor.pi_hole_ads_blocked_today.state}} ads. That is {{states.sensor.pi_hole_ads_percentage_blocked_today.state}}% of my internet traffic.",
|
"I blocked {{states.sensor.pi_hole_ads_blocked_today.state}} ads. That is {{states.sensor.pi_hole_ads_percentage_blocked_today.state}}% of my internet traffic.",
|
||||||
|
@ -37,7 +37,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"There are currently {{states.sensor.pi_hole_dns_unique_clients.state}} clients on my network.",
|
"There are currently {{states.sensor.pi_hole_dns_unique_clients.state}} clients on my network.",
|
||||||
|
|
|
@ -26,7 +26,7 @@ automation:
|
||||||
value_template: "{{ states('binary_sensor.grid_status') == 'off' }}"
|
value_template: "{{ states('binary_sensor.grid_status') == 'off' }}"
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('on', 'up')|replace('off', 'down') }}."
|
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('on', 'up')|replace('off', 'down') }}."
|
||||||
value1: "Please verify with the Tesla App."
|
value1: "Please verify with the Tesla App."
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
|
@ -48,7 +48,7 @@ automation:
|
||||||
- group.interior_lights
|
- group.interior_lights
|
||||||
- group.exterior_lights
|
- group.exterior_lights
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
||||||
value1: "Taking actions to turning off the House Lights to preserve Battery Power."
|
value1: "Taking actions to turning off the House Lights to preserve Battery Power."
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
@ -62,7 +62,7 @@ automation:
|
||||||
- group.exterior_lights
|
- group.exterior_lights
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Because of the Power Outage, the Lights will be recycled for 3 minutes. Lights may turn on and off during this time."
|
value1: "Because of the Power Outage, the Lights will be recycled for 3 minutes. Lights may turn on and off during this time."
|
||||||
|
|
||||||
- delay:
|
- delay:
|
||||||
|
@ -73,7 +73,7 @@ automation:
|
||||||
- group.exterior_lights
|
- group.exterior_lights
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: "Automatic light recycling has been completed. Any abnormalities will have to be addressed in the Hue App most likely. "
|
value1: "Automatic light recycling has been completed. Any abnormalities will have to be addressed in the Hue App most likely. "
|
||||||
|
|
||||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
|
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
|
||||||
|
@ -100,7 +100,7 @@ automation:
|
||||||
- climate.upstairs
|
- climate.upstairs
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
||||||
value1: "Taking actions to turning off the AC units to preserve Battery Power."
|
value1: "Taking actions to turning off the AC units to preserve Battery Power."
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
@ -144,7 +144,7 @@ automation:
|
||||||
preset_mode: eco
|
preset_mode: eco
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
|
||||||
value1: "All AC systems are set back to normal operations."
|
value1: "All AC systems are set back to normal operations."
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
|
|
@ -31,7 +31,7 @@ automation:
|
||||||
above: 80
|
above: 80
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Hard Drive Monitor:'
|
value1: 'Hard Drive Monitor:'
|
||||||
value2: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
|
value2: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
|
||||||
value3: 'Attempting to clean'
|
value3: 'Attempting to clean'
|
||||||
|
@ -46,7 +46,7 @@ automation:
|
||||||
above: 90
|
above: 90
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Hard Drive Monitor:'
|
value1: 'Hard Drive Monitor:'
|
||||||
value2: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
|
value2: "Your harddrive is running out of Space! /dev/root:{{ states.sensor.disk_use_percent.state }}%!"
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
|
|
@ -28,13 +28,13 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
payload: '{{ states("sensor.date") }}'
|
payload: '{{ states("sensor.date") }}'
|
||||||
topic: 'ifttt/rachio/watering_time'
|
topic: 'ifttt/rachio/watering_time'
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Just finished watering the lawn with @_Rachio.",
|
"Just finished watering the lawn with @_Rachio.",
|
||||||
|
|
|
@ -41,11 +41,11 @@ input_boolean:
|
||||||
# - service: media_player.volume_set
|
# - service: media_player.volume_set
|
||||||
# entity_id:
|
# entity_id:
|
||||||
# - media_player.livingroomCC
|
# - media_player.livingroomCC
|
||||||
# data_template:
|
# data:
|
||||||
# volume_level: 0.2
|
# volume_level: 0.2
|
||||||
#
|
#
|
||||||
# - service: media_player.play_media
|
# - service: media_player.play_media
|
||||||
# data_template:
|
# data:
|
||||||
# entity_id:
|
# entity_id:
|
||||||
# - media_player.LivingRoomCC
|
# - media_player.LivingRoomCC
|
||||||
# media_content_id: "http://listen.181fm.com/181-kickincountry_128k.mp3"
|
# media_content_id: "http://listen.181fm.com/181-kickincountry_128k.mp3"
|
||||||
|
|
|
@ -52,7 +52,7 @@ automation:
|
||||||
command: find_remote
|
command: find_remote
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Living Room Remote'
|
title: 'Living Room Remote'
|
||||||
value1: 'Find Remote'
|
value1: 'Find Remote'
|
||||||
ios_category: "REMOTELR"
|
ios_category: "REMOTELR"
|
||||||
|
@ -74,7 +74,7 @@ automation:
|
||||||
entity_id: input_boolean.living_room_remote_finder
|
entity_id: input_boolean.living_room_remote_finder
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Living Room Remote'
|
title: 'Living Room Remote'
|
||||||
value1: 'Remote has been found.'
|
value1: 'Remote has been found.'
|
||||||
who: "family"
|
who: "family"
|
||||||
|
|
|
@ -92,5 +92,5 @@ automation:
|
||||||
#Turn it back on!
|
#Turn it back on!
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: "{{ trigger.entity_id }}"
|
entity_id: "{{ trigger.entity_id }}"
|
||||||
|
|
|
@ -43,12 +43,12 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Go Outside! There is a Rocket Launch very soon! {{states.sensor.next_launch.attributes.stream }}'
|
value1: 'Go Outside! There is a Rocket Launch very soon! {{states.sensor.next_launch.attributes.stream }}'
|
||||||
apns_id: 'information'
|
apns_id: 'information'
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"There is a Rocket launch happening right now! I can see it if I look closely. {{states.sensor.next_launch.attributes.stream }}",
|
"There is a Rocket launch happening right now! I can see it if I look closely. {{states.sensor.next_launch.attributes.stream }}",
|
||||||
|
@ -70,7 +70,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"The ISS is above me right now!",
|
"The ISS is above me right now!",
|
||||||
|
@ -96,7 +96,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{{ [
|
{{ [
|
||||||
"There is a Full Moon out tonight!",
|
"There is a Full Moon out tonight!",
|
||||||
|
|
|
@ -31,7 +31,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
value1: 'Travis validation testing failed.'
|
value1: 'Travis validation testing failed.'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
apns: 'information'
|
apns: 'information'
|
||||||
|
|
|
@ -38,7 +38,7 @@ automation:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
- media_player.entry_alarm_panel
|
- media_player.entry_alarm_panel
|
||||||
- media_player.bedroom_alarm_panel
|
- media_player.bedroom_alarm_panel
|
||||||
data_template:
|
data:
|
||||||
message: >
|
message: >
|
||||||
<speak>
|
<speak>
|
||||||
{{states.sensor.last_message.state}}
|
{{states.sensor.last_message.state}}
|
||||||
|
|
|
@ -47,7 +47,7 @@ automation:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
- media_player.entry_alarm_panel
|
- media_player.entry_alarm_panel
|
||||||
- media_player.bedroom_alarm_panel
|
- media_player.bedroom_alarm_panel
|
||||||
data_template:
|
data:
|
||||||
media_content_id: >
|
media_content_id: >
|
||||||
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/speechcons/self_destruct.mp3"
|
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/speechcons/self_destruct.mp3"
|
||||||
media_content_type: audio/mp4
|
media_content_type: audio/mp4
|
||||||
|
|
|
@ -35,7 +35,7 @@ automation:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.sleepy_dog
|
entity_id: input_boolean.sleepy_dog
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
call_no_announcement: 1
|
call_no_announcement: 1
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
|
|
|
@ -189,7 +189,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
- media_player.bedroom_alarm_panel
|
- media_player.bedroom_alarm_panel
|
||||||
|
@ -207,7 +207,7 @@ automation:
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{% set repo = trigger.event.data.repo %}
|
{% set repo = trigger.event.data.repo %}
|
||||||
{% set issue = trigger.event.data.issue %}
|
{% set issue = trigger.event.data.issue %}
|
||||||
|
@ -253,7 +253,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
||||||
- service: script.tweet_engine_random
|
- service: script.tweet_engine_random
|
||||||
data_template:
|
data:
|
||||||
pick: >-
|
pick: >-
|
||||||
{% set pick = [
|
{% set pick = [
|
||||||
"solar",
|
"solar",
|
||||||
|
@ -293,7 +293,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
- delay: '0{{ range(0,2) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
||||||
- service: script.tweet_youtube_engine_setup
|
- service: script.tweet_youtube_engine_setup
|
||||||
data_template:
|
data:
|
||||||
pick: !include ../templates/speech/youtube_picker.yaml
|
pick: !include ../templates/speech/youtube_picker.yaml
|
||||||
|
|
||||||
- alias: 'Random YouTube Videos CCostan'
|
- alias: 'Random YouTube Videos CCostan'
|
||||||
|
@ -320,6 +320,6 @@ automation:
|
||||||
# {%- endif -%}
|
# {%- endif -%}
|
||||||
action:
|
action:
|
||||||
- service: script.tweet_youtube_engine_setup
|
- service: script.tweet_youtube_engine_setup
|
||||||
data_template:
|
data:
|
||||||
who: 'ccostan'
|
who: 'ccostan'
|
||||||
pick: !include ../templates/speech/youtube_picker.yaml
|
pick: !include ../templates/speech/youtube_picker.yaml
|
||||||
|
|
|
@ -31,7 +31,7 @@ automation:
|
||||||
- delay: '00:10:00'
|
- delay: '00:10:00'
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
||||||
|
@ -41,7 +41,7 @@ automation:
|
||||||
- delay: '00:10:00'
|
- delay: '00:10:00'
|
||||||
|
|
||||||
- service: script.tweet_engine_no_image
|
- service: script.tweet_engine_no_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
"New Video! {{ states('sensor.vcloudinfo') }} - {{ state_attr('sensor.vcloudinfo','url') }} "
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
amp_settings:
|
amp_settings:
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{% if media_player | length == 0 %}
|
{% if media_player | length == 0 %}
|
||||||
{% set media_player = [
|
{% set media_player = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###Script to send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this:
|
###Script to send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this:
|
||||||
# action:
|
# action:
|
||||||
# service: script.dog_bark
|
# service: script.dog_bark
|
||||||
# data_template:
|
# data:
|
||||||
# value1: 'Startup: Home Assistant is Up and Running!'
|
# value1: 'Startup: Home Assistant is Up and Running!'
|
||||||
|
|
||||||
######################################################################################################
|
######################################################################################################
|
||||||
|
@ -31,7 +31,7 @@ dog_bark:
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
data_template:
|
data:
|
||||||
volume_level: >
|
volume_level: >
|
||||||
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
||||||
0.45
|
0.45
|
||||||
|
@ -42,7 +42,7 @@ dog_bark:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
- media_player.entry_alarm_panel
|
- media_player.entry_alarm_panel
|
||||||
|
|
|
@ -22,7 +22,7 @@ emergency:
|
||||||
flash: long
|
flash: long
|
||||||
# Rachio is already inergrated Natively with Protects to run SPRINKLERS with smoke conditions..
|
# Rachio is already inergrated Natively with Protects to run SPRINKLERS with smoke conditions..
|
||||||
# - service: ifttt.trigger
|
# - service: ifttt.trigger
|
||||||
# data_template: {"event":"rachio_start_front"}
|
# data: {"event":"rachio_start_front"}
|
||||||
|
|
||||||
# Turn on All LIGHTS 100% Brightness
|
# Turn on All LIGHTS 100% Brightness
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
|
|
@ -21,7 +21,7 @@ monthly_color_scene:
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
|
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
scene.month_
|
scene.month_
|
||||||
{%- if states.sensor.flag.state == "True" -%}
|
{%- if states.sensor.flag.state == "True" -%}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###Script to send notifications to IFTTT to notify me on the mobile Phone! Call like this:
|
###Script to send notifications to IFTTT to notify me on the mobile Phone! Call like this:
|
||||||
# action:
|
# action:
|
||||||
# service: script.notify_engine
|
# service: script.notify_engine
|
||||||
# data_template:
|
# data:
|
||||||
# title: 'Ios Title'
|
# title: 'Ios Title'
|
||||||
# value1: 'Startup: Home Assistant is Up and Running!'
|
# value1: 'Startup: Home Assistant is Up and Running!'
|
||||||
# value2: "{{ trigger.to_state.state }}"
|
# value2: "{{ trigger.to_state.state }}"
|
||||||
|
@ -26,9 +26,9 @@ notify_engine:
|
||||||
entity_id: input_boolean.text_notifications
|
entity_id: input_boolean.text_notifications
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# - service: ifttt.trigger
|
# - service: ifttt.trigger
|
||||||
# data_template: {"event":"notify_engine", "value1":"{{ value1 }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
# data: {"event":"notify_engine", "value1":"{{ value1 }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
||||||
|
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if who == 'stacey' %}
|
{% if who == 'stacey' %}
|
||||||
notify.mobile_app_stacey_6s
|
notify.mobile_app_stacey_6s
|
||||||
{% elif who == 'carlo' %}
|
{% elif who == 'carlo' %}
|
||||||
|
@ -40,7 +40,7 @@ notify_engine:
|
||||||
{% else %}
|
{% else %}
|
||||||
notify.ios_family
|
notify.ios_family
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data_template:
|
data:
|
||||||
title: "{{ title }}"
|
title: "{{ title }}"
|
||||||
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
|
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
|
||||||
data:
|
data:
|
||||||
|
|
|
@ -14,7 +14,7 @@ skybell_pressed:
|
||||||
message: "Someone Pressed the Doorbell."
|
message: "Someone Pressed the Doorbell."
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
value1: >
|
value1: >
|
||||||
{{ [
|
{{ [
|
||||||
"Please check the Front Door. Someone Pressed the Doorbell.",
|
"Please check the Front Door. Someone Pressed the Doorbell.",
|
||||||
|
@ -26,7 +26,7 @@ skybell_pressed:
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data:
|
||||||
title: 'Front DoorBell'
|
title: 'Front DoorBell'
|
||||||
value1: 'Someone pressed the doorbell'
|
value1: 'Someone pressed the doorbell'
|
||||||
who: 'family'
|
who: 'family'
|
||||||
|
@ -38,7 +38,7 @@ skybell_pressed:
|
||||||
- service: script.flash_notify
|
- service: script.flash_notify
|
||||||
|
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"Oh, that tickled. Someone just pressed the @MySkyBell.",
|
"Oh, that tickled. Someone just pressed the @MySkyBell.",
|
||||||
|
|
|
@ -28,7 +28,7 @@ speech_engine:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
|
||||||
- service: script.speech_processing
|
- service: script.speech_processing
|
||||||
data_template:
|
data:
|
||||||
media_player: >-
|
media_player: >-
|
||||||
{% if media_player | length == 0 %}
|
{% if media_player | length == 0 %}
|
||||||
{% set media_player = [
|
{% set media_player = [
|
||||||
|
|
|
@ -12,7 +12,7 @@ speech_processing:
|
||||||
mode: queued
|
mode: queued
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'polly/lastmsg'
|
topic: 'polly/lastmsg'
|
||||||
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(220)}}"
|
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(220)}}"
|
||||||
retain: true
|
retain: true
|
||||||
|
@ -48,7 +48,7 @@ speech_processing:
|
||||||
entity_id: switch.lr_amp
|
entity_id: switch.lr_amp
|
||||||
|
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{{ media_player }}
|
{{ media_player }}
|
||||||
volume_level: >-
|
volume_level: >-
|
||||||
|
@ -61,7 +61,7 @@ speech_processing:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# - service: notify.alexa_media
|
# - service: notify.alexa_media
|
||||||
# data_template:
|
# data:
|
||||||
# data:
|
# data:
|
||||||
# type: tts
|
# type: tts
|
||||||
# target: >
|
# target: >
|
||||||
|
@ -74,7 +74,7 @@ speech_processing:
|
||||||
# {{ speech_message }}
|
# {{ speech_message }}
|
||||||
|
|
||||||
- service: tts.amazon_polly_say
|
- service: tts.amazon_polly_say
|
||||||
data_template:
|
data:
|
||||||
entity_id: media_player.livingroomCC
|
entity_id: media_player.livingroomCC
|
||||||
message: >-
|
message: >-
|
||||||
<speak>
|
<speak>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###Script to send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this:
|
###Script to send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this:
|
||||||
# action:
|
# action:
|
||||||
# service: script.speechcons
|
# service: script.speechcons
|
||||||
# data_template:
|
# data:
|
||||||
# speechcon: 'Bazinga'
|
# speechcon: 'Bazinga'
|
||||||
# @CCOSTAN
|
# @CCOSTAN
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
@ -29,7 +29,7 @@ speechcon:
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.livingroomCC
|
- media_player.livingroomCC
|
||||||
data_template:
|
data:
|
||||||
volume_level: >
|
volume_level: >
|
||||||
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
||||||
0.3
|
0.3
|
||||||
|
@ -42,7 +42,7 @@ speechcon:
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.LivingRoomCC
|
- media_player.LivingRoomCC
|
||||||
data_template:
|
data:
|
||||||
media_content_id: >
|
media_content_id: >
|
||||||
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/speechcons/{{speechcon}}._TTH_.mp3"
|
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/speechcons/{{speechcon}}._TTH_.mp3"
|
||||||
media_content_type: audio/mp4
|
media_content_type: audio/mp4
|
||||||
|
|
|
@ -11,19 +11,19 @@
|
||||||
tweet_engine_image:
|
tweet_engine_image:
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'ifttt/message'
|
topic: 'ifttt/message'
|
||||||
payload: >-
|
payload: >-
|
||||||
{{ tweet }}
|
{{ tweet }}
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if who == 'ccostan' %}
|
{% if who == 'ccostan' %}
|
||||||
notify.ccostan
|
notify.ccostan
|
||||||
{% else %}
|
{% else %}
|
||||||
notify.bearstoneha
|
notify.bearstoneha
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data_template:
|
data:
|
||||||
message: >-
|
message: >-
|
||||||
{{ tweet }} #IOT #SmartHome
|
{{ tweet }} #IOT #SmartHome
|
||||||
data:
|
data:
|
||||||
|
@ -33,19 +33,19 @@ tweet_engine_image:
|
||||||
tweet_engine_no_image:
|
tweet_engine_no_image:
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'ifttt/message'
|
topic: 'ifttt/message'
|
||||||
payload: >-
|
payload: >-
|
||||||
{{ tweet }}
|
{{ tweet }}
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if who == 'ccostan' %}
|
{% if who == 'ccostan' %}
|
||||||
notify.ccostan
|
notify.ccostan
|
||||||
{% else %}
|
{% else %}
|
||||||
notify.bearstoneha
|
notify.bearstoneha
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data_template:
|
data:
|
||||||
message: >-
|
message: >-
|
||||||
{{ tweet }} #IOT #SmartHome
|
{{ tweet }} #IOT #SmartHome
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ tweet_engine_no_image:
|
||||||
tweet_engine_random:
|
tweet_engine_random:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{%- macro tweet(topic) -%}
|
{%- macro tweet(topic) -%}
|
||||||
{% set tweets = {
|
{% set tweets = {
|
||||||
|
@ -285,10 +285,10 @@ tweet_engine_random:
|
||||||
|
|
||||||
|
|
||||||
# - service: ifttt.trigger
|
# - service: ifttt.trigger
|
||||||
# data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
# data: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
|
||||||
|
|
||||||
# - service: ifttt.trigger
|
# - service: ifttt.trigger
|
||||||
# data_template:
|
# data:
|
||||||
# event: >-
|
# event: >-
|
||||||
# facebook_tweet
|
# facebook_tweet
|
||||||
# value1: >
|
# value1: >
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
tweet_youtube_engine_setup:
|
tweet_youtube_engine_setup:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.tweet_engine_image
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data:
|
||||||
who: '{{ who }}'
|
who: '{{ who }}'
|
||||||
tweet: >-
|
tweet: >-
|
||||||
{%- macro tweet(topic) -%}
|
{%- macro tweet(topic) -%}
|
||||||
|
|
|
@ -39,7 +39,7 @@ rules:
|
||||||
- entity: media_player.alarm_clock
|
- entity: media_player.alarm_clock
|
||||||
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "playing") ? "stop" : "radio_on"}.svg'
|
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "playing") ? "stop" : "radio_on"}.svg'
|
||||||
action:
|
action:
|
||||||
service_template: '${(entity.state === "playing") ? "media_player.media_stop" : "media_player.play_media"}'
|
service: '${(entity.state === "playing") ? "media_player.media_stop" : "media_player.play_media"}'
|
||||||
data:
|
data:
|
||||||
media_content_id: http://listen.djcmedia.com:80/americascountryhigh
|
media_content_id: http://listen.djcmedia.com:80/americascountryhigh
|
||||||
media_content_type: audio/mp4
|
media_content_type: audio/mp4
|
||||||
|
|
|
@ -72,7 +72,7 @@ rules:
|
||||||
- element: floorplan.save_alarm_time_button
|
- element: floorplan.save_alarm_time_button
|
||||||
action:
|
action:
|
||||||
service: mqtt.publish
|
service: mqtt.publish
|
||||||
data_template: '{
|
data: '{
|
||||||
"payload": "${(("0" + (parseInt((entities[`floorplan.hours`].state).slice(-2)) + 24) % 24)).slice(-2)}:${("0" + (((parseInt(entities[`floorplan.minutes`].state) / 5) * 5) % 60)).slice(-2)}",
|
"payload": "${(("0" + (parseInt((entities[`floorplan.hours`].state).slice(-2)) + 24) % 24)).slice(-2)}:${("0" + (((parseInt(entities[`floorplan.minutes`].state) / 5) * 5) % 60)).slice(-2)}",
|
||||||
"topic": "clock/stacey_alarm_time",
|
"topic": "clock/stacey_alarm_time",
|
||||||
"retain": true
|
"retain": true
|
||||||
|
@ -91,7 +91,7 @@ rules:
|
||||||
- entity: media_player.alarm_clock
|
- entity: media_player.alarm_clock
|
||||||
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "playing") ? "stop" : "radio_on"}.svg'
|
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "playing") ? "stop" : "radio_on"}.svg'
|
||||||
action:
|
action:
|
||||||
service_template: '${(entity.state === "playing") ? "media_player.media_stop" : "media_player.play_media"}'
|
service: '${(entity.state === "playing") ? "media_player.media_stop" : "media_player.play_media"}'
|
||||||
data:
|
data:
|
||||||
media_content_id: http://listen.djcmedia.com:80/americascountryhigh
|
media_content_id: http://listen.djcmedia.com:80/americascountryhigh
|
||||||
media_content_type: audio/mp4
|
media_content_type: audio/mp4
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 37 KiB |
Loading…
Reference in New Issue