Can I build esp firmware on PC and still get the device into HA?

I have tried everything to be able to build a firmware for my new esp32s3 on my rpi4.

I was told on github that I had to reinstall the pi in a full 64bit version to be able to do it (Because of the cpu architecture)

but I really really dont want to go through all the hassle …

So can I in any way build the firmware on my x86 PC and then get the device into HA on my RPI?

I assume Windows? Will be tricky but possible through docker.
That being said, esphome has arm32 images, so should work on a arm32 rpi4.

But it is not possible and honestly I dont know why I cant build the new esp32s3 but my old esp32dev is no problem.

You can see the error I’m getting here

I have tried ALOT of esphome version/platform_version combinations and also tried to add platform_packages:

esphome:
  name: test
  platformio_options:
    platform_packages:
      - espressif/toolchain-xtensa-esp32s3

esp32:
  board: esp32-s3-devkitc-1
  variant: ESP32S3
  framework:
    type: arduino
    version: 2.0.3
    platform_version: 5.1.1

I have also tried to login to the esphome docker and run the build manual with linux32 in front.

The windows instructions are here Installing ESPHome Manually — ESPHome

1 Like

That was the first part of my question now I just need the second part answered :grin:

You might find this Discord thread useful.

How do I get access to that discord ?

Not sure I fully understand your question. But I’ve been compiling ESPHome firmware on my Windows and uploading it to the esp device for a long time. Make sure you install python then do ‘pip install esphome’ to install esphome.

For the first time upload you’ll need a FTDI adapter to flash the firmware. I usually include the ‘ota:’ line in the yaml so that next time the firmware can be uploaded over wifi.

Hope this helps!

But how do you then get the sensors into HA on another machine if you compile it on your windows ?

You go to Integrations → Add integration and select ESPHome. You enter the ip address or name of your ESP chip and you get access to all the sensors through HA.

Ohhhhhh… Now i feel stupid :grin:
I will try to install esphome on my windows asap and test build .
It seems so easy to add the device via. integrations afterwards!
Thanks!

Try this one.

It’s from the “join the community” link on the ESPHOME page.

If you then check the thread I linked in the earlier post after joining you’ll see there’s some more useful options and context (I think…).

Discord is really good for advanced ESPHOME topics and interactive support once you get used to the format…

1 Like