External MQTT Broker no connection

What do your broker logs say?

  • Try using a plain IPv4 address as HA might not be able to resolve a hostname via DNS / mDNS inside the HAOS VM. (IPv6 is getting better, but didn’t work with MQTT.)
  • Read the step-by-step link (ignore setting up a new broker) - tips like " don’t use a long text password with characters you could mis-type !£$^"@~" fix systems.
  • What do the MQTT Integration logs say?
    (MQTT Integration = client)
    (MQTT Add-On = Mosquitto broker)
    (Tasmota Discovery support is a seperate Tasmota Integration)
  • Ignore broker logs like the extract below - HA reguarly disconnects from the MQTT broker.
    The IPv4 addresses below are internal to HA (HA is in one VM, and if you use it, the Add-On Mosquitto broker is in another so the IPv4 are mapped externally via ports)
2024-12-29 11:43:50: New connection from 172.30.32.2:32880 on port 1883.
2024-12-29 11:43:50: Client <unknown> closed its connection.
2024-12-29 11:45:50: New connection from 172.30.32.2:41320 on port 1883.
2024-12-29 11:45:50: Client <unknown> closed its connection.
2024-12-29 11:47:50: New connection from 172.30.32.2:43268 on port 1883.

If this helps, :heart: this post!