ESPHome DS18B20 sensors not appearing as entities

I see my Dallas sensors in ESPHome logs sending values, but those sensors are not visible to HA as entities?
I have made every restart and reinstall, nothing helps.

config:

esphome:
  name: esp32-1-wire

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
#  encryption:
#    key: "KJcZbr8WENLFOnKtnemb7GaCN7sT2Rr+JvTb6BhHW4M="

ota:
  password: "aabc8fb86a6982135df0371d3972dd56"

wifi:
  ssid: Antsumaja
  password: xxxxxxxx
#  ssid: !secret wifi_ssid
#  password: !secret wifi_password

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.40
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32-1-Wire Fallback Hotspot"
    password: "ZlwJStbemSmo"

captive_portal:

dallas:
  pin: 23
  update_interval: 10s

# Individual sensors
sensor:
  - platform: dallas
    address: 0xAF0416A0C0D7FF28
    name: "Temp-04"
  - platform: dallas
    address: 0xBB0516A0B4DAFF28
    name: "Temperature-1"
  - platform: dallas
    address: 0x160416A0BD02FF28
    name: "Temperature-2"
  - platform: dallas
    address: 0xe30416A098FCFF28
    name: "Temperature-3"

Log:

INFO Reading configuration /config/esphome/esp32-1-wire.yaml...
INFO Starting log output from 192.168.1.40 using esphome API
INFO Successfully connected to 192.168.1.40
[13:16:36][I][app:102]: ESPHome version 2022.5.0 compiled on May 19 2022, 12:52:32
[13:16:36][C][wifi:491]: WiFi:
[13:16:36][C][wifi:353]:   Local MAC: 34:86:5D:3B:62:F8
[13:16:36][C][wifi:354]:   SSID: 'Antsumaja'[redacted]
[13:16:36][C][wifi:355]:   IP Address: 192.168.1.40
[13:16:36][C][wifi:357]:   BSSID: 20:B0:01:E6:17:DD[redacted]
[13:16:36][C][wifi:358]:   Hostname: 'esp32-1-wire'
[13:16:36][C][wifi:360]:   Signal strength: -67 dB ▂▄▆█
[13:16:36][C][wifi:364]:   Channel: 11
[13:16:36][C][wifi:365]:   Subnet: 255.255.255.0
[13:16:36][C][wifi:366]:   Gateway: 192.168.1.1
[13:16:36][C][wifi:367]:   DNS1: 0.0.0.0
[13:16:36][C][wifi:368]:   DNS2: 0.0.0.0
[13:16:36][C][logger:274]: Logger:
[13:16:36][C][logger:275]:   Level: DEBUG
[13:16:36][C][logger:276]:   Log Baud Rate: 115200
[13:16:36][C][logger:277]:   Hardware UART: UART0
[13:16:36][C][dallas.sensor:075]: DallasComponent:
[13:16:36][C][dallas.sensor:076]:   Pin: GPIO23
[13:16:36][C][dallas.sensor:077]:   Update Interval: 10.0s
[13:16:36][D][dallas.sensor:082]:   Found sensors:
[13:16:36][D][dallas.sensor:084]:     0xe30416a098fcff28
[13:16:36][D][dallas.sensor:084]:     0x160416a0bd02ff28
[13:16:36][D][dallas.sensor:084]:     0xbb0516a0b4daff28
[13:16:36][D][dallas.sensor:084]:     0xaf0416a0c0d7ff28
[13:16:36][C][dallas.sensor:089]:   Device 'Temp-04'
[13:16:36][C][dallas.sensor:089]:     Device Class: 'temperature'
[13:16:36][C][dallas.sensor:089]:     State Class: 'measurement'
[13:16:36][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[13:16:36][C][dallas.sensor:089]:     Accuracy Decimals: 1
[13:16:36][C][dallas.sensor:097]:     Address: 0xaf0416a0c0d7ff28
[13:16:36][C][dallas.sensor:098]:     Resolution: 12
[13:16:36][C][dallas.sensor:089]:   Device 'Temperature-1'
[13:16:36][C][dallas.sensor:089]:     Device Class: 'temperature'
[13:16:36][C][dallas.sensor:089]:     State Class: 'measurement'
[13:16:36][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[13:16:36][C][dallas.sensor:089]:     Accuracy Decimals: 1
[13:16:36][C][dallas.sensor:097]:     Address: 0xbb0516a0b4daff28
[13:16:36][C][dallas.sensor:098]:     Resolution: 12
[13:16:36][C][dallas.sensor:089]:   Device 'Temperature-2'
[13:16:36][C][dallas.sensor:089]:     Device Class: 'temperature'
[13:16:36][C][dallas.sensor:089]:     State Class: 'measurement'
[13:16:36][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[13:16:36][C][dallas.sensor:089]:     Accuracy Decimals: 1
[13:16:36][C][dallas.sensor:097]:     Address: 0x160416a0bd02ff28
[13:16:36][C][dallas.sensor:098]:     Resolution: 12
[13:16:36][C][dallas.sensor:089]:   Device 'Temperature-3'
[13:16:36][C][dallas.sensor:089]:     Device Class: 'temperature'
[13:16:36][C][dallas.sensor:089]:     State Class: 'measurement'
[13:16:36][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[13:16:36][C][dallas.sensor:089]:     Accuracy Decimals: 1
[13:16:36][C][dallas.sensor:097]:     Address: 0xe30416a098fcff28
[13:16:36][C][dallas.sensor:098]:     Resolution: 12
[13:16:36][C][captive_portal:088]: Captive Portal:
[13:16:36][C][mdns:084]: mDNS:
[13:16:36][C][mdns:085]:   Hostname: esp32-1-wire
[13:16:36][C][ota:085]: Over-The-Air Updates:
[13:16:36][C][ota:086]:   Address: 192.168.1.40:3232
[13:16:36][C][ota:089]:   Using Password.
[13:16:36][C][api:138]: API Server:
[13:16:36][C][api:139]:   Address: 192.168.1.40:6053
[13:16:36][C][api:143]:   Using noise encryption: NO
[13:16:41][D][dallas.sensor:144]: 'Temp-04': Got Temperature=23.5°C
[13:16:41][D][sensor:125]: 'Temp-04': Sending state 23.50000 °C with 1 decimals of accuracy
[13:16:41][D][dallas.sensor:144]: 'Temperature-1': Got Temperature=23.2°C
[13:16:41][D][sensor:125]: 'Temperature-1': Sending state 23.18750 °C with 1 decimals of accuracy
[13:16:41][D][dallas.sensor:144]: 'Temperature-2': Got Temperature=23.2°C
[13:16:41][D][sensor:125]: 'Temperature-2': Sending state 23.25000 °C with 1 decimals of accuracy
[13:16:41][D][dallas.sensor:144]: 'Temperature-3': Got Temperature=22.9°C
[13:16:41][D][sensor:125]: 'Temperature-3': Sending state 22.93750 °C with 1 decimals of accuracy
[13:16:51][D][dallas.sensor:144]: 'Temp-04': Got Temperature=23.5°C
[13:16:51][D][sensor:125]: 'Temp-04': Sending state 23.50000 °C with 1 decimals of accuracy
[13:16:51][D][dallas.sensor:144]: 'Temperature-1': Got Temperature=23.2°C
[13:16:51][D][sensor:125]: 'Temperature-1': Sending state 23.18750 °C with 1 decimals of accuracy
[13:16:51][D][dallas.sensor:144]: 'Temperature-2': Got Temperature=23.2°C
[13:16:51][D][sensor:125]: 'Temperature-2': Sending state 23.25000 °C with 1 decimals of accuracy
[13:16:51][D][dallas.sensor:144]: 'Temperature-3': Got Temperature=22.9°C
[13:16:51][D][sensor:125]: 'Temperature-3': Sending state 22.93750 °C with 1 decimals of accuracy

Answering myself :slight_smile:
Deleted this ESPHome device from HA,
restarted and after that discovered ESPHome device have also 4 entities

1 Like

For anyone with the same issue above - I can confirm this solution worked for me as well.

I have a Wemos d1 mini, with a pressure sensore attached for a pool pump pressure monitor.

Flashed the D1 with ESPHome, created the device in ESPHome, and connecting to the device via ESPHome the logs showed connection and data from the sensor streaming.

Jump into the dashboard device to set up a card, select the entity, the entity appears but no data. :frowning:

Followed the solution from ratsepa as above and bingo- its live.

Thansk for posting your solution ratsepa, It was doing my head in.

Jarrod.

2 Likes

I had the same issue and the solution worked. Thank you