How does dzvents handle a reptitive switch command
Posted: Thursday 01 February 2024 22:42
Just out of curiosity.
How does dzvents handle reptitive calls, let's say every 10 minutes.
In the following code the 'if' will be handled 6 times.
Will there be a six (twelve) times switch command in memory or will the timed switch commands be overwritten every 10 minutes.
I know, the correct code should be:
Nevertheless there is this curiosity.
How does dzvents handle reptitive calls, let's say every 10 minutes.
In the following code the 'if' will be handled 6 times.
Will there be a six (twelve) times switch command in memory or will the timed switch commands be overwritten every 10 minutes.
Code: Select all
if (current_time > '23:00') then
domoticz.devices('myswitch').switchOn('at 23:01')
domoticz.devices('myswitch').switchOff('at 06:59')
endCode: Select all
if (current_time == '23:00') then
domoticz.devices('myswitch').switchOn('at 23:01')
domoticz.devices('myswitch').switchOff('at 06:59')
end