Not able to install ESPHome on Sonoff Basic… Have spend a week testing various options. Have tried three windows pc’s running W7; W10 and W11. My usb to serial device is FT232RL, Sonoff RF R2 Power v1.0. Using ESPHome Flasher v 1.4.0. The error I am gettind is "ESP Chip-Detection failed: Failed to connect to Espressif device: No serial data received. I did try to connect Sonoff device while holding on/off button down, also tried without holding it down, same message. Have started ESPHome Flasher regularly and as administrator. Verified cable pins few times. FT232RL is set on 3.3V. Went from original Dupont femail male wire cable to soldered solution. Running out of options… Worst is that I have done this procedure (might have used different software) few years ago and it worked, but need to reflash as I moved to new HA setup and didn’t have original bin files or yaml’s. By the way, I also tried different board types (not sure which one is correct for Sonoff Basic): esp8286: board: esp8285 (tried also esp01_1m, sonoff_basic). I have used HA to create New Device from ESPHome Add on. I have put simple YAML, then used Install ->Manual Download → Legacy Format. My YAML is pretty simple, just trying to make flashing work:
Thanks, I also tried exact lines like you with board: esp01_1m, same issue… Did you use ESPHome Flasher or some other tool? I also tried installing directly from HA->ESPHome, getting error as well.
For a first flash I would just plug in my ch340 uart usb thing and let esphome setup a new device if I was starting from scratch. Although I started from mine being flashed with Tasmota.
I don’t use ESP flasher anymore. I use the esphome addon.
I start adding a new device give it a name, skip the connect , set it to esp8266, then install, manual download, modern format
Let it do its thing.
then I end up with this
esphome:
name: test
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "zOynQkfW5EcS03Ty0vB93EikOymHfWcHCNZqI7HSHmM="
ota:
password: "83922a09ec3b7dc993d510344b26f471"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Test Fallback Hotspot"
password: "KLwUj9QXPRmX"
captive_portal:
The encryption key needs to be unique so let esphome create it.
I then add the switches and sensors and recompile.
This should work if you are plugged in with a USB uart thingy. You will probably need to hold the button down when plugging in the usb uart, then let it go a second or 2 after its started up.