Page 1 of 1
Timer question
Posted: Thursday 11 January 2018 9:13
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?
Re: Timer question
Posted: Thursday 11 January 2018 9:32
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'
Re: Timer question
Posted: Thursday 11 January 2018 11:43
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...
Re: Timer question
Posted: Thursday 11 January 2018 13:50
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

Re: Timer question
Posted: Thursday 11 January 2018 20:37
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.
Re: Timer question
Posted: Saturday 13 January 2018 9:51
by Mozart
With the change proposed here my timer works the way I want it!
Re: Timer question
Posted: Saturday 13 January 2018 10:07
by dannybloe
Good! Then my algorithms work!