More updates to the Speech Engine. #288
This commit is contained in:
parent
e59c99a4b7
commit
93f927a113
|
@ -123,13 +123,13 @@
|
|||
|
||||
{%- macro days_until() -%}
|
||||
{% 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!
|
||||
{%- elif month == 6 -%}
|
||||
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!
|
||||
{%- elif month == 12 -%}
|
||||
{%- elif month == 11 or month == 12 -%}
|
||||
There are {{ states.sensor.xmas_countdown.state }} days until Christmas!
|
||||
{% endif %}
|
||||
{%- endmacro -%}
|
||||
|
@ -250,4 +250,4 @@
|
|||
{% endif %}
|
||||
|
||||
{# 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)() }}
|
||||
|
|
Loading…
Reference in New Issue