diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index b18a0baa..4788eb69 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -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)() }}