Skip to content
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

[fineoffsetweatherstation] Fix wrong handling temperature reading for of WH34 #15853

Merged

Conversation

Andy2003
Copy link
Contributor

@Andy2003 Andy2003 commented Nov 6, 2023

Fix wrong handling temperature reading for of WH34

As discovered by a community member in https://community.openhab.org/t/fine-offset-weather-station-binding-discussion/134167/240 there was an issue while reading data from the WH34 Sensor resulting in all sensor readings following this sensor stop working.

Additionally the tracing for such errors has been improved, so that the byte sequence is split up to understand what each byte of the message means.

Example log output:

0xFFFF5700290E000010000000001100000024120000003113000005030D00000F0064880000017A017B0030
0xFFFF    : header
0x57      : command: CMD_READ_RAIN
0x0029    : size
0x0E      : measurand RAINRATE
0x0000    : HEIGHT_PER_HOUR: 0 mm/h
0x10      : measurand RAINDAY
0x00000000: HEIGHT_BIG: 0 mm
0x11      : measurand RAINWEEK
0x00000024: HEIGHT_BIG: 3.6 mm
0x12      : measurand RAINMONTH
0x00000031: HEIGHT_BIG: 4.9 mm
0x13      : measurand RAINYEAR
0x00000503: HEIGHT_BIG: 128.3 mm
0x0D      : measurand RAINEVENT
0x0000    : HEIGHT: 0 mm
0x0F      : measurand RAINHOUR
0x0064    : HEIGHT: 10 mm
0x88      : measurand RST_RAIN_TIME
0x000001  : skipped
0x7A      : measurand RAIN_PRIO
0x01      : skipped
0x7B      : measurand RCSATION
0x00      : skipped
0x30      : checksum

@Andy2003 Andy2003 requested a review from jlaur November 6, 2023 09:33
@Andy2003 Andy2003 self-assigned this Nov 6, 2023
@Andy2003 Andy2003 force-pushed the feature/fine-offset-weather-station-debug-info branch from 2a9a67f to 8990327 Compare November 6, 2023 09:46
@Andy2003 Andy2003 added bug An unexpected problem or unintended behavior of an add-on and removed documentation labels Nov 7, 2023
@Andy2003 Andy2003 changed the title [fineoffsetweatherstation] Improve tracing [fineoffsetweatherstation] Fix wrong handling temperature reading for of WH34 Nov 7, 2023
@Andy2003 Andy2003 force-pushed the feature/fine-offset-weather-station-debug-info branch from f989045 to de5893b Compare November 7, 2023 23:29
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix and improved debug possibilities!

@jlaur jlaur merged commit 10d519b into openhab:main Nov 10, 2023
3 checks passed
@jlaur jlaur added this to the 4.1 milestone Nov 10, 2023
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
… of WH34 (openhab#15853)

* [fineoffsetweatherstation] Improve tracing
* [fineoffsetweatherstation] Fix wrong handling temperature reading for of WH34

Signed-off-by: Andreas Berger <[email protected]>
@Andy2003 Andy2003 deleted the feature/fine-offset-weather-station-debug-info branch November 30, 2023 09:52
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
… of WH34 (openhab#15853)

* [fineoffsetweatherstation] Improve tracing
* [fineoffsetweatherstation] Fix wrong handling temperature reading for of WH34

Signed-off-by: Andreas Berger <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants