From 2f6bd237c7d54ba2364630de4346b9c417d6697c Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 26 Jan 2026 01:59:03 +0300 Subject: [PATCH] chore: updated ha blueprints for new releases --- assets/ha/report_temp_to_otgateway.yaml | 10 +++++++--- assets/ha/report_temp_to_otgateway_from_weather.yaml | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/assets/ha/report_temp_to_otgateway.yaml b/assets/ha/report_temp_to_otgateway.yaml index abf56e9..4bc02bc 100644 --- a/assets/ha/report_temp_to_otgateway.yaml +++ b/assets/ha/report_temp_to_otgateway.yaml @@ -1,5 +1,5 @@ # Blueprint for reporting indoor/outdoor temperature to OpenTherm Gateway from any home assistant sensor -# Updated: 03.09.2024 +# Updated: 26.01.2026 blueprint: name: Report temp to OpenTherm Gateway @@ -38,8 +38,12 @@ condition: value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}" action: - if: - - condition: template - value_template: "{{ (states(source_entity)|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.01 }}" + - condition: or + conditions: + - condition: template + value_template: "{{ (states(source_entity)|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.01 }}" + - condition: template + value_template: "{{ (as_timestamp(now()) - as_timestamp(states[target_entity].last_updated)) | int(0) > 300 }}" then: - service: number.set_value data: diff --git a/assets/ha/report_temp_to_otgateway_from_weather.yaml b/assets/ha/report_temp_to_otgateway_from_weather.yaml index 1ad38c0..2105d8f 100644 --- a/assets/ha/report_temp_to_otgateway_from_weather.yaml +++ b/assets/ha/report_temp_to_otgateway_from_weather.yaml @@ -1,5 +1,5 @@ # Blueprint for reporting temperature to OpenTherm Gateway from home assistant weather integration -# Updated: 03.09.2024 +# Updated: 26.01.2026 blueprint: name: Report temp to OpenTherm Gateway from Weather @@ -37,8 +37,12 @@ condition: value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}" action: - if: - - condition: template - value_template: "{{ (state_attr(source_entity, 'temperature')|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.1 }}" + - condition: or + conditions: + - condition: template + value_template: "{{ (state_attr(source_entity, 'temperature')|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.1 }}" + - condition: template + value_template: "{{ (as_timestamp(now()) - as_timestamp(states[target_entity].last_updated)) | int(0) > 300 }}" then: - service: number.set_value data: