Lost Connection every 20sec

Hello,
i have an simple setup: ESP 8266 with several DS18B20 sensors. I use ESPHome and the API connection to Home Assistant.

Everything works well:
img1

But every 20 sec the data of all sensors is set to yellow:
img2

And after a minimal amount of time the display swith to normal.

The Update intervall of the Dallas Component is set to 15 sec.

What can i do to change this behavior?

This is my config:

esphome:
  name: heizung
  platform: ESP8266
  board: nodemcu

wifi:
  ssid: "SSID"
  password: "passwd"

logger:

api:

ota:

time:
  - platform: homeassistant
    id: esptime

dallas:
  - pin: D2
    update_interval: 15s

sensor:
  - platform: dallas
    address: 0x4301144FAB2DAA28
    name: "Temp Heizkörper Vorlauf"
    id: temp_heizkorper_vorlauf
  - platform: dallas
    address: 0x620114500249AA28
    name: "Temp Heizkörper Rücklauf"
    id: temp_heizkorper_rucklauf
  - platform: dallas
    address: 0x0401144FA6CDAA28
    name: "Temp Kessel Bypass"
    id: temp_kessel_bypass

can you please post your esphome log.

This is the esphome log:

[08:17:40][I][app:100]: ESPHome version 1.14.3 compiled on Feb  1 2020, 16:24:24
[08:17:40][C][wifi:415]: WiFi:
[08:17:40][C][wifi:283]:   SSID: 'SSID'
[08:17:40][C][wifi:284]:   IP Address: 192.168.#.#
[08:17:40][C][wifi:286]:   BSSID: FC:EC:DA:8A:51:3A
[08:17:40][C][wifi:287]:   Hostname: 'heizung'
[08:17:40][C][wifi:291]:   Signal strength: -63 dB b'[08:17:40]\x1b[0;35m[C][wifi:291]:   Signal strength: -63 dB \x1b[0;33m\xe2\x96\x82\xe2\x96\x84\xe2\x96\x86\x1b[0;37m\xe2\x96\x88\x1b[0m\x1b[0m'
[08:17:40][C][wifi:295]:   Channel: 11
[08:17:40][C][wifi:296]:   Subnet: 255.255.255.0
[08:17:40][C][wifi:297]:   Gateway: 192.168.#.#
[08:17:40][C][wifi:298]:   DNS1: 192.168.#.##
[08:17:40][C][wifi:299]:   DNS2: 192.168.#.#
[08:17:41][C][logger:175]: Logger:
[08:17:41][C][logger:176]:   Level: DEBUG
[08:17:41][C][logger:177]:   Log Baud Rate: 115200
[08:17:41][C][logger:178]:   Hardware UART: UART0
[08:17:41][C][homeassistant.time:010]: Home Assistant Time:
[08:17:41][C][homeassistant.time:011]:   Timezone: 'CET-1CEST-2,M3.5.0/2,M10.4.0/3'
[08:17:41][C][dallas.sensor:070]: DallasComponent:
[08:17:41][C][dallas.sensor:071]:   Pin: GPIO4 (Mode: INPUT)
[08:17:41][C][dallas.sensor:072]:   Update Interval: 15.0s
[08:17:41][D][dallas.sensor:077]:   Found sensors:
[08:17:41][D][dallas.sensor:080]:     0x620114500249AA28
[08:17:41][D][dallas.sensor:080]:     0x0401144FA6CDAA28
[08:17:41][D][dallas.sensor:080]:     0x4301144FAB2DAA28
[08:17:41](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:41](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:41](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:41](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:41][C][dallas.sensor:085]:   Device 'Temp Heizk÷rper Vorlauf'
[08:17:41][C][dallas.sensor:085]:     Unit of Measurement: '░C'
[08:17:41][C][dallas.sensor:085]:     Accuracy Decimals: 1
[08:17:41][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[08:17:41][C][dallas.sensor:093]:     Address: 0x4301144FAB2DAA28
[08:17:41][C][dallas.sensor:094]:     Resolution: 12
[08:17:41][C][dallas.sensor:085]:   Device 'Temp Heizk÷rper R³cklauf'
[08:17:41][C][dallas.sensor:085]:     Unit of Measurement: '░C'
[08:17:41][C][dallas.sensor:085]:     Accuracy Decimals: 1
[08:17:41][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[08:17:41][C][dallas.sensor:093]:     Address: 0x620114500249AA28
[08:17:41][C][dallas.sensor:094]:     Resolution: 12
[08:17:41][C][dallas.sensor:085]:   Device 'Temp Kessel Bypass'
[08:17:41][C][dallas.sensor:085]:     Unit of Measurement: '░C'
[08:17:41][C][dallas.sensor:085]:     Accuracy Decimals: 1
[08:17:41][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[08:17:42][C][dallas.sensor:093]:     Address: 0x0401144FA6CDAA28
[08:17:42][C][dallas.sensor:094]:     Resolution: 12
[08:17:42][C][ota:029]: Over-The-Air Updates:
[08:17:42][C][ota:030]:   Address: heizung.local:8266
[08:17:42][C][api:095]: API Server:
[08:17:42][C][api:096]:   Address: heizung.local:6053
[08:17:49][D][dallas.sensor:148]: 'Temp Kessel Bypass': Got Temperature=22.2░C
[08:17:49][D][sensor:092]: 'Temp Kessel Bypass': Sending state 22.25000 ░C with 1 decimals of accuracy
[08:17:49](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:49](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:49](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:49](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:17:49][D][dallas.sensor:148]: 'Temp Heizk÷rper R³cklauf': Got Temperature=28.5░C
[08:17:49][D][sensor:092]: 'Temp Heizk÷rper R³cklauf': Sending state 28.50000 ░C with 1 decimals of accuracy
[08:17:49][D][dallas.sensor:148]: 'Temp Heizk÷rper Vorlauf': Got Temperature=30.2░C
[08:17:49][D][sensor:092]: 'Temp Heizk÷rper Vorlauf': Sending state 30.18750 ░C with 1 decimals of accuracy
[08:18:04][D][dallas.sensor:148]: 'Temp Kessel Vorlauf': Got Temperature=30.4░C
[08:18:04][D][dallas.sensor:148]: 'Temp Kessel Bypass': Got Temperature=22.3░C
[08:18:04][D][sensor:092]: 'Temp Kessel Bypass': Sending state 22.31250 ░C with 1 decimals of accuracy
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:04][D][dallas.sensor:148]: 'Temp Heizk÷rper Vorlauf': Got Temperature=30.2░C
[08:18:04][D][sensor:092]: 'Temp Heizk÷rper Vorlauf': Sending state 30.25000 ░C with 1 decimals of accuracy
[08:18:19][D][dallas.sensor:148]: 'Temp Kessel Bypass': Got Temperature=22.3░C
[08:18:19][D][sensor:092]: 'Temp Kessel Bypass': Sending state 22.31250 ░C with 1 decimals of accuracy
[08:18:19](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:19](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:19](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:19](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:19][D][dallas.sensor:148]: 'Temp Heizk÷rper R³cklauf': Got Temperature=28.5░C
[08:18:19][D][sensor:092]: 'Temp Heizk÷rper R³cklauf': Sending state 28.50000 ░C with 1 decimals of accuracy
[08:18:19][D][dallas.sensor:148]: 'Temp Heizk÷rper Vorlauf': Got Temperature=30.3░C
[08:18:19][D][sensor:092]: 'Temp Heizk÷rper Vorlauf': Sending state 30.31250 ░C with 1 decimals of accuracy
[08:18:34][D][dallas.sensor:148]: 'Temp Kessel Bypass': Got Temperature=22.2░C
[08:18:34][D][sensor:092]: 'Temp Kessel Bypass': Sending state 22.25000 ░C with 1 decimals of accuracy
[08:18:34](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:34](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:34](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:34](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[08:18:34][D][dallas.sensor:148]: 'Temp Heizk÷rper R³cklauf': Got Temperature=28.5░C
[08:18:34][D][sensor:092]: 'Temp Heizk÷rper R³cklauf': Sending state 28.50000 ░C with 1 decimals of accuracy
[08:18:34][D][dallas.sensor:148]: 'Temp Heizk÷rper Vorlauf': Got Temperature=30.3░C
[08:18:34][D][sensor:092]: 'Temp Heizk÷rper Vorlauf': Sending state 30.31250 ░C with 1 decimals of accuracy

I have re-compiled (with no changes but some libs where updated) the firmware and now the problem is gone.

The problem is still alive. As long as i run “esphome.exe heizung.yaml logs” over wifi from my desktop everything is ok. But when i stop the logs the problem returns.

Hi, i have exactly the same issui, did you fix it with your ds18b20?

Do you have the Sensors connected to +3.3V or +5V?
and what value of Resistor do you connected between DATA and VCC? 4.7KOhm?

I have connected 4.7KOhm between 3.3V and DATA, the sensors are also connected to 3.3V.