Dallas 18B20 - value if sensor not connected

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jgrad
Normal user
Posts: 92
Joined: 29 Aug 2016, 22:03
Location: Slovenia

Dallas 18B20 - value if sensor not connected

#1 Post by jgrad » 05 Oct 2021, 22:38

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

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Dallas 18B20 - value if sensor not connected

#2 Post by TD-er » 05 Oct 2021, 22:40

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

jgrad
Normal user
Posts: 92
Joined: 29 Aug 2016, 22:03
Location: Slovenia

Re: Dallas 18B20 - value if sensor not connected

#3 Post by jgrad » 07 Oct 2021, 13:18

correct - if sensor is not connected plugin shall evaluate this as error and set Error State Value.
waiting for ticket resolution.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests