Corrected other issue with dont_disturb_nightime ignored flag

This commit is contained in:
2025-02-02 00:25:06 +01:00
parent 71d3dd1946
commit e78ab513f5
2 changed files with 4 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ actions:
- condition: template
value_template: "{{ dont_disturb_flag }}"
- condition: template
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
then:
- action: light.turn_on
target: !input light_target
@@ -132,7 +132,7 @@ actions:
- condition: template
value_template: "{{ dont_disturb_flag }}"
- condition: template
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
then:
- action: light.turn_on
target: !input light_target

View File

@@ -133,7 +133,7 @@ actions:
- condition: template
value_template: "{{ dont_disturb_flag }}"
- condition: template
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
then:
- action: light.turn_on
target: !input light_target
@@ -152,7 +152,7 @@ actions:
- condition: template
value_template: "{{ dont_disturb_flag }}"
- condition: template
value_template: "{{ states('binary_sensor.dont_disturb_nighttime') }}"
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
then:
- action: light.turn_on
target: !input light_target