From 24dea5c4690518156251af80cc0fdc3bc9ac5a82 Mon Sep 17 00:00:00 2001 From: ccostan Date: Thu, 25 Jun 2020 11:20:27 -0400 Subject: [PATCH] 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 --- .../automation/late_night_outside_helper.yaml | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index 7078b178..beffd161 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -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 %}