The OTA password has been lost and can not get the ESPhome flasher to upload over the air via ESPhome. Is there a way to reset the Athom plug so a new binary can be uploaded via OTA?
There is no reset to factory settings' feature. Besides parsing an adecuate bin file as already mentioned previously you still have 3 more options to recover from a lost OTA password:
1/ Generaly a fall back AP (access point) is configured on the ESPHome devices. It might have a password too. This password is different from the OTA password.
2/ You might be able to recover the OTA password from the older yaml configuration files on the home assistant server. I found the quickest way to recover this file is to look in the backup files. If you don't have a backup you can perform a full backup of HA using the HA web interface, then download that backup file on your local computer and untar it (untar on Windows can be done with the free 7zip utility). Search for the older yaml files in this folder \homeassistant\esphome\.esphome\trash.
3/ Third method is more invasive as it requires you to open the plug and connect to it using a serial adapter to upload a new firmware directly. A little electronics skills are required here. Also if you don't know how electrons can zap you then leave that to a professional before you get hurt.
I'm coming to ask the same thing. I mistakenly thought removing the password from the configuration would flash it without a password. Unfortunately I was wrong and ESPHome won't flash without the old OTA password. I've tried holding the button a long time and power cycling every 2 seconds for about a minute. So far the device hasn't reset.
FWIW, I discovered a post on Home Assistant that pointed out the OTA password is plainly visible near the bottom of the .bin file when viewed in a text editor. I was able to recover my OTA password from the original ESPHome stub bin (created by just selecting a standard 8266 device). I was then able to send the full configuration file to the plug. I'd still like to know how to reset it for future reference.
Well, the plug is probably connecting fine to your Home Wi-Fi; and therefore does not enable the "fallback". The AP is only enabled when it can't find your Wi-Fi network. Try to bring your plug out of range, or disable your home Wi-Fi temporarily.
Hi,
There is no reset to factory settings' feature. Besides parsing an adecuate bin file as already mentioned previously you still have 3 more options to recover from a lost OTA password:
1/ Generaly a fall back AP (access point) is configured on the ESPHome devices. It might have a password too. This password is different from the OTA password.
2/ You might be able to recover the OTA password from the older yaml configuration files on the home assistant server. I found the quickest way to recover this file is to look in the backup files. If you don't have a backup you can perform a full backup of HA using the HA web interface, then download that backup file on your local computer and untar it (untar on Windows can be done with the free 7zip utility). Search for the older yaml files in this folder \homeassistant\esphome\.esphome\trash.
3/ Third method is more invasive as it requires you to open the plug and connect to it using a serial adapter to upload a new firmware directly. A little electronics skills are required here. Also if you don't know how electrons can zap you then leave that to a professional before you get hurt.
Good luck
I'm coming to ask the same thing. I mistakenly thought removing the password from the configuration would flash it without a password. Unfortunately I was wrong and ESPHome won't flash without the old OTA password. I've tried holding the button a long time and power cycling every 2 seconds for about a minute. So far the device hasn't reset.