Skip to content

Commit

Permalink
Complete #744 - No more Color_name Breaking Change
Browse files Browse the repository at this point in the history
  • Loading branch information
ccostan committed Jun 5, 2020
1 parent 6766dc3 commit 8429ae9
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 53 deletions.
14 changes: 8 additions & 6 deletions config/automation/late_night_outside_helper.yaml
Expand Up @@ -24,11 +24,12 @@
entity_id:
- group.living_room_accents
data_template:
color_name: >
# Red if Open, Gold if Closed
rgb_color: >
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red
[255,0,0]
{% else %}
gold
[255,215,0]
{% endif %}
- service_template: >
Expand All @@ -50,9 +51,10 @@
entity_id:
- group.living_room_accents
data_template:
color_name: >
# Red if Open, Gold if Closed
rgb_color: >
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red
[255,0,0]
{% else %}
gold
[255,215,0]
{% endif %}
1 change: 1 addition & 0 deletions config/logger.yaml
Expand Up @@ -20,6 +20,7 @@ logs:
homeassistant.components.discovery: warn
homeassistant.components.feedreader: error
homeassistant.components.http: warn
homeassistant.components.ipp: critical
homeassistant.components.media_player: info
homeassistant.components.sensor.pi_hole: critical
homeassistant.components.sensor.rest: critical
Expand Down
8 changes: 4 additions & 4 deletions config/packages/alarm.yaml
Expand Up @@ -290,16 +290,16 @@ automation:
entity_id:
- group.living_room_accents
data_template:
color_name: >
rgb_color: >
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red
[255,0,0]
{% else %}
gold
[255,215,0]
{% endif %}
#-------------------------------------------#---
- alias: "Panel Door opened"

trigger:
- platform: state
entity_id:
Expand Down
109 changes: 72 additions & 37 deletions config/scene/monthly_colors.yaml
Expand Up @@ -97,23 +97,27 @@
rgb_color: [128,0,128]
light.led_garage_large:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]

- name: month_st_patty_colors
entities:
group.outdoor_front_lights:
state: 'on'
#color_name: 'Dark Spring Green'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]

- name: month_pi_colors
entities:
Expand All @@ -129,7 +133,8 @@
rgb_color: [244,187,255]
light.front_door:
state: 'on'
color_name: 'yellow'
#color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1:
state: 'on'
#color_name: 'Bubble Gum'
Expand All @@ -144,16 +149,20 @@
rgb_color: [255,193,204]
light.led_garage_large:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]

- name: month_starwars_colors
entities:
Expand All @@ -163,7 +172,8 @@
rgb_color: [204,0,0]
light.front_door:
state: 'on'
color_name: 'yellow'
#color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1:
state: 'on'
#color_name: 'White' Smoke
Expand Down Expand Up @@ -225,7 +235,8 @@
rgb_color: [255,0,0]
light.led_garage_small:
state: 'on'
color_name: 'Green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den:
state: 'on'
#color_name: 'white'
Expand All @@ -242,19 +253,24 @@
entities:
light.outdoor_foyer:
state: 'on'
color_name: 'Orange'
#color_name: 'orange'
rgb_color: [255,165,0]
light.front_door:
state: 'on'
color_name: 'Orange'
#color_name: 'orange'
rgb_color: [255,165,0]
light.outdoor_sconce_1:
state: 'on'
color_name: 'Blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.outdoor_sconce_2:
state: 'on'
color_name: 'Orange'
#color_name: 'orange'
rgb_color: [255,165,0]
light.outdoor_sconce_3:
state: 'on'
color_name: 'Blue'
#color_name: 'Blue'
rgb_color: [0,0,255]

- name: month_halloween_colors
entities:
Expand Down Expand Up @@ -303,14 +319,16 @@
entities:
group.outdoor_front_lights:
state: 'on'
color_name: 'orange'
#color_name: 'orange'
rgb_color: [255,165,0]


- name: month_hanukkah_colors
entities:
light.outdoor_foyer:
state: 'on'
color_name: 'blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.front_door:
state: 'on'
#color_name: 'white'
Expand All @@ -326,16 +344,20 @@
rgb_color: [255,255,255]
light.led_garage_large:
state: 'on'
color_name: 'Blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.led_garage_snip:
state: 'on'
color_name: 'Blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.led_garage_small:
state: 'on'
color_name: 'blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.led_outdoor_den:
state: 'on'
color_name: 'blue'
#color_name: 'Blue'
rgb_color: [0,0,255]

- name: month_christmas_colors
entities:
Expand All @@ -345,7 +367,8 @@
rgb_color: [255,0,0]
light.front_door:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.outdoor_sconce_1:
state: 'on'
#color_name: 'red'
Expand All @@ -360,19 +383,23 @@
rgb_color: [255,0,0]
light.led_garage_large:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade
light.led_garage_snip:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade
light.led_garage_small:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade
light.led_outdoor_den:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade

- name: month_new_years_day_colors
Expand All @@ -383,25 +410,33 @@
rgb_color: [255,0,0]
light.front_door:
state: 'on'
color_name: 'yellow'
#color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1:
state: 'on'
color_name: 'blue'
#color_name: 'Blue'
rgb_color: [0,0,255]
light.outdoor_sconce_2:
state: 'on'
color_name: 'yellow'
#color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_3:
state: 'on'
color_name: 'orange'
#color_name: 'orange'
rgb_color: [255,165,0]
light.led_garage_large:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip:
state: 'on'
color_name: 'green'
#color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small:
state: 'on'
color_name: 'purple'
#color_name: 'purple'
rgb_color: [128,0,128]
light.led_outdoor_den:
state: 'on'
color_name: 'violet'
#color_name: 'violet'
rgb_color: [238,130,238]
10 changes: 5 additions & 5 deletions config/scene/tv_time.yaml
Expand Up @@ -12,25 +12,25 @@
light.m1_back_right:
state: on
transition: 10
color_name: 'Gold'
rgb_color: [255,215,0] # Gold
brightness: 30
light.m1_back_left:
state: on
transition: 40
color_name: 'Gold'
rgb_color: [255,215,0] # Gold
brightness: 30
light.tv_stand_light:
state: on
transition: 400
color_name: 'Gold'
rgb_color: [255,215,0] # Gold
brightness: 150
light.tv_light:
state: on
transition: 400
color_name: 'Gold'
rgb_color: [255,215,0] # Gold
brightness: 125
light.couch_1:
state: on
transition: 400
color_name: 'Gold'
rgb_color: [255,215,0] # Gold
brightness: 255
3 changes: 2 additions & 1 deletion config/script/emergency.yaml
Expand Up @@ -13,7 +13,8 @@ emergency:
entity_id:
- group.outdoor_front_lights
data:
color_name: 'red'
#color_name: 'red'
rgb_color: [255,0,0]
# Flash All LIGHTS
- service: light.turn_on
entity_id: all
Expand Down

0 comments on commit 8429ae9

Please sign in to comment.