-
-
Notifications
You must be signed in to change notification settings - Fork 98
Large negative spikes on Dallas sensor reading #499
Comments
maybe a combination of both. If there is a sensor reading error (crc-check) the sensorvalue is set to undefined (NaN). |
I've added a check in the dev build, @glitter-ball can you check for the spikes? |
Perversely, it didn't do it for over 24 hours when I upgraded to 2.0.1. But it's done it twice today at random times. I'll try and upgrade now and see what happens. |
Sorry, still a newbie navigating to find releases. How can I get a binary for the dev build with the sensor check in it, please? Thanks. |
no problem, that's my fault. I'm always tweaking things. The dev builds have been moved to https://github.com/proddy/EMS-ESP/tree/firmware |
Thanks. Can I check I am upgrading in a sensible way? Drag and drop new .bin file into the upload box in the GUI? Seems to copy quickly and then nothing else? Does that just put the file in place pending a restart? |
Drag & Drop should upload, takes about 15 seconds on fast line, and then automatically restarts the ESP. If the .bin file is corrupt it will report back an error. Make sure you're using the ESP8266 binary and not the gzipped version. If it still does not work I broke something (which is highly likely) and will need to test again. |
OK - will try and update this weekend. Have just replaced SD card with SSD which has been enough excitement for [more than] one day... |
I did the upload OK but still not sure about the process. I dragged the file in and waited a minute or so. Clicked another link and an orange box "Upload cancelled by user" appeared. Waited a bit longer and then it restarted OK on 2.0.2b3. I think it's the no immediate action thing that's a bit disconcerting. If it popped up a dialog which said something like, "Upload completed. Copying firmware and rebooting - please wait", I wouldn't have kittens so quickly! Anyway - done and I'll see if the negative spikes are squashed now. Thanks! |
@glitter-ball I did a few tests. When you drag&drop the firmware it will start the upload (to 100%) and then show the green box with the message 'activating new firmware...'. Then it will de-compile the firmware and reboot which can easily take up to a minute. Would it help if I add some more text in that web page explaining the process and to wait? |
I don't think I've ever seen that stuff. The new firmware uploads in a second or two and then nothing appears to happen *8(. I tried again tonight and left the system for 90 seconds - nothing visible happens at all. When I refresh the screen or click on a sidebar link, I get an orange "Upload cancelled by user" popup. Usually, after a bit of poking I can get back to the login page. When I log in the version's updated at the top of the sidebar - that's all the evidence I have that the firmware upgrade has happened. Tried in Firefox and Edge and the result is the same. BTW the sensor issue is fixed, so maybe the firmware upgrade thing should be a new thread? |
yes, if you're still seeing issues with the web upload please create a new issue so other users can chime in. |
@MichaelDvP can't remember, I think you made many improvements to the dallas code in 2.1.1? |
It was before 2.1.0: check the value in range -55 to +125 °C to prevent readings of -26300, etc. Also sensors with wrong value or crc are not updated for 5 retries and than not published (VALUE_NOT_SET). |
That's the difference this time - the values are within the valid range but not genuine! I've checked the HA Logbook to see if anything else happens coincident with a spike but nothing obvious. Also looked in HA History and, again, nothing odd. Currently I have sensors set to MQTT publish on change so it updates at random intervals depending how long it takes for a 0.1ºC change - typically 4-5 seconds, more often if doing hot water. Maybe I can validate and filter out duff values in HA? Return temp, in this case, should never be less than zero and not more than 85ºC. |
OK. Just had my Dallas cable fall apart in my hands. The +3.3V connection has fractured where it leaves the plug *8(. New cable on order, so best to hang fire on this issue until I replace it. Maybe it's been on the way out for a while and the failing supply has caused the Dallas errors? |
Have replaced connector and the negative spikes are still there. No obvious link to anything else when they occur. Wondering what to try next. I have two other unused sensors. Maybe I hook one of them up and see what happens. |
wow, happy ending to 2020. Let's all have a drink at midnight! |
Yay! If I can stay awake that long. Family Zoom calls to survive first 😖... Here’s to another cracking year for EMS-ESP! |
Bug description
The boiler return temperature values on HA, from a Dallas sensor, are showing occasional large negative spikes at a value of -26240 or similar value
Steps to reproduce
Connect Dallas sensor.
I think the problem may only have started since I changed the sensor MQTT publish interval set to '0' (publish on change). Sensor value is changing, typically, about every 5 seconds. Happy, at some point, to change back to 10 seconds and see if it stops.
NTP server set.
Spikes seem to occur at random intervals. Values seen include : -26304, -26240, -26208, -26272.
Will try and leave MQTT Explorer open long enough to catch it there - proving this is an EMS-ESP issue and not HA.
Expected behavior
No spikes. They weren't there in 1.9.5.
Screenshots
![image](https://user-images.githubusercontent.com/57917148/93023783-50342080-f5e9-11ea-8956-cdbfcad7e025.png)
Device information
The text was updated successfully, but these errors were encountered: