Please help me with removing a device

Our cat got run over at the weekend :sob:

I’ve removed it from Sure Petcare app, the entities are gone, but the device remains in the list

I’ve rebooted, reloaded the integration tried everything I know and the best I can do is disable it - how do I get this removed from the app entirely?

Thanks

Sorry for your loss.
The device is coming from the integration but do you still need it?
I mean, can’t you remove the integration?
If you can and you try, if it fails, it will most probably gives you a reason (like used in this or that automation what so ever)

Otherwise there is the hard way but before going into this, lets try it soft.

I do still need the integration as we have two other cats that still need it, so sadly removing the whole integration wouldn’t work

I don’t know that integration, so I’m still trying the soft method.
Is it an integration that you instantiate multiple times, like ESPHome
image
Or only once, creating all the devices, like IKEA
image

EDIT Preparing for the hard way, do you have a way to edit home assistant’s internal config files?

It’s the second - image

And yes - I have file editor installed

Ok, did you try to remove it and add it again?
Sometimes it cleans the data.

Otherwise, you can go to .storage/ and look after a file name core.device_registry.
Just tell me if you can locate it. If it is needed, I’ll guide you then to remove what is needed but it is risky.

I am nervous to remove and re-add it as I don’t want to mess up my automations set with current pets

From File Editor I seem restricted to the config directory

You can always do a backup before doing anything

Settings > System > Backups

Really sad to hear about your loss. :frowning:

When you click on the device and open the device page, don’t you have a delete option?

That was the next step, but in IKEA (as exemple) you don’t, so I’m considering alternative methods, but you got a point

image

image
Unfortunately not (nb, doesn’t appear if I enable it either)

I know how to do it but only by modifying internal core files in the .storage folder.
And I don’t know if you want to take that risk.

Isn’t it better to backup your configuration, remove the integration, add it back and see?
At worst, you’ll restore the backup.
If you’re not sure, copy the automation.yaml file somewhere safe. It will be as easy as putting it back after your attempt.

1 Like

My automations are all in Node Red… pretty certain they are all in the backup but can also backup manually in NR itself

But yeah, I guess I’ll try removing the integration when I get chance…

Seems odd there isn’t just a way to do this in the UI…

Even more if it is in Node-RED, there no strong link between the 2.
In HA you could be scared that some part could have been automatically modified by removing the integration, like unique_id, but that will never happen with Node-RED.