New to ESP-Home, and have managed to install my esp32 and wrote my first yaml-script.
But, every time i upload this simple script to the esp32, it takes 6 to 9 minutes uploadtime. Is this normal, or have i forgot something?
If that includes compile time for the firmware, and you run it on a RPI or the likes, then tht is not uncommon. Run The ESPHome device builder on a faster machine if it bothers you. If it is upload only, then it is weird, unless it is Zigbee. Are you flashing trough serial or OTA?
My laptop is fairly new, and i have tried tot flash via ota and via usb, same problem.
EspHome is first creating a lot of things wich takes a long time, the actual wrting to the esp32 is in seconds…
The modules it compiles and strings together to make up your firmware are downloaded first. The second time, it takes far less time, as it finds them already there in the cache and can just merge the compiled items. The downloading and compiling is what takes the time, not the upload. Whenever any of the underlying modules are updated, it needs to refresh your cache with the new versions, so the waiting cycle repeats. After a few dozen compiles, you will be able to see the difference and know when to expect a longer wait.