More updates to the Speech Engine. #288

This commit is contained in:
ccostan 2019-10-06 14:27:43 -04:00
parent e59c99a4b7
commit 93f927a113
1 changed files with 4 additions and 4 deletions

View File

@ -123,13 +123,13 @@
{%- macro days_until() -%} {%- macro days_until() -%}
{% set month=states("sensor.date").split('-')[1] | int %} {% set month=states("sensor.date").split('-')[1] | int %}
{%- if month == 5 -%} {%- if month == 4 or month == 5 -%}
There are {{ states.sensor.mothersday_countdown.state }} days until Mothers day! There are {{ states.sensor.mothersday_countdown.state }} days until Mothers day!
{%- elif month == 6 -%} {%- elif month == 6 -%}
There are {{ states.sensor.fathersday_countdown.state }} days until Fathers day! There are {{ states.sensor.fathersday_countdown.state }} days until Fathers day!
{%- elif month == 10 -%} {%- elif month == 9 or month == 10 -%}
There are {{ states.sensor.halloween_countdown.state }} days until Halloween! There are {{ states.sensor.halloween_countdown.state }} days until Halloween!
{%- elif month == 12 -%} {%- elif month == 11 or month == 12 -%}
There are {{ states.sensor.xmas_countdown.state }} days until Christmas! There are {{ states.sensor.xmas_countdown.state }} days until Christmas!
{% endif %} {% endif %}
{%- endmacro -%} {%- endmacro -%}
@ -250,4 +250,4 @@
{% endif %} {% endif %}
{# call a Random fact about the house or inspiration quote #} {# call a Random fact about the house or inspiration quote #}
{{ ([iss, moon, uv, holiday, outside_weather, outside_weather, inspirational_quote]|random)() }} {{ ([iss, moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote]|random)() }}