Does anyone know how can I delete/ignore the discovered devices below?
I have deleted via ssl all the relevant files but they won’t go away. They not causing any issues but I would like to have a clean workspace
I don’t know of a “correct” way of renaming the project so when I did the old project name appears as a discovered device. It is not really an existing device.
From my notebook:
“Problem with autodiscovered mqtt devices is this: you have to remove the retained messages on your broker first, before you remove them from HA. Or else HA will rediscover them the moment HA restarts, because your broker sends the retained messages when HA starts”
Also from my notebook:
" Stale retained messages
When adding new entities, you might run into trouble with old entities still appearing in Home Assistant’s front-end. This is because in order to have Home Assistant “discover” your devices on restart, all discovery MQTT messages need to be retained. Therefore the old entities will also re-appear on every Home Assistant restart even though they’re not in ESPHome anymore.
To fix this, ESPHome has a simple helper script that purges stale retained messages for you: clean-mqtt (Under the three dots on the dashboard)"
Could you please, maybe, share a screenshot so I see which 3 dots menu you are referring to? By now I have the impression I have exhausted all the places that can host button
I am not sure what method is used underneath.
I bought a preflashed Athom plug it got recognised by HA but did not appear in ESPHome, so to have full access to the code I added a new device put the code and downloaded the firmware. Flashed it via the captive portal OTA and voiala. I ended up having the first ghost in ESPHome.
I was waiting for the weekend to try out your suggestion. In the meanwhile 2022.3.0 came out. After updating issue got solved. So I believe your suggestion would have worked.
I had the same issue with an unwanted device using ESPHome version 2022.3.1 and HA version 2022.3.7. What worked was to adopt the bad device and let it fail. Before deleting it though I restarted the ESPHome add-on and then Home Assistant. Then I was able to delete it and it stayed gone.