Sunset lights no longer shuts off unrelated lights, close #84
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: aa9585edea...5fc2d0a20c
@@ -1379,6 +1379,23 @@ script:
|
|||||||
entity_id: input_boolean.give_me_darkness
|
entity_id: input_boolean.give_me_darkness
|
||||||
state: 'off'
|
state: 'off'
|
||||||
sequence:
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ sunset_lights == 1 }}"
|
||||||
|
then:
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- light.living_room_lights
|
||||||
|
- light.mud_room_overhead
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_select.living_room_scenes
|
||||||
|
- input_select.mud_room_scenes
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
else:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@@ -1476,12 +1493,6 @@ script:
|
|||||||
entity_id: input_boolean.give_me_darkness
|
entity_id: input_boolean.give_me_darkness
|
||||||
state: 'off'
|
state: 'off'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
|
||||||
target:
|
|
||||||
area_id:
|
|
||||||
- master_bedroom
|
|
||||||
- kallen_bedroom
|
|
||||||
- emma_bedroom
|
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.upstairs_hallway_scenes
|
entity_id: input_select.upstairs_hallway_scenes
|
||||||
@@ -1502,6 +1513,18 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
Nightlight
|
Nightlight
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ sunset_lights == 1 }}"
|
||||||
|
then:
|
||||||
|
- stop: "Sunset lights don't mess with bedroom light states before bedtime"
|
||||||
|
else:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- master_bedroom
|
||||||
|
- kallen_bedroom
|
||||||
|
- emma_bedroom
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
seconds: 1
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
|
|||||||
Reference in New Issue
Block a user