Constant reconnect cycles causing HA to go unavailable

Hi @Juergen

Thanks for the beta. Unfortunately - no help for my setup. Here’s the summary:

With compatibility mode on, over about 44 hours:

  • 5 MQTT availability outages, longest 22.5 seconds.
  • Four followed Wi-Fi disconnects totalling 2m46s. HA mostly missed that downtime and only briefly showed unavailable after reconnection.
  • The remaining outage was 25 Oct 20:51:06–20:51:29, with no Wi-Fi disconnect logged.
  • The six-minute cycle had already stopped with compatibility mode on 5.10.1.

With compatibility mode off, from 25 Oct 21:37 to 26 Oct 17:00, about 19h23m:

  • 39 fresh MQTT outages, excluding the immediate mode-switch outage.
  • Usually about 5m35s connected before dropping again. Median completed outage: 32 seconds.
  • HA recorded almost 15 hours unavailable.
  • The router shows continuous Wi-Fi association throughout this period.
  • No HA or broker restarts.

Some repeating outage starts on 26 Oct:

  • 11:15:37
  • 11:21:45
  • 11:27:53

The longer MQTT outages were:

  • 25 Oct 22:12:12 → 26 Oct 07:45:39
  • 26 Oct 09:22:46 → 10:09:42
  • 26 Oct 12:28:15 → 14:58:27
  • 26 Oct 15:17:11 → still offline when checked at 17:01

The retained broker logs show 34 “client closed connection” events. For the latest failure, the broker received PINGREQ and logged sending PINGRESP at 15:16:39. The connection closed at 15:17:11.

As always, happy to do more testing for you!

@Juergen

I’ve been testing the Wi-Fi Expert settings on 5.10.2, starting from the Compatibility profile and making changes one-by-one to the settings to get to the Automatic mode profile, comparing roughly 45-minute windows after each change. I checked HA availability against the MQTT broker and router’s Wi-Fi logs.

Changing the broadcast filter from Medium to Max brought back the six-minute reconnect cycle. The lock then closed MQTT connections about 335–337 seconds after connecting, while staying associated with Wi-Fi. So I think broadcast filter at Max is the culprit for the six-minute MQTT reconnect cycles.

Stats gathered by the AI below:

Current Expert settings:

  • Broadcast filter: Medium
  • DTIM skip: Max
  • Power-saving mode: Power saving
  • Server signal skip: Off
  • Server signal response: Off

After roughly 24 hours on these settings:

  • No sustained six-minute cycle.
  • 12 irregular MQTT outages, totalling 3m39s; longest about 104 seconds.
  • Several outages still occurred with no Wi-Fi disconnect logged.
  • Battery stayed at a reported 71%, with no charging.

Battery life had been around two weeks, so that last result is encouraging, though it needs several more days to confirm.