Dzvents timing issue

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Martinq
Posts: 19
Joined: Wednesday 09 March 2016 17:20
Target OS: Linux
Domoticz version: 3.8153
Contact:

Dzvents timing issue

Post 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?
Martinq
Posts: 19
Joined: Wednesday 09 March 2016 17:20
Target OS: Linux
Domoticz version: 3.8153
Contact:

Re: Dzvents timing issue

Post 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.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Dzvents timing issue

Post by dannybloe »

Would be nice but 2.3 needs a newer Domoticz so that won't work.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest