timer with except

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

Moderator: leecollings

Post Reply
User avatar
pierrotori
Posts: 112
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

timer with except

Post 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
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 5389
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: timer with except

Post by waltervl »

Probably but not tested

Code: Select all

every 5 minutes except at 02:00,06:00
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
pierrotori
Posts: 112
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: timer with except

Post 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
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 5389
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: timer with except

Post by waltervl »

This is not what you asked for in your first message but hey, if it works, it works.....
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
pierrotori
Posts: 112
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: timer with except

Post by pierrotori »

exactly, i didn't find a correct syntax . i have this solution to bypass
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests