Hi everyone,
I recently updated my Zigbee2MQTT installation, and I’m now facing a very frustrating issue: all of my Zigbee devices have had their entities duplicated in Home Assistant. The old entities are now “Unavailable,” and new entities have appeared with slightly different names (often with a number appended). Worse, I’ve lost the historical data associated with the old entities.
This is a major problem, especially as it affects my underfloor heating automation, which is now essentially broken.
Here’s a summary of what happened:
- I updated Zigbee2MQTT to the latest version 2.1.3
- After the update, I noticed that all of my Zigbee devices had duplicate entities in Home Assistant.
- The original entities are all “Unavailable”.
- The new entities are reporting correct values, but they have no history.
What I’ve tried (and why it didn’t fully work):
I initially tried renaming the new entities to match the old entity_id
s. However, I encountered the “entity ID already exists” error, as the old (unavailable) entities still existed. I considered a suggestion to use customize.yaml
to temporarily rename the entities, but I’m hesitant to make complex changes to my configuration while my heating system is affected. I’m also concerned about further data loss. I need a reliable, and ideally, simple solution. I’m now leaning towards a complete reinstall, but I want to understand why this happened and if there’s a less drastic solution.
My questions:
- Has anyone else experienced this issue after a Zigbee2MQTT update?
- What is the root cause of this entity duplication? Is it a bug in Zigbee2MQTT, a problem with Home Assistant’s discovery, or something else?
- Is there a reliable way to restore the original
entity_id
s to the functioning entities without risking further data loss or instability? I’m very hesitant to edit internal Home Assistant files directly. - If a reinstall is the best option, what is the recommended procedure to minimize disruption and ensure I don’t encounter this problem again in the future?
- Is there any way to restore the lost history, even partially?
I’ve attached a screenshot showing some of the duplicated entities. You can see the “Unavailable” entities alongside the new ones.
Any help or guidance would be greatly appreciated! I’m particularly concerned about getting my heating automation back online reliably.
Thanks in advance!