From aceaf90144a94e0dfec8d2494a88a142f940763a Mon Sep 17 00:00:00 2001 From: ccostan Date: Tue, 22 Sep 2020 20:15:39 -0400 Subject: [PATCH] All the color_names are gone. #744 --- .../automation/late_night_outside_helper.yaml | 42 +++++++++---------- config/packages/alarm.yaml | 15 ------- 2 files changed, 20 insertions(+), 37 deletions(-) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index 1cfbd175..21981ddf 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -22,17 +22,16 @@ - service: scene.turn_on entity_id: scene.front_full_brightness - - service: light.turn_on - entity_id: - - light.living_room_accents - data_template: - # Red if Open, Gold if Closed - color_name: > - {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - red - {% else %} - gold - {% endif %} + - choose: + - conditions: > + {{ states.group.entry_points.state == 'on' or + states.group.garage_doors.state != 'closed' }} + sequence: + - service: scene.turn_on + entity_id: scene.Red_living_Room + default: + - service: scene.turn_on + entity_id: scene.tv_time - service_template: > {% set hour=states("sensor.time").split(':')[0] | int %} @@ -49,14 +48,13 @@ - wait_template: >- {{ states.group.garage_doors.state == 'closed' }} - service: script.monthly_color_scene - - service: light.turn_on - entity_id: - - light.living_room_accents - data_template: - # Red if Open, Gold if Closed - color_name: > - {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} - red - {% else %} - gold - {% endif %} + - choose: + - conditions: > + {{ states.group.entry_points.state == 'on' or + states.group.garage_doors.state != 'closed' }} + sequence: + - service: scene.turn_on + entity_id: scene.Red_living_Room + default: + - service: scene.turn_on + entity_id: scene.tv_time diff --git a/config/packages/alarm.yaml b/config/packages/alarm.yaml index 0379c100..db5dfd77 100755 --- a/config/packages/alarm.yaml +++ b/config/packages/alarm.yaml @@ -326,21 +326,6 @@ automation: - service: scene.turn_on entity_id: scene.tv_time - - # - choose: - # - conditions: - # - condition: template - # value_template: "{% states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}" - # sequence: - # - service: light.turn_on - # entity_id: light.living_room_accents - # color_name: 'red' - # - # default: - # - service: light.turn_on - # entity_id: light.living_room_accents - # color_name: 'gold' - # - service_template: >- # {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} # light.turn_on