How to remove leftovers from removed ESPhome node

I removed a node from ESPHome, however it is not completely removed.
After every reload I get.

Logger: aioesphomeapi.reconnect_logic
Source: /usr/local/lib/python3.9/site-packages/aioesphomeapi/reconnect_logic.py:126
First occurred: 07:54:32 (1 occurrences)
Last logged: 07:54:32

Can’t connect to ESPHome API for zolderstudy_node2 @ 192.168.2.128: Error connecting to (‘192.168.2.128’, 6053): [Errno 113] Connect call failed (‘192.168.2.128’, 6053)

Under HA Devices, the ESPHome node still exists, I can disable it, but not remove it.
There are also 2 unavailable sensors that I can only disable.

I would like to remove this device from HA (and ESPhome) to get rid of the reload error.
Any ideas?

What happens when you try to remove it? Exact steps and what you clicked on.

From ESPHome, I can’s delete it anymore as it’s already gone.
From HA Devices, I can’t find any delete button
From HA Devices, I could not remove any entities (but greyed out), but was able to disable them.

But, ok, disabled all of it, including the device.
I showed a dialog (yes/no) to also disable something else (cant remember), but the device will not really be disabled. Could press that button/dialog multiple times.

No I decided to reboot, after I disabled all sensors/entities (one of them was Unify tracker that was still working?). After the reboot the error message in the log is gone :slight_smile: but the device is still there…

Go into Settings|Devices and Services.

In the entry for esphome, you will see a list of devices.

Click on the device you want to delete. It will drill down to that device, then there will be a 3 dot menu with a choice to delete the device.

Unfortunately it is not listed there anymore…
After some reboots, after disabling all related entities, I was able to disable the device.
So at least no errors anymore.

Still, not possible to completely remove it.

I might be better to first remove it from HA, then from ESPhome?

1 Like

You can’t delete disabled devices. You will need to re-enable it if you want to delete it.