asantaga / wiserHomeAssistantPlatform

Platform and related climate/sensors to support the Drayton Wiser Home Heating System
MIT License
219 stars 43 forks source link

Smart Plugs - ghost entries after name change #462

Closed dunxd closed 4 months ago

dunxd commented 4 months ago

I have a couple of Wiser Smart Plugs which added to the integration just fine. I've moved one of them around in my house, and renamed it in the Wiser app a few times as I work out exactly what I want to use it for other than an extender.

Each time I renamed it a new device entry and entities are created in HA by the integration leading to a bunch of "ghost" devicesand entities. I can delete the entities ok, but each device remains. They do not clear up after reload of HA or the integration.

I tried disabling the devices, and this results in a further "ghost" device with the same name plus all the old entities I had deleted appearing. I've now got five copies of a smart plug under the old name I was trying to delete.

dunxd commented 4 months ago

I remembered that I had this issue about 18 months ago, and the solution then was to use a Remove orphaned devices service in the integration. This is no longer present. Note that I renamed the smart plug a few times over several months, and they still remain after many restarts, upgrades to Home Assistant and this integration.

dunxd commented 4 months ago

Never mind - this seemed to be an issue with using the Home Assistant smart phone app - I took another look when I was back at a desktop computer and managed to remove the entities and devices.