In newer versions of Zigbee2MQTT, the discovery topic and base topic cannot be the same.
I changed the base topic from “homeassistant,” which was the same, to “zigbee2mqtt.”
The result is that my buttons still work, but devices with states, such as lights, do not.
When using an MQTT explorer, I can see that the messages generated on the Mosquitto MQTT server appear correct: discovery messages are in the “homeassistant” topic, referencing the new base topic “zigbee2mqtt,” where the new state messages, etc., also appear.
However, it seems that Home Assistant is not automatically picking up the updated discovery messages, and it’s reporting the devices as “unavailable.” I suspect I missed a step to prompt Home Assistant to reprocess these messages. Is there a way to do that?
EDIT: I see the change base topic leads to a new entity with a new entity id => is it somehow possible to matche the new entity to the old one so that automations and everything continues working?
EDIT2: If opening every device and then opening the “old sensor”, copying the Name and ID to the “new sensor” in a second browser tab, deleting the old one before saving the changes on the new one it seams to work => but if anybody has a better way to do this please share it with me as I have 75 devices with multiple seonsor to update.
Regards,
Petr