X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: PajamaGuy on July 24, 2008, 01:49:29 PM

Title: Reentrant Macros?
Post by: PajamaGuy on July 24, 2008, 01:49:29 PM
Flag #8 is SET
Phantom switch F8 switches OFF

Macro TimeOff triggers on F8-OFF
IF FLAG #8 is SET
      Delay 5 min 
     Clear FLAG #8
     Delay 1 min
    Set F8 OFF  (or SendRF F8=OFF)
Endif

If trigger module is already OFF, will sending an F8-OFF re-trigger the macro?  Will sending RF F8-OFF re-trigger macro?  If I have this macro turn ON F8, then wait the 5 min., and then send the OFF, will it re-trigger?

(Yeah, I'm going to try it when I get home, but I thought some of you'all might have some 'sperience with reentrant macros.
Title: Re: Reentrant Macros?
Post by: Puck on July 24, 2008, 02:09:17 PM
If trigger module is already OFF, will sending an F8-OFF re-trigger the macro?  Will sending RF F8-OFF re-trigger macro?  If I have this macro turn ON F8, then wait the 5 min., and then send the OFF, will it re-trigger?

AHP doesn't care about the previous state of a module. It will still run the OFF macro even if the module is currently OFF.
Title: Re: Reentrant Macros?
Post by: PajamaGuy on July 24, 2008, 02:10:18 PM
Great, thanks!