Page 1 of 1

civiltwilightend event is not working

Posted: Tuesday 19 February 2019 11:47
by Frans7572
I'm running Domoticz on orange Pi with ArmBian and the timer event civiltwilightend is not working on my system. I'm using sunrise and sunset and they are working fine.

This is the version info:
  • Version: 4.9700
    Build Hash: a3a45906
    Compile Date: 2018-06-23 16:24:51
    dzVents Version: 2.4.6
    Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
This is the dzVents script

Code: Select all

return {

	on = {
		timer = {
		    'at civiltwilightend'
                }
	    },

	-- actual event code
	-- in case of a timer event or security event, device == nil
	execute = function(domoticz, device)
        local Thuis = domoticz.devices('Thuis')

        domoticz.groups('Tuin').setState(Thuis.state)
        
	end

}
I have a similar script for the sunset and that's working fine, also I can't see in the logging that the event is triggered
Any idea how I can fix it?

Greetings, Frans

Re: civiltwilightend event is not working

Posted: Tuesday 19 February 2019 15:00
by waaren
Frans7572 wrote: Tuesday 19 February 2019 11:47 I'm running Domoticz on orange Pi with ArmBian and the timer event civiltwilightend is not working on my system. I'm using sunrise and sunset and they are working fine.
dzVents Version: 2.4.6
Any idea how I can fix it?
civiltwilightend was introduced with dzVents 2.4.7 and does not work with domoticz 4.9700
dzVents versions cannot be mixed and matched with different domoticz versions so the only option would be to move to a later (beta) domoticz version or wait for a next stable.

Re: civiltwilightend event is not working  [SOLVED]

Posted: Tuesday 19 February 2019 15:21
by Frans7572
Thanks for the answer, I have a work around by configuring a timer to the group on the civiltwilightend and a script that switches off the group if i'm not at home. That works fine for now. I wait for the next release.