I have hopefully a small problem regarding the use of a Daikin airco with Dzvents. The airco is on our bedroom and is active between 22.45 and 07.00
When active the program looks at the bedroom temperature, when above 19 degrees Celsius the airco start cooling until the temperature is below 18 degrees. The problem is when the airco at 22.45 becomes active soon after that Domoticz crashes. Sometimes whitin 10 minutes, sometimes after hours. There's not a pattern in the crashes. When I stop the Daikin plugin and the script in Dzvents then Domoticz works as it should be so it's pretty sure that the problem is the plugin or the script. The plugin is the latest version. Here's the script:
Code: Select all
return {
on = {
timer = {
'between 22:45 and 07:00',
'between 07:00 and 22:45'
},
},
logging = {
level = domoticz.LOG_ERROR,
marker = 'Daikin airco',
},
execute = function(dz, timer)
local airco = dz.devices('Slaapkamer - airco on/off')
local fan = dz.devices('Slaapkamer - airco Fan Rate')
local temp = dz.devices('Slaapkamer - airco Temp IN')
if dz.time.matchesRule('between 22:45 and 07:00') then
if temp.temperature >= 19 then
airco.switchOn()
fan.setLevel(20)
dz.log('Airco staat aan', dz.LOG_INFO)
end
if temp.temperature < 18 then
airco.switchOff().checkFirst()
dz.log('Temperatuur is onder de 19 graden', dz.LOG_INFO)
end
elseif dz.time.matchesRule('between 07:00 and 22:45') then
airco.switchOff()
end
end
}