ESP-WROOM-32 D1 Mini error "wrong chip id"

I got a few of these boards from aliexpress.
Was able to connect using USB to my laptop then flash using esphome web. It successfully install, but after install does not connect to wifi, and checking logs shows error message “wrong chip id 0x3288”.

I tried all the board types mentioned in ESP32 board from Aliexpress yaml config (mhetesp32minikit, wemos_d1_mini32, ttgo-t7-v14-mini32, esp-wrover-kit), and all have the same problem. Any ideas for how to fix this?

Can u post the Yaml from ESPHOME for this board?

esphome:
  name: theater-couch-new
  friendly_name: Theater Couch New
  platform: esp32
  board: wemos_d1_mini32

logger:

api:
  encryption:
    key: !secret encryption_key

ota:
  password: !secret ota_password

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

  ap:
    ssid: "Theater Couch Hotspot"
    password: !secret fallback_hotspot_password

captive_portal:

If you have the ability to run esptool.py in the command line on your laptop, run the “flash_id” option. This will tell you what chip is there.

python esptool.py -p COM? -b 921600 flash_id

The result will help tell what the platform and board should be in the YAML.

Thanks for tip, looks like chip is ESP32-D0WD-V3.

Output was:

Connecting.......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.........
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: <stubbed>
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Manufacturer: 54
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

Looks like the board wasn’t the problem, but found ESP32-D0WD on Sonoff THR316 · Issue #2024 · esphome/feature-requests · GitHub which mentions that it needs to be plugged into AC. Plugging into AC seemed to solve the problem for me.