ESPhome + ESP8266 + DS18B20 sensor problem

Hello all,

this is my second topic, so please, just let me know if am doing something wrong in this post.

I would like connect my Wemos EP8266 board with Hassio and ESPhome, to measure temperature, but I have small problems with it.

Like it is written, am using Wemos ESP8266 Wroom-02 board wired with Dallas DS18B20 temperature sensor. I will try to give all informations, that you can check and help me to see, where am doing it wrong.

In ESPhome am using this code:

esphome:
  name: temperatura
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "ludvik2"
  password: "metod1234"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Temperatura Fallback Hotspot"
    password: "q7vN22bPvGD4"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

# Example configuration entry
dallas:
  - pin: GPIO4

# Individual sensors
sensor:
  - platform: dallas
    address: 0x1C0000031EDD2A28
    name: "temperatura"

The code is taken from ESPhome page for Dallas sensors.

Am using this type of wiring:

Code is flashed on ESP8266 board with esphome-flasher, and seems, that code is sucessfully uploaded to ESP8266 board, but I dont get any readings of temperature, this is a log from flasher:

And in this point, I dont know, what the next step is, so if anyone knows anything and helps me solve the problem, I would bi very happy.

Regards.

You’re using the sensor address from the esphome example. Look again at how to find the address for your device on esphome page Getting Sensor IDs .
Replace the address with the addrrss in your logs - “found sensor”

5 Likes
  name: temperatura
  platform: ESP8266 <---Try "ESP32"
  board: esp01_1m  <---- Try "lolin32"

or

  name: temperatura
  platform: ESP8266 
  board: esp01_1m <---- Try "esp_wroom_02"

Reference: https://github.com/esphome/esphome-core/issues/121

Solution from Holdestmate was correct!

I used sensor address from example, after changing address with correct sensor address, now
I get temperature datas.

Thanks.