Automation missing

Hi,

Most of my automations I have included in the automation.yaml configuration. Those are all working fine. Some automations I added in UI. They have been working great for some time. But repeatedly the UI created automations just disappeared after some time (days). In entities I can still see them but marked as not available.

Not sure, but maybe they always disappear after restarting.

Do you have any idea how to fix this or what I am doing wrong?
Thanks!