Additional update for FATHER'S Day #288.

This commit is contained in:
ccostan
2019-10-06 14:18:00 -04:00
parent a3d03fa158
commit e59c99a4b7
3 changed files with 21 additions and 0 deletions

View File

@@ -121,6 +121,19 @@
{% endif %}
{%- endmacro -%}
{%- macro days_until() -%}
{% set month=states("sensor.date").split('-')[1] | int %}
{%- if 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 -%}
There are {{ states.sensor.halloween_countdown.state }} days until Halloween!
{%- elif month == 12 -%}
There are {{ states.sensor.xmas_countdown.state }} days until Christmas!
{% endif %}
{%- endmacro -%}
{% macro inspirational_quote() %}
{% set inspirational_quote = [
"and one more thing, Life is about making an impact, make it a positive one. ",