Remove all instances of deprecated "data_template"
This commit is contained in:
@ -405,7 +405,7 @@
|
|||||||
state: 'off'
|
state: 'off'
|
||||||
then:
|
then:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: basement
|
who: basement
|
||||||
call_ha_started: 1
|
call_ha_started: 1
|
||||||
else:
|
else:
|
||||||
|
@ -60,7 +60,7 @@ automation:
|
|||||||
seconds: 0
|
seconds: 0
|
||||||
action:
|
action:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: 'living_room'
|
who: 'living_room'
|
||||||
call_interuption: 1
|
call_interuption: 1
|
||||||
call_snark_door_open: 1
|
call_snark_door_open: 1
|
@ -26,7 +26,7 @@ automation:
|
|||||||
minutes: 15
|
minutes: 15
|
||||||
action:
|
action:
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data:
|
||||||
text: >-
|
text: >-
|
||||||
<voice name='Brian'><prosody rate='150%'>The furnace room light is on, should I turn it off?</prosody></voice>
|
<voice name='Brian'><prosody rate='150%'>The furnace room light is on, should I turn it off?</prosody></voice>
|
||||||
event_id: 'actionable_notification_furnace_room_light_on'
|
event_id: 'actionable_notification_furnace_room_light_on'
|
||||||
|
@ -344,7 +344,7 @@ script:
|
|||||||
alias: 'Dinner Is Ready'
|
alias: 'Dinner Is Ready'
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: 'everywhere'
|
who: 'everywhere'
|
||||||
call_dinner_is_ready: 1
|
call_dinner_is_ready: 1
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ script:
|
|||||||
alias: 'We Are Leaving'
|
alias: 'We Are Leaving'
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: 'everywhere'
|
who: 'everywhere'
|
||||||
call_we_are_leaving: 1
|
call_we_are_leaving: 1
|
||||||
|
|
||||||
@ -369,7 +369,7 @@ script:
|
|||||||
- delay:
|
- delay:
|
||||||
seconds: 5
|
seconds: 5
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
who: living_room
|
who: living_room
|
||||||
message: !include ../templates/speech/welcome_home.yaml
|
message: !include ../templates/speech/welcome_home.yaml
|
||||||
mode: restart
|
mode: restart
|
||||||
|
@ -154,7 +154,7 @@ automation:
|
|||||||
entity_id: sensor.room_audio
|
entity_id: sensor.room_audio
|
||||||
action:
|
action:
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data_template:
|
data:
|
||||||
entity_id: input_text.room_presence
|
entity_id: input_text.room_presence
|
||||||
value: '{{ states(''sensor.room_audio'') }}'
|
value: '{{ states(''sensor.room_audio'') }}'
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
|
@ -890,7 +890,7 @@ automation:
|
|||||||
# at: '23:58:00'
|
# at: '23:58:00'
|
||||||
# action:
|
# action:
|
||||||
# service: mqtt.publish
|
# service: mqtt.publish
|
||||||
# data_template:
|
# data:
|
||||||
# topic: 'house/rain/yesterday_total'
|
# topic: 'house/rain/yesterday_total'
|
||||||
# retain: true
|
# retain: true
|
||||||
# payload: "{{ states('sensor.todays_rainfall') }}"
|
# payload: "{{ states('sensor.todays_rainfall') }}"
|
||||||
@ -951,6 +951,6 @@ script:
|
|||||||
alias: 'Weather Briefing'
|
alias: 'Weather Briefing'
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data:
|
||||||
who: "{{ who }}"
|
who: "{{ who }}"
|
||||||
message: !include ../templates/speech/weather_briefing_full.yaml
|
message: !include ../templates/speech/weather_briefing_full.yaml
|
@ -1024,12 +1024,12 @@ script:
|
|||||||
alias: 'Jarvis Alert'
|
alias: 'Jarvis Alert'
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/lastmsg'
|
topic: 'house/polly/lastmsg'
|
||||||
payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | striptags | truncate(220)}}'
|
payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | striptags | truncate(220)}}'
|
||||||
retain: true
|
retain: true
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1041,7 +1041,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1063,7 +1063,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: tts.amazon_polly_say
|
- service: tts.amazon_polly_say
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1154,7 +1154,7 @@ script:
|
|||||||
voice: "{{ states('input_select.jarvis_voice') }}"
|
voice: "{{ states('input_select.jarvis_voice') }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/lastmsg'
|
topic: 'house/polly/lastmsg'
|
||||||
payload: >
|
payload: >
|
||||||
{% if msg_summary == 'recall' %}
|
{% if msg_summary == 'recall' %}
|
||||||
@ -1171,13 +1171,13 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
retain: true
|
retain: true
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/msgtime'
|
topic: 'house/polly/msgtime'
|
||||||
payload: >
|
payload: >
|
||||||
{{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}
|
{{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}
|
||||||
retain: true
|
retain: true
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/lastloc'
|
topic: 'house/polly/lastloc'
|
||||||
payload: '{{ who }}'
|
payload: '{{ who }}'
|
||||||
retain: true
|
retain: true
|
||||||
@ -1338,7 +1338,7 @@ script:
|
|||||||
entity_id: input_boolean.vacation_mode
|
entity_id: input_boolean.vacation_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/lastmsg'
|
topic: 'house/polly/lastmsg'
|
||||||
payload: >
|
payload: >
|
||||||
{% if msg_summary == 'recall' %}
|
{% if msg_summary == 'recall' %}
|
||||||
@ -1355,18 +1355,18 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
retain: true
|
retain: true
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/msgtime'
|
topic: 'house/polly/msgtime'
|
||||||
payload: >
|
payload: >
|
||||||
{{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}
|
{{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}
|
||||||
retain: true
|
retain: true
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data:
|
||||||
topic: 'house/polly/lastloc'
|
topic: 'house/polly/lastloc'
|
||||||
payload: '{{ who }}'
|
payload: '{{ who }}'
|
||||||
retain: true
|
retain: true
|
||||||
- service: script.alexa_voice
|
- service: script.alexa_voice
|
||||||
data_template:
|
data:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{{ who }}
|
{{ who }}
|
||||||
message: >-
|
message: >-
|
||||||
@ -1466,7 +1466,7 @@ script:
|
|||||||
then:
|
then:
|
||||||
- stop: 'Kids are sleeping'
|
- stop: 'Kids are sleeping'
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
||||||
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
||||||
@ -1490,7 +1490,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
||||||
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
||||||
@ -1558,7 +1558,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: tts.amazon_polly_say
|
- service: tts.amazon_polly_say
|
||||||
data_template:
|
data:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
{% if who in ['Everywhere','everywhere','kids_bedrooms','all_bedrooms'] %}
|
||||||
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
{% if is_state('input_boolean.emma_sleeping','on') and is_state('input_boolean.kallen_sleeping','off') %}
|
||||||
@ -1585,7 +1585,7 @@ script:
|
|||||||
alias: 'Nabu Voice'
|
alias: 'Nabu Voice'
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1597,7 +1597,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1615,7 +1615,7 @@ script:
|
|||||||
.3
|
.3
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: tts.cloud_say
|
- service: tts.cloud_say
|
||||||
data_template:
|
data:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
{% if who in ['kallen_bedroom','media_player.kallen_bedroom_speaker'] %}
|
||||||
media_player.kallen_bedroom_speaker
|
media_player.kallen_bedroom_speaker
|
||||||
@ -1640,12 +1640,12 @@ script:
|
|||||||
# entity_id: 'media_player.ha_blue'
|
# entity_id: 'media_player.ha_blue'
|
||||||
# state: 'playing'
|
# state: 'playing'
|
||||||
# - service: input_number.set_value
|
# - service: input_number.set_value
|
||||||
# data_template:
|
# data:
|
||||||
# entity_id: input_number.old_volume
|
# entity_id: input_number.old_volume
|
||||||
# value: >
|
# value: >
|
||||||
# {{ states.media_player.ha_blue.attributes.volume_level }}
|
# {{ states.media_player.ha_blue.attributes.volume_level }}
|
||||||
# - service: media_player.volume_set
|
# - service: media_player.volume_set
|
||||||
# data_template:
|
# data:
|
||||||
# entity_id: media_player.ha_blue
|
# entity_id: media_player.ha_blue
|
||||||
# volume_level: .2
|
# volume_level: .2
|
||||||
|
|
||||||
@ -1655,7 +1655,7 @@ script:
|
|||||||
# entity_id: 'media_player.ha_blue'
|
# entity_id: 'media_player.ha_blue'
|
||||||
# state: 'playing'
|
# state: 'playing'
|
||||||
# - service: media_player.volume_set
|
# - service: media_player.volume_set
|
||||||
# data_template:
|
# data:
|
||||||
# entity_id: media_player.ha_blue
|
# entity_id: media_player.ha_blue
|
||||||
# volume_level: >
|
# volume_level: >
|
||||||
# {{ states.input_number.old_volume.state }}
|
# {{ states.input_number.old_volume.state }}
|
||||||
|
@ -160,7 +160,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_school_day_start
|
entity_id: input_datetime.kallen_school_day_start
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
11:00
|
11:00
|
||||||
@ -171,7 +171,7 @@ script:
|
|||||||
seconds: 1
|
seconds: 1
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_wakeup_time
|
entity_id: input_datetime.kallen_wakeup_time
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
@ -185,7 +185,7 @@ script:
|
|||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.kallen_morning_briefing_location
|
entity_id: input_select.kallen_morning_briefing_location
|
||||||
data_template:
|
data:
|
||||||
option: >
|
option: >
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
@ -198,7 +198,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_morning_briefing
|
entity_id: input_datetime.kallen_morning_briefing
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
@ -211,7 +211,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_school_day_start_reminder
|
entity_id: input_datetime.kallen_school_day_start_reminder
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
10:00
|
10:00
|
||||||
@ -220,7 +220,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_school_day_end_reminder
|
entity_id: input_datetime.kallen_school_day_end_reminder
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
||||||
13:30
|
13:30
|
||||||
@ -233,7 +233,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_bedtime
|
entity_id: input_datetime.kallen_bedtime
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('sensor.kallen_school_tomorrow', 'on') %}
|
{% if is_state('sensor.kallen_school_tomorrow', 'on') %}
|
||||||
21:00
|
21:00
|
||||||
@ -242,7 +242,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.kallen_nightly_briefing
|
entity_id: input_datetime.kallen_nightly_briefing
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('sensor.kallen_school_tomorrow', 'on') %}
|
{% if is_state('sensor.kallen_school_tomorrow', 'on') %}
|
||||||
20:40
|
20:40
|
||||||
@ -267,7 +267,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.audible_notification_on
|
entity_id: input_datetime.audible_notification_on
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 5400) | timestamp_custom('%H:%M', false) }}
|
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 5400) | timestamp_custom('%H:%M', false) }}
|
||||||
@ -276,7 +276,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.morning_briefing
|
entity_id: input_datetime.morning_briefing
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
{% if is_state('input_boolean.kallen_two_hour_delay','on') %}
|
||||||
@ -297,7 +297,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.daily_briefing
|
entity_id: input_datetime.daily_briefing
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
||||||
@ -357,7 +357,7 @@ script:
|
|||||||
{{ (state_attr('input_datetime.kallen_bedtime','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
|
{{ (state_attr('input_datetime.kallen_bedtime','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.audible_notification_off
|
entity_id: input_datetime.audible_notification_off
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('sensor.kallen_school_tomorrow','on') %}
|
{% if is_state('sensor.kallen_school_tomorrow','on') %}
|
||||||
22:00
|
22:00
|
||||||
@ -370,7 +370,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.master_bedroom_wakeup
|
entity_id: input_datetime.master_bedroom_wakeup
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
{% if is_state('input_boolean.kallen_school_early_release','on') %}
|
||||||
@ -387,7 +387,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.master_bedroom_cooling
|
entity_id: input_datetime.master_bedroom_cooling
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
||||||
{% if is_state('input_boolean.hot_day','on') and is_state('sensor.kallen_school_tomorrow','on') %}
|
{% if is_state('input_boolean.hot_day','on') and is_state('sensor.kallen_school_tomorrow','on') %}
|
||||||
@ -403,7 +403,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.master_bedroom_fan
|
entity_id: input_datetime.master_bedroom_fan
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
||||||
{% if low > 60 %}
|
{% if low > 60 %}
|
||||||
@ -444,7 +444,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.emma_wakeup
|
entity_id: input_datetime.emma_wakeup
|
||||||
data_template:
|
data:
|
||||||
time: "{{ states('input_datetime.master_bedroom_wakeup') }}"
|
time: "{{ states('input_datetime.master_bedroom_wakeup') }}"
|
||||||
|
|
||||||
emma_bedroom_scheduling_evening:
|
emma_bedroom_scheduling_evening:
|
||||||
@ -452,7 +452,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.emma_bedtime
|
entity_id: input_datetime.emma_bedtime
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% set high = state_attr('sensor.current_forecast','high_temp') | float %}
|
{% set high = state_attr('sensor.current_forecast','high_temp') | float %}
|
||||||
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
||||||
@ -483,7 +483,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.morning_alarm_disarm
|
entity_id: input_datetime.morning_alarm_disarm
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% set ct = ((now().hour * 60 + now().minute) * 60 ) %}
|
{% set ct = ((now().hour * 60 + now().minute) * 60 ) %}
|
||||||
{% if is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','on') %}
|
||||||
@ -505,7 +505,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.morning_alarm_rearm
|
entity_id: input_datetime.morning_alarm_rearm
|
||||||
data_template:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% set ct = ((now().hour * 60 + now().minute) * 60 ) %}
|
{% set ct = ((now().hour * 60 + now().minute) * 60 ) %}
|
||||||
{% if is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %}
|
{% if is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %}
|
||||||
|
@ -301,7 +301,7 @@ automation:
|
|||||||
color_name: red
|
color_name: red
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: common
|
who: common
|
||||||
call_interruption: 1
|
call_interruption: 1
|
||||||
call_lockdown_issue: 1
|
call_lockdown_issue: 1
|
||||||
|
@ -1330,7 +1330,7 @@ automation:
|
|||||||
value_template: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') not in states('input_text.weatheralerts_triggered_ui_alert_ids') }}"
|
value_template: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') not in states('input_text.weatheralerts_triggered_ui_alert_ids') }}"
|
||||||
action:
|
action:
|
||||||
- service: script.weatheralerts_popup_on_wx_alert
|
- service: script.weatheralerts_popup_on_wx_alert
|
||||||
data_template:
|
data:
|
||||||
title: >
|
title: >
|
||||||
{% if (states('sensor.weatheralerts_alert_1') == 'on') and ((as_timestamp(now()) - as_timestamp(state_attr('sensor.weatheralerts_alert_1', 'alert_effective'))|float) <= 3600) %}
|
{% if (states('sensor.weatheralerts_alert_1') == 'on') and ((as_timestamp(now()) - as_timestamp(state_attr('sensor.weatheralerts_alert_1', 'alert_effective'))|float) <= 3600) %}
|
||||||
{{ state_attr('sensor.weatheralerts_alert_1', 'display_title') }}
|
{{ state_attr('sensor.weatheralerts_alert_1', 'display_title') }}
|
||||||
@ -1373,7 +1373,7 @@ automation:
|
|||||||
<hr>Alert: <br>{{ state_attr('sensor.weatheralerts_alert_5', 'display_title') }}
|
<hr>Alert: <br>{{ state_attr('sensor.weatheralerts_alert_5', 'display_title') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data_template:
|
data:
|
||||||
entity_id: input_text.weatheralerts_triggered_ui_alert_ids
|
entity_id: input_text.weatheralerts_triggered_ui_alert_ids
|
||||||
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
||||||
|
|
||||||
@ -1415,7 +1415,7 @@ automation:
|
|||||||
value_template: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') not in states('input_text.weatheralerts_triggered_alert_ids') }}"
|
value_template: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') not in states('input_text.weatheralerts_triggered_alert_ids') }}"
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data_template:
|
data:
|
||||||
message: >
|
message: >
|
||||||
Current NWS Weather Alerts:
|
Current NWS Weather Alerts:
|
||||||
|
|
||||||
@ -1442,7 +1442,7 @@ automation:
|
|||||||
{{ states.sensor.weatheralerts_alert_5.attributes.display_title }} for {{ state_attr('sensor.weatheralerts', 'friendly_name') }}
|
{{ states.sensor.weatheralerts_alert_5.attributes.display_title }} for {{ state_attr('sensor.weatheralerts', 'friendly_name') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data_template:
|
data:
|
||||||
entity_id: input_text.weatheralerts_triggered_alert_ids
|
entity_id: input_text.weatheralerts_triggered_alert_ids
|
||||||
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
||||||
|
|
||||||
@ -1458,7 +1458,7 @@ automation:
|
|||||||
# above: 0
|
# above: 0
|
||||||
# action:
|
# action:
|
||||||
# - service: script.text_notify
|
# - service: script.text_notify
|
||||||
# data_template:
|
# data:
|
||||||
# title: "Weather Alert for Anchorage House"
|
# title: "Weather Alert for Anchorage House"
|
||||||
# message: >
|
# message: >
|
||||||
# There are currently {{ state_attr('sensor.weatheralerts_active_alerts', 'warning_count') | int }} active warnings and {{ state_attr('sensor.weatheralerts_active_alerts', 'watch_count') | int }} watches for our area.
|
# There are currently {{ state_attr('sensor.weatheralerts_active_alerts', 'warning_count') | int }} active warnings and {{ state_attr('sensor.weatheralerts_active_alerts', 'watch_count') | int }} watches for our area.
|
||||||
@ -1487,7 +1487,7 @@ automation:
|
|||||||
who: everywhere
|
who: everywhere
|
||||||
message: Severe thunderstorm warning has been issued, it's about to get loud!
|
message: Severe thunderstorm warning has been issued, it's about to get loud!
|
||||||
- service: input_text.set_value
|
- service: input_text.set_value
|
||||||
data_template:
|
data:
|
||||||
entity_id: input_text.weatheralerts_triggered_audible_alert_ids
|
entity_id: input_text.weatheralerts_triggered_audible_alert_ids
|
||||||
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
value: "{{ state_attr('sensor.weatheralerts_alert_1', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_2', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_3', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_4', 'alert_id') }} {{ state_attr('sensor.weatheralerts_alert_5', 'alert_id') }}"
|
||||||
|
|
||||||
@ -1631,7 +1631,7 @@ script:
|
|||||||
data:
|
data:
|
||||||
color_name: red
|
color_name: red
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: 'common'
|
who: 'common'
|
||||||
call_interuption: 1
|
call_interuption: 1
|
||||||
call_lightning_alert: 1
|
call_lightning_alert: 1
|
||||||
@ -1662,7 +1662,7 @@ script:
|
|||||||
data:
|
data:
|
||||||
tag: lightning-warning
|
tag: lightning-warning
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data:
|
||||||
who: 'common'
|
who: 'common'
|
||||||
call_interuption: 1
|
call_interuption: 1
|
||||||
call_lightning_clear: 1
|
call_lightning_clear: 1
|
||||||
|
@ -38,7 +38,7 @@ give_me_darkness:
|
|||||||
alias: Both adults are home
|
alias: Both adults are home
|
||||||
then:
|
then:
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data:
|
||||||
text: <voice name='Brian'><prosody rate='150%'>Would you like me to arm
|
text: <voice name='Brian'><prosody rate='150%'>Would you like me to arm
|
||||||
the security system?</prosody></voice>
|
the security system?</prosody></voice>
|
||||||
event_id: actionable_notification_night_security_arm
|
event_id: actionable_notification_night_security_arm
|
||||||
@ -278,7 +278,7 @@ going_upstairs:
|
|||||||
data: {}
|
data: {}
|
||||||
alias: Shut down laptop
|
alias: Shut down laptop
|
||||||
- service: script.activate_alexa_actionable_notification
|
- service: script.activate_alexa_actionable_notification
|
||||||
data_template:
|
data:
|
||||||
text: <voice name='Brian'><prosody rate='150%'>Would you like me to shut down
|
text: <voice name='Brian'><prosody rate='150%'>Would you like me to shut down
|
||||||
your computer?</prosody></voice>
|
your computer?</prosody></voice>
|
||||||
event_id: actionable_notification_shutdown_computer
|
event_id: actionable_notification_shutdown_computer
|
||||||
|
Reference in New Issue
Block a user