OTA Error with esp8266 d1 mini, ld2410

Error: RROR Error receiving acknowledge chunk OK: timed out
it happend when I do OTA update esphome version 1.9.0 to 1.9.1
Could you please support?

YAML:

substitutions:
  name: d1minitc-mac-2c43-ip-31-56
  friendly_name: 4-D1.Mini.TC-Mac.2C43-IP.31.56
  ssid: "D1Minitc-Mac-2C43-Ip-31-56"
  static_ip : 192.168.31.56
  board: d1_mini 
  presence_output_pin: GPIO4 #D2

#######################################
esphome:
  name: ${name} 
  friendly_name: ${friendly_name} 

esp8266:
  board: ${board} 
  framework:
    platform_version  : espressif8266

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: !secret api_encryption_key 

ota:
  - platform: esphome
    password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: ${static_ip} 
    gateway: 192.168.31.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: ${ssid} 
    password: !secret ap_password

captive_portal:

web_server:
  port: 80

##################################################

uart:
  id: uart5
  tx_pin: TX
  rx_pin: RX
  baud_rate: 256000
  parity: NONE
  stop_bits: 1


ld2410:

switch:
  - platform: ld2410
    engineering_mode:
      name: "engineering mode"
    bluetooth:
      name: "control bluetooth"

binary_sensor:  
# Chân tín hiệu cảm biến riêng
  - platform: gpio
    pin: ${presence_output_pin}
    name: "Out Pin Presence Sensor"
    device_class: motion
    
# binary_sensor:
  - platform: ld2410
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
    out_pin_presence_status:
      name: out pin presence status


button:
  - platform: ld2410
    factory_reset:
      name: "factory reset"
    restart:
      name: "restart"
    query_params:
      name: query params

select:
  - platform: ld2410
    distance_resolution:
      name: "distance resolution"
    baud_rate:
      name: "baud rate"
    light_function:
      name: light function
    out_pin_level:
      name: out pin level

text_sensor:
  - platform: ld2410
    version:
      name: "firmware version"
    mac_address:
      name: "mac address"

number:
  - platform: ld2410
    timeout:
      name: timeout
    light_threshold:
      name: light threshold
    max_move_distance_gate:
      name: max move distance gate
    max_still_distance_gate:
      name: max still distance gate
    g0:
      move_threshold:
        name: g0 move threshold
      still_threshold:
        name: g0 still threshold
    g1:
      move_threshold:
        name: g1 move threshold
      still_threshold:
        name: g1 still threshold
    g2:
      move_threshold:
        name: g2 move threshold
      still_threshold:
        name: g2 still threshold
    g3:
      move_threshold:
        name: g3 move threshold
      still_threshold:
        name: g3 still threshold
    g4:
      move_threshold:
        name: g4 move threshold
      still_threshold:
        name: g4 still threshold
    g5:
      move_threshold:
        name: g5 move threshold
      still_threshold:
        name: g5 still threshold
    g6:
      move_threshold:
        name: g6 move threshold
      still_threshold:
        name: g6 still threshold
    g7:
      move_threshold:
        name: g7 move threshold
      still_threshold:
        name: g7 still threshold
    g8:
      move_threshold:
        name: g8 move threshold
      still_threshold:
        name: g8 still threshold

sensor:
  - platform: ld2410
    light:
      name: light
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance
    g0:
      move_energy:
        name: g0 move energy
      still_energy:
        name: g0 still energy
    g1:
      move_energy:
        name: g1 move energy
      still_energy:
        name: g1 still energy
    g2:
      move_energy:
        name: g2 move energy
      still_energy:
        name: g2 still energy
    g3:
      move_energy:
        name: g3 move energy
      still_energy:
        name: g3 still energy
    g4:
      move_energy:
        name: g4 move energy
      still_energy:
        name: g4 still energy
    g5:
      move_energy:
        name: g5 move energy
      still_energy:
        name: g5 still energy
    g6:
      move_energy:
        name: g6 move energy
      still_energy:
        name: g6 still energy
    g7:
      move_energy:
        name: g7 move energy
      still_energy:
        name: g7 still energy
    g8:
      move_energy:
        name: g8 move energy
      still_energy:
        name: g8 still energy

Log:

INFO ESPHome 2024.9.1 INFO Reading configuration /config/esphome/d1minitc-mac2c43-ip3156.yaml… INFO Generating C++ source… INFO Compiling app… Processing d1minitc-mac-2c43-ip-31-56 (board: d1_mini; framework: arduino; platform: espressif8266) -------------------------------------------------------------------------------- HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash Dependency Graph |-- ESPAsyncTCP-esphome @ 2.0.0 |-- ESPAsyncWebServer-esphome @ 3.2.2 |-- DNSServer @ 1.1.1 |-- ESP8266WiFi @ 1.0 |-- ESP8266mDNS @ 1.2 |-- noise-c @ 0.1.6 |-- ArduinoJson @ 6.18.5 RAM: [===== ] 49.5% (used 40520 bytes from 81920 bytes) Flash: [====== ] 55.7% (used 581537 bytes from 1044464 bytes) Building .pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.bin esp8266_copy_factory_bin([“.pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.bin”], [“.pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.elf”]) esp8266_copy_ota_bin([“.pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.bin”], [“.pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.elf”]) ========================= [SUCCESS] Took 10.67 seconds ========================= INFO Successfully compiled program. INFO Connecting to 192.168.31.56 INFO Uploading /data/build/d1minitc-mac-2c43-ip-31-56/.pioenvs/d1minitc-mac-2c43-ip-31-56/firmware.bin (585696 bytes) INFO Compressed to 396391 bytes ERROR Error receiving acknowledge chunk OK: timed out

Have you tried serially flashing?

As an aside, I actually started getting this error a couple times on a current project (I attributed it to something else, but now I’m wondering if it’s a 2024.9 issue?) and just flashed it via serial since it’s on my bench.

Serial flash is OK. So it might be issue of esphome?