Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (65 sloc) 2.41 KB
---
script:
event_reminder_announce:
sequence:
- service: script.say
data_template:
message: "{{ message }}"
media_player: >
{%- set room = media_player|lower|replace(' ','_')|replace('[','')|replace(']','') %}
{%-
set alexa = {
"bedroom": "media_player.master_bedroom",
"boys_bedroom": "media_player.boys_room",
"downstairs": "media_player.downstairs",
"kitchen/garage": "group.alexa_welcome",
"garage": "media_player.garage",
"kitchen": "media_player.kitchen",
"family_room": "media_player.family_room",
"play_room": "media_player.play_room",
"upstairs": "media_player.upstairs",
"upstairs_bathroom": "media_player.upstairs_bathroom"
}
-%}
{{ alexa[room] }}
# This section of variables can be removed. They are special for my setup.
say_dark_outside: "{{ say_dark_outside }}"
say_door_window_check: "{{ say_door_window_check }}"
say_goodbye: "{{ say_goodbye }}"
say_goodnight: "{{ say_goodnight }}"
say_greeting: "{{ say_greeting }}"
say_inside_weather: "{{ say_inside_weather }}"
say_light_check: "{{ say_light_check }}"
say_outside_weather: "{{ say_outside_weather }}"
say_responsibilities: "{{ say_responsibilities }}"
event_reminder_skipnext:
sequence:
- delay:
seconds: 15
- service: input_boolean.turn_off
data_template:
entity_id: "{{ skipnext|default('input_boolean.blank') }}"
# # You can uncomment this if you have Alexa Media Player setup for speech, or just call
# # your own speech routine. https://github.com/custom-components/alexa_media_player
# #
# say:
# sequence:
# - service: notify.alexa_media
# data_template:
# data:
# type: announce
# method: all
# title: >
# {%- if title is not string -%}
# Home Assistant
# {%- else -%}
# {{ title }}
# {%- endif -%}
# message: "{{ message }}"
# target: "{{ media_player }}"
# # Enable this to create sensor.time, if you don't already have one.
# #
# sensor:
# - platform: time_date
# display_options:
# - 'time'
You can’t perform that action at this time.