Copy code from one wemos d1 to another

Unfortunately my wemos D1 inserted in HA which controls almost all of my burglar alarm is dead.
I have to replace it but I ask you if I can (and how) copy the yaml code present in HA to the new device. I’ve searched the forum but haven’t found any answers.
Thanks for your help.

You do know how to copy & paste?

1 Like

Quote for nickout alternately click on the 3 points of the code you want to copy - Install - manual download - save the bin file and then flash it on the wemos

Or on the commandline

cp /config/esphome/oldcode.yaml /config/esphome/newcode.yaml

Thanks for the replies but I’m still confused. I’m trying your suggestion and I think you’re referring to this
Immagine 2022-11-15 224436

the yaml file is downloaded but how do i convert this to bin file? Sorry if the request is trivial but I’m not practical in this.

Choose Install

1 Like

Ok. I created the .bin but now the problem is another one. While connecting two new and immaculate wemos the ESPHome-Flasher-1.4.0 program does not detect any COM on the PC. I reinstalled the drivers, as described in the esphome faq but nothing.
All very sad :frowning_face:
Tomorrow I will continue to try, tomorrow will be a better day :tired_face:

I solved the copy using with another pc.
thank you