Updated living room lights to reflect door/window/garage status with colors.

This commit is contained in:
ccostan
2018-01-08 20:49:59 -05:00
parent 7d14965d73
commit cd1eba3d10
3 changed files with 43 additions and 38 deletions

View File

@@ -19,34 +19,7 @@
call_garage_check: 1
call_window_check: 1
- service: light.turn_on
entity_id:
- group.living_room_accents
data_template:
color_name: >
{% if states.group.entry_points.state == 'on' or states.group.all_covers.state != 'closed' -%}
red
{% else %}
gold
{% endif %}
- wait_template: >-
{{ not is_state('group.entry_points', 'on') }}
- wait_template: >-
{{ is_state('group.all_covers', 'closed') }}
- wait_template: >-
{{ not is_state('media_player.livingroomCC', 'playing') }}
- service: switch.turn_off
entity_id: switch.living_room_amp
- service: light.turn_on
entity_id:
- group.living_room_accents
data_template:
color_name: >
{% if states.group.entry_points.state == 'on' or states.group.all_covers.state != 'closed' -%}
red
{% else %}
gold
{% endif %}