I have recently bought a new heat pump. I can set the water supply setpoint through Modbus. This works quite well. I have a dummy thermostat setup and when I change the value, it relays it through Modbus to the heat pump controller and it runs up to the requested temperature. What I want to do, however, is use the requested supply temperature from my Plugwise Anna thermostat and write that value into the dummy thermostat.
I have set up the following script:
Code: Select all
local MODE = 745 -- switch device
local SETPOINT_DEVICE = 744 -- Dummy thermostat
local SUPPLY_TEMPERATURE = 216 -- Supply temperature
local LOGGING = true
return
{
on =
{
devices =
{
SUPPLY_TEMPERATURE,
MODE
}
},
execute = function(domoticz, device)
if (device.name == SUPPLY_TEMPERATURE) then
domoticz.devices(744).updateSetPpoint = domoticz.devices.SUPPLY_TEMPERATURE
end
end
}