Rogue entity. Not in my config but can't remove it (Bug?)

I was playing around with Bayesian sensors and created one that was meant to guess if we were all in bed (but that is not relevant here).

It wasn’t something I wanted to keep but after I had deleted everything in my config to do with it I am still left with a rogue input_boolean.

It seems a bit weird to me, or is it a bug, or have I simply missed something?
Anyone care to comment what is going on here?

VSC search in my config returns nothing:

image

But it is still in my .storage\core.entity_registry file:

            {
                "capabilities": {},
                "config_entry_id": null,
                "device_class": null,
                "device_id": null,
                "disabled_by": null,
                "entity_id": "input_boolean.in_bed_notifications",
                "name": null,
                "platform": "input_boolean",
                "supported_features": 0,
                "unique_id": "in_bed_notifications",
                "unit_of_measurement": null
            },

So the states page still shows the (unavailable) entity:

If you want to get rid of it, you can stop Home Assistant and then delete that section from the registry. Then start it back up.

Yes, I know, but why is it there?
Surely this shouldn’t happen?

Yeah not sure about that. Just wanted to make sure you knew you could remove it. I think the issue is knowing if the device was removed or if it just isn’t currently available. In your case clearly it was removed because it isn’t in the config, but that isn’t how every integration works.

No problem, thanks.

I think this is a bug…

Then you know what to do.

Actually it’s a new feature in 0.104 just hit the little i in the dev-tools there and you’ll get a option to delete the entity. It’s part of the “Improved Entity Handling” stuff.

2 Likes

So it is!
Thank you.

Any idea how to remove old groups that don’t exist anymore?
They don’t seem to get the option in the dev-tools.

Should be able to remove them from the dreaded entity_registry

You can do it thru the UI in the configuration menu:

@petro, @firstof9

Yeah I thought so too but I see no groups in that list at all. Not even the good ones.


Seriously, something needs to be done about this. I know it is a work in progress but nothing is more confusing than the terminology used for ‘things’ in HA or how to manage them.

First off, clearly it is NOT an overview of ALL known entities.

image

Are they in groups.yaml? Where do you see them existing?

OK, I take (some of) it back. A major brain freeze, sorry. The group does exist… :blush:

BUT, it still doesn’t explain why none of my groups are in the entity list? I use packages so they are dispersed around my config and behave perfectly normally in every other respect.

I don’t think groups get added to the entity list.