More trying to get this to work. #744
This commit is contained in:
parent
e49abf2548
commit
abfcd7e53a
|
@ -20,21 +20,19 @@
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.front_full_brightness
|
entity_id: scene.front_full_brightness
|
||||||
- service: light.turn_on
|
|
||||||
entity_id:
|
- service_template: >-
|
||||||
- light.living_room_accents
|
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||||
data_template:
|
light.turn_on
|
||||||
# Red if Open, Gold if Closed
|
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 %}
|
|
||||||
|
|
||||||
- service_template: >
|
- service_template: >
|
||||||
{% set hour=states("sensor.time").split(':')[0] | int %}
|
{% set hour=states("sensor.time").split(':')[0] | int %}
|
||||||
|
|
Loading…
Reference in New Issue