Code: Select all
return {
on = {
devices = {
'Badk_1_Switch',
'Zolder_CV_Q2',
'CV_Q2_OverrulledbyBad'
},
timer = {'every 5 minutes' }
},
logging = {
level = domoticz.LOG_DEBUG,
marker = "Badk_1_Switch"
},
execute = function(domoticz, device, timer)
local Bdk1 = domoticz.devices('Badk_1_Switch') -- De Wallmote switch 1
local Zld2 = domoticz.devices('Zolder_CV_Q2') -- De Ketel
local OBad = domoticz.devices('CV_Q2_OverrulledbyBad') -- Overrulled Bad zorgt dat de CV aan blijft
if Bdk1.state == 'On' then
Zld2.switchOn()
OBad.switchOn().forMin(20)
Bdk1.switchOff()
end
end
}