Onewire temprature sensor with esp home doens't work (yet)

Hi everybody,
I want to connect an waterproof temprature sensor to my esp with esphome on it. I have other sensors on my ESP and that works, but with the onewire sensor I have no luck. I have connected the sensor to pin 5, and this is my code:

one_wire:
  - platform: gpio
    pin: 5
    name: "Temprature sensor"

I am probably missing something, but I don’t know what :wink:

already thanks!

Hi, you need both one_wire and the Dallas device setup for the sensor to operate:

Also follow this method to obtain the device ID:

Thanks!

it works now. totally forgot the dallas step.