-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Battery Temperature below 0°C is shown as -127°C #17
Comments
Thanks for the bug report, I will take a look :) |
Addendum: It seems as if -127 equals -0°C, the lower the temp, the higher the value climbs: approx. real -6°C come out as -122. |
Ok I think I found the issue. I need to strip off the MSB for it to read correctly. EDIT: Or do they actually mean |
As I understand it they are encoding the number as follows:
This does not follow the 2s complement of a standard number, that is why it is going from 0 to -127 instead of -1 |
I built a new binary, can you see if it fixes the issue? (I hope it is still cold enough to test 🤣 ) |
Great that the issue is resolved, I will release the new version then. The "new version available" message is another bug, it will be shown if the latest version on GitHub does not match the one on the device 😅 |
Describe the bug
Battery Temperature below 0°C is shown as -127°C, in API and in Web
{"mqttsta":"Disabled","pvosta":"Disabled","o":{"o1":false,"o2":false,"o3":false,"l":true},"up":645037,"he":37992,"rssi":-82,"b":{"ch":95,"vo":13.10000038,"cu":0.620000005,"te":-127,"ge":38,"co":76},"l":{"vo":13.10000038,"cu":0.620000005},"p":{"vo":31.5,"cu":0.25},"c":{"st":2,"er":0,"te":5}}
(ATM we have ca. -0,6°C where the battery is located)
Original sensor is used. Controller temperature did not fall below 0, but maybe here is the same issue.
Low priority, if this is sent by RNG itself it doesn't matter, I have another (Tasmota) sensor and can live without this.
The text was updated successfully, but these errors were encountered: