Timer question

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

Moderator: leecollings

Post Reply
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Timer question

Post by Mozart »

Hi, I created the following timer:

Code: Select all

	on = {

		timer = {
			'10 minutes before sunset', 
			'at nighttime at 6:00 at mon,tue,wed,thu,fri',
		}

	},
This works fine except for the second timer, that works fine during the week but it also triggers on saturday and sunday :(
Is there something I'm doing wrong or is this a bug?
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Timer question

Post by waaren »

Hi Mozart,

change 'at nighttime at 6:00 at mon,tue,wed,thu,fri', to 'at nighttime at 6:00 on mon,tue,wed,thu,fri'
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart »

waaren wrote: Thursday 11 January 2018 9:32 Hi Mozart,

change 'at nighttime at 6:00 at mon,tue,wed,thu,fri', to 'at nighttime at 6:00 on mon,tue,wed,thu,fri'
Thanks, changed it and hopefully it was that easy :)
I'll check this weekend...
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Timer question

Post by dannybloe »

So, why use both 'at nighttime' and 'at 6:00'? This will only be true if sunrise is on or after 6:00 as nighttime is defined as the period between sunset and sunrise. Unless that's your intention of course :)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart »

dannybloe wrote: Thursday 11 January 2018 13:50 So, why use both 'at nighttime' and 'at 6:00'? This will only be true if sunrise is on or after 6:00 as nighttime is defined as the period between sunset and sunrise. Unless that's your intention of course :)
It is my intention 😀
I want my garden lights on when I get up but only if it is still dark outside and I thought that this was a nice solution.
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart »

With the change proposed here my timer works the way I want it!
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Timer question

Post by dannybloe »

Good! Then my algorithms 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