Updated Holiday colors for 2018

This commit is contained in:
ccostan 2018-03-01 01:37:29 -05:00
parent b3012562b0
commit 97e4a82644
2 changed files with 18 additions and 36 deletions

View File

@ -39,7 +39,7 @@ sensor:
{{ holiday }}
- platform: rest
resource: http://www.webcal.fi/cal.php?id=335&format=json&start_year=current_year&end_year=2017&tz=America%2FNew_York
resource: http://www.webcal.fi/cal.php?id=335&format=json&start_year=current_year&end_year=2018&tz=America%2FNew_York
name: Flag
scan_interval: 14400
value_template: >-

View File

@ -31,8 +31,8 @@ monthly_color_scene:
{%- elif now().strftime("%m%d")|int >= 315
and now().strftime("%m%d")|int <= 317-%}
st_patty
{%- elif now().strftime("%m%d")|int >= 414
and now().strftime("%m%d")|int <= 416-%}
{%- elif now().strftime("%m%d")|int >= 328
and now().strftime("%m%d")|int <= 401-%}
easter
{%- elif now().strftime("%m%d")|int == 422 -%}
st_patty
@ -42,21 +42,21 @@ monthly_color_scene:
cinco_de_mayo
{%- elif now().strftime("%m%d")|int == 514 -%}
valentine
{%- elif now().strftime("%m%d")|int == 618 -%}
{%- elif now().strftime("%m%d")|int == 617 -%}
fathers_day
{%- elif now().strftime("%m%d")|int >= 1001
and now().strftime("%m%d")|int <= 1031-%}
halloween
{%- elif now().strftime("%m%d")|int >= 1123
and now().strftime("%m%d")|int <= 1124-%}
{%- elif now().strftime("%m%d")|int >= 1122
and now().strftime("%m%d")|int <= 1123-%}
thanksgiving
{%- elif now().strftime("%m%d")|int >= 1125
and now().strftime("%m%d")|int <= 1211-%}
and now().strftime("%m%d")|int <= 1201-%}
christmas
{%- elif now().strftime("%m%d")|int >= 1212
and now().strftime("%m%d")|int <= 1220-%}
{%- elif now().strftime("%m%d")|int >= 1202
and now().strftime("%m%d")|int <= 1210-%}
hanukkah
{%- elif now().strftime("%m%d")|int >= 1221
{%- elif now().strftime("%m%d")|int >= 1211
and now().strftime("%m%d")|int <= 1230-%}
christmas
{%- elif now().strftime("%m%d")|int == 1231 -%}
@ -66,29 +66,11 @@ monthly_color_scene:
{%- endif -%}_colors
# http://www.calendar-365.com/holidays/2017.html
# 101 New_years_day (colorloop)
# RWB 212 Lincoln's Birthday
# 214 Valentine's Day (pink, red)
# RWB 220 President's Day
# 228 Mardi Gras (purple, green, gold )
# 317 st Patty (green)
# 414 Good Friday
# 416 Easter
# 422 Earth Day
# 505 Cinco de Mayo (green, white, red)
# 514 Mother's Day (pink, red) - Same as Valentine
# RWB 520 Armed Forces Day
# RWB 529 Memorial Day
# RWB 614 Flag Day
# 618 Fathers day (Orange, Blue)
# RWB 704 July 4th
# RWB 904 Labor Day
# RWB 911 Patriots day
# RWB 1009 columbus day
# 1005 - 1031 halloween
# RWB 1111 veterans day
# 1123 Thanksgiving
# 1212 Hanukkah start 8 days.
# 1225 Chrismas
# 1231 New years eve
# http://www.calendar-365.com/holidays/2018.html
# 213 Mardi Gras (purple, green, gold )
# 330 Good Friday
# 401 Easter
# 513 Mother's Day (pink, red) - Same as Valentine
# 617 Fathers day (Orange, Blue)
# 1122 Thanksgiving
# 1202 Hanukkah start 8 days.