X10 Community Forum
🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: hterzian on May 29, 2006, 02:12:10 PM
-
I was wonderin if there was a way of purging macro with delays using another macro..
I was llok at this to make sure that if I have a looped macro , I can stop it without having to use the Purge tool on the PC tool.
-
Best way would be to use a flag that you could clear with another macro.
eg. Create a dummy appliance module say M2. This is needed to loop macro - M2. Then create 3 macros "M1 ON", "M1 OFF" and "M2". Also use flag 1.
Macro - M1 ON
Set flag 1 on
M2 ON
Macro - M1 OFF
Set flag 1 off
Marco - M2 ON
If flag 1 is set...
[enter commands you wish]
M2 ON
You would start things with the "M1 ON" macro and stop with the "M1 OFF" macro. This would not do a true purge but would exit M2 after completing a loop. This is actually preferable in most cases as you can predict the end condition of your controlled modules by finishing the M2 loop.
See also this discussion. (http://www.x10community.com/forums/index.php?topic=8768.msg53054#msg53054)