Unfortunately, the following topic:‘Delete individual device from integration’ has been closed, but with a mentioned resolution that doesn’t solve the initial problem. The solution mentioned is about deleting entities, not about deleting devices.
When I connect an MQTT device to my MQTT broker, the device shows up in my MQTT integration because of my auto-discovery, no problems there. But if I want to remove an MQTT device from this integration, that is not possible. I can delete the entities which are listed under a device, but that won’t delete the device. I can delete all the MQTT messages (also retained ones) from that device in my MQTT broker, but that won’t delete the device.
It would be nice to have a delete button within the device’s screen popup. The same as it’s with the entity’s. When deleting a device, all the entities of that device would be deleted automatically.
I empty my MQTT broker of messages which were sent from the device, then I use the configurator plugin to edit
config/.storage/core.device_registry where I carefully remove the device. After a reboot of home assistant, the devices are gone.
In the pictures below, the 3d_printer is actually a sonoff basic running ESPhome with MQTT connection, not using the API.
- This picture is when you click the settings icon next to the entity itself
- this picture is when you click the settings icon on the device itself (top right corner)