Page 1 of 1
Set same temperature with one setpoint input for multiple thermostats
Posted: Tuesday 20 February 2024 10:47
by imautohuttraeger
I want to control the setpoints of three real thermostats with just one virtual setpoint so that the three real thermostats all have the same target temperature as the central virtual one. With Blockly it seems as if it is not possible to say something like "take the same value for these devices, too". So if anyone has a sample script or another solution for a dummy like me it would highly be appreciated.
Re: Set same temperature with one setpoint input for multiple thermostats
Posted: Tuesday 20 February 2024 13:57
by waltervl
In DzVents it could be something like below. Change the names of your devices accordingly.
It wil update the 3 setpoints if the dummy setpoint has changed.
Not tested if completely according DzVents rules....
If new to DzVents please read the wiki, it has lots of example code:
https://www.domoticz.com/wiki/DzVents:_ ... _scripting
Code: Select all
return
{
on =
{
devices = { 'your dummy setpoint' }
},
execute = function(domoticz, device)
dummysetpoint=device.setPoint
domoticz.devices('real thermostat 1').updateSetPoint(dummysetpoint)
domoticz.devices('real thermostat 2').updateSetPoint(dummysetpoint)
domoticz.devices('real thermostat 3').updateSetPoint(dummysetpoint)
end
}
Re: Set same temperature with one setpoint input for multiple thermostats
Posted: Tuesday 20 February 2024 16:08
by imautohuttraeger
Hey, thank you very much! Will try this week and notify the result here.
Re: Set same temperature with one setpoint input for multiple thermostats
Posted: Tuesday 20 February 2024 17:54
by imautohuttraeger
Just implemented it and it works perfectly. Thanks again!