Made an AWFUL mistake today. Under some stupid whimsy decided to add another Remote Home Assistant custom integration
One was working flawlessly between my 2 HA instances in different locations sending data in one direction from slave to master for some years already- very convinient. But my stupid idea to make traffic in both directions resulted in āmirrorā effect despite my idea that different prefixes would block such behavior - and result was a massive amount of sensors like c2_c2_c2⦠(some thousands of them)- and despite uninstalling Remote Home Assistant after numerous attempts to delete them on both instances had to give up. Any ideas- the only way I see now is to delete them permanently from core entities registry and database- but how?
Best (and very frustrated with my stupid mistake), JR
Do you have backups from the time before?
Iām not sure how you set things up, but you can go to Settings > Devices & Services > Entities. Filter as necessary, bulk select, and delete via the action menu.
Yes I have backups but will loose over 1 week of statistics data then ![]()
Thanks for the suggestion but that is just this that does not work for me ![]()
This is the mess I managed to create ![]()
You can carefully edit the .storage entity_registry when the system is shutdown (or extract that file from a backup)
Was using that method some years ago- but then it was Core install, not HA system as now- all addons cease with ha core stopā¦
And the worst thing about backups is that I do not think I will want to build some 10s of sensors gathering data from another instance- but will definitely try. Shame I was delaying 2026.4 install- then the backups would be very recentā¦
I simply donāt see you being successful without that restore here. You recursively dumped thousands of ents and canāt tell which was real except for names.
Make a backup of what you have now and research importing the stats later if you need them that badly.
Youāll be fighting this install forever if you choose to go forward with it and honestly without the stats my choice would STILL be to restore and accept it. Thatās gonna be a nasty fix if at all⦠Sorry.
Then remove the integration responsible for this. After that, remove the unwanted entities and add the integration again.
I think the spook integration can remove the entities if they are marked as orphaned.
Wow, that name is diabolical.
Thanks everyone for suggestions ![]()
Lessons learned:
- Backup before every significant change and use scheduled backups to prevent data loss
- Managed to fix by downloading existing databases and changed .yaml configurations made after last backup
- Restored both instances to available backups
- Made some SQL magic to fill lost data (especially long-term stats)
- And once again- backup, backupā¦
- Failed on cleaning core.entity_registry due to low knowledge of system- json was cleaned up but restored itself due to my insufficient knowledge about HAOS (some years ago on core that was not a problem)
- Spook (which I already had) gave some hints but not about this issue- or maybe I was not so good

So once again- kudos to everyone who teached and encuoraged me
Best, JR


