Dzvents timing issue
Posted: Sunday 22 October 2017 10:51
I am trying to get the timer trigger working, but no success. Somehow sunrise, sunset, between, all of them not working or partly working. So I made a simple script to test:
But it is also running outside the timer times as you can see in the logs. The script should only run between 10:33 and 10:35 (as a test) but you see that at 10:43 it is still running:
Using Domoticz v3.8153 and I think with the last version of dzvents, although I can't find out where to look for the dzvents version.
Can somebody tell me what I do wrong?
Code: Select all
return {
active = true,
on = {
timer = {
'every minute between 10:33 and 10:35',
'every minute at nighttime',
'every minute between sunrise and 30 minutes after sunrise'
}
},
execute = function(domoticz)
if (domoticz.time.isDayTime) then
domoticz.log('<font color="red">Test2 running at daytime</font>')
elseif (domoticz.time.isNightTime) then
domoticz.log('<font color="red">Test2 running at nighttime</font>')
end
end
}
Code: Select all
2017-10-22 10:43:00.458 dzVents: Info: ------ Start external script: test2.lua:, trigger: every minute between 10:33 and 10:35
2017-10-22 10:43:00.458 dzVents: Info: Test2 running at daytime
2017-10-22 10:43:00.458 dzVents: Info: ------ Finished test2.lua
2017-10-22 10:44:00.111 dzVents: Info: ------ Start external script: test2.lua:, trigger: every minute between 10:33 and 10:35
2017-10-22 10:44:00.111 dzVents: Info: Test2 running at daytime
2017-10-22 10:44:00.111 dzVents: Info: ------ Finished test2.lua
Can somebody tell me what I do wrong?