More Words.. Spooky and Merry to be exact.
This commit is contained in:
parent
b331f88795
commit
bbea43145e
|
@ -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 |
Loading…
Reference in New Issue