I have an automation that can be triggered by 9 different triggers (all of those events should cause the automation to evaluate some things and then maybe take soem actions. The automation is set mode single. Now, it is quite possible that several of the triggers may fire within a very short time, or even at the ‘same’ time (at last too the granularity of a second), as each other. What I observe from ‘traces’ is that multiple instances of the automation then start executing seemingly in parallel (if one can believe the start and stop times from the traces) and as a result their execution can be unpredictable since things may be modified by one instance that are tested in the conditions. I read in the documentation that the ‘single’ restriction only applies to the actions so what I think I am observing seems like it could occur. I would have expected/hoped that ‘single’ mode would prevent multiple triggering of the same automation by multiple different triggers but it seems not. Is my only solution to implement a mutex which is acquired as the first ‘action’?
Please share your automation configuration yaml.
I think the logs still show runs when it is started up just to be stopped right away from the single limitation.