Set same temperature with one setpoint input for multiple thermostats

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Set same temperature with one setpoint input for multiple thermostats

Post 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.
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Set same temperature with one setpoint input for multiple thermostats

Post 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
}
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Set same temperature with one setpoint input for multiple thermostats

Post by imautohuttraeger »

Hey, thank you very much! Will try this week and notify the result here.
imautohuttraeger
Posts: 98
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Set same temperature with one setpoint input for multiple thermostats

Post by imautohuttraeger »

Just implemented it and it works perfectly. Thanks again!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests