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