rgb_color needs special handling in data_template #744
This commit is contained in:
parent
dd0a55e1f2
commit
2d9a2281cf
|
@ -19,7 +19,7 @@
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.garadget', 'closed') }}
|
{{ is_state('group.garage_doors', 'closed') }}
|
||||||
timeout: 00:05:30
|
timeout: 00:05:30
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
- fri
|
- fri
|
||||||
action:
|
action:
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.garadget', 'open') }}
|
{{ is_state('group.garage_doors', 'open') }}
|
||||||
- delay: 00:03:00
|
- delay: 00:03:00
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: all
|
entity_id: all
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_accents
|
- light.living_room_accents
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.garadget', 'closed') }}
|
{{ is_state('group.garage_doors', 'closed') }}
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.entry_points', 'off') }}
|
{{ is_state('group.entry_points', 'off') }}
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
|
|
@ -27,9 +27,13 @@
|
||||||
# Red if Open, Gold if Closed
|
# Red if Open, Gold if Closed
|
||||||
rgb_color: >
|
rgb_color: >
|
||||||
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||||
[255,0,0]
|
- 255
|
||||||
|
- 0
|
||||||
|
- 0
|
||||||
{% else %}
|
{% else %}
|
||||||
[255,215,0]
|
- 255
|
||||||
|
- 215
|
||||||
|
- 0
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service_template: >
|
- service_template: >
|
||||||
|
@ -45,7 +49,7 @@
|
||||||
- switch.front_door_outlet
|
- switch.front_door_outlet
|
||||||
- switch.foyer_outlet
|
- switch.foyer_outlet
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ states.group.garadget.state == 'closed' }}
|
{{ states.group.garage_doors.state == 'closed' }}
|
||||||
- service: script.monthly_color_scene
|
- service: script.monthly_color_scene
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
|
@ -54,7 +58,11 @@
|
||||||
# Red if Open, Gold if Closed
|
# Red if Open, Gold if Closed
|
||||||
rgb_color: >
|
rgb_color: >
|
||||||
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||||
[255,0,0]
|
- 255
|
||||||
|
- 0
|
||||||
|
- 0
|
||||||
{% else %}
|
{% else %}
|
||||||
[255,215,0]
|
- 255
|
||||||
|
- 215
|
||||||
|
- 0
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -126,7 +126,7 @@ logbook:
|
||||||
- automation.detect_lights_and_adjust_the_brightness_when_turned_on_based_on_time
|
- automation.detect_lights_and_adjust_the_brightness_when_turned_on_based_on_time
|
||||||
- automation.cuckoo_clock
|
- automation.cuckoo_clock
|
||||||
- binary_sensor.office_motion
|
- binary_sensor.office_motion
|
||||||
- group.garadget
|
- group.garage_doors
|
||||||
- media_player.LivingRoomCC
|
- media_player.LivingRoomCC
|
||||||
- py.warnings
|
- py.warnings
|
||||||
- sensor.epson_xp_7100_series_uptime
|
- sensor.epson_xp_7100_series_uptime
|
||||||
|
|
Loading…
Reference in New Issue