I have some automations/scripts that are hung up and remain running. When I go to restart HA, I get the warning that it will interrupt running automations/scripts. Is there a way I can check to see what automations/scripts are running? These are obvislouly ones that I don’t have programmed well and are stuck in a running state and I need to fix them.
If an automation is currently in the process of executing its actions, the value of its current attribute will be greater than 0.
Most automations take very little time to execute their actions. If it does spend a lot of time then it can be because its actions include a delay statement or a wait_template or a wait_for_trigger or repeat.
EDIT
You can also copy-paste the following template into the Template Editor and it will list the names of the automations (if any) that are currently executing their actions.
This template is exactly what I need but I get a message “UndefinedError: homeassistant.util.read_only_dict.ReadOnlyDict object “ has no attribute ‘current’. I get this even when I know I have a running automation.
I would also like to view the current
running automations and scripts.
My problem: the current attribute does not change from 0 to 1, even though the automation is running. Could it be that with simple light automation, the execution only takes a fraction of a millisecond and therefore the change from 0 to 1 is not visible?
Edit:
Okay, I was able to confirm my assumption myself. I added a delay of a few seconds, and then the automation is visible.