Corrected issue with dont_disturb_nightime ignored flag

This commit is contained in:
2025-02-01 18:33:28 +01:00
parent f88a730aa1
commit 046d40594d
2 changed files with 20 additions and 8 deletions

View File

@@ -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

View File

@@ -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