From e49abf254811f3d3238bd52212ce36c2a8ebbe83 Mon Sep 17 00:00:00 2001 From: ccostan Date: Tue, 9 Jun 2020 11:12:11 -0400 Subject: [PATCH] Still working out all the kinks #744 --- .../automation/late_night_outside_helper.yaml | 24 +++++++++---------- config/packages/alarm.yaml | 16 ++++++++----- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index fdf9114a..575a8119 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -27,13 +27,13 @@ # Red if Open, Gold if Closed rgb_color: > {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - - 255 - - 0 - - 0 + - '255' + - '0' + - '0' {% else %} - - 255 - - 215 - - 0 + - '255' + - '215' + - '0' {% endif %} - service_template: > @@ -58,11 +58,11 @@ # Red if Open, Gold if Closed rgb_color: > {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - - 255 - - 0 - - 0 + - '255' + - '0' + - '0' {% else %} - - 255 - - 215 - - 0 + - '255' + - '215' + - '0' {% endif %} diff --git a/config/packages/alarm.yaml b/config/packages/alarm.yaml index 459bd5c0..b33114f7 100755 --- a/config/packages/alarm.yaml +++ b/config/packages/alarm.yaml @@ -8,11 +8,11 @@ homeassistant: "device_tracker.nodemcu*": icon: mdi:chip - + "binary_sensor.mcu?_gpio*": icon: mdi:security-home - + customize: binary_sensor.MCU1_GPIO4: @@ -57,10 +57,10 @@ homeassistant: group.entry_points: friendly_name: Alarm Entry Points - + group.interior_door: friendly_name: Interior doors - + #------------------------------------------- binary_sensor: - platform: mqtt @@ -292,9 +292,13 @@ automation: data_template: rgb_color: > {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - [255,0,0] + - '255' + - '0' + - '0' {% else %} - [255,215,0] + - '255' + - '215' + - '0' {% endif %} #-------------------------------------------#---