Moving YAML to a device

i can find so many yaml examples across so many pages here, but i cant find anything to tell me what extension I should use when creating a yaml file to move to a device.

What dose that mean?

hi tom,
when i go to ESP home (i think it is builder)
then click install
plug into this computer
choose ESP Home web
connect
select port
then I can choose “install”
a pop up says:
Install your existing ESPHome project
Select the project that you want to install on your device.
choose file
then i can select a file on my pc.
drop down extension says “BIN File”

so i just want to confirm i am using the right extension as all the files i move to it dont work.

The YAML does not go on the device. It is just a configuration that ESPHome uses to build and compile a binary (.bin) file which is the actual firmware that goes on the device.

You may want to review the ESPHome introductory docs.

okay, so in the steps above what extension should I have on the file that i am passing to esp home or esp builder ?

Your list of steps in unclear, please clarify what you are actually doing… Share screenshots if necessary.

If you are using the ESPHome Builder addon in Home Assistant, there isn’t really a reason to use ESPHome Web.


The ESPHome Builder Addon page should show a header like:
image

… followed by a mostly blank page with a green “+ New Device” button at the bottom… there is no “Install” button.

sure

yep seems like builder

then try to connect to device

then select the jtag com4

click install as prepare for first use always fails

choose file, this is where i have made a txt file with some yaml I got from a thread here. but this always fails too

Click Edit, not install or if this is a new device, click “Prepare for First Use”.

Then edit the YAML configuration and click install from the editor:

You will be asked about how the device should be connected to.

okay,

install gets me here:

I assume I press plug into this computer:
then I need to go to 2. esp home web
as the other option has already failed 1. [Download project] preparation failed: see what went wrong

then back to connect
choose com4
and then im back to prepare for first use of select install again for the second time in this selection
prepare for first install fails as before
and install wants another file from the harddrive as before

Is that because you are getting a popup like the following:

If so, you likely just need to switch to a browser that supports WebSerial. Just FYI, neither Firefox, Brave, nor Safari support WebSerial.

i am using chrome for this

yes! i get that pop up, but the first option is not selectable

Have you clicked to see what went wrong? There may be issues in your configuration that are keeping it from compiling.

As the instruction state you have to “… download your project and do the installation with ESPHome Web.” If you can’t download the compiled project .bin file, you don’t have anything to install.

seems like this yaml is no good

It looks like you are missing a required configuration variable…

Try adding invert_colors: false on the line under dc_pin: GPIO4, make sure it’s indented to the same depth.

Also, based on the screenshot, installing directly from the builder addon isn’t working because you are not using https.

man that got rid of that error, awesome. One other errorhas raised its ugly head!

The default one is usually something like…

ota:
  - platform: esphome
    password: "58c76b60286803d2d09eeb4f73e550f7"

… with a randomly generated password.

You can paste that anywhere in the config, make sure the line ota: is not indented, and the other lines are indented as shown above.

unreal, thank you so much for all your help, this has been amazing!

i am able to move this code to the m5stack dial with no errors, just awesome I thought this thing was bricked.

The screen does not do anything, but I assume this is because all the code is for the m5stack dial with stamp S3 and mine is an m5stack dial with stamp S3A.
ill try to find some specific code for this device. thanks again everyone, especially Didgeridrew, thanks mate.