ESPHome &MQTT autodiscovery sometimes dont work, why?

When I install exactly the same configuration several times in a row to same ESP board, sometimes some things/sensors are not detected , dont show up with autodiscovery, what could be the problem?
MQTT Explorer always sees the sensor signal.

Pity that you’ve not got any replies. Have you figured it out by now what the problem is? I have exactly the same problem. It’s frustrating. Especially because I don’t know how to add the device manually :-/

Actually, I think I just figured it out. Related to ESPHome MQTT devices have duplicated names . If I give each measurement a unique name across all devices, then all devices show up.

1 Like

I thought it was the same thing, but I wasn’t quite sure