Skip to content

Commit

Permalink
#17 - Added in some more holiday Colors!
Browse files Browse the repository at this point in the history
  • Loading branch information
CCOSTAN committed Aug 19, 2017
1 parent 33cdc56 commit 0e30201
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 39 deletions.
94 changes: 92 additions & 2 deletions scene/monthly_colors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,19 @@
color_name: 'Purple'
light.outdoor_sconce_2:
state: 'on'
color_name: 'Green'
color_name: 'Gold'
light.outdoor_sconce_3:
state: 'on'
color_name: 'Gold'
color_name: 'Purple'
light.led_garage_large:
state: 'on'
color_name: 'Green'
light.led_garage_small:
state: 'on'
color_name: 'Green'
light.led_outdoor_den:
state: 'on'
color_name: 'Green'

- name: month_st_patty_colors
entities:
Expand All @@ -93,6 +102,15 @@
state: 'on'
#color_name: 'Bubble Gum'
rgb_color: [255,193,204]
light.led_garage_large:
state: 'on'
color_name: 'Green'
light.led_garage_small:
state: 'on'
color_name: 'Green'
light.led_outdoor_den:
state: 'on'
color_name: 'Green'

- name: month_cinco_de_mayo_colors
entities:
Expand Down Expand Up @@ -134,3 +152,75 @@
state: 'on'
color_name: 'Orange'
#rgb_color: [23,114,69]

- name: month_hanukkah_colors
entities:
light.outdoor_foyer:
state: 'on'
color_name: 'white'
light.outdoor_sconce_1:
state: 'on'
color_name: 'blue'
light.outdoor_sconce_2:
state: 'on'
color_name: 'white'
light.outdoor_sconce_3:
state: 'on'
color_name: 'blue'
light.led_garage_large:
state: 'on'
color_name: 'Blue'
light.led_garage_small:
state: 'on'
color_name: 'white'
light.led_outdoor_den:
state: 'on'
color_name: 'blue'

- name: month_christmas_colors
entities:
light.outdoor_foyer:
state: 'on'
color_name: 'red'
light.outdoor_sconce_1:
state: 'on'
color_name: 'red'
light.outdoor_sconce_2:
state: 'on'
color_name: 'red'
light.outdoor_sconce_3:
state: 'on'
color_name: 'red'
light.led_garage_large:
state: 'on'
color_name: 'green'
light.led_garage_small:
state: 'on'
color_name: 'green'
light.led_outdoor_den:
state: 'on'
color_name: 'green'

- name: month_new_years_day_colors
entities:
light.outdoor_foyer:
state: 'on'
color_name: 'red'
light.outdoor_sconce_1:
state: 'on'
color_name: 'blue'
light.outdoor_sconce_2:
state: 'on'
color_name: 'yellow'
light.outdoor_sconce_3:
state: 'on'
color_name: 'orange'
light.led_garage_large:
state: 'on'
color_name: 'green'
light.led_garage_small:
state: 'on'
color_name: 'purple'
light.led_outdoor_den:
state: 'on'
color_name: 'violet'
55 changes: 18 additions & 37 deletions script/monthly_color_scene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# - service: script.monthly_color_scene
#
# scenes should be named month_[01-12]_colors (month_06_colors)
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
######################################################################################################

monthly_color_scene:
Expand All @@ -12,41 +13,6 @@ monthly_color_scene:
entity_id: sun.sun
state: 'below_horizon'

- service: logbook.log
data_template:
name: "Launching Scene:"
message: >
"scene.month_
{%- if now().strftime("%m%d")|int == 101 -%}
new_years_day
{%- elif now().strftime("%m%d")|int == 212
or now().strftime("%m%d")|int == 220
or now().strftime("%m%d")|int == 520
or now().strftime("%m%d")|int == 529
or now().strftime("%m%d")|int == 614
or now().strftime("%m%d")|int == 704
or now().strftime("%m%d")|int == 904
or now().strftime("%m%d")|int == 911
or now().strftime("%m%d")|int == 1111
-%}
RWB
{%- elif now().strftime("%m%d")|int >= 210
and now().strftime("%m%d")|int <= 214-%}
valentine
{%- elif now().strftime("%m%d")|int == 228 -%}
marti_gras
{%- elif now().strftime("%m%d")|int >= 314
and now().strftime("%m%d")|int <= 317-%}
st_patty
{%- elif now().strftime("%m%d")|int >= 414
and now().strftime("%m%d")|int <= 416-%}
easter
{%- elif now().strftime("%m%d")|int == 505 -%}
cinco_de_mayo
{%- else -%}
standard
{%- endif -%}_colors
- service: scene.turn_on
data_template:
entity_id: >
Expand Down Expand Up @@ -82,8 +48,23 @@ monthly_color_scene:
valentine
{%- elif now().strftime("%m%d")|int == 618 -%}
fathers_day
{%- elif now().strftime("%m%d")|int == 1031 -%}
{%- elif now().strftime("%m%d")|int >= 1022
and now().strftime("%m%d")|int <= 1031-%}
halloween
{%- elif now().strftime("%m%d")|int >= 1123
and now().strftime("%m%d")|int <= 1124-%}
halloween
{%- elif now().strftime("%m%d")|int >= 1201
and now().strftime("%m%d")|int <= 1211-%}
christmas
{%- elif now().strftime("%m%d")|int >= 1212
and now().strftime("%m%d")|int <= 1220-%}
hanukkah
{%- elif now().strftime("%m%d")|int >= 1221
and now().strftime("%m%d")|int <= 1230-%}
christmas
{%- elif now().strftime("%m%d")|int == 1231 -%}
new_years_day
{%- else -%}
standard
{%- endif -%}_colors
Expand Down Expand Up @@ -111,7 +92,7 @@ monthly_color_scene:
# RWB 1009 columbus day
# 1031 halloween
# RWB 1111 veterans day
# 1123 Thanksgiving
# 1123 Thanksgiving - same as Halloween
# 1212 Hanukkah start 8 days.
# 1225 Chrismas
# 1231 New years eve

0 comments on commit 0e30201

Please sign in to comment.