MQTT unable to connect to mosquitto broker...strange behaviour

I have setup the Mosquitto add on (as well as the integration) but am seeing strange behavior that is driving me crazy. So here is what works and what doesn’t:

  • I can establish a connection to it from tools like MQTT lens
  • I can establish a connection to it from the integration
  • I can publish and receive message from these two in both directions.
  • I have tasmota devices (and a Shelly) that can connect to things like HiveMQ
  • however these device can NOT connect to my broker (as mentioned: despite being able to connect with MQTTlens). The only indication I’ve got so far is an rc -2 error from the tasmota log that points to a Device ID conflict. The device ID’s are all unique.
  • This did all work for a few days (and also did using the tasmota integration and shelly add-on before that). But all of those options stopped working after a power outage and needing to reset devices.

Please help…before I lose my remaining hair :wink: I have no idea what’s wrong or where to look. Thanks everyone.

Are you using DHCP, static IP, permanent lease, or (horrors) a mix of all three?

The devices are dhcp and home assistant is on a reserved ip. The more I try things, the more I suspect the limited isp-provided router I’m currently using (bell home hub 4000). No control of anything really. Often resetting that got things to work which is what’s confusing, but now I’m just stuck in a non working state no matter what I do.

So I’ve got things running yet again after moving my Pi (to ethernet). I think this has something to do with the very unconfigurable isp-provided router I have. I think it was popping it over to another vlan (or something else strange to do with it recognizing the pi as a wifi pod). I’m hoping this sticks now and survives the next round of restarts/power outages.