Timer question

Post Reply
Mozart
Posts: 82
Joined: Monday 19 January 2015 15:35
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Timer question

Post by Mozart » Thursday 11 January 2018 10:13

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: 106
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Timer question

Post by waaren » Thursday 11 January 2018 10: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'
Raspberry (debian stretch via berryboot) on Synology DS916+ , Domoticz 3.9, RFXtrx433e, P1, Youless, Harmony, Hue, HomeWizard, Zwave , dzVents 3.4, Bash, Python plugins, Amazon echo

Mozart
Posts: 82
Joined: Monday 19 January 2015 15:35
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart » Thursday 11 January 2018 12:43

waaren wrote:
Thursday 11 January 2018 10: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: 1188
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Timer question

Post by dannybloe » Thursday 11 January 2018 14: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 :)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Mozart
Posts: 82
Joined: Monday 19 January 2015 15:35
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart » Thursday 11 January 2018 21:37

dannybloe wrote:
Thursday 11 January 2018 14: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: 82
Joined: Monday 19 January 2015 15:35
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Timer question

Post by Mozart » Saturday 13 January 2018 10:51

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: 1188
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: Timer question

Post by dannybloe » Saturday 13 January 2018 11:07

Good! Then my algorithms work!
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Post Reply

Who is online

Users browsing this forum: dannybloe and 1 guest