-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Negative sensor values is not interpreted correctly #11
Comments
Good find! |
Should have included that in the first post..
|
I would guess the problem originates here in rego.cpp
Where result is decoded as unsigned int white it should be signed.
|
With that fix it looks fine! [09:30:53][D][rego:171]: UART bus free to use |
I just activated the GT3 (hot water) sensor since I haven't had that active before, in #12 it seems that it is interpreted as a negative number:
However it is not interpreted correct in master either.
|
Since the outside temperature went below 0, the outdoor sensor (GT2) started to report temperatures in the ~6550 range insted of the expected negative number.
This is also the case for cold fluid "GT11" (and GT10?).
Sensor configuration:
name: Outdoor GT2
rego_variable: 0x020A
value_factor: 0.1
unit_of_measurement: °C
state_class: measurement
accuracy_decimals: 1
The text was updated successfully, but these errors were encountered: