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
timer with except
Moderator: leecollings
- 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
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
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
- waltervl
- Posts: 5389
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: timer with except
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- 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
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
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
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
- waltervl
- Posts: 5389
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: timer with except
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- 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
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
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Who is online
Users browsing this forum: No registered users and 0 guests