Remove old esphome entries in Home Assistant

How can I remove devices from esphome that are still in my home assistant? I am having trouble with one esphome device, and there are several devices related to it in my home assistant config. I’d like to just remove everything and get a clean slate. Or at least remove some key ones.

These ones I’d like to remove are from previous testing configurations (maybe different esp32 devices, or I moved their ip address in my router config).

Have you clicked the 3 dots and clicked delete in the esphome dashboard ?
And you’ll need to do the same in the integrations page

1 Like

Ah! That deletes the config file. Good thing I have backups.

I don’t need to delete them from the esphome UI. I need to delete the devices from the integrations in home assistant.

But you’re right. Deleting the integration removed the device. I deleted the old ones and readded the new one and the stuff looks right again. Thank you.

I know this is an old thread, but I had been playing around with an ESPresence device a while back and can’t get rid of it. It shows disconnected in Entitites, doesn’t show at all in ESPHome screen, and if I delete the MQTT Integration and reboot, it finds it again. I can’t for the life of me find where it’s coming from. No config.yaml or sensors.yaml related entries.

Hi Curtis. Did you figure it out? I am having the same issue. I am a newbee to ESPhome and configuered a ESP32 Dev board with the famous Blink sketch. Added it to HA as ‘Breadboard Light’ and was happy as punch. I then thought Id clean the board an install re-flashed it to act as a light sensor. ESPHome picked it up and has the device as a trigger for a light control as well as the light sensor. I scanned all the files in the config folder including the ESPHome folder, but cant see anything that includes the text ‘Breadboard’ . However, if I download the diagnostics in ESPHome, I can see the entry:-

      "light": [
        {
          "object_id": "breadboard_light",
          "key": 1983783754,
          "name": "Breadboard Light",
          "unique_id": "esp32-bluetooth-proxy-734394lightbreadboard_light",
          "disabled_by_default": false,
          "icon": "",
          "entity_category": 0,
          "supported_color_modes": [
            3
          ],
          "min_mireds": 0.0,
          "max_mireds": 0.0,
          "effects": [],
          "legacy_supports_brightness": true,
          "legacy_supports_rgb": false,
          "legacy_supports_white_value": false,
          "legacy_supports_color_temperature": false
        }
      ],

So what is the magic to remove this?

I have soooo many disjointed entities that can’t be deleted from years of carrying forward the same system it’s insane. We need a tool that can identify if an entity has a corresponding integration or not. If not then let me (forcefully) delete them.