From 8429ae93e88136a582f5181787e8f94a73442172 Mon Sep 17 00:00:00 2001 From: ccostan Date: Fri, 5 Jun 2020 14:24:37 -0400 Subject: [PATCH] Complete #744 - No more Color_name Breaking Change --- .../automation/late_night_outside_helper.yaml | 14 ++- config/logger.yaml | 1 + config/packages/alarm.yaml | 8 +- config/scene/monthly_colors.yaml | 109 ++++++++++++------ config/scene/tv_time.yaml | 10 +- config/script/emergency.yaml | 3 +- 6 files changed, 92 insertions(+), 53 deletions(-) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index 0a98c655..013fee8d 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -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: > @@ -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 %} diff --git a/config/logger.yaml b/config/logger.yaml index fe0a90a6..eed56213 100755 --- a/config/logger.yaml +++ b/config/logger.yaml @@ -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 diff --git a/config/packages/alarm.yaml b/config/packages/alarm.yaml index 66bb32a1..86799d82 100755 --- a/config/packages/alarm.yaml +++ b/config/packages/alarm.yaml @@ -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: diff --git a/config/scene/monthly_colors.yaml b/config/scene/monthly_colors.yaml index e953d8ed..2cb4da0c 100755 --- a/config/scene/monthly_colors.yaml +++ b/config/scene/monthly_colors.yaml @@ -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: @@ -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' @@ -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: @@ -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 @@ -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' @@ -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: @@ -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' @@ -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: @@ -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' @@ -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 @@ -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] diff --git a/config/scene/tv_time.yaml b/config/scene/tv_time.yaml index 508e7ac4..39694220 100755 --- a/config/scene/tv_time.yaml +++ b/config/scene/tv_time.yaml @@ -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 diff --git a/config/script/emergency.yaml b/config/script/emergency.yaml index 0c9879d4..2fc8b952 100755 --- a/config/script/emergency.yaml +++ b/config/script/emergency.yaml @@ -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