The boiler only works with ON/OFF not Opentherm.
The ON/OFF relay is based on a ESPEASY (heater switch) and works fine when toggled when the script does not run. So that works.
When I start the script and the setpoint is lower as the room temp the heaterswitch is off and the log shows regular logdata.
As soon as the setpoint is higher the heaterswitch goes to ON.
But then the log starts to fill rapidly with the same log lines.
I cant find the reason for this behavior.
As far as I could find all logs are switched off.
2024-10-25 20:10:47.365 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2024-10-25 20:10:47.525 dzVents: Handling events for: "Heater_Switch", value: "Off"
2024-10-25 20:10:47.525 dzVents: ------ Start internal script: thermostat simple: Device: "Heater_Switch (Heater_Switch)", Index: 67
2024-10-25 20:10:47.532 dzVents: ------ Finished thermostat simple
2024-10-25 20:10:47.534 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2024-10-25 20:10:47.705 dzVents: Handling events for: "Heater_Switch", value: "Off"
2024-10-25 20:10:47.705 dzVents: ------ Start internal script: thermostat simple: Device: "Heater_Switch (Heater_Switch)", Index: 67
2024-10-25 20:10:47.712 dzVents: ------ Finished thermostat simple
2024-10-25 20:10:47.714 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2024-10-25 20:10:47.883 dzVents: Handling events for: "Heater_Switch", value: "Off"
2024-10-25 20:10:47.884 dzVents: ------ Start internal script: thermostat simple: Device: "Heater_Switch (Heater_Switch)", Index: 67
2024-10-25 20:10:47.890 dzVents: ------ Finished thermostat simple
2024-10-25 20:10:47.893 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2024-10-25 20:10:48.059 dzVents: Handling events for: "Heater_Switch", value: "Off"
2024-10-25 20:10:48.059 dzVents: ------ Start internal script: thermostat simple: Device: "Heater_Switch (Heater_Switch)", Index: 67
Code: Select all
return
{
on =
{
devices = {'Thermostat_Control', 'Heater_Switch', 'Temp_Kamer','Setpoint_Regular' },
timer = {'every minute'},
},
execute = function(dz)
--local Vartemp = dz.variables('Vartemp') --declared as float value
local Thermostat = dz.devices('Thermostat_Control') -- =idx69
local Switch = dz.devices('Heater_Switch') -- =idx67
local Roomtemp = dz.devices('Temp_Kamer') -- =idx32
local Setpoint_Regular = dz.devices('Setpoint_Regular') -- =idx68
-- "Uit" mode active initiated by thermostat switchselector at level 0
if dz.devices(69).level == 0 then
dz.devices(67).switchOff()
end
-- "Normaal" mode active initiated by thermostat switchselector at level 10
if dz.devices(69).level == 10 then
if dz.time.matchesRule ('at 00:00-23:59') then
if dz.devices(32).temperature < dz.devices(68).setPoint then
dz.devices(67).switchOff().checkFirst()
dz.devices(67).switchOn()
else
dz.devices(67).switchOff()
end
end
end
end
}
Paco