Page 1 of 1

Dallas 18B20 - value if sensor not connected

Posted: 05 Oct 2021, 22:38
by jgrad
Hi,

I am using 18B20 sensor and task is configured that "Error State Value" parameter is set to 125.
What is happening is that if sensor is not connected value of task is not set to 125 but is 0.

Statistic on task shows:
Address: 28-10-98-23-4f-20-01-c5 [DS18B20]
Resolution: 0
Parasite Powered: false
Samples Read Success: 0
Samples Read Failed: 6774

I am expecting that in such cases value on task is 125 - correct?

BR

Re: Dallas 18B20 - value if sensor not connected

Posted: 05 Oct 2021, 22:40
by TD-er
Hmm it should indeed make (more) sense if it does give this value.
But I think the code right now only sets this value if a read error occurred (read is tried after a sensor is found).
I agree that it should also consider a "not found" as an error.

Edit: Made an issue for this: https://github.com/letscontrolit/ESPEasy/issues/3796

Re: Dallas 18B20 - value if sensor not connected

Posted: 07 Oct 2021, 13:18
by jgrad
correct - if sensor is not connected plugin shall evaluate this as error and set Error State Value.
waiting for ticket resolution.