All of my automations just disappeared. The automations.yaml file still exists though and it appears all my automation are there. But when HA is loaded, the Automations screen is blank. Additionally, when I go to Settings>System the “Backups” section is gone, so I cannot restore a backup.
The automations did have errors as I had to reprogram my entire z-Wave stick and I needed to change the devices the automations were associated with, but they were all still there before.
Does anyone have any wisdom or suggestions for me?
Before I go through all that, they all stopped working on their own, I mean, I didn’t add or change any automations. Most, if not all the automations need the associated device changed since I had to reprogram my entire zwave controller. Would that be the cause of the problem? Before they just were missing the associated device; that was what I was going to fix and re-add.
If you choose
developes tools → yaml → reload → automation, and you see a repair appearing, you know you found the faulty automation. So you just have to fix that one.
You can figure out the new device_ID for each device and do a find & replace on the automations.yaml file. Back it up first (copy to automations.old or something). How much work this is depends on how many devices you have.
I recommend in the future you always try to use an entity_id as your target when you can (it’s not always possible). It’s much easier to rename a few entity id’s if you need to when you reinstall a device or even change to a completely different one than try to change the device id in all your automations, scripts etc. You just found that out the hard way.
Thanks, guys, for your help. I’m getting it done… slowly.
The hard part is figuring out the entity IDs. My automations.yaml file was 1800 lines of code. This will take a while.
I think I’m following what you’re saying, but don’t really see the difference. If I change a device, its ID along with all the Entity IDs associated with that device will also change, right?