All the color_names are gone. #744

This commit is contained in:
ccostan 2020-09-22 20:15:39 -04:00
parent 53a21eabf0
commit aceaf90144
2 changed files with 20 additions and 37 deletions

View File

@ -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

View File

@ -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