esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

NSPanel tasmota to esphome fails OTA #4289

Closed rfaelens closed 7 months ago

rfaelens commented 1 year ago

The problem

On an NSPanel EU version, I first flashed tasmota using the tasmota web installer. I then downloaded a Legacy image of esphome, and flashed through the tasmota web interface. Esphome booted succesfully.

However, a subsequent esphome OTA update failed with Connection reset by peer at 1%. The device logs stated "OTA update starting, 0.1%" and then also aborts with Connection reset by peer. I had to flash esphome through serial first, before OTA worked on subsequent attempts.

Probably flashing esphome through the tasmota web interface does not allow changing the partition table? In my view, there are two issues here:

Feel free to close this issue if it should be reported at Tasmota instead.

Which version of ESPHome has the issue?

2023.2.4

What type of installation are you using?

Docker

What platform are you using?

ESP32

Board

Sonoff NSPanel

Anything in the logs that might be useful for us?

Logs from esphome logger:

[22:18:13][D][ota:147]: Starting OTA Update from ::FFFF:192.168.10.2...
[22:18:13][D][ota:316]: OTA in progress: 0.1%
WARNING 192.168.10.118: Connection error occurred: [Errno 104] Connection reset by peer

Logs from esphome upload:

INFO Reading configuration nspanel-black.yaml...
INFO Connecting to 192.168.10.118
INFO Uploading .esphome/build/nspanel-black/.pioenvs/nspanel-black/firmware.bin (856576 bytes)
Uploading: [=                                                           ] 1%

ERROR Error sending data: [Errno 104] Connection reset by peer
hapklaar commented 1 year ago

I had to flash esphome through serial first, before OTA worked on subsequent attempts.

I had the same issue, thanks for also supplying the solution.

fabiobrolo commented 7 months ago

Have you found any workaround to fix this issue?

rfaelens commented 7 months ago

Yes! The issue was in wifi sleep settings. Disabling those allowed the nspanel to work well

morpheus-pl commented 6 months ago

Yes! The issue was in wifi sleep settings. Disabling those allowed the nspanel to work well

Where exactly do You change that ?