Updated all Dynamic holidays. No more changing dates in this file. #575

This commit is contained in:
ccostan 2020-05-23 14:24:01 -04:00
parent 688a25ef27
commit 1adc15041c
1 changed files with 10 additions and 16 deletions

View File

@ -38,38 +38,32 @@ monthly_color_scene:
{%- elif now().strftime("%m%d")|int >= 315 {%- elif now().strftime("%m%d")|int >= 315
and now().strftime("%m%d")|int <= 317-%} and now().strftime("%m%d")|int <= 317-%}
st_patty st_patty
{%- elif now().strftime("%m%d")|int >= 418 {%- elif states('sensor.easter_countdown') | int < 4 -%}
and now().strftime("%m%d")|int <= 421-%}
easter easter
{%- elif now().strftime("%m%d")|int == 504 -%} {%- elif now().strftime("%m%d")|int == 504 -%}
starwars starwars
{%- elif now().strftime("%m%d")|int == 505 -%} {%- elif now().strftime("%m%d")|int == 505 -%}
cinco_de_mayo cinco_de_mayo
{%- elif now().strftime("%m%d")|int == 512 -%} {%- elif states('sensor.mothers_countdown') | int < 4 -%}
mothers_day mothers_day
{%- elif now().strftime("%m%d")|int == 616 -%} {%- elif states('sensor.fathers_countdown') | int < 4 -%}
fathers_day fathers_day
{%- elif states('sensor.memorial_day_countdown') | int < 3 -%}
RWB
{%- elif now().strftime("%m%d")|int >= 704 {%- elif now().strftime("%m%d")|int >= 704
and now().strftime("%m%d")|int <= 704-%} and now().strftime("%m%d")|int <= 704-%}
RWB RWB
{%- elif states('sensor.labor_day_countdown') | int < 3 -%}
RWB
{%- elif now().strftime("%m%d")|int >= 1001 {%- elif now().strftime("%m%d")|int >= 1001
and now().strftime("%m%d")|int <= 1031-%} and now().strftime("%m%d")|int <= 1031-%}
halloween halloween
{%- elif now().strftime("%m%d")|int >= 1128 {%- elif states('sensor.thanksgiving_day_countdown') | int < 4 -%}
and now().strftime("%m%d")|int <= 1130-%}
thanksgiving thanksgiving
{%- elif now().strftime("%m%d")|int >= 1125 {%- elif states('sensor.chanukkah_countdown') | int < 10 -%}
and now().strftime("%m%d")|int <= 1221-%}
christmas
{%- elif now().strftime("%m%d")|int >= 1222
and now().strftime("%m%d")|int <= 1223-%}
hanukkah hanukkah
{%- elif now().strftime("%m%d")|int >= 1224 {%- elif states('sensor.christmas_countdown') | int < 30 -%}
and now().strftime("%m%d")|int <= 1225-%}
christmas christmas
{%- elif now().strftime("%m%d")|int >= 1226
and now().strftime("%m%d")|int <= 1230-%}
hanukkah
{%- elif now().strftime("%m%d")|int == 1231 -%} {%- elif now().strftime("%m%d")|int == 1231 -%}
new_years_day new_years_day
{%- else -%} {%- else -%}