commit 4037e465b084ffa5f764f275cf07b919264ee93c parent e9c38a4bf90f7622c8a5ded014e2120fb783b487 Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 16 May 2025 20:37:10 +0200 Try to fix logic Diffstat:
| M | blueprints/automation/window_opened_status.yaml | | | 17 | +++++------------ |
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/blueprints/automation/window_opened_status.yaml b/blueprints/automation/window_opened_status.yaml @@ -57,21 +57,14 @@ triggers: hours: 0 minutes: 0 seconds: 30 -variables: - window_sensors: !input window_sensor actions: - choose: - conditions: - - condition: template - value_template: > - {% set any_open = false %} - {% for entity_id in window_sensors %} - {% if is_state(entity_id,'on') %} - {% set any_open = true %} - {% break %} - {% endif %} - {% endfor %} - {{ any_open }} + - condition: or + conditions: + - condition: state + entity_id: !input window_sensor + state: "on" sequence: - action: climate.set_temperature target: