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.