Page 1 of 1
Timer trigger rules
Posted: Tuesday 05 November 2024 12:18
by HvdW
I'm struggling with
timer trigger rules.
This one only executes at 12:03 , not at 12:04, not at 12:05
How can I make a script run at 2 separate time in a day.
I tried
Code: Select all
timer = { 'at 12:03' and 'at 12:05'},
which executes only at 12:05
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 12:46
by GJKNL
Maybe: timer = { 'at 12:03', 'at 12:05'},
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 12:48
by RonkA
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 13:30
by HvdW
Thanks, though these solutions don't do what is te be expected.
Meanwhile I went for a walk and the solution just came up by itself.
Code: Select all
timer = { 'every 2 minutes between 12:03 and 12:05'},
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 13:57
by waltervl
I think you should not use a space between the times and - So something like:
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 14:53
by RonkA
Okay, you asked to trigger at those specific times so i don't see why the solutions given is not what you wanted.
But if it works.. Great; I was constricted by the written rule that is stated in the wiki:
https://www.domoticz.com/wiki/DzVents:_ ... gger_rules
Be mindful of the logic if using multiple types of timer triggers. It may not make sense to combine a trigger for a specific or instantaneous time with a trigger for a span or sequence of times (like ‘at sunset’ with ‘every 6 minutes’) in the same construct. Similarly, 'between aa and bb' only makes sense with instantaneous times for aa and bb.
But if it works, don't try to fix it, right?
Re: Timer trigger rules
Posted: Tuesday 05 November 2024 20:34
by HvdW
@RonkA and @GJKNL you were right.
Didn't have the time to check my own solution and now I see that that executes every minute.
Thanks.