External Converters cannot be completely deleted
What happened?
I have been testing some local External Converters for dimmer switches. After removing the External Converters from the file system, and also removing the reference to the files in the UI, the functionality (and product description) that was included in the converters is still present on the device.
I have confirmed that the reference to the files has accurately be reflected in the configuration file, but even when removing all traces of a local external converter from config file and file system, the converter still appears to be cached and used.
How do I revert back to the device functionality without using the local external converter?
Thank you
What did you expect to happen?
Deleting an external converter would then show no signs of it's use, within the UI.
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.39.1
Adapter firmware version
20230507
Adapter
Sonoff Zigbee Dongle
Setup
Home Assistant add-on. Home Assistant running on proxmox.
Debug log
No response
I have this problem too
@Koenkk I've noticed this while testing too, there doesn't seem to be a way to fully remove / delete a custom converter once it's been loaded.
Things I've tried:
- Remove custom converter file from file system
- Remove all traces of custom converter entry from configuration yaml
- Replace custom converter file with empty definition {}
- Remove all devices that were previously using the custom converter
It seems the converter is cached somewhere and although the cache copy is updated if the contents of the custom converter file changes locally (aside from the empty definition test mentioned above), the cached copy never seems to get purged in situations where it should.
IMO the cached copy should get purged in either of the following cases:
- The local custom converter file is removed
- The custom converter entry is removed from the configuration yaml
In order to unload it, a restart of z2m is required.
@Koenkk - a restart doesn't unload it for me.
@martyn-vesternet has explained the problem better than me.
However, a restart of z2m, or a restart of HA, does not solve the issue. I cannot get rid of the details of the custom converter.
Thanks
- Is it a total stop of z2m, or a restart via the z2m web ui?
- I've added some extra logging in the dev branch, can you check if
Loaded external converteris logged even when there are no external converters in yourconfiguration.yaml?
Changes will be available in the dev branch in a few hours from now.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days
I have the same problem, tried deleting the file, changing, rebooting, deleting the device, etc. the first version of the converter was still persistent. Now after waiting for an hour or so and then rebooting the new version was loaded
Just faced with this issue now, cannot for the life of get it to not use the external converter which doesn't even exist even after restarting home assistant