Dave W,
Can you explain why right after the macro turns on, the macro turns off some lights, look at lines 1078 to 1080, they go off just as fast as they turn off.
Yes, you are telling E2 and E3 to turn off 2 seconds after thay come on.
Everything in the Activity Monitor looks correct up to line 1083 (to me, but I use Homeseer, not AHP, so am shooting in the dark). Line 1083 is turning on light E3 again which I don't follow. 1083 through 1088 looks like the macro ran again without being triggered. Then another trigger comes in on line 1093 and it appears the macro is run correctly (as written) again.
Since you said you edited the AM I figured the strangeness was just something done when you edited. But in your OP your description of what was occurring matches what you put in your macro. E2 and E3 should turn OFF almost immediately after coming on. Since each X10 command takes almost one full second and the commands are serially sent E2 and E3 will not turn off precisely two seconds after the trigger, but my point was that the E2 E3 lights are doing what you are telling them to do in the macro. That isn't what you really wanted, right? I am guessing you wanted E2 and E3 to turn off after the five minute timer(?).