Yesterday, I was trying to make an automation with the editor (all my automations are manual) and when I saved it the automation.yaml meshed up. (all my comments and spaces gone,etc)
So I restore from a backup my automation.yaml (copied the old file).
Now I have 15-20 original automations as unavailable. HA automatically created new entities for them with the same name and _2 at the end.
Is there a way to restore the original naming, or I should remove them?
I am not sure how many of them are part of a script, so is there a way to find out so as to replace the original names with the new ones?