From e78ab513f555b9d73b20c5d73bbe1f2db632843f Mon Sep 17 00:00:00 2001 From: ttrabatt Date: Sun, 2 Feb 2025 00:25:06 +0100 Subject: [PATCH] Corrected other issue with dont_disturb_nightime ignored flag --- blueprints/automation/homeassistant/motion_light_dual_ng.yaml | 4 ++-- blueprints/automation/homeassistant/motion_light_trix_ng.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blueprints/automation/homeassistant/motion_light_dual_ng.yaml b/blueprints/automation/homeassistant/motion_light_dual_ng.yaml index 5f16a66..152e5c5 100644 --- a/blueprints/automation/homeassistant/motion_light_dual_ng.yaml +++ b/blueprints/automation/homeassistant/motion_light_dual_ng.yaml @@ -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 diff --git a/blueprints/automation/homeassistant/motion_light_trix_ng.yaml b/blueprints/automation/homeassistant/motion_light_trix_ng.yaml index 4852403..e344647 100644 --- a/blueprints/automation/homeassistant/motion_light_trix_ng.yaml +++ b/blueprints/automation/homeassistant/motion_light_trix_ng.yaml @@ -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