civiltwilightend event is not working  [SOLVED]

Moderator: leecollings

Post Reply
Frans7572
Posts: 2
Joined: Tuesday 19 February 2019 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

civiltwilightend event is not working

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: civiltwilightend event is not working

Post 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.
Last edited by waaren on Tuesday 19 February 2019 16:07, edited 1 time in total.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Frans7572
Posts: 2
Joined: Tuesday 19 February 2019 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: civiltwilightend event is not working  [SOLVED]

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest