# Blueprint for reporting indoor/outdoor temperature to OpenTherm Gateway from any home assistant sensor # Updated: 26.01.2026 blueprint: name: Report temp to OpenTherm Gateway domain: automation author: "Laxilef" input: source_entity: name: Source entity description: "Temperature data source" selector: entity: multiple: false filter: - domain: sensor target_entity: name: Target entity description: "Usually ``number.opentherm_indoor_temp`` or ``number.opentherm_outdoor_temp``" default: "number.opentherm_indoor_temp" selector: entity: multiple: false filter: - domain: number mode: single variables: source_entity: !input source_entity target_entity: !input target_entity trigger: - platform: time_pattern seconds: /30 condition: - condition: template value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}" action: - if: - 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: value: "{{ states(source_entity)|float(0)|round(2) }}" target: entity_id: "{{ target_entity }}"