How to remove/re-add a non-responding outlet switch (initially added via HomeKit)

I have trouble re-adding an outlet switch that was running in HA before but suddenly stopped responding with an error in the log.

I can’t remove the device/entity from HA because the delete button is disabled in the pop-up. When selecting the checkbox in the entities overview and choosing “remove selected” it says it can only remove 0 of 1 selected entities. :thinking:

I’ve hard-reset the outlet device and re-added it to HomeKit to test if the hardware was failing. Via the Home app on iOS I can toggle the outlet switch no problem.
But the “old” entity is still in HA and it does not recognise a new device (unpaired at Home app first).

Tried asking in Discord but no replies there. Hope you guys can help me out.
Anyone have an idea what I can try next to get the switch back in Home Assistant and the old (non working) entity out?

1 Like

First i would go into settings, integrations click on the menu button on the homekit device you are trying to remove, ( even the new one), then if the switch has the option to delete home kit settings do that, (Side note which you may already know but you cant have something added to “HOMEKIT” via the home app and still try to add it to home assistant, you will need to remove it from the home app and reset the device itself). Restart home assistant wait a min or two and then try adding it again. If all that fails I would repeat those steps with also deleting home-assistant_v2.db then restarting to see if that fixed the problem.

Thanks for you reply @zachmccandless.

The switch (sadly) hasn’t got the option to be deleted via the HomeKit integration settings, that redirects me to the entity page. I could completely remove the HomeKit integration, but that would mean setting up 15 devices and all the automations based on those entities. If I won’t have to go that route, I live to die another day.

I added it to Home (iOS app) to test the hardware. Once that was working just fine I removed it from the Home app so it would be no longer paired to it, freeing it up to Home Assistant. After a number of reboots yesterday and today, I still have no notification that a new device has been found.

I run my database in MariaDB, no longer via home-assistant_v2.db so I’m afraid I can’t just remove the DB here either.