Thank you, already tried several times, device are under the AP, both with 50 dB or less, it shouldn’t be a problem.
Also tried power cycling some times with no results
EDIT: Tried with minimal firmware (only wifi, api, ota): same problem.
Flashed the same image via USB TTL adapter and is now working flawlessly.
Tried to upgrade a MINIR2 (ESP8266 based) and got Tasmota saying “Not enough space” even if program and flash size are correct. I think there is something with the latest version of Tasmota (12.3.1) as I had no problems migrating from the previous ones
Edit: *solved on the ESP8266 uploading a compressed .bin.gz source
This might sound strange, but if you can load the latest minimal tasmota image, you should be able to flash it over the air. That’s what I had to do with my Sonoff Basic R2 that already had tasmota on it.
I have the exact same issue on two devices, a Shelly Plus i4 and a Sonoff TX Ultimate.
And if I retry the flash process, the second time it will look like the OTA update completed successfully, with upload progress bar and all, but the firmware will not change.
The way I put ESPHome on the devices is: I installed Tasmota on them via Shelly OTA update or Tasmota Web Flasher respectively, then I downloaded the ESPHome binary in “legacy” format and flashed it using Tasmota’s update form. Was that the correct procedure?
There’s a different storage partition starting with tasmota v12 not compatible with esphome
If you have safe boot partition, then you need to serial flash it
There was a message during the update “Switching to Safeboot” and after the update before the reboot there was a red text “SAFEBOOT” above the menu. So I think I have it, whatever it is.
Does that mean there is no way to go from Tasmota to ESPHome using OTA? Or do I simply need to do something different?
Does that explain why my OTA updates have no effect?
Same problem here.
“Modern format” produces the “Invalid file signature” error.
“Legacy format” works after a couple of tries but later updates via ESPHome produce the following:
INFO Successfully compiled program.
INFO Resolving IP address of esp-j1.local
INFO -> 192.168.2.184
INFO Uploading /data/build/esp-j1/.pioenvs/esp-j1/firmware.bin (860976 bytes)
Uploading: [ ] 0%
ERROR Error sending data: [Errno 104] Connection reset by peer
Monitoring log output in a separate web page I can observe the following:
INFO Reading configuration /config/esphome/esp-j1.yaml...
INFO Starting log output from esp-j1.local using esphome API
INFO Successfully connected to esp-j1.local
[21:25:22][I][app:102]: ESPHome version 2023.10.6 compiled on Nov 5 2023, 21:04:36
[21:25:22][C][wifi:546]: WiFi:
[21:25:22][C][wifi:382]: Local MAC: 84:F7:03:EC:B7:68
[21:25:22][C][wifi:383]: SSID: [redacted]
[21:25:22][C][wifi:384]: IP Address: 192.168.2.184
[21:25:22][C][wifi:386]: BSSID: [redacted]
[21:25:22][C][wifi:387]: Hostname: 'esp-j1'
[21:25:22][C][wifi:389]: Signal strength: -7 dB ▂▄▆█
[21:25:22][C][wifi:393]: Channel: 1
[21:25:22][C][wifi:394]: Subnet: 255.255.255.0
[21:25:22][C][wifi:395]: Gateway: 192.168.2.3
[21:25:22][C][wifi:396]: DNS1: 192.168.2.3
[21:25:22][C][wifi:397]: DNS2: 192.168.2.2
[21:25:22][C][logger:416]: Logger:
[21:25:22][C][logger:417]: Level: DEBUG
[21:25:22][C][logger:418]: Log Baud Rate: 115200
[21:25:22][C][logger:420]: Hardware UART: UART0
[21:25:22][C][captive_portal:088]: Captive Portal:
[21:25:22][C][mdns:115]: mDNS:
[21:25:22][C][mdns:116]: Hostname: esp-j1
[21:25:22][C][ota:097]: Over-The-Air Updates:
[21:25:31][I][ota:117]: Boot seems successful, resetting boot loop counter.
[21:25:32][D][esp32.preferences:114]: Saving 1 preferences to flash...
[21:25:32][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[21:27:09][D][ota:151]: Starting OTA Update from 192.168.2.217...
[21:27:17][D][ota:320]: OTA in progress: 0.1%
WARNING esp-j1.local: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for esp-j1.local
WARNING Disconnected from API
INFO Successfully connected to esp-j1.local
[21:32:27][I][ota:117]: Boot seems successful, resetting boot loop counter.
[21:32:27][D][esp32.preferences:114]: Saving 1 preferences to flash...
[21:32:27][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed