Reflashed ESP32 as new device, old device remains?

Hi Guys,

To start with I’ve recently moved my HA instance from RPI4 with 120gb SSD to a 2012 Imac (10.13.6 High Sierra), running HA on VirtualBox 6.1.

I’ve just flashed a preused ESP32 device. I think it was originally “Fan Controller 2”, to the new device “Display Cabinet 1”.
In my instance via web browser, in ESPHome I see Display Cabinet 1, but Notifications,New Discovered Devices, I still have Fan Controller 2 (ReConfigure).
I’ve deleted all the unsed .yaml files in ESPHome.
I’ve gone to (in web browser), File Editor, ESPHome and deleted the unused .yaml’s in there.
But the problem persists.

I think what I need to do is go to the VM HA command line interface and do something in there?

Can anyone advise what I need to do, and how to do this?

Why can an old esp device, reflashed with something else be so problematic.

It’s preventing my from adding the new Display Cabinet 1 device to the dashboard.


Hi Guys,

To answer my own question and for others that experience the same issue.

You have to delete the device in ESPhome in the browser, deleting the yaml file.
Delete the device in Settings, Devices and Services, ESPHome (heading, not the devices listed below), click on the 3 dots to the side of the device you wish to remove.
Restart.

1 Like

Good you found the solution Darren!
Please mark your 2nd post as the solution so anyone who’s searching for this can benefit from it.
You do that by selecting the three dots under the post:

image

Then select the check box:

image

Also, by doing so this prevents that someone else steps in for trying to help.