-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.0.24 has introduced duplicate entities #430
Comments
I have encountered the same problem - happened when updating HA core and restarting HA with 0.0.24. As a work around found if you delete the integration and re-add it then the problem is resolved until the next re-start. NOTE: deleting and re-adding the integrtaion requires HUB serial number and API key. |
I was just about to report this as I am seeing it too. I just rolled back to 0.0.23 for the moment. I did check the home assistant logs but nothing looked to be erroring. However I will have a bit more of a check over the weekend when I get some free time. |
I can confirm this issue |
Same issue broken my Energy page! |
Same here. |
Suggest clicking the Subscribe feature to this thread so it is left clear for updates / solutions. Adding Same here tends to cloud the issue. |
Glad I found this thread. I thought I had done something horribly wrong. |
I have done some investigation into this and it is just hub sensors that cause the issue. In 0.0.24 the unique id in MyenergiHubSensor has changed here the word hub has been added. If I remove the word hub and restart the integration the correct fields are updated however the entities with the _1 are still present. Would someone with a bit more knowledge of the integration be able to put a fix in place for this? |
How do i roll back. Same issues here. |
I have the same issue, all my duplicate entities have my in the middle of them. so it was sensor.myenergi_home_grid_export_today and is now sensor.myenergi_my_home_grid_export_today I dont want to just swap onto the new entity as it means I loose my grid consumption graphs. |
Also getting this issue. I don't have a problem with an extra |
+1, have rolled back - the names are all identical just with |
The 'hub' was added into the unique_id of the hub as HA was complaining that the integration does not generate unique IDs. It's caused by the vHub functionality of myenergi devices. The issue was reported in #375 |
Am I correct in thinking, if we temporarily disabled the integration, renamed the entities to the new convention, then installed the upgrade via HACS, it would hopefully not create the duplicates and would retain the history/statistics? Any custom templating (card-mod, etc.) we have might need to also have entities references manually renamed. Or is there an easier way to deal with the duplicate issue that will not impact the history/statistics, please? |
It could possibly work, I'll try to test it. |
I don't think that will work, in my case the hub metrics have the identical name before and after the upgrade.. Except since that's now a duplicate, HA adds |
It nearly works. I updated the unique_id generation to create the _2 entities. Disabled the integration, delete the _2 entity and update the original one to have a sensor id with _2. |
Is there any update on a fix or workaround for this issue please? My dashboards are currently broken with unavailable entities and I don’t want to lose the historic data. |
Here's my fix that I just tested on a new install of HA.
The fix:
After upgrading to 0.0.24, I had these entities:
When deleting the _2 entities, make sure that you get the whole section of each entity. E.g
Unique ID update example, from: You've got 14 updates to make. |
Thanks @trizmark. |
@LeiChat I'm running HA in a container and I've got the /config directory mapped from the host OS. In my case I simply copied the file with |
Oops. You of course cannot use VSCode when HAOS Core is stopped. 🤦♂️ |
Perfect! it did work. Now I am up to date with my historical data. Thank you. |
same issue, rolled back to 0.0.23 |
Been trying to do this but I'm running HAOS. I'm using the VSCode plugin and have found and edited the file etc but I can't work out how to stop HA so I can edit this before resuming. Editing while running just results in it getting overwritten on reboot. Edit: Well, I did it but I probably don't recommend what I did. I edited the file in VSCode while it was still running, saved the file then pulled the power from the Pi instead of using shutdown (Figured out that part of shutdown is overwriting that file). When I rebooted it stuck and is now working as expected. |
This just took me 3 hours of tinkering to get it working, but thank you to @trizmark for posting the fix. |
Version of the custom_component
0.0.24
Describe the bug
I've just updated from 0.0.23 to 0.0.24 and all existing entities in the "Home" device are no longer provided by the integration. They've now been replaced by new entities with the same names, appended with _2:
It hasn't impacted my eddi, zappi or harvi devices, only the "Home" device. This is very frustrating as I have other entities, such as a Reimann sum integral, that are now broken.
I don't know if it's related to the update or coincidence, but any advice on possible cause would be appreciated.
Thank you.
Debug log
N/A
The text was updated successfully, but these errors were encountered: