Created
April 12, 2026 19:00
-
-
Save syenchuk/66ddd17c84e305896142cb6946434b38 to your computer and use it in GitHub Desktop.
Blueprint Home Assistant : Synchronisation capteur de température / vanne thermostatique
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| domain: automation | |
| name: Thermostat avec capteur de température externe | |
| description: > | |
| Réglage du thermostat avec un capteur de température externe. | |
| input: | |
| thermostat: | |
| name: Thermostat | |
| selector: | |
| entity: | |
| domain: climate | |
| source_temperature: | |
| name: Capteur de température | |
| selector: | |
| entity: | |
| domain: sensor | |
| device_class: temperature | |
| heartbeat_minutes: | |
| name: Rafraîchissement forcé (minutes) | |
| description: > | |
| Intervalle de temps pour forcer la mise à jour de la température externe sur le thermostat, même si celle-ci ne change pas. | |
| Utile pour certains thermostats qui se mette en mode hors-gel en absence de mise à jour régulière. | |
| default: 30 | |
| selector: | |
| number: | |
| min: 1 | |
| max: 120 | |
| mode: slider | |
| unit_of_measurement: min | |
| mode: restart | |
| variables: | |
| thermostat_entity: !input thermostat | |
| source_temp_entity: !input source_temperature | |
| hb_min: !input heartbeat_minutes | |
| thermostat_object_id: "{{ thermostat_entity.split('.', 1)[1] }}" | |
| thermostat_ext_temp_input: "{{ 'number.' ~ thermostat_object_id ~ '_external_temperature_input' }}" | |
| thermostat_sensor_selector: "{{ 'select.' ~ thermostat_object_id ~ '_temperature_sensor_select' }}" | |
| trigger: | |
| - platform: state | |
| entity_id: !input source_temperature | |
| - platform: template | |
| value_template: > | |
| {{ (as_timestamp(now()) // 60) % (hb_min | int) == 0 }} | |
| condition: | |
| # capteur source valide | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: !input source_temperature | |
| state: | |
| - unavailable | |
| - unknown | |
| action: | |
| - service: number.set_value | |
| target: | |
| entity_id: "{{ thermostat_ext_temp_input }}" | |
| data: | |
| value: "{{ states(source_temp_entity) | float | round(1) }}" | |
| - service: select.select_option | |
| target: | |
| entity_id: "{{ thermostat_sensor_selector }}" | |
| data: | |
| option: external |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment