De reset:
Code: Select all
return {
on = {
devices = {
'Badk_1_Switch'
}
},
execute = function(domoticz, device)
local Bdk1 = domoticz.devices('Badk_1_Switch') -- De Wallmote switch 1
if Bdk1.state == 'On' then
domoticz.devices('Badk_1_Switch').switchOn.forSec(2)
end
end
}
Code: Select all
return {
on = {
timer = {
'every minute', -- causes the script to be called every minute
}
},
execute = function(domoticz, timer)
local Bdk1 = domoticz.devices('Badk_1_Switch') -- De Wallmote switch 1
local Zld2 = domoticz.devices('Zolder_CV-Q2') -- De Ketel
if Bdk1.state == 'On' then
domoticz.devices('Zolder_CV-Q2').switchOn().forMin(2)
end
end
}
The 2nd script , the time should be 20 minutes, but this is for testing
Hopefully someone can point the way
Peter