I do not understand why the ESPHome code acts so different that the Arduino code. It is the same hardware (setup). The only thing I could do is discoonecting Tx and Rx pins.
My google search did not get me anywhere. I had to stop, because I was not able to flash my ESP32-CAM using web.esphome.io or Arduino IDE. I bought a new ESP32-CAM + adapter and I can now flash both my ESP32-CAM devices.
I discovered strange behavior of ESPHome. I connected my device web.esphome.io and than I did “PREPARE FOR ADOPTION” . ESPHome discovered the device and I adopted it. After changing the name I installed through “Manual download”. The device did not connect to my wifi. Then I use “Plug into the computer” and it did connect to my wifi. When looking to the generated bin files there is an difference in size and name.
When “Plug into the computer” “-factory” is added to the file name and the size is larger. When I copy the yaml code to an new yaml file I get the same result.
This page is a lite variant of ESPHome. If you want to create and edit ESPHome projects, install ESPHome on your computer or inside Home Assistant (it’s free!).
I do not have a problem with flashing bin-file using web.esphome.io. My problem is that bin file generated are different depending on the option selected during INSTALL. I do not see why they should be different.
When using tasmotizer I do not press the reset button.
My initial problem was that I the ESP32CAM did not connect with wifi when the code was generated with web.esphome.io (with tasmotizer I can not flash a bin-file into the ESP32CAM). With Arduino IDE it was no problem. In the mean time I got problems with flash in any way (problem was my my USB to TTL interface). This was solved with a ESP32-CAM + adapter. Then I discovered that there is a different result in how I generate the bin file. In the below picture I tried to visualize this.
Once I have flashed the ESP32CAM so that the wifi works, I can flash it wirelessly, but the 2 different bin-file seems to me a bug in ESPHome. If you create a device (yaml-file) with the code below and the generate the bin-file in the 2 ways I mention you will get 2 different bin-files (in size and filename). For me this is strange behavior.
I converted a couple of Emporia Vue 2’s for use with HA.
First one went fine, I guess I must have used “plug into the computer” for that one.
On the second, I was using “manual download” and I couldn’t get it to work.
Wasted a couple of hours, then I found you post. Now both are working like a charm.