Complete #744 - No more Color_name Breaking Change
This commit is contained in:
parent
6766dc3273
commit
8429ae93e8
|
@ -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 %}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue