A weird corner case, but would love to have this solved regardless!
I run HA in Container on a RPi 4 8Gb. It runs well! However, I've often run into file system stability issues during power loss. This usually forces me to re-flash my SD card. This isn't a huge hassle, as the Pi & Containers are fully provisioned using Ansible, and I'm usually able to grab the relevant files from my docker mount points. After copying the files to the new card, almost everything is back to normal!
EXCEPT...
HomeKit isn't. While I still have the bridge showing up, it asks me to re-add it to my home, and then I have the pleasure of moving, renaming, and hiding 60+ devices on my iPhone. It all works in the end, but this is a headache.
However, last "big failure", I tried a different method of restoring my container. Rather than just copying the mounts, I copied all my container volumes to the new install. This time, everything showed up as it did before the power loss, and no additional config was necessary.
This leads me to believe there is something outside of /config, either a file or a folder, I could be persisting in the container to avoid unnecessary Homekit Setups. I've since added a UPS in front of my Pi, so this isn't as pressing anymore, but if I want to switch to a new host, it would be. What file am I missing here?
TIA!