Help needed - D1 mini gets ESP01_01m config

I am trying to add my first D1 Mini (bought from AZDelivery " D1 Mini NodeMcu with ESP8266-12F WLAN Module CH340G Lua compatible with Arduino")
to ESPHome.

Problem is it gets setup with
esp8266:
board: esp01_1m
when i onboard it via USB Cable and ESPHome Web.

It comes online in ESPHome but doesn’t give me the amount of I/O’s i need since it does not give me the full feature set of the D1 mini needed for my Stepper Motor project.

What am i doing wrong?

I tried changing the YAML config of the board: from “esp01_01m” to “d1_mini” but then it goes offline.

Edit your yaml.

Hi,
Thanks for the response.

My YAML looks like this

substitutions:
  name: "espstepper"
  friendly_name: espstepper

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  min_version: 2024.6.0
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: dev

esp8266:
  board: esp01_1m

What do i change to interact with it in the correct way?

I already tried changing the board: to d1_mini as that is the board i bought. But this only breaks it and never come online again.

Thank you in advance.

As the docs say, you choose board here. PlatformIO Registry

But you show no logs. No logs = no issue. Changing to d1_mini will not affect wifi.

d1_mini or nodemcuv2 should work.
Do you have something connected to strapping pins?

Fixed. Since i did it wrong i will enter what i did here if it helps anyone else.

Error: When i added the d1 mini by onboarding a new unit via USB Cable and ESPHome Web it made it by default a ESP01_01m config. For some reason changing that to d1_mini and reflashing messed up my config and my board never came back online.

Fix: Adding the config from ESP Home from scratch by creating a bin file for download, selecting the board there and then flashing my d1 mini board worked.

Guess maybe i should have read the manual some more but now it works.

Thanks for your responses.