Considering that we have several updates every month, we often have to restart HA. Of course we get the notification that all automations will be stopped if we restart. It would be good to know which automations are currently running or waiting so we can turn those automations off, wait for them to finish, or be prepared to restart them when HA restarts.
I agree, this should be more easily accessible and i voted for it. But, in the mean time i made myself found a card for this (you need fold-entity-row installed for this) - it shows running, missing automations and running scripts. I found this somewhere on this forum. Can’t say where, so i hope that real author won’t be offended for not stating him… EDIT: author is Tom_I:
type: entities
show_header_toggle: false
state_color: false
entities:
- card:
type: custom:fold-entity-row
open: true
head:
label: Running Automations
type: section
padding: 0
filter:
exclude:
- state: unavailable
- attributes:
current: "= 0"
include:
- domain: automation
show_empty: true
sort:
ignore_case: true
method: name
type: custom:auto-entities
- card:
type: custom:fold-entity-row
open: true
head:
label: Running Scripts
type: section
padding: 0
filter:
exclude:
- state: "off"
include:
- domain: script
show_empty: true
sort:
ignore_case: true
method: name
type: custom:auto-entities
- card:
open: true
head:
label: Missing Automations
type: section
padding: 0
type: custom:fold-entity-row
filter:
exclude:
- attributes:
current: "= 0"
- attributes:
current: "= 1"
include:
- domain: automation
show_empty: true
sort:
ignore_case: true
method: name
type: custom:auto-entities
I wrote that.
Thank you both!!!
Aaa… thanks again, it’s extremly usefull.
On reboot, detect what is running and then prompt to wait for them to finish, resume on reboot, or just reboot now.
This would be a great solution.
Was about to post this WTH.
Would also be useful in debugging to see what is currently running in the Automation screen to see if the automation is still running, and if so how many copies of it are running.
May times I’ve got WTH is going on, only to find an automation still running trying to do it’s work.
Thank you for searching first.
I work in industrial automation and the sequences used typically have defined states with an associated state timer so the operator knows how long the sequence has been in the current state. Usually progress would be supplemented by messages on the HMI e.g. “Date-Time: Waiting for tank T101 to fill to 75% (current level 66%)”.
Typically states would be the following (there are several others but I don’t think these would be relevant here):
- Idle (not running)
- Waiting (waiting for conditions to be met)
- Running (processing instructions)
- Complete
Plcs are a bit different though. They don’t really allow parallel processing for a project, where HA does. I.e multiple instances of the same automation running at the same time as itself. This automation overview window would likely be a bit more complicated in this regard.
I was referring to PCS/DCS rather than PLC systems however most of these do support parallel processing and are compliant with the IEC 61131-3 international standard.
Many systems can show a live view of the Sequential Function Chart (SFC) so you can observe the operation (kind of like Traces but in real time).
Admittedly this would be overkill and a method to show the current step/status of an automation could easily be achieved by setting an input_select to a relevant option (e.g. "waiting for xyz, “Active” etc.).
Yes, HA automation have the same “parallel operations”, however they have an aditional parallel operation that PLCs don’t support. Which is what I’m referring to. HA automations can be running n number of instances of itself next to each other. This isn’t something that PLCs can do, you need to create a static separate project with different inputs to get the same effect with a PLC.
I’m only mentioning this because it would complicate whatever page displays the requested information.
But these instances must have a unique ID internally? So that probably would make it possible to just add a sequence number to the automation name in the listing?