{% set weather = state_attr('weather.home', 'forecast') %}
{% set high_temp = weather[0].temperature %}
{% set low_temp = weather[0].templow %}
{% for entry in weather %}
{% if entry.temperature > high_temp %}
{% set high_temp = entry.temperature %}
{% endif %}
{% if entry.templow < low_temp %}
{% set low_temp = entry.templow %}
{% endif %}
{% if entry.condition == 'rainy'%}
It looks like there's rain expected at around {{ entry.datetime.split('T')[1][:2] }} o'clock. You might want to take an umbrella if you're leaving the house.
{% endif %}
{% endfor %}
{% if high_temp > 30 %}
It's going to be a hot one
{% elif 20 < high_temp < 30 %}
It should be a warm day
{% elif 15 < high_temp < 20 %}
It's going to be a pretty mild temperature today
{% elif 10 < high_temp < 15 %}
It seems like it'll be a bit chilly today
{% elif 0 < high_temp < 10 %}
It's going to be a cold day
{% else %}
It's going to be freezing today
{% endif %}
The forecast high is {{ high_temp }} °C.
With a Low of {{ low_temp }} °C .
{% if low_temp > 30 %}
Wow. That's hot!
{% elif 20 < low_temp < 30 %}
it's not going to go below 20 degrees today.
{% elif 10 < low_temp < 20 %}
it might get a little bit chilly.
{% elif 0 < low_temp < 10 %}
That's cold.
{% else %}
Absolutely freezing!
{% endif %}
target:
- media_player.dining_room_echo_plus
mode:single
@ -51,53 +65,58 @@ announce_time:
sequence:
- service:notify.alexa_media
data:
message:'" {% set current_time = states(''sensor.time'') %} {% set hour = current_time.split('':'')[0]
| int %} {% set minute = current_time.split('':'')[1] %}
{% if hour >= 6 and hour < 12 %} Good morning! {% elif hour >= 12 and hour
< 18 %} Good afternoon! {% elif hour >= 18 or hour < 6 %} Good evening! {%
endif %}
message:>_
{% set current_time = states('sensor.time') %}
{% set hour = current_time.split(':')[0] | int %}
{% set minute = current_time.split(':')[1] %}
{% set suffix = ''AM'' if hour < 12 else ''PM'' %} {% set hour_12 = hour if
hour <= 12 else hour - 12 %}
{% if hour >= 6 and hour < 12 %}
Good morning!
{% elif hour >= 12 and hour < 18 %}
Good afternoon!
{% elif hour >= 18 or hour < 6 %}
Good evening!
{% endif %}
It''s currently {{ hour_12 }}:{{ minute }} {{ suffix }}."
{% set suffix = ''AM'' if hour < 12 else 'PM' %}
{% set hour_12 = hour if hour <= 12 else hour - 12 %}
'
It's currently {{ hour_12 }}:{{ minute }} {{ suffix }}.
target:
- media_player.dining_room_echo_plus
mode:single
announce_internal_temperatures:
announce_quote_of_the_day:
alias:Announce Quote of the Day
sequence:
- service:notify.alexa_media
data:
message:' The {{ state_attr( ''sensor.quote_sensor'', ''category'' ) }} Quote
of the day is by {{ state_attr( ''sensor.quote_sensor'', ''author'' ) }}. They
said. {{ states(''sensor.quote_sensor'') }} '
message:>_
The {{ state_attr( ''sensor.quote_sensor'', ''category'' ) }} \
Quote of the day is by {{ state_attr( ''sensor.quote_sensor'', ''author'' ) }}.
They said. {{ states(''sensor.quote_sensor'') }}
target:
- media_player.dining_room_echo_plus
mode:single
icon:mdi:comment-quote
announce_dad_joke_of_the_day:
announce_pending_updates:
alias:Announce Pending Updates
sequence:
- service:notify.alexa_media
data:
message:'{% if states(''update.home_assistant_operating_system_update'') ==
''on''%} There''s a Home Assistant O S Update pending. The Installed version
is {{ state_attr(''update.home_assistant_operating_system_update'', ''installed_version'')
}}. The Available version is {{ state_attr(''update.home_assistant_operating_system_update'',
''latest_version'') }}. {% endif %} {% if states(''update.home_assistant_core_update'')
== ''on'' %} There''s a Home Assistant Core Update pending. The Installed
version is {{ state_attr(''update.home_assistant_core_update'', ''installed_version'')
}}. The Available version is {{ state_attr(''update.home_assistant_core_update'',
''latest_version'') }}. {% endif %}
{% if states(''update.esphome_update'') == ''on'' %} There''s an E S P Home
Update pending. The Installed version is {{ state_attr(''update.esphome_update'',
''installed_version'') }}. The Available version is {{ state_attr(''update.esphome_update'',
''latest_version'') }}. {% endif %} '
message:>_
{% set entities = {
'update.home_assistant_operating_system_update':'Home Assistant OS Update',