Page 1 of 1
timer with except
Posted: Wednesday 08 January 2025 19:20
by pierrotori
Hi,
i would like to create a timer as 'every 5 minutes except at 02:00 and except at 06:00'
but the first exception is right but not the second
What is the good syntax in the rule ?
Pierrotori
Re: timer with except
Posted: Wednesday 08 January 2025 19:41
by waltervl
Probably but not tested
Code: Select all
every 5 minutes except at 02:00,06:00
Re: timer with except
Posted: Friday 31 January 2025 19:08
by pierrotori
i found this solution , to have the trigger name in the script
local time_today = 'every 5 minutes except at 02:00-06:00' -- periode activité
local time_calme = 'every 5 minutes between 02:00 and 06:00' -- periode calme zero consommation
Re: timer with except
Posted: Friday 31 January 2025 20:37
by waltervl
This is not what you asked for in your first message but hey, if it works, it works.....
Re: timer with except
Posted: Saturday 01 February 2025 10:45
by pierrotori
exactly, i didn't find a correct syntax . i have this solution to bypass