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:
ccostan 2020-06-25 11:20:27 -04:00
parent c69a342cf5
commit 24dea5c469
1 changed files with 6 additions and 14 deletions

View File

@ -26,15 +26,11 @@
- light.living_room_accents - light.living_room_accents
data_template: data_template:
# Red if Open, Gold if Closed # Red if Open, Gold if Closed
rgb_color: > color_name: >
{% 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' -%}
- '255' red
- '0'
- '0'
{% else %} {% else %}
- '255' gold
- '215'
- '0'
{% endif %} {% endif %}
- service_template: > - service_template: >
@ -57,13 +53,9 @@
- light.living_room_accents - light.living_room_accents
data_template: data_template:
# Red if Open, Gold if Closed # Red if Open, Gold if Closed
rgb_color: > color_name: >
{% 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' -%}
- '255' red
- '0'
- '0'
{% else %} {% else %}
- '255' gold
- '215'
- '0'
{% endif %} {% endif %}