ESPHome device enabled transport encryption or changed the encryption key

Suddenly one of my ESPs is requiring reconfiguration. It has been working OK for at least half an year. Nothing has changed.

I was away for several hours, and noticed my ESP controlled HVAC is no more online in UI.

In Settings/ Devices & Services it’s flooding the integrations display:

Here is one zoomed in

image

Hitting reconfigure I get this

image

Now the problems start… The integration cannot ne disabled nor deleted, from the 3 dots I get nothing else that this reconfigure. It is jus flooding the integratiions display Hitting it gets this:

I have no api key set for the device (ESP32). This is from the esp device configuration file (yaml):

image

I checked my backups several months back, and it seems to be there never was this api: or ota: set, but it has been working OK all the time.

Now, ESPHome shows it just OK

It is connected, I can read logs, I can do OTA update (which I already did, with no avail). The device seems to be OK, but the integration is causing the problem(?)

I tried to set the a random key in esp conf. file like this:

image

…and tied to feed the same key in reconfigure display, but it does not accept it. Did all the reboots, even restarted the whole system

I have absolutely no idea, what updated key I need feed into this nor what’s going on

How do I get this thing online before it totally floods my integrations page???

Anyone?

Reflashing with random encryption key does not work, nor does changing it back to no key at all.

It just stubbornly asks for that encryption key, which should not even exist, because it was never created in a first place

I have altogether 6 ESP’s in the system, of which most are 8266s and few 32-S, like this one. 5 of them are working OK, also the almost exact duplicate of this one, which similar software and controlling the other HVAC

My system is
Home Assistant 2022.10.5
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221010.0 - latest

I have not updated to the latest core, so the environment has not changed

Are there any ESPHome devs here? This isuue has according to what I have found from web, been there many years, but I did not find a reason what causes it.

Anyone able to tell how to fix?

Solved it. Just deleted the problematic ESP from integrations, and when it was detected again, inserted it back, this time without problems.

However, there seems to be a bug in the integration, otherwise I do not think the above is explained. I found reports on similar problems spanning over several years, but I did not find any indication, that anyone actually started even looking into it.

3 Likes

i am in the same boat, it still excists after several updates of ESPhome and Homeassist.
This is a temp fix because at my system it just returns after a while

this just happened to me all of my esp gone wild except one. And I cant delete them under integrations. Do i have to delete them from esphome ?

Yes this is what i did, i changed the host server for my HA installation to a more energy efficient one.
Since i placed the latest backup on this server i have not yet seen the errors.
Don’t know what is causing it.

If you delete them under the ESPhome in integrations they eventually come back and give a notice that new devices are found.
Do not delete them in esphome tab itself then they are gone or you have the config somewhere.

This solution worked for me too. I’m not sure what caused it, but it happened after a routine firmware reflash (which I’ve done many times before on this device).

This worked for me as well. The ESP32 had been working like a charm for months, when the integration with HA suddenly failed. The ESP logs showed that data still was generated, but HA kept asking for the encryption key. I tried to enter the original key from the .yaml which didn’t work. Removing encryption and re-flash the code neither.
Removing the device from integrations solved it.
(For which I am extremly happy as the ESP is soldered to a print board and replacing would have been a lot of work…)

Hi, I am facing the same issue. I have some esp8266 based smart sockets which I reflashed with esphome. No problems for couple of months, but after that one of my sockets started to “needs reconfiguration”. After another time when I needed to remove that one device from esphome integration and add it again I said enough. I opened that one socket to flash it directly soldering wires to the esp hoping it would solve the issue, AND IT DID. No more “needs reconfiguration” message.

I lived happy live after that :smiley:…. until my other socket which never had any issues started to show up the same “needs reconfiguration” message.

Is anyone aware what might be the cause of these issues and is there a permanent solution without opening and flashing every single device manual or periodically removing and adding them in HA over and over again?

3 Likes