home-assistant-toon_smartmeter icon indicating copy to clipboard operation
home-assistant-toon_smartmeter copied to clipboard

After update to new version sensors are renamed/duplicates

Open Dessie69 opened this issue 1 year ago • 2 comments

When upgrading from version 1.31 to 1.38 my sensors are now duplicated

for example: toon_p1_power_use_cnt_high => toon_p1_power_use_cnt_high_2 toon_p1_power_use_cnt_low => toon_p1_power_use_cnt_low_2

This means that my history is now gone because the new sensors are reporting the values and not the old ones. I read that in version 1.32 the sensors were renamed, perhaps that is the reason.

Dessie69 avatar Jan 26 '24 15:01 Dessie69

Yes, unfortunately a result of fixing deprecated device code for 2024 home assistant, see here for fix: https://github.com/cyberjunky/home-assistant-toon_smartmeter/issues/78#issuecomment-1873514888

cyberjunky avatar Jan 26 '24 16:01 cyberjunky

I fixed it by stopping HA and making a backup of the core.entity_registry Then I remove the old entities and renamed the new entities with the _2 to the old name. After restarting HA the new entities are now reporting under the old name so the history is back (as far as I can see)

This issue can be closed

Dessie69 avatar Feb 02 '24 16:02 Dessie69