Update to ESPHome 2023.12.x results in duplicated discovery messages
fsaris opened this issue · 1 comments
esphome/esphome@5c31bec changed the behavior of the str_sanitize()
method that this component uses to create the discovery message topic.
As a result you will get errors in the logs like Platform mqtt does not generate unique IDs. ID awox-A4:C1:38:5A:CC:88-light already exists - ignoring light.....
when updating to ESPHome >= 2023.12.x
To fix this you need to manual remove the duplicate messages from the MQTT broker. Best to stop HA to prevent it from removing the devices during the cleanup.
To remove duplicate messages find the wrong topics and send a retained empty body for these messages.
Topic's like homeassistant/light/awox-A4C13881BA94/config
are correct the once to remove are the once where _
is used like homeassistant/light/awox-A4_C1_38_81_BA_94/config
.