More #744 tweaking for all the scripts.

This commit is contained in:
ccostan 2020-06-09 13:58:58 -04:00
parent abfcd7e53a
commit 981fc80ba3
1 changed files with 12 additions and 14 deletions

View File

@ -286,20 +286,18 @@ automation:
state: 'off' state: 'off'
action: action:
- service: light.turn_on - service_template: >-
entity_id: {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
- light.living_room_accents light.turn_on
data_template: entity_id:
rgb_color: > - light.living_room_accents
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%} rgb_color: [255,0,0]
- '255' {% else %}
- '0' light.turn_on
- '0' entity_id:
{% else %} - light.living_room_accents
- '255' rgb_color: [255,215,0]
- '215' {% endif %}
- '0'
{% endif %}
#-------------------------------------------#--- #-------------------------------------------#---
- alias: "Panel Door opened" - alias: "Panel Door opened"