-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
Duplicated entities after upgrading ESPHome firmware #93215
Comments
Hey there @OttoWinter, @jesserockz, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) esphome documentation |
From my 8 ESPHome devices, this issue happened for 7 of them. Although they had different entity domains (lights, switches and covers), they all had something in common: they only exposed a single main entity. The only device in which the issue did not happen was my SONOFF 4CH, which exposes not a single main entity but 4 lights entities instead. I hope this helps figuring out the root cause of the problem, maybe. |
Perhaps related to #89104? |
Do you by chance have two config entires for the same device? I just fixed a bug in #95678 that would allow you to set up the same device twice |
But I can try upgrading my devices after the bugfix gets released, and then I can check if the same reappeared or not. |
Can you check |
Hm... I no longer have the environment with the duplicated entities (because it's my "production" home, so I had to fix the entities manually - deleting the outdated ones), so, unfortunately, I can't check this. :( Next time I upgrade my ESPHome devices, I'll take a backup of HA before and after the upgrade so we can have data to compare in case the issue happens again. |
I noticed the PR was merged. I'll update all my devices and report back. |
I updated my 8 devices and the issue did not happen this time. Maybe the PR fixed the problem (thanks @bdraco!), or maybe I was just lucky. Either way, I'll close this issue. In case I notice the problem again, I can reopen it. If someone else faces the same problem, feel free to chime in and I can reopen the issue. |
The problem
Today I triggered a firmware upgrade for all my ESPHome devices from within Home Assistant itself, through their update entities.
The upgrade path was from 2023.3.0 to 2023.5.0.
However, as every device was being upgraded, Home Assistant was starting to duplicate their entities. Example:
Funnily, only the main entities of the devices got duplicated, not every entity of the device.
What version of Home Assistant Core has the issue?
core-2023.5.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ESPHome
Link to integration documentation on our website
https://www.home-assistant.io/integrations/esphome
Diagnostics information
A device which was upgraded and had the entity duplicated:
config_entry-esphome-32631d630ccc67a9048f618b937cf594.json.txt
A device which wasn't yet upgraded:
config_entry-esphome-6790a04f0a12304d9adb6233c95c06f4.json.txt
After upgrading it, which generated the duplicated entity problem:
config_entry-esphome-6790a04f0a12304d9adb6233c95c06f4.json (1).txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: