For anyone coming across this later… my scripts were in a file named script.yaml and my configuration was pointing to it correctly. Unfortunately, at some point HA now only inserts scripts into scripts.yaml! I merged the files and renamed it in my configuration file and all is working. I deleted the old script.yaml file.
Thanks heaps for this clarification, I had this setup and chatGPT told me to remove it saying with a hybrid system new automations are saved in a .storage database and have had issues since.
Same issue for me. I checked everything suggested here but nothing. What I noticed is that the issue occurs when I use yaml editor from UI. The automation appears in the automations.yaml file but without the numeric ID. I tried to create a simple automation from UI (not yaml editor) and it is saved. Any hints?
I ended up fixing this problem. The YAML can pass the startup test but not include the things it needs for automation. My config.yaml was missing the line for autmoations below