More Words.. Spooky and Merry to be exact.

This commit is contained in:
ccostan 2020-10-09 14:34:31 -04:00
parent b331f88795
commit bbea43145e
2 changed files with 6 additions and 6 deletions

View File

@ -155,20 +155,20 @@
{# YOUTUBE VIDEO ********* https://www.vcloudinfo.com/2019/11/adding-days-until-sensor-to-my-home-assistant-speech-routines.html #}
{%- macro days_until() -%}
{%- if states('sensor.mothers_countdown') | int < 30 -%}
and don't forget, there are {{ states.sensor.mothers_countdown.state }} days until Mothers day!
{%- elif states('sensor.fathers_countdown') | int < 30 -%}
{%- if states('sensor.mothers_countdown') | int < 20 -%}
and don't forget, there is only {{ states.sensor.mothers_countdown.state }} days until Mothers day!
{%- elif states('sensor.fathers_countdown') | int < 20 -%}
and don't forget, there are {{ states.sensor.fathers_countdown.state }} days until Fathers day!
{%- elif states('sensor.easter_countdown') | int < 15 -%}
and don't forget, there are {{ states.sensor.easter_countdown.state }} days until Easter Sunday!
{%- elif states('sensor.thanksgiving_day_countdown') | int < 30 -%}
{%- elif states('sensor.thanksgiving_day_countdown') | int < 10 -%}
and don't forget, there are {{ states.sensor.thanksgiving_day_countdown.state }} days until Thanksgiving!
{%- elif states('sensor.halloween_countdown') | int < 30 -%}
and don't forget, there are {{ states.sensor.halloween_countdown.state }} days until Halloween!
and don't forget, there are {{ states.sensor.halloween_countdown.state }} Spooky days until Halloween!
{%- elif states('sensor.chanukkah_countdown') | int < 15 -%}
and don't forget, there are {{ states.sensor.chanukkah_countdown.state }} days until Chanukkah!
{%- elif states('sensor.christmas_countdown') | int < 30 -%}
and don't forget, there are {{ states.sensor.christmas_countdown.state }} days until Christmas!
and don't forget, there are {{ states.sensor.christmas_countdown.state }} Merry days until Christmas!
{% endif %}
{%- endmacro -%}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 36 KiB