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')
end
Code: Select all
if (current_time == '23:00') then
domoticz.devices('myswitch').switchOn('at 23:01')
domoticz.devices('myswitch').switchOff('at 06:59')
end