I followed every step using the code from Read/Write bootloader, partition table and any partition via OTA by angelnu · Pull Request #5535 · esphome/esphome · GitHub
ans still got:
19:38:21 [I] [ota:464]
OTA type is 1 and size is 1409776 bytes
19:38:21 [E] [ota:110]
Aborting to avoid overriding running partition
19:38:21 [E] [ota:112]
New partition - addr: 0x0f0000; size: 0x530000
19:38:21 [E] [ota:114]
Running partition - addr: 0x0f0000; size: 0x530000
19:38:21 [I] [ota:282]
PARTITION TABLE
19:38:21 [I] [ota:283]
===============
19:38:21 [I] [ota:289]
type: 0x01; subtype: 0x00; addr: 0x010000; size: 0x002000; label: ota
19:38:21 [I] [ota:289]
type: 0x01; subtype: 0x02; addr: 0x014000; size: 0x00c000; label:
19:38:21 [I] [ota:289]
type: 0x00; subtype: 0x00; addr: 0x020000; size: 0x0d0000; label: safe
19:38:21 [I] [ota:289]
type: 0x00; subtype: 0x10; addr: 0x0f0000; size: 0x530000; label:
19:38:21 [I] [ota:289]
type: 0x01; subtype: 0x82; addr: 0x620000; size: 0x1e0000;
so I’m not sure if there is anyway to make it work with OTA without using UART.