I need to remove an old Homekit config (after migrating to new hardware) but am unable to do so.
If I completely remove ‘homekit:’ from config.yaml everything works and Homekit is discovered. I can go through the QR code etc and everything works as expected. It adds hundreds of entities to my home app. On the integrations page it looks like this: https://i.imgur.com/XNZXMbO.png
This works but isn’t ideal, there are hundreds of entities I don’t want to appear in Home app. I need to use yaml setup so I can filter things.
But if I delete the integration, delete homkit.xxx.state (from .storage) and restart the procedure with ‘homekit:’ in yaml it doesn’t work. No QR code, no setup process, no entities in home app. The integrations page looks like this: https://i.imgur.com/WWLx7Fa.png
I don’t know why the port numbers are different. I’ve tried changing the port in yaml to match the discovery port, but no dfifference.
I’ve enabled Homekit error logs, when I setup via yaml it says this:
[homeassistant.components.homekit] Begin setup HomeKit for HAsystem
[homeassistant.components.homekit] Migrating legacy HomeKit data for HAsystem
Where is this ‘legacy data’ coming from? I’ve deleted homekit.xxx.states dozens of times now. Is there something else I need to delete?