Timer issues
Posted: Friday 07 February 2020 19:23
Hello all,
I am new with programming through dzvents and run into some problems with the timers.
I try to understand how it works and have made a script that is as simple as possible, but even that doesn't work yet. Can someone tell me what I am doing wrong?
This is the script i made:
return {
on = {
timer = {'every minute'},
},
execute = function(domoticz, timer)
if dz.time.matchesRule('at 19:13') then
domoticz.devices('Dummy lamp 1').switchOn()
end
end
}
I am new with programming through dzvents and run into some problems with the timers.
I try to understand how it works and have made a script that is as simple as possible, but even that doesn't work yet. Can someone tell me what I am doing wrong?
This is the script i made:
return {
on = {
timer = {'every minute'},
},
execute = function(domoticz, timer)
if dz.time.matchesRule('at 19:13') then
domoticz.devices('Dummy lamp 1').switchOn()
end
end
}