I have a Panasonic heatpump with a heishamon so i can switch with mqtt.
I will make a simple dz vents script so i can switch my heatcruve up and down. [ on different variable setpoints ]
I do have: And try a simple script to start:
Code: Select all
return {
on = {
timer = {'every 1 minutes' },
},
execute = function(domoticz)
local setPoint = 12956 -- wp warm shift
local roomTemperatureId = "TV Woonkamer.rawData[1]"-- Woonkamer TV 14844
local Time = require('Time')
local currentTime = Time()
if currentTime.matchesRule("between 6:05 and 15:35") and roomTemperatureId <= 22 then
updateSetPoint(-1)
domoticz.notify("tester aan", domoticz.PRIORITY_NORMAL,domoticz.SOUND_DEFAULT, "" , "")
domoticz.log('1 WP shiften if -1 !')
elseif currentTime.matchesRule("between 6:05 and 15:35") and roomTemperatureId > 22.0 then
updateSetPoint(2)
domoticz.notify("Tester uit", domoticz.PRIORITY_NORMAL,domoticz.SOUND_DEFAULT, "" , "")
domoticz.log('1 WP shiften if 2 !')
end
end
}Code: Select all
2022-12-26 13:37:00.384 Status: dzVents: Info: ------ Start internal script: 1 WP Shiften:, trigger: "every 1 minutes"I think Setpoint is the problem? Only when i read the wiki i cannot find a other option to switch or set a other setpoint.
Where do i go wrong?