So I have four Z-wave based thermostat heads configured and I would like to save me the hassle of adjusting all four of them whenever I want to change the temperature.
Ideally then, I would like to set one of them as the “master” and expose that through the HA web interface. Whenever I adjust the temperature for it I would like for the other thermostat heads to adjust to the same temperature.
Any idea how I can accomplish this? Can I configure an automation to do so? If nothing else, I could just have a timer based automation that checks what the master thermostat value is and set the others accordingly.
Create a template sensor referencing the temperature attribute of the main thermostat. Then use that sensor in an automation as a state trigger:
trigger:
- platform: state
entity_id: sensor.tstat_setpoint
(This assumes the name of the template sensor is sensor.tstat_setpoint. Change the sensor entity ID as appropriate.)
As the action for that automation, use a data_template with the climate.set_temperature service changing the temperature of the other thermostats to the template sensor temp:
alias: Thermostat Slave Control
description: Set secondary thermostats to same temperature as the master thermostat.
trigger:
- entity_id: sensor.therm_main_temp
platform: state
condition: []
action:
- alias: ''
data_template:
temperature: "{{ states('sensor.therm_main_temp') | float }}"
entity_id:
- climate.danfoss_z_thermostat_1
- climate.danfoss_z_thermostat_3
- climate.danfoss_z_thermostat_4
service: climate.set_temperature
Error is as follows:
Error while executing automation automation.thermostat_slave_control. Invalid data for call_service at pos 1: must contain at least one of temperature, target_temp_high, target_temp_low.
Oh…are you in heat_cool (auto) mode by any chance? That would be why. That requires high and low, but if you’re in heat or cool mode, only temperature is required. Add another part to the data template setting the desired HVAC mode too.
I am trying to do the same thing and can’t get it just right. Here is my code. Any help would be greatly appreciated. Here are the line from both the configuration and automations.yaml