Cancel action in dzvents script

Moderator: leecollings

Post Reply
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Cancel action in dzvents script

Post by JeroenG »

Hi,

I have several lights which switch on in the morning on workingdays (mon-Fri) on specific times (i.e. hallway switches om at 06:10).

But sometimes I take a day off, and there is no reason why these ligth should be switched on (I hope to be stll in bed :) ).

My idea was to create a dummy switch (no_working_day) which I switch on before going to bed. But how can I use such to cancel the timed switchon event (which is on lightswitch in domoticz, no script)?

Any idea's?

Jeroen
User avatar
user4563
Posts: 96
Joined: Tuesday 19 October 2021 17:24
Target OS: Windows
Domoticz version: 2023.2
Contact:

Re: Cancel action in dzvents script

Post by user4563 »

Yes, that will work. So basically if dummy switch state == off then <your existing schedule here>
If the dummy switch is on, then nothing happens.

However, you said the schedule is not in a script. If it's in Blockly, you can do the same there using If-Do logic.
Domoticz 2023.2 running as a service on Windows 10 w/ Aeotec Z-Stick Gen5+, HAProxy (remote access)
Domoticz for Android
Domoticz Scenes add-on in Kodi
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest