KDR & Dave_x10_L,
Thanks for the replies.
KDR, I would like to do this without using a delay since I found that using them is trial and error as far a guessing how much time is needed for the other macros to complete.
Dave_x10_L, the problem using your example is that Macro2 will always trigger Macro3 which may not always be wanted.
I was thinking of having some snippets of code that I could execute as a subroutine so I don't wind up having alot of long routines. An example would be a Front Door macro triggered when someone comes to the front door to run Macro2 to turn on a porch light, run macro3 to ring a chime, and run macro4 to turn on an appliance module.
(Front Door Macro)
Trigger c1 on
run macro2
run macro3
run macro4
Macro2
turn on porch light
turn on front foyer light
Macro3
ring the chime
turn on light next to the chime
Macro4
turn on appliance module
There may be other times where I would only need to run macro3 and macro4.
Example
Someone comes to the back door. I don't want macro2 to run but I do want Macro3 & 4 as well as another macro5. It would look something like this.
(Back Door Macro)
run Macro3
run Macro4
run Macro5
Macro5
turn on back porch light
In this example I can "re-use" macro3 & 4.
Now I know the above is possible, BUT I would like to have macro 4 not execute until Macro3 is finished and not have Macro5 execute until Macro4 is finished without any coding put into Macro3, 4 or 5. Is there a way to say
Run Macro3
Wait for Macro3 to finish
Run Macro4
Wait for Macro4 to finish
Run Macro5
again without using the "Delay" statement.
I have tried the above, but it seems that the macros start to run before the previous one has finished.
Hope this makes sense. It's sure ginving me a headache.
thanks