Run script every min, but only when a switch is on.
Posted: Sunday 05 August 2018 2:01
Hi.
I have just started looking a moving my lua and blockly to dzvents.
I was just wondering something about the triggers.
If I have
On
Timer : every 1 minute
Switch : my-switch
Will this run the script every min, AND when the switch is switched?
I am hoping to only run the script WHEN the switch is on.
So something like
On: timer: every minute ( when switch ==on).
Is it possible to do it in the top trigger section?
I know it will be possible to run the script every min, and then inside the execute section have:
If switch=on then
Do stuff....
End.
But I am trying not to have too many scripts running every minute.
Thanks.
I have just started looking a moving my lua and blockly to dzvents.
I was just wondering something about the triggers.
If I have
On
Timer : every 1 minute
Switch : my-switch
Will this run the script every min, AND when the switch is switched?
I am hoping to only run the script WHEN the switch is on.
So something like
On: timer: every minute ( when switch ==on).
Is it possible to do it in the top trigger section?
I know it will be possible to run the script every min, and then inside the execute section have:
If switch=on then
Do stuff....
End.
But I am trying not to have too many scripts running every minute.
Thanks.