-
-
Notifications
You must be signed in to change notification settings - Fork 116
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Bug in temperature readings of DS18b20 #466
Comments
Hi,
good luck |
I have other 2 projects with 2x 8 Ds build by myself and i don't have any problems with 1-wire connection (8266 to mqtt and arduino with display). Changing pullup res no resolved problem. |
interesting. Saw this too. We could add a check in the code to ignore this value. @MichaelDvP ? |
85 degrees are in valid range of sensor measurement, ignoring it will also skip correct measurements. Checked the logged sensors, sensors publishes on change, so there is no value missing. Not a single 85°C value in this year (before the sensors are not named and logs stored with ID). |
I think just one of your 8 sensors is faulty. |
I have a lot of different kind of DS sensors and try to change it, cable harness, etc... In other post i wrote, that it doesn't matter. I have other 2 projests with 8 DS sensors - i connected existed with all cable harnesses (connected to EMS) to this hardware and all is ok. In each project sensors works in parasite mode. |
Mqtt settings have no inflluence on dallas. What port are you using (add settings), The default port have an internal pull-up, no need to add one. What resistance do you have added? What power do you use (parasite/3.3/5V)? |
With EMS default hardware pullup resistor only up to 4 sensors working propelly. When I added more - i have no readings from all sensor. I added external pullup - sensor now working ok, but glitches :). Power - parasite, and sensors i have, working propely in parasite power - believe me! I have in my house 2 projects (EMS and ESP8266) and in other house one with the same kind of sensors, but connected to Arduino with long, long cheap cable harnesses (parallel with grid 230v cables), and all it's ok. |
From the datasheet:
|
OK, any solution? |
4,7kOhm in parallel with default - finnaly, as usual. |
Any questions?? I know , what i do. Maybe my english is bad, but! 25 years of ekectronics development.... I know, what i do. You work with ems-esp is for me a big thing - dont discuss it!! Keep doing IT well!!!! Im still wainting for final software wersion. You doing great job!!! BTW im software eng... |
I still think its a wiring issue ! |
@gaszu - do you have any issues with frequent restarts or RX errors on the EMS bus? I am still getting DS18B20 errors, but have an ongoing intermittent issue with the power supply. This shows up as excessive restarts and RX Incomplete errors. I suspect it may also be causing the DS18B20 errors. Hence my interest in whether you are seeing these too. |
NO, i don't have any RX errors. |
No. I've found a solution. I've changed mqtt publish intervals to "0" - meens auto. No glitches. |
That's interesting, so all intervals or just the one for "Temperature Sensors"? |
All |
and there were all set to 10 seconds before? Can you put them all back to 10 except Temperature Sensor and see if that works without errors? It'll help pinpoint where the actual bug is. |
ok, i've changed. We have to wait 1-2 days ok? |
Perfect. Thanks |
I've taken the coward's way out of this for now and added some bad code to my sensor.yaml...
I may need to tweak the settings but this should will replace any outlier spikes with the median of the four previous samples, whilst hopefully allowing valid data through. I had no idea this could be implemented that easily in HA with the filter integration. I will continue to monitor the raw data but it will, at least, tidy up my dashboard graphs for now. |
With this setup i have 1, 2 glitches per day. IT is acceptable. But with 3.4.1b2 is another problem. After restart no automatic mqtt conn. I have to go to mqtt settings tab, click save, than mqtt conecrs to my ha server. On previous versions i hadn't any problem. |
Ok so somehow the wifi connectivity with MQTT is interfering with the Dallas sensors. EMS-ESP sends a lot of data out very frequently. The way to solve this is for me or Michael to recreate a similar scenario by stringing together some sensors and load testing it. For the MQTT reconnect, I haven't seen this behaviour. Can you log a new GH issue for that? |
I've disabled wifi long time ago. Now I've only Ethernet connected (100/1000). |
ah ok. still, we need to simulate this somehow as myself, Michael and Kees are not experiencing the same issue. It looks like MQTT is interfering with the Dallas reads |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi!
![canvas1](https://user-images.githubusercontent.com/95743219/162743342-9883eefa-b3f0-4555-b27f-67547d14b814.png)
![canvas](https://user-images.githubusercontent.com/95743219/162743382-123c0f24-b900-453c-b5f8-b50f1b5ebd8e.png)
![canvas2](https://user-images.githubusercontent.com/95743219/162743752-bafa5db2-9d3f-4490-b9c7-605423613a3f.png)
![canvas3](https://user-images.githubusercontent.com/95743219/162743943-b721888d-0aee-4eb2-aae2-cea9c4057b5c.png)
I have a EMS-ESP for over 5 months connected to Home Assistant, im always stay up to date with firmware. I've connected 8 DS sesnsors with additional pullup resistor. Frequently i have readings of all sensors 85deg Celsius for few seconds (85deg C in the same time for all sensors). I try to change, harness, manufacturer and number of sensor - it doesn't matter. All the time the same... I've try to connect EMS gateway to my HA by wifi or Lan - no change. It looks like in attachment :
All the time glitches....
I have no problem with lan connection, no mqtt errors and no errors in log. All works perfectly, but that strength random readings...
EMS-ESP Version
v3.4.0b11
Device (Platform / SDK)
ESP32 / v3.3.5-1-g85c43024c
System Uptime
006+21:52:05.112
CPU Frequency
240 MHz
Heap (Free / Max Alloc)
143 396 / 72 208 bytes
Flash Chip (Size / Speed)
4 194 304 bytes / 40 MHz
File System (Used / Total)
24 576 / 65 536 bytes (40 960 bytes free)
The text was updated successfully, but these errors were encountered: