Set same temperature with one setpoint input for multiple thermostats
Moderator: leecollings
-
- 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
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.
- 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
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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
Hey, thank you very much! Will try this week and notify the result here.
-
- 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
Just implemented it and it works perfectly. Thanks again!
Who is online
Users browsing this forum: No registered users and 0 guests