-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DS18B20 sensors randomly disappearing #2602
Comments
Recently compared with a single version of sw or after updating to a more recent one?
Meaning, just sw reboot is enough or it is also power on->off->on? Do single sensors work? |
Thank you for your reply! The problem is that I cant recall from what version I've updated and is it comes from an update or anything else. Device only used at wintertime, and I did an update somewhere in the summer, tested for just a few minutes, that time was ok. Disappearing means that no sensor discovered at all, sometimes I can see CRC errors and no data. But usually missig completly. Sometimes all of them sometimes 3-4 of six. Reboot means power cycle, I found it helps more. I cant see any specific in the logs, just that mqtt and influxdb sending data, do I have to activate some higher level logging? Thanks! |
DEBUG tab shows everything happening in the console, which includes logs. Telnet connection also works. MQTT reports sensor data, but not any state info. Something to improve, perhaps. Don't have any ds18b20 at hand, so only judging from sw side. One thing to note is #2543 (comment) and inconsistent error checking. Meaning, just one erroneous read would invalidate all other reads from all other sensors in a chain. This would have to be fixed from sw side. Other possible issue is mentioned in datasheet (https://datasheets.maximintegrated.com/en/ds/ds18b20.pdf / 'Powering the DS18B20') and mentioned in various issues /ds18b20/ across Tasmota, ESPEasy, esphome, etc. possibly related to inconsistent power usage when transitioning from conversion to actual data reads. This is something happening on hw, and only reliable fix is to disable parasite mode sw side and add an external power. edit: ...or maybe we are missing |
Grabbed the log, as mentioned nothing special: [813150] [MQTT] Sending HEATPUMP/status => 1 (PID 1) And I forgot to mention that I am using sensors in normal mode. Is there something that I can change in the code to test? Many Thanks |
First thing that comes to mind is to swap OneWire mode to normal, changing 1 -> 0
Also note the 5v vs. 3v3, logic from esp is 3v3 |
Hi All, Recently I have a little time to do some testing on this issue. It turned out one of the 6 sensor was faulty, and assuming sometimes makes the other ones failing randomly. I've removed the faulty one, and testing the rest right now. For curiosity removed the steel cap from the faulty sensor and it turned out that is not even an original Dallas DS18B20, its a copy MY18E20. So I assuming this issue is maybe related to low quality copy sensors. |
One issue I have noticed after ordering some is pull-up sometimes messing up data line status. i.e. ESP8266 reboot sometimes would cause a sensor to be undiscoverable. Removing our pin init seems to fix it for me, so will do an update. I am still figuring out a better way to sync sensor instances though, so no commits just yet :)
Based on 15 random ones... Every single one works, but 4 (labeled as DS18B20, but obviously counterfeit) are either defective or use some unknown payload format, causing sensor readings to show -31 degrees instead of +25 :/ |
Device
ITEAD_SONOFF_POW_R3
Version
ESPURNA 1.15.0-dev built 2023-11-30 19:03:55
Question
Hi All,
Recently I faced an issue that DS18B20 sensors randomly disappears from my temp metering device on my heating.
I am using 6pcs of DS18B20 sensors fixed to specific sections of the heatpump pipes to monitor it. It worked perfectly fine in the past. But recently it started randomly dropping sensors. I thought its a HW failure, so replaced everything. Flashed a new sonoff unit and hooked up 6 new sensors, but issue still exist.
Issuing a reboot, sometimes helps, but sometimes makes even more sensor offline.
Is there anything what I can do or check? Any recommendation or suggestion?
(all pipes and metal parts are grounded to avoid interfenece)
Many Thanks
Zoltan
The text was updated successfully, but these errors were encountered: