Can not connect from Esphome dashboard

Hello,

I have 3 Xiaomi Bedside Lamp wirh esphome firmware. I change some values in the YML and now I can not connect from ESPHome dashboard.

From Home Assitsant all is OK.

This is the error message:

INFO ESPHome 2024.3.1
INFO Reading configuration /config/bedside-lamp-xxx.yaml...
INFO Starting log output from 172.16.8.72 using esphome API
INFO Successfully connected to bedside-lamp-xxx @ 172.16.8.xx in 0.057s
WARNING bedside-lamp-xxx @ 172.16.8.72: Connection error occurred: bedside-lamp-xx @ 172.16.8.xx: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.3.1).
WARNING Can't connect to ESPHome API for bedside-lamp-xxx @ 172.16.8.xx: bedside-lamp-xxx @ 172.16.8.xx: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.3.1). (HandshakeAPIError)
INFO Trying to connect to bedside-lamp-xxx @ 172.16.8.xx in the background

This is the YML:

esphome:
  name: bedside-lamp-xxx
  friendly_name: bedside-lamp-xxx

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

ota:
  password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Bedside-Lamp-xxx"
    password: "xxxxxxxxxxx"

captive_portal:

How could I get connection from Esphome dashboard to upgrade or see the logs?

Kind regards.