commit e9c38a4bf90f7622c8a5ded014e2120fb783b487
parent d0e1ad4b59912c1fec42de37391bb610aed7448c
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 16 May 2025 20:28:47 +0200
Try to fix logic
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blueprints/automation/window_opened_status.yaml b/blueprints/automation/window_opened_status.yaml
@@ -66,8 +66,9 @@ actions:
value_template: >
{% set any_open = false %}
{% for entity_id in window_sensors %}
- {% if states(entity_id) == 'on' %}
+ {% if is_state(entity_id,'on') %}
{% set any_open = true %}
+ {% break %}
{% endif %}
{% endfor %}
{{ any_open }}