Lost OTA password - recoverable?

Maybe too late, but it might help somebody.
I made the same mistake, but I’ve found the previously used ota password here:
config > esphome > your-device-name-here > src > main.cpp
I’ve found the line
ota_otacomponent → set_auth_password(“your-ota-password-here”);

And sorry for reopening

1 Like

Edit: Oh I found the main.cpp and the set_auth_password line in it as suggested by maiandrei and will try that.

Old stuff:

Are the bin files needed to find the password under the config directory?

If so do you know which of these three would have it?

-rw-r--r-- 1 root root  499328 Jun  8 09:31 ./.esphome/build/air-conditioner-b121bb/.pioenvs/air-conditioner-b121bb/firmware.bin
-rw-r--r-- 1 root root  499328 Jun  8 09:31 ./.esphome/build/air-conditioner-b121bb/.pioenvs/air-conditioner-b121bb/firmware.factory.bin
-rw-r--r-- 1 root root  499328 Jun  8 09:31 ./.esphome/build/air-conditioner-b121bb/.pioenvs/air-conditioner-b121bb/firmware.ota.bin

Thanks from yet another ESPhome almost newbie / infrequent user of it.