Corrected issue with dont_disturb_nightime ignored flag
This commit is contained in:
@@ -109,8 +109,11 @@ actions:
|
|||||||
before_offset: "+01:00:00"
|
before_offset: "+01:00:00"
|
||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
|
- and:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
@@ -125,8 +128,11 @@ actions:
|
|||||||
color_temp_kelvin: 2500
|
color_temp_kelvin: 2500
|
||||||
else: # Always active
|
else: # Always active
|
||||||
- if:
|
- if:
|
||||||
|
- and:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
|
|||||||
@@ -129,8 +129,11 @@ actions:
|
|||||||
before_offset: "+01:00:00"
|
before_offset: "+01:00:00"
|
||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
|
- and:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
@@ -145,8 +148,11 @@ actions:
|
|||||||
color_temp_kelvin: 2500
|
color_temp_kelvin: 2500
|
||||||
else: # Always active
|
else: # Always active
|
||||||
- if:
|
- if:
|
||||||
|
- and:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dont_disturb_flag }}"
|
value_template: "{{ dont_disturb_flag }}"
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
|
||||||
then:
|
then:
|
||||||
- action: light.turn_on
|
- action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
|
|||||||
Reference in New Issue
Block a user