Walk me through this - beginner!

I am trying to install the esphome version of the project below onto a new esp32. Total beginner, although i am a HA user of 4 to 5 years, have messed around in YAML and have some small experience with Arduino boards. I see that there is a ready made .bin on the project - what is the method of flashing it onto a new board?

I have spent the last day or so trying, reading about online flashers (!), vscode + platformio, esp32 flash download tool etc. I've messed around with all of them with no luck at all!

Any and all pointers appreciated..

Tysonpower/HCPBridgeMqtt_tynet: emulates Hoermann HAP 1 HCP (HCP2) on ESP8622, ESP32 and Arduino.

Did you try

Yeah, and i could connect the board, add the wifi details and connect it, and then see it in HA. But i couldn't then add the .bin from there?

I think that there is an option at least it was in esphome to upload *.bin file. I didn't use it for a long time but it should be there.

Isn't the bin file for the first install?

I am as green as a green thing at this. Ask me no questions and i wont be tempted to try and sound like i know what i'm on about :sweat_smile:

OK so with a bit more fiddling - i can 'provision for first use' via web.esphome and then see it in ESPhome device builder, where i can take control. I think i then hit a roadblock as this is not the right place to get the ready-baked .bin onto it?

No prob I'm not very skilled in ESPHome either, have a few boards running and as far as I remember, you have to install that bin file to get going.
I guess that afterwards, you overwrite your initial config (if it's even possible to do write that bin file later on)

Yup getting the bin onto the board seems to be the secret sauce. I'm sure it'll be dead easy when someone hopefully spells it out for me..

From the 3 dots on the device in ESPHome, you select install and manual download to install the bin file but this overwrites what you already have flashed.

Or you can add this device to your esphome and just c/p yaml settings from their github file to your config and then just upload it to device.

These are my '3 dots' options in esp device builder - i've no manual download. Do i need the last one on the list, and it will let me choose the .bin i already have?


Check Daniel's post!

OK i see that now - so do i hit edit on the device in esp device builder, paste in the area below then hit upload? and cross my fingers too i assume?!

Yes, flashing will not go through if there are errors and you are informed about them so you can correct what is wrong.

OK - i will give that a go tomorrow. One last question before i try it then - how do i handle these 'secret' credentials when i paste it in? I am aware of the existence of such things in HA but have never knowingly got involved with them.

In ESPHome, in the top right corner, the programs' 3 dots gives you the option to store those secrets so you can address them in the board config.

Perfect i see it, thanks. I will report back with how it goes!

A much simpler option is to connect your ESP device directly to a Windows PC then use this tool to upload the .bin file:

It is depreciated in favour of the web flashing tools but it still works perfectly.

And donot forget to connect gnd and gpio0 for a first flash-via-cable, which needs to be removed when you reboot it after. If the device comes up fine on the net then you can continue the update ota without the need to connect these.

Physically Connecting to your Device - ESPHome - Smart Home Made Simple