NodeMCU ESPHome Connection Error

Hi everyone,

I am a beginner when it comes to HomeAssistant and homeautomation in general. I do have experience with coding, so I am familier with the debugging process overall.

I am running a RPi4 with HassIO installed (balenaetcher method, not docker install). During my time testing out homeassistant, I also explored docker installation of supervised homeassistant, which I installed on a virtual ubuntu machine running on my primary PC. All of this is working well, and I am planning to move forward with the RPi4 setup, because I may want to turn off my PC from time to time.

Now, on to the issue at hand. I am trying to set up a few sensors with NodeMCU and ESPHome, following this tutorial. Initially, I had some trouble getting the device recognized, but eventually, I got the deviced flashed. Then after flashing, the device never could connect to wifi, it always errors out.

[20:29:43][W][wifi_esp8266:334]: Event: Disconnected ssid='dipanwifi' reason='Probe Request Unsuccessful'
[20:29:43][W][wifi:451]: Error while connecting to network.
[20:29:43][I][wifi:193]: WiFi Connecting to 'dipanwifi'...
[20:29:53][W][wifi_esp8266:337]: Event: Disconnected ssid='dipanwifi' bssid=[redacted] reason='4-Way Handshake Timeout'
[20:29:53][W][wifi:451]: Error while connecting to network.

OR

[20:15:23][W][wifi_esp8266:337]: Event: Disconnected ssid='dipanwifi' bssid=

[redacted] reason='Auth Expired'
[20:15:23][W][wifi:451]: Error while connecting to network.
[20:15:23][I][wifi:193]: WiFi Connecting to 'dipanwifi'...
[20:15:25][W][wifi_esp8266:337]: Event: Disconnected ssid='dipanwifi' bssid=

[redacted] reason='Association Expired'
[20:15:25][W][wifi:451]: Error while connecting to network.

I struggled with it for some time, but eventually decided to try the other two boards I got. Both of those times, it worked flawlessly. So now I am confused. Is there something wrong with the setup, or the chip is misbehaving somehow? If anyone can shed some light, it would be much appriciated.

Thank you
Dipan

If they have identical config and some work, one doesn’t, it is likely to be the hardware.

Yeah, after fiddling with it some more, I came to the same conclusion. It is likely that the board is bad.

Or simply a wrong passphrase. In that case you get the same errormessage.

2 Likes

Hello. I was deeping in the same error, and my solution to the problem was that the router had the timezone wrong, so the router current time was delayed 4 hours.

When i changed that, it worked like a charm

For me this was the solution to the same error message. Thanks.

The same happened to me today, but it was connected to WiFi, just it disconnected frome Home Assistant.

Removed and rejoined and it came back to life.
Strange issue.