Timer trigger rules

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

Moderator: leecollings

Post Reply
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Timer trigger rules

Post by HvdW »

I'm struggling with timer trigger rules.

Code: Select all

timer = { 'at 12:03 - 12:05'},
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
Bugs bug me.
GJKNL
Posts: 36
Joined: Monday 31 October 2016 9:33
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timer trigger rules

Post by GJKNL »

Maybe: timer = { 'at 12:03', 'at 12:05'},
User avatar
RonkA
Posts: 95
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2023.2
Location: Harlingen
Contact:

Re: Timer trigger rules

Post by RonkA »

In my understanding its:

Code: Select all

timer = {'at 12:03', 'at 12:05'},
SolarEdge ModbusTCP - Open Weather Map - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Timer trigger rules

Post 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'},
Bugs bug me.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Timer trigger rules

Post by waltervl »

I think you should not use a space between the times and - So something like:

Code: Select all

timer = { 'at 12:03-12:05'},
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
RonkA
Posts: 95
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2023.2
Location: Harlingen
Contact:

Re: Timer trigger rules

Post 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?
SolarEdge ModbusTCP - Open Weather Map - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Timer trigger rules

Post 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.
Bugs bug me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest