Removing old duplicated entities.
Hello ! I installed the old HassAgent, having only played with sensor and commands, but then migrated to V2.
Used the compat script in #entity-names , but I still have duplicated entities in my MQTT integration.
I Decided to go back from scratch, and indeed the new entities has been deleted, but I can't remove the old ones (the underdogunderdog* ones), because "Entities can only be removed when the integration is no longer providing the entities". And in truth, I see the sensor being active, but with unknown status.
How can I clean those up ?
Solution:Jump to solution
Resolved by going into MQTT explorer and clearing leftover topics from pre-migration.
4 Replies
Solution
Resolved by going into MQTT explorer and clearing leftover topics from pre-migration.
And I assume you delete the old hass.agent?
Yes, Both old agent and intergration were cleaned and Hardware was rebooted a few times.
Howevers the topics still exists in the MQTT broker which prevents deletion of the old sensors, getting "Unknown" status as seen above.
Clearing those in MQTT explorer fixes that.
Yeah they would've had retention enabled