I'm not sure if this is news to anyone, but I think I've learned something new (hard to tell some days - I've forgotten so much over the years).
I've been testing the
"macros calling macros" using the
"advanced function" with
"module" and
"appliance" control calls.
This is a continuation of the thread
Calling a macro from a macro.
Using
Steven R's macro file that incorporates a looping macro, I expanded things a bit to check the Module and Appliance control functions. After having several fits (cold beverage breaks) I constructed a macro using the
tried and true dummy module call. Unfortunately this didn't function either (another beverage break as a result).
The macro I was tying was:
Macro 1 (P1)
Trigger on P1 on
Set P5 on {calls Macro P5 via dummy module}
.
.
Set P4 on {calls Macro P4 via dummy module}
Macro 5 (P5)
Trigger on P5 on
Set Flag 2
.
.
Macro 4 (P4)
Trigger if P4 on and Flag2 set
.
.
.The problem with the above is that Macro 5
never sets the flag2. I've tried this a number of different ways (delays, etc.) but, if the
called macro tries to set a flag, it doesn't seem to work.
If I move the
Flag 2 set function into macro1 everything works fine.
I've done some searches and haven't found this addressed so far. Is this news to anyone aside from myself (maybe I've been taking too many breaks)?