#MQTT keeps disconnecting

1 messages · Page 1 of 1 (latest)

arctic steppe
#

Hey guys, I've been having issues with MQTT for about 2 weeks. I decided to update every component in the chain, but still the same issue. Every 10 - 20 minutes, the MQTT client disconnects and all devices become unavailable for about 10 seconds, then come back.
I enabled debug logging for the MQTT integration, and all I see is this:

2025-04-17 10:06:08.065 DEBUG (MainThread) [homeassistant.components.mqtt.client] Disconnected from MQTT server 192.168.1.160:1883 (Unspecified error)
2025-04-17 10:06:08.065 WARNING (MainThread) [homeassistant.components.mqtt.client] Error returned from MQTT server: The connection was lost.

If I look in my eclipse-mosquitto MQTT docker container, I see a similar message at the exact same time:

2025-04-17 10:06:08 1744877168: Client hass has exceeded timeout, disconnecting.
2025-04-17 10:06:21 1744877181: New connection from 172.17.0.1:44984 on port 1883.
2025-04-17 10:06:21 1744877181: New client connected from 172.17.0.1:44984 as hass (p2, c1, k30, u'mqtt').

Does anyone know how to fix this? It's driving me insane.