Latch groups
Learn how latch groups can enhance synchronization in your automation process. Discover how parent automations can wait for multiple child automations to finish before proceeding, by using the "execute automation" and "wait for latched automation" actions
Latch groups provide a synchronization mechanism so a parent automation that executes multiple child automations in parallel can wait for all childing to finish before continuing its processing.
This diagram depicts the concept:

To accomplish this, each child automation is first placed into the same Latch Group via their gear menu option here:

Enter the same name for the Latch Group here:

Latch groups can optionally be shared across linked accounts. That means that a parent automation in a parent account can execute child automations across multiple linked child accounts and wait for those child automations to finish.
Then the parent automation can be edited to add the "execute automation" action found in the System app to execute the child automations:


The in the parent automation, use the "wait for latched automation" action found in the System app:

Enter the Latch Group name you configured for each of the child automations:

Optionally, if using a Latch Group across linked accounts then change the scope option to "linked accounts".