ESPHomeAPI - Reading scratchpad from Dallas Sensor failed error (DS18b20)

I’m suddenly getting the following error on my NodeMCU - I’ve searched for info on it but failed. Anyone know what it means and how to correct it please?

[12:54:55][E][sensor.dallas:282]: Reading scratchpad from Dallas Sensor failed
[12:54:55][D][sensor.dallas:158]: 'Ambient Air Temperature': Got Temperature=12.0\xb0C
[12:54:55][D][sensor.dallas:158]: 'Equipment Cabinet Temperature': Got Temperature=19.2\xb0C

This is from the log function on ESPHomeAPI. Strangely it appears to be reading the temperatures so I presume it is not a 1-wire error?

Thanks.

I’ve replaced the NodeMCU and it is still not working but at least I know the NodeMCU isn’t the problem.

Have you tried slowing down the read time with update_interval:?

The sensor takes up to 750ms to calculate the temperature and write it to the scratchpad.

1 Like

Thanks for your help, Tom!

Found it - I made a change to the IP address on that module and, in doing so, managed to corrupt the address of one of the DS18b20s!

Only when I reviewed the code carefully did I spot it - I looked over a few times first!

Hope this helps someone else in the future.

Richard.

2 Likes

I´ve tried with dinamic and static IP, but none worked.
Have you tested something else?

Thanks, made me re-check the yaml.
Fat fingered the DS18b20 address for one of three sensors in the code.

I too hade the same error. I had manage to miss one character one copy-pasta the address. For future reference - re-copy paste the address!

Same here, thanks guys, you saved me… Wrong copy paste of the sensor’s address

Thanks for the tip, that is what I did wrong as well.
I forgot I had changed the Dallas sensor, and had the old one listed in my saved yaml.
Working well now!