I try to install one_wire on an ESP32 but get errors

i try to use one_wire: with ESP32.
after captive_portal: I just add

captive_portal:

one_wire:
  - platform: gpio
    pin: GPIO23

and get this error

INFO Reading configuration /home/utente/esphome/famar-monitor-test.yaml…
Failed config

one_wire: [source /home/utente/esphome/famar-monitor-test.yaml:32]

Component not found: one_wire.

  • platform: gpio
    pin: GPIO23

any ideas ? is one_wire only for the GPIO of the Rpi4 ?

Share your full compile logs and full yaml. What version of ESPHome are you running? What platform are you using?

I just did a test compile with 2025.11 and your one-wire yaml works fine.

Hello Daryl

Thank You for your quick answer.
I have ESPhome running under Ubuntu24.4 with (venv) $ esphome dashboard ~/esphome

my YAML is :

esphome:
  name: famar-monitor-test

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

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

ota:
  password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Famar-Monitor-Test"
    password: "xxxxxxxxxxxxxx"

captive_portal:

one_wire:
  - platform: gpio
    pin: GPIO23

compilation :
INFO Reading configuration /home/utente/esphome/famar-monitor-test.yaml…
Failed config

one_wire: [source /home/utente/esphome/famar-monitor-test.yaml:32]

Component not found: one_wire.

  • platform: gpio
    pin: GPIO23

logoutput :

2025-12-13 09:27:42,782 INFO 200 POST /edit?configuration=famar-monitor-test.yaml (127.0.0.1) 6.24ms
2025-12-13 09:27:42,838 INFO 304 GET /info?configuration=famar-monitor-test.yaml (127.0.0.1) 14.81ms
2025-12-13 09:27:47,639 INFO 101 GET /upload (127.0.0.1) 3.03ms
2025-12-13 09:27:47,685 INFO Running command ‘esphome --dashboard run /home/utente/esphome/famar-monitor-test.yaml --device /dev/ttyUSB0’
2025-12-13 09:27:48,715 INFO Process exited with return code 2

I try to load the firmware without any 1wire components attached.
maybe that is the reason it does not work ?

what about
turning

logger:

into

logger:
  level: debug

so one gets at least some information from the logs?

And I do wonder about what you assume about what should work at all.
Since nothing’s attached nothing would happen apart from the fact that the device might get recognised by HA’s auto detection.

perhaps you could add

web_server:
  port:80

to see if the device is up and running by trying to open it’s IP in a webbrowser?

You likely have so old esphome version, that it doesn’t have gpio one_wire component…

What @Karosm said - your ESPHome version may not have 1-wire.

Let us know this.

Version: 2022.12.3

that may be the reason :slight_smile:

will update and give a feedback after

The component is valid from somewhere in 2024…

1 Like

Thank you for your reply justone.
i could not install anything on the ESP32 because of that error.
I ommitted all the rest of the automation.
my ESPhome and Home-assistant installations were too old :slight_smile:

my installation was (and is) on an 10 year old Pine A64 as server with dietpi.
I tried the official instructions for ESPhome and Home-assistant with docker etc. for two days to no avail, as the hardware is not capable to run that stuff.
I do not even have a HDMI cable for my Rpi4.
I install my servers with ssh and neither of the official methods allow ssh.
At the end, after searching through the instructions I found the cli method to install and managed to reinstall everything from the terminal.
I am quite happy now with the latest versions, cpu on dietpi shows max 5% on Pine A64.

Thank you to all for your quick answers