Page 1 of 1

Dzvents timing issue

Posted: Sunday 22 October 2017 10:51
by Martinq
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:

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
}
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:

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
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?

Re: Dzvents timing issue

Posted: Sunday 22 October 2017 11:34
by Martinq
Update:
Turns out that Domoticz v3.8153 still has the dzVents v2.2.0 instead of the latest 2.3.0. Between is only working in the latest version. Now I have to find out how to update dzVents.

Would be great if somebody can update the Domoticz version 3.8153 released (Stable) topic and add the dzVents version here. People already asked for this before.

Re: Dzvents timing issue

Posted: Sunday 22 October 2017 14:54
by dannybloe
Would be nice but 2.3 needs a newer Domoticz so that won't work.