I would be very grateful for help solving this problem which is driving me mad!:
I have an ESP32 which I am using in my greenhouse to receive temperature inputs and output to relay for opening vents. I have been slowly developing this and updating the config file via wifi with each change. All was good until today when it has stopped connecting. I have brought it back inside and connected via USB and ESPhome Web: it connects but cannot install or update: Failed to initialize. Try reseting or holding down boot.
Trying connecting via the headless machine running HA:
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting…
ERROR Running command failed: Failed to connect to ESP32: No serial data received.
I cannot get any logs from either source.
Also I have noticed the ESP32 board itself has a blue led as well as the red - not sure if that has always been lit but never noticed it before.
Was this after pushing new firmware to it or just random?
I assume you’ve been doing this when trying to flash serially?
This is pretty common, red being power and the blue being one of the pins. Without seeing your YAML, no way of knowing if you defined a status pin to control the blue LED.
Hi Ben,
The problem started when I returned it to the greenhouse after having it working indoors. I had added a DC motor controller. It had been connected via wifi indoors and seemed to be fine. Plugged it back in the greenhouse and it didn’t connect from then on…
Yes I’ve tried holding down the boot button.
I haven’t intentionally set any GPIO to the LED but I did add the last 2 sections in the yaml: outputs and fan just before it stopped working - could that be to blame? Here is my yaml.
Just reflash the board or swap snother board in there. Sometimes you can delete the problem esp node then do a HA restart and see if it discovers it. Sometimes its just better to grab a new board too. These things are dirt cheap and they do fail from time to time.