I had the problem that automations are executed, but when I deactivated automations and restarted HA, the deactivated automations were activated again. The execution time for the automations was also set back to an old date after a restart, even though the automation had already been executed again,
I was also unable to set any categories for the automations. These were also gone again after the restart.
Then I emptied Automations.yaml once and restarted it. Unfortunately, this was not successful either, because as soon as I created an automation and then activated it again, it was active again after a restart.
By chance, I then saw under the entities that there were still old automations there that I had already deleted. Only after I deleted them did HA work properly again.
Since I “tinkered” with the blueprints and automations, it is of course possible that an old automation was the problem.