Problem integrating DS18B20 with ESP32-C3 Super Mini and ESPHome 2025.3.2

Hi everyone,

I’m trying to integrate a DS18B20 temperature sensor into my Home Assistant setup using ESPHome (version 2025.3.2) on a Synology DS412+ (running in Docker). The sensor is connected to an ESP32-C3 Super Mini as follows:

  • Red → 3.3V
  • Black → GND
  • Yellow → GPIO4

My goal is to read the temperature via ESPHome and show it in Home Assistant.

Here’s my current YAML configuration:

esphome:
  name: esp-mini-1
  friendly_name: ESP_Mini_1

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

logger:

api:
  encryption:
    key: "..."

ota:
  - platform: esphome
    password: "..."

wifi:
  ssid: "MyWiFi"
  password: "MyPassword"

  ap:
    ssid: "Esp-Mini-1 Fallback Hotspot"
    password: "..."

one_wire:
  pin: GPIO4

sensor:
  - platform: dallas_temp
    name: "Temperature"

captive_portal:

No matter what I try, ESPHome keeps throwing this error:

Failed config

one_wire.unknown:
  'one_wire' requires a 'platform' key but it was not specified.

I’ve already tried:

  • Changing the sensor platform to dallas, dallas_temp, one_wire, etc.
  • Adding or removing the platform field under one_wire
  • Updating ESPHome
  • Testing different pins (GPIO1, GPIO4)
  • Checking wiring (which should be fine)

I’m a bit stuck and would really appreciate your help. Has anyone successfully integrated a DS18B20 with an ESP32-C3 recently using the new ESPHome version?

Thanks in advance!

use the docs:

you are missing the platform key just like the error message says

# Example configuration entry
one_wire:
  - platform: gpio
    pin: GPIO4

This was the Solution. Many Thanks for that.

1 Like