From 981fc80ba330def985c7c6bd13e92cc6c0752300 Mon Sep 17 00:00:00 2001 From: ccostan Date: Tue, 9 Jun 2020 13:58:58 -0400 Subject: [PATCH] More #744 tweaking for all the scripts. --- config/packages/alarm.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/config/packages/alarm.yaml b/config/packages/alarm.yaml index b33114f7..7c0dfa2c 100755 --- a/config/packages/alarm.yaml +++ b/config/packages/alarm.yaml @@ -286,20 +286,18 @@ automation: state: 'off' action: - - service: light.turn_on - entity_id: - - light.living_room_accents - data_template: - rgb_color: > - {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - - '255' - - '0' - - '0' - {% else %} - - '255' - - '215' - - '0' - {% endif %} + - service_template: >- + {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} + light.turn_on + entity_id: + - light.living_room_accents + rgb_color: [255,0,0] + {% else %} + light.turn_on + entity_id: + - light.living_room_accents + rgb_color: [255,215,0] + {% endif %} #-------------------------------------------#--- - alias: "Panel Door opened"