Removing Auto-discovered Devices

Stumbling through the Home Assistant stuff. this is my first week. I have a few devices flashed with Tasmota, but won’t do any more until I have the hang of Home Assistant.

I’d switched on auto-discovery (SetOption19) and sure enough, Home Assistant discovered my TH10 and displayed the temperature and humidity on my “Overview” page.

I’ve now removed this device from my network, but my Overview page displays the residual “Entity not available” message.

Two questions, here:

First, the details for these devices are NOT in my configuration.yaml file. So, where does HAss store their configuration?
Second, how do I remove them?

Thanks.

easiest way is by disabling discovery on the device so add it back again…

hard way…

remove mqtt integration
remove mqtt broker
restart home assistant
edit /admin/.storage/core.device_registry and delete the invalid entry
restart home assistant
verify zombie entries are still gone from core.device_registry
add mqtt broker
add mqtt integration
restart home assistant

If you are using 0.86.x you can click edit at the very top and then click Badges and delete them from there. I had same issue with my PiHole sensors remaining after I removed the addon

1 Like

Edit at the very top of what, please? I’m using 0.86.3. I don’t see “edit” anywhere.

I added it back again, per suggestion and disabled discovery. It didn’t go away. not even after a Home Assist reboot. I removed the device from the network again and it’s still in Home Assistant.

That hard way is … unappealing!!

53

Click on the Pencil icon to EDIT (on the main home screen if thats where your badges are)

On pop up window select BADGES

Click X to delete the ones you don’t want

Click SAVE

End of the badges :wink:

I don’t recognise your screenshot as the “main home screen”. If anything, I’d call that a “View Configuration” screen. In any case, I can’t find a “View Configuration” screen. How did you navigate to here, please? Starting from the “Overview” screen.

Lovelace.
Click 3 dots and select configureUI
I don’t get any enties listed when I do that but I can select the badges tab… still nothing. I’m not convinced doing this will let you kill zombies…

EDIT… maybe it does. It just took a long time to populate. I’ll try this the next time I need to go zombie hunting.

1 Like

When I click ConfigureUI, I get a stern warning that Home Assistant’s doing this for me at the moment and am I really sure all that power won’t go to my head.

Do I want to take control?

Thanks. It rather looks like this opens up a truckload of otherwise hidden gems.

If you don’t take control, you are using auto-generated mode instead of YAML or storage. It’s a bit confusing.

1 Like

Fair enough. Control it is, then! Thanks again!

1 Like

Right. Managed to delete the switches which weren’t working. Managed to add a card of “ENTITIES”. Now, where have these entity names come from? The list contains:

switch.socket
and
switch.th10_switch

I’m pretty sure switch.socket is my S20, but I called it S20_1 in its MQTT config.
I’m pretty sure switch.th10_switch is my TH10, but I called it TH10_1 in its MQTT config.

This may hide the entity from appearing in the front end, but how do you completely delete it from the entities list on the states page?

Entities don’t have capital letters. It’s your TH10

1 Like

Hi! How do I revert to auto-generated mode if I need to?

Delete /config/.storage/lovelace

Thanks for your speedy reply!
I have a ‘Storage’ folder in my ‘Config’ and there is a ‘Lovelace’ file in there. is that the one to delete?

That’s the one. (Yeah I meant /config/.storage/lovelace)

:grinning: Many thanks! Your help is always much appreciated!

1 Like

I found a slightly easier way.

  1. Remove the MQTT integration
  2. Restart homeassistent (did not check if this is needed)
  3. Connect to your MQTT broker with MQTT Explorer
  4. select the homeassistant topic and delete it
    image
  5. Add the MQTT integration with auto discovery enabled
    You should see no devices
  6. Reboot your devices so they register the homeassistant topic again
    Any device rebooted should show up in the integration.
1 Like