Is there a state for an automation that is updated while the automation is running and terminated (i.e. is tracking wheather the automation is running or not)?
For example, if have an automation my_automation
I would like to test its state (is it running or not) as a condition:
condition: "{{ state_attr('automation.my_automation', 'isActive') == True }}"
I went through the documentation of automations but can’t find this information (besides the info that they can persist their state during restart).
– update –
Is it maybe current
with possible values {0,1}
0 - non active, 1 - active ? I am guessing here. If so - does it has this exact semantics? Can those values be different (restart times, or whatever)?