I can't solve the template issue so goign to continue to use the color_name for now until I am forced to change. #744
This commit is contained in:
parent
c69a342cf5
commit
24dea5c469
|
@ -26,15 +26,11 @@
|
|||
- light.living_room_accents
|
||||
data_template:
|
||||
# Red if Open, Gold if Closed
|
||||
rgb_color: >
|
||||
color_name: >
|
||||
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||
- '255'
|
||||
- '0'
|
||||
- '0'
|
||||
red
|
||||
{% else %}
|
||||
- '255'
|
||||
- '215'
|
||||
- '0'
|
||||
gold
|
||||
{% endif %}
|
||||
|
||||
- service_template: >
|
||||
|
@ -57,13 +53,9 @@
|
|||
- light.living_room_accents
|
||||
data_template:
|
||||
# Red if Open, Gold if Closed
|
||||
rgb_color: >
|
||||
color_name: >
|
||||
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||
- '255'
|
||||
- '0'
|
||||
- '0'
|
||||
red
|
||||
{% else %}
|
||||
- '255'
|
||||
- '215'
|
||||
- '0'
|
||||
gold
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue