Skip to content

Instantly share code, notes, and snippets.

@wittypluck
Last active September 4, 2023 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wittypluck/2638cc4dec50bba5ddf4e946b735c94a to your computer and use it in GitHub Desktop.
Save wittypluck/2638cc4dec50bba5ddf4e946b735c94a to your computer and use it in GitHub Desktop.
Send target temperature from thermostat to radiators - homeassistant blueprint
blueprint:
name: Send target temperature from a room thermostat to a climate target
description: Sends a target temperature from a thermostat to a climate target (radiators) which can be one or multiple areas/entities/devices.
domain: automation
source_url: https://gist.github.com/wittypluck/2638cc4dec50bba5ddf4e946b735c94a
input:
climate_source:
name: Source thermostat
description: Climate entity which will send the temperature update
selector:
entity:
domain: climate
climate_target:
name: Target radiators
description: Climate target which will get the temperature update
selector:
target:
entity:
domain: climate
variables:
climate_source: !input climate_source
trigger:
- platform: state
entity_id: !input climate_source
condition:
- condition: template
value_template: >-
{% if (trigger.to_state and trigger.from_state) %}
{{ trigger.to_state.attributes.temperature != trigger.from_state.attributes.temperature }}
{% endif %}
mode: queued
action:
- service: climate.set_temperature
target: !input climate_target
data_template:
temperature: "{{ state_attr(climate_source, 'temperature') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment