ESPhome integration require reload to reconnect

Dear all,

I’ve been using Esphome integration for a bunch of devices in my home.
It used to work like a charm until… a few weeks ago.

The problem is that, even if the board running esphome is up & running & connected (I can ping that), HA is unable to communicate with it. The entities seems online but actually they are not really connected and usable.

The big changes that happened in the past weeks are:

  1. moved HA from virtualenv to docker
  2. some problems with my wifi connection (maybe someone installed a new router/repeater?)

I already tried to:

  1. Update HA to latest versione (2021.11.05)
  2. Update esphome boards to latest version
  3. Change the wifi channel (both auto or manual selection)

But the problem is still here.
I can’t find any useful log in HA, it’s like he is not aware that it is not really connected.

The “quick fix” that works is to reload the Esphome integration for the board. Once did, the board is again connected in a few seconds.
All my boards are affected, but one of them is very important (because it controls my alarm system).

I really can’t find anyone with the same problem.
Can you please help me?

Did you start using encryption recently?

This has been going on for a few months. After updating all my ESP devices there are usually a few that require an integration reload to get them to connect:

I think encryption is unrelated. The problem occured before I enable the encryption on some of my boards, and it occurs on all of them (with or without encryption enabled) :roll_eyes:

Thank you for pointing out that issue, I wasn’t able to find that.

Actually encryption could be the culprit.
Once deactivated for all my esphome boards (three different boards) I’ve never experienced anymore problem so far.
Will update this post with updates.

Yeah for the small security benefit encryption brings for me (I’m in a very low risk area) the connection issues I’ve experience every time I update each board just doesn’t seem to make it worthwhile.