I am totally lost (see title). Any advice?
The problem is:
I have one - exactly 1 - "dead" automation, there are no others.
This entity ('automation.automation_0') does not have a unique ID, therefore its settings cannot be managed from the UI.
I can't edit it visually.
This automation cannot be edited from the UI, because it is not stored in the automations.yaml file, or doesn't have an ID. (It definitely is in automations.yaml!)
I can tell it to migrate, but then I get stuck just the same when editing the YAML, see below.
I can't delete it (permanently),
Error loading automation (500).
I can't disable it: it briefly achanges to disabled, but after ~5 sec, it enables by itself.
After migrating, when editing YAML from the automation editor, I can't save any corrections, not even an empty one.
When I hit SAVE, it suggests
rename the automation.
This I can't reject. If I do rename, it asks for rename again... and again...
the only way to leave is to cancel the box
I edited the automations.yaml file from FileEditor. I can save without problems.
I restarted Home Assistant during all these processes, including reboot
The defective automation still can't be run/deleted/edited visually or as YAML: same errors as before.
I have more to add to this description, see appended file