Added in Mother's day and updated some floating dates on my Holiday color scripting. https://www.youtube.com/watch?v=nsWq4uVrQ0g

This commit is contained in:
ccostan 2019-02-15 11:21:01 -05:00
parent ebd75965c8
commit d760217dd2
2 changed files with 23 additions and 15 deletions

View File

@ -217,6 +217,13 @@
state: 'on' state: 'on'
color_name: 'white' color_name: 'white'
- name: month_mothers_day_colors
entities:
group.outdoor_front_lights:
state: 'on'
#color_name: 'Lavender'
rgb_color: [244,187,255]
- name: month_fathers_day_colors - name: month_fathers_day_colors
entities: entities:
light.outdoor_foyer: light.outdoor_foyer:

View File

@ -29,41 +29,42 @@ monthly_color_scene:
{%- elif now().strftime("%m%d")|int >= 210 {%- elif now().strftime("%m%d")|int >= 210
and now().strftime("%m%d")|int <= 214-%} and now().strftime("%m%d")|int <= 214-%}
valentine valentine
{%- elif now().strftime("%m%d")|int == 228 -%} {%- elif now().strftime("%m%d")|int == 305 -%}
marti_gras marti_gras
{%- elif now().strftime("%m%d")|int == 314 -%} {%- elif now().strftime("%m%d")|int == 314 -%}
pi pi
{%- 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 >= 328 {%- elif now().strftime("%m%d")|int >= 418
and now().strftime("%m%d")|int <= 401-%} and now().strftime("%m%d")|int <= 421-%}
easter easter
{%- elif now().strftime("%m%d")|int == 422 -%}
st_patty
{%- 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 == 514 -%} {%- elif now().strftime("%m%d")|int == 512 -%}
valentine mothers_day
{%- elif now().strftime("%m%d")|int == 617 -%} {%- elif now().strftime("%m%d")|int == 616 -%}
fathers_day fathers_day
{%- 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 >= 1122 {%- elif now().strftime("%m%d")|int >= 1128
and now().strftime("%m%d")|int <= 1123-%} and now().strftime("%m%d")|int <= 1130-%}
thanksgiving thanksgiving
{%- elif now().strftime("%m%d")|int >= 1125 {%- elif now().strftime("%m%d")|int >= 1125
and now().strftime("%m%d")|int <= 1201-%} and now().strftime("%m%d")|int <= 1221-%}
christmas christmas
{%- elif now().strftime("%m%d")|int >= 1202 {%- elif now().strftime("%m%d")|int >= 1222
and now().strftime("%m%d")|int <= 1210-%} and now().strftime("%m%d")|int <= 1223-%}
hanukkah hanukkah
{%- elif now().strftime("%m%d")|int >= 1211 {%- elif now().strftime("%m%d")|int >= 1224
and now().strftime("%m%d")|int <= 1230-%} 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 -%}