sfstar / hass-victron

Integration for Home Assistant to fetch data from the victron gx device via modbusTCP
Apache License 2.0
178 stars 26 forks source link

Removal of this integration leaves all 200 entities and statistics in place #210

Open bashers222 opened 5 months ago

bashers222 commented 5 months ago

I found the excess sensors created implicitly on sart too much as i only needed 3 sensors. I removed it and reverted to my manual MODBUS config However there was no cleanup process on removal so all 200 plus entites and states were left in place.

I've had no choice but to restore fom a backup which is not great

sfstar commented 4 months ago

I need to look into this, I believe that cleaning up the entities should be possible. However, statistics data cannot be removed and imho shouldn't be automatically removed when removing the integration. (For when users troubleshoot by removing the config entry and re-adding it). For the statistics it should rather be something you more purposefully need to do via a HA settings page or something like that.