Automations not in yaml

I had a sensor go wrong, so I deleted it and re-added it. It’s a Hue motion sensor; these seem to drop off HA from time to time and I’ve found that pairing them with my Hue hub seems to be more stable.

So I paired the motion sensor with the Hue hub and, because of the Hue integration, this sensor now shows up in HA as before.

However, all the affected automations were broken so I set about fixing them, which isn’t hard.

I’m left with two automations that I cannot edit and I cannot delete, even after rebooting HA. They both have the same name “Porch occupied”. They are not in automations.yaml.

If I try to edit or delete either, I get the error

Only automations in automations.yaml are editable.

I just want to delete them. How do I do that?

Start by disable the integrations/devices/entities present/referred to, in those automations , or just “un-commend” automations in your config.yaml, that way they wont get initialized/loaded upon restart , and you should be able to delete them, as they are not bound to a process

Thanks that worked.

Actually, more specifically, first time round it didn’t quite work, After second reboot, HA seemed to delete the orphaned automations for me.

1 Like