I will see what I can do later this week about generating some sample logs that show the garbage that occurs when two or more macros run at once. I hope someone can make more sense of them than I have been able to.
As I've said, I'm more than willing to take a stab at it, but you haven't given us any data to look at.
Well, it has taken some time to get to this with everything going on around here, but I now have some sample logs.
Unfortunately, I have not been able to capture any of the
really wild (gibberish) stuff where it looked like there were totally "foreign" commands showing up, or partial commands, etc., but the sample log
did get fairly confusing - especially towards the end... so, maybe that is at least worth taking a look at, because there might be some clue there. As time permits, I'll try to capture some of the really wierd stuff, too.
Meanwhile, here's what I did:
First, I ran each of the three typically offending macros via a remote trigger (to get a log of what they
should look like when they run without any sort of interference from concurrent macros). I saved the AHP Activity Log file after each run, and then cleared the Activity Log for the next run. These "stand-alone" samples all appear to be pretty consistent with their associated macros, both in terms of commands being correct and in the proper order, and delays working more or less as expected. (Note: I ran the daytime version of these macros, because the night versions get even more "hairy" with lighting control actions - so I figured the simpler forms would be better for now).
Second, I cleared the Activity Log, and then went out and triggered the actual motion sensors under "typical" conditions of someone walking through the area. I then came in and waited until all the motion sensors had issued their respective turn-off commands, and then saved the resulting log to a file.
It looks like the "actual run" log initially shows that the first macro is running normally; then the second sensor triggers, but it looks like all commands in the log are still coming from the first macro. Then the third sensor triggers and it looks like some commands are getting interspersed occasionally, but essentially it is still the first macro running. Then things start getting confusing, and I'm not really sure what is running - although I think all the logged commands can be attributed to one of the three macros... but it looks like the delays are not always correct - or maybe not happening at all. Anyway, it becomes quite confusing, and doesn't seem like things are happening in their proper order, etc.
Over all, my impression is that the subsequently-triggered macros don't really run while the first macro is already (still) running, although at some point, they do seem to start getting muddled together - but that's quite awhile after the subsequent macros get triggered... so there must be more to this than macros simply running concurrently.
So, let me know what you make of it....
(Note: I had to rename the .htm log files to .txt extensions in order to attach them here).