Open Andykakau opened 3 days ago
Hello, you can't set an entity id as target temperature. You need to create an automation in HA that will sync he target temperature between Homematic thermostat and the smart thermostat.
Example:
alias: Example sync thermostats
description: ""
trigger:
- platform: state
entity_id:
- climate.netatmo_couloir
attribute: temperature
id: Physical change
- platform: state
entity_id:
- climate.salle_de_bain
attribute: temperature
id: Smart change
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Physical change
- condition: template
value_template: >-
{{ (state_attr('climate.netatmo_couloir', 'temperature') | float)
!= (state_attr('climate.salle_de_bain', 'temperature') | float )}}
sequence:
- service: climate.set_temperature
metadata: {}
data:
temperature: "{{ state_attr('climate.netatmo_couloir', 'temperature') }}"
target:
entity_id: climate.salle_de_bain
- conditions:
- condition: trigger
id:
- Smart change
- condition: template
value_template: >-
{{ (state_attr('climate.netatmo_couloir', 'temperature') | float)
!= (state_attr('climate.salle_de_bain', 'temperature') | float )}}
sequence:
- service: climate.set_temperature
metadata: {}
data:
temperature: "{{ state_attr('climate.salle_de_bain', 'temperature') }}"
target:
entity_id: climate.netatmo_couloir
mode: single
You may also add more triggers and choices to sync the presets, or on/off.
You also need to extract the physical thermostat ambient temperature with a template sensor using {{ state_attr('climate.netatmo_couloir', 'current_temperature') }}
that you'll use as target_sensor
.
And of course, the physical thermostat should not control directly the heating.
Hi everyone,
I’m looking to integrate HASmartThermostat 2 into Home Assistant to control my heating. I have Homematic IP thermostats providing the set and actual temperatures. I want to use these with the HASmartThermostat integration to control a Zigbee outlet.
Here is the code I tried:
How can I adjust it to properly read values from the thermostat and make it work? Any ideas?
Thanks!