Complete #744 - No more Color_name Breaking Change

This commit is contained in:
ccostan 2020-06-05 14:24:37 -04:00
parent 6766dc3273
commit 8429ae93e8
6 changed files with 92 additions and 53 deletions

View File

@ -24,11 +24,12 @@
entity_id: entity_id:
- group.living_room_accents - group.living_room_accents
data_template: 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' -%} {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red [255,0,0]
{% else %} {% else %}
gold [255,215,0]
{% endif %} {% endif %}
- service_template: > - service_template: >
@ -50,9 +51,10 @@
entity_id: entity_id:
- group.living_room_accents - group.living_room_accents
data_template: 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' -%} {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red [255,0,0]
{% else %} {% else %}
gold [255,215,0]
{% endif %} {% endif %}

View File

@ -20,6 +20,7 @@ logs:
homeassistant.components.discovery: warn homeassistant.components.discovery: warn
homeassistant.components.feedreader: error homeassistant.components.feedreader: error
homeassistant.components.http: warn homeassistant.components.http: warn
homeassistant.components.ipp: critical
homeassistant.components.media_player: info homeassistant.components.media_player: info
homeassistant.components.sensor.pi_hole: critical homeassistant.components.sensor.pi_hole: critical
homeassistant.components.sensor.rest: critical homeassistant.components.sensor.rest: critical

View File

@ -290,16 +290,16 @@ automation:
entity_id: entity_id:
- group.living_room_accents - group.living_room_accents
data_template: data_template:
color_name: > rgb_color: >
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
red [255,0,0]
{% else %} {% else %}
gold [255,215,0]
{% endif %} {% endif %}
#-------------------------------------------#--- #-------------------------------------------#---
- alias: "Panel Door opened" - alias: "Panel Door opened"
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:

View File

@ -97,23 +97,27 @@
rgb_color: [128,0,128] rgb_color: [128,0,128]
light.led_garage_large: light.led_garage_large:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip: light.led_garage_snip:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
- name: month_st_patty_colors - name: month_st_patty_colors
entities: entities:
group.outdoor_front_lights: group.outdoor_front_lights:
state: 'on' state: 'on'
#color_name: 'Dark Spring Green' #color_name: 'Green'
color_name: 'Green' rgb_color: [0,128,0]
- name: month_pi_colors - name: month_pi_colors
entities: entities:
@ -129,7 +133,8 @@
rgb_color: [244,187,255] rgb_color: [244,187,255]
light.front_door: light.front_door:
state: 'on' state: 'on'
color_name: 'yellow' #color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1: light.outdoor_sconce_1:
state: 'on' state: 'on'
#color_name: 'Bubble Gum' #color_name: 'Bubble Gum'
@ -144,16 +149,20 @@
rgb_color: [255,193,204] rgb_color: [255,193,204]
light.led_garage_large: light.led_garage_large:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip: light.led_garage_snip:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
- name: month_starwars_colors - name: month_starwars_colors
entities: entities:
@ -163,7 +172,8 @@
rgb_color: [204,0,0] rgb_color: [204,0,0]
light.front_door: light.front_door:
state: 'on' state: 'on'
color_name: 'yellow' #color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1: light.outdoor_sconce_1:
state: 'on' state: 'on'
#color_name: 'White' Smoke #color_name: 'White' Smoke
@ -225,7 +235,8 @@
rgb_color: [255,0,0] rgb_color: [255,0,0]
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'Green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
#color_name: 'white' #color_name: 'white'
@ -242,19 +253,24 @@
entities: entities:
light.outdoor_foyer: light.outdoor_foyer:
state: 'on' state: 'on'
color_name: 'Orange' #color_name: 'orange'
rgb_color: [255,165,0]
light.front_door: light.front_door:
state: 'on' state: 'on'
color_name: 'Orange' #color_name: 'orange'
rgb_color: [255,165,0]
light.outdoor_sconce_1: light.outdoor_sconce_1:
state: 'on' state: 'on'
color_name: 'Blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.outdoor_sconce_2: light.outdoor_sconce_2:
state: 'on' state: 'on'
color_name: 'Orange' #color_name: 'orange'
rgb_color: [255,165,0]
light.outdoor_sconce_3: light.outdoor_sconce_3:
state: 'on' state: 'on'
color_name: 'Blue' #color_name: 'Blue'
rgb_color: [0,0,255]
- name: month_halloween_colors - name: month_halloween_colors
entities: entities:
@ -303,14 +319,16 @@
entities: entities:
group.outdoor_front_lights: group.outdoor_front_lights:
state: 'on' state: 'on'
color_name: 'orange' #color_name: 'orange'
rgb_color: [255,165,0]
- name: month_hanukkah_colors - name: month_hanukkah_colors
entities: entities:
light.outdoor_foyer: light.outdoor_foyer:
state: 'on' state: 'on'
color_name: 'blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.front_door: light.front_door:
state: 'on' state: 'on'
#color_name: 'white' #color_name: 'white'
@ -326,16 +344,20 @@
rgb_color: [255,255,255] rgb_color: [255,255,255]
light.led_garage_large: light.led_garage_large:
state: 'on' state: 'on'
color_name: 'Blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.led_garage_snip: light.led_garage_snip:
state: 'on' state: 'on'
color_name: 'Blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
color_name: 'blue' #color_name: 'Blue'
rgb_color: [0,0,255]
- name: month_christmas_colors - name: month_christmas_colors
entities: entities:
@ -345,7 +367,8 @@
rgb_color: [255,0,0] rgb_color: [255,0,0]
light.front_door: light.front_door:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
light.outdoor_sconce_1: light.outdoor_sconce_1:
state: 'on' state: 'on'
#color_name: 'red' #color_name: 'red'
@ -360,19 +383,23 @@
rgb_color: [255,0,0] rgb_color: [255,0,0]
light.led_garage_large: light.led_garage_large:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade effect: green_fade
light.led_garage_snip: light.led_garage_snip:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade effect: green_fade
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade effect: green_fade
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
effect: green_fade effect: green_fade
- name: month_new_years_day_colors - name: month_new_years_day_colors
@ -383,25 +410,33 @@
rgb_color: [255,0,0] rgb_color: [255,0,0]
light.front_door: light.front_door:
state: 'on' state: 'on'
color_name: 'yellow' #color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_1: light.outdoor_sconce_1:
state: 'on' state: 'on'
color_name: 'blue' #color_name: 'Blue'
rgb_color: [0,0,255]
light.outdoor_sconce_2: light.outdoor_sconce_2:
state: 'on' state: 'on'
color_name: 'yellow' #color_name: 'yellow'
rgb_color: [255,255,0]
light.outdoor_sconce_3: light.outdoor_sconce_3:
state: 'on' state: 'on'
color_name: 'orange' #color_name: 'orange'
rgb_color: [255,165,0]
light.led_garage_large: light.led_garage_large:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_snip: light.led_garage_snip:
state: 'on' state: 'on'
color_name: 'green' #color_name: 'Green'
rgb_color: [0,128,0]
light.led_garage_small: light.led_garage_small:
state: 'on' state: 'on'
color_name: 'purple' #color_name: 'purple'
rgb_color: [128,0,128]
light.led_outdoor_den: light.led_outdoor_den:
state: 'on' state: 'on'
color_name: 'violet' #color_name: 'violet'
rgb_color: [238,130,238]

View File

@ -12,25 +12,25 @@
light.m1_back_right: light.m1_back_right:
state: on state: on
transition: 10 transition: 10
color_name: 'Gold' rgb_color: [255,215,0] # Gold
brightness: 30 brightness: 30
light.m1_back_left: light.m1_back_left:
state: on state: on
transition: 40 transition: 40
color_name: 'Gold' rgb_color: [255,215,0] # Gold
brightness: 30 brightness: 30
light.tv_stand_light: light.tv_stand_light:
state: on state: on
transition: 400 transition: 400
color_name: 'Gold' rgb_color: [255,215,0] # Gold
brightness: 150 brightness: 150
light.tv_light: light.tv_light:
state: on state: on
transition: 400 transition: 400
color_name: 'Gold' rgb_color: [255,215,0] # Gold
brightness: 125 brightness: 125
light.couch_1: light.couch_1:
state: on state: on
transition: 400 transition: 400
color_name: 'Gold' rgb_color: [255,215,0] # Gold
brightness: 255 brightness: 255

View File

@ -13,7 +13,8 @@ emergency:
entity_id: entity_id:
- group.outdoor_front_lights - group.outdoor_front_lights
data: data:
color_name: 'red' #color_name: 'red'
rgb_color: [255,0,0]
# Flash All LIGHTS # Flash All LIGHTS
- service: light.turn_on - service: light.turn_on
entity_id: all entity_id: all