Check if other Automation running in Automation

I wonder is it possible to check if some other Automation is running in new Automation?

I want to make a condition in automation A to trigger some action (or not trigger) only if automation B is currently running.

The current attribute tells you how many instances of an automation is currently running.

{{ state_attr(automation_entity_id, 'current') > 0 }}
2 Likes

Thanks, I will looks into it