X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: jdacal on February 04, 2007, 06:33:44 PM

Title: Halting a running macro
Post by: jdacal on February 04, 2007, 06:33:44 PM
If for example, A9 ON starts a macro.  Would A9 OFF stop the macro in its tracks?

The scenario I'm thinking of is that a light is on and there is a timer running in A9 macro which would turn the light off say 3 minutes.

BUT the possibility exists that another macro might kick in, say for example A10 ON.  That second macro would not want the A9 timer to run out because it wants to keep the light on for another 30 minutes.  So my question, would A9 OFF stop the A9 macro in its tracks, so that the timer would never reach the end and turn the light off prematurely?

Fun stuff.  :)
Title: Re: Halting a running macro
Post by: Puck on February 04, 2007, 06:44:07 PM
So my question, would A9 OFF stop the A9 macro in its tracks, so that the timer would never reach the end and turn the light off prematurely?

No it will not stop it. Once a macro starts, there is no programmable way to stop it.

However, what you can do if you are using motion sensors or timers for your macro triggers, is separate your macro into 2 separate ones (triggered by the ON & OFF signals) as opposed to having a delay in the ON macro. Then you can place a condition in the OFF macro to prevent it from executing if something else occurs.