liflitz
(Liflitz)
December 18, 2022, 2:36pm
1
My Dallas temperature sensors send new values every minute via ESPhome. No issues observable in the ESPhome log. However, since Dec 15 shortly after 8 pm (see graph below) after months of uninterrupted temperature data sending and HA automation scripts reading their states, all my Dallas sensors turn “unknown” when their states are check by automation scripts:
Any idea where this is coming from and how I can fix it? I don’t think I changed anything in my system around the time the Dallas sensors started turning “unknown”.
Home Assistant 2022.12.7
Supervisor 2022.11.2
Operating System 9.4
Frontend 20221213.1 - latest
ESPHome 2022.12.1
zoogara
(Daryl)
December 18, 2022, 8:43pm
2
You are lucky if it works at all:
opened 02:13PM - 14 Dec 22 UTC
### The problem
All my Dallas DS18b20 stopped working after updating to ESPHome… 2022.12.0 - 14th December 2022.
### Which version of ESPHome has the issue?
ESPHome 2022.12.0
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2022.12.4 (update to 12.5. does not work also!)
### What platform are you using?
ESP32
### Board
ESP32 nodeMCU
### Component causing the issue
dallas (unsure!)
### Example YAML snippet
```yaml
esphome:
name: esphome--5
platformio_options:
board_build.f_cpu: 80000000L
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: REDACTED
ota:
password: REDACTED
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
output_power: 15dB
manual_ip:
static_ip: REDACTED
gateway: REDACTED
subnet: REDACTED
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome--5 Fallback Hotspot"
password: REDACTED
captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
dallas:
- pin: 5
i2c:
sda: 21
scl: 22
scan: false #true
id: bus_a
# Individual sensors
sensor:
- platform: dallas
address: 0xae00000bfeee9428
name: "Badezimmer Kaltwasser ESP Dallas Temperature"
accuracy_decimals: 1
filters:
- filter_out: nan
- filter_out: 85.0
##############deleted the rest#########################
```
### Anything in the logs that might be useful for us?
```txt
INFO Reading configuration /config/esphome/esphome--5.yaml...
INFO Detected timezone 'Europe/Vienna'
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from REDACTED using esphome API
INFO Successfully connected to REDACTED
[15:11:08][I][app:102]: ESPHome version 2022.12.0 compiled on Dec 14 2022, 15:03:34
[15:11:08][C][status_led:019]: Status LED:
[15:11:08][C][status_led:020]: Pin: GPIO2
[15:11:08][C][wifi:504]: WiFi:
[15:11:08][C][wifi:362]: Local MAC: REDACTED
[15:11:08][C][wifi:363]: SSID: [redacted]
[15:11:08][C][wifi:364]: IP Address: REDACTED
[15:11:08][C][wifi:366]: BSSID: [redacted]
[15:11:08][C][wifi:367]: Hostname: 'esphome--5'
[15:11:08][C][wifi:369]: Signal strength: -57 dB ▂▄▆█
[15:11:08][C][wifi:373]: Channel: 6
[15:11:08][C][wifi:374]: Subnet: REDACTED
[15:11:08][C][wifi:375]: Gateway: REDACTED
[15:11:08][C][wifi:376]: DNS1: 0.0.0.0
[15:11:08][C][wifi:377]: DNS2: 0.0.0.0
[15:11:08][C][logger:293]: Logger:
[15:11:08][C][logger:294]: Level: DEBUG
[15:11:08][C][logger:295]: Log Baud Rate: 115200
[15:11:08][C][logger:296]: Hardware UART: UART0
[15:11:08][C][i2c.arduino:052]: I2C Bus:
[15:11:08][C][i2c.arduino:053]: SDA Pin: GPIO21
[15:11:08][C][i2c.arduino:054]: SCL Pin: GPIO22
[15:11:08][C][i2c.arduino:055]: Frequency: 50000 Hz
[15:11:08][C][i2c.arduino:058]: Recovery: bus successfully recovered
[15:11:08][C][uptime.sensor:031]: Uptime Sensor 'Badezimmer ESP Uptime'
[15:11:08][C][uptime.sensor:031]: Device Class: 'duration'
[15:11:08][C][uptime.sensor:031]: State Class: 'total_increasing'
[15:11:08][C][uptime.sensor:031]: Unit of Measurement: 'h'
[15:11:08][C][uptime.sensor:031]: Accuracy Decimals: 1
[15:11:08][C][uptime.sensor:031]: Icon: 'mdi:timer-outline'
[15:11:08][C][homeassistant.time:010]: Home Assistant Time:
[15:11:08][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[15:11:08][C][dallas.sensor:075]: DallasComponent:
[15:11:08][C][dallas.sensor:076]: Pin: GPIO5
[15:11:08][C][dallas.sensor:077]: Update Interval: 60.0s
[15:11:08][W][dallas.sensor:080]: Found no sensors!
[15:11:08][C][dallas.sensor:089]: Device 'Badezimmer Kaltwasser ESP Dallas Temperature'
[15:11:08][C][dallas.sensor:089]: Device Class: 'temperature'
[15:11:08][C][dallas.sensor:089]: State Class: 'measurement'
[15:11:08][C][dallas.sensor:089]: Unit of Measurement: '°C'
[15:11:08][C][dallas.sensor:089]: Accuracy Decimals: 1
[15:11:08][C][dallas.sensor:097]: Address: 0xae00000bfeee9428
[15:11:08][C][dallas.sensor:098]: Resolution: 12
############################deleted the rest######################
```
### Additional information
Dallas was by far the most reliable component until now :-(
I will not update my other ESP32 until this is resolved.
You can fiddle with the resistor values - that may improve the situation.
liflitz
(Liflitz)
December 18, 2022, 11:21pm
3
Good to know it’s not only me … thanks!
konarik
(DavidK)
May 29, 2023, 2:13pm
4
I have the similar issue. The ESPHome is sending the data of the sensor, but the sensor does not appear in HA. In logs I can see the sensor (it is the second one which is missing). I have 2 dallas sensors (first one which is shown is probably fake and the second one is original), both seemed to be working OK, but in HA only one is shown. Connected by 3 wires.
"sensor": [
{
"object_id": "teplota_topeni",
"key": 3462380664,
"name": "Teplota topeni",
"unique_id": "dallas-4b3cfff09554f428",
"disabled_by_default": false,
"icon": "",
"entity_category": 0,
"device_class": "temperature",
"unit_of_measurement": "\u00b0C",
"accuracy_decimals": 2,
"force_update": false,
"state_class": 1,
"last_reset_type": 0
},
...
{
"object_id": "teplota_myti",
"key": 180005398,
"name": "Teplota myti",
"unique_id": "dallas-1100000f10413828",
"disabled_by_default": false,
"icon": "",
"entity_category": 0,
"device_class": "temperature",
"unit_of_measurement": "\u00b0C",
"accuracy_decimals": 2,
"force_update": false,
"state_class": 1,
"last_reset_type": 0
}
[16:12:43][D][dallas.sensor:143]: ‘Teplota topeni’: Got Temperature=25.1°C
[16:12:43][D][sensor:109]: ‘Teplota topeni’: Sending state 25.06250 °C with 2 decimals of accuracy
[16:12:43][D][dallas.sensor:143]: ‘Teplota myti’: Got Temperature=79.2°C
[16:12:43][D][sensor:109]: ‘Teplota myti’: Sending state 79.18750 °C with 2 decimals of accuracy
[16:13:22][D][sensor:109]: ‘Teplota technicka mistnost’: Sending state 25.09000 °C with 2 decimals of accuracy
[16:13:22][D][sensor:109]: ‘Tlak technicka mistnost’: Sending state 992.80249 hPa with 2 decimals of accuracy
[16:13:22][D][sensor:109]: ‘Vlhkost technicka mistnost’: Sending state 36.64746 % with 1 decimals of accuracy