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

[enocean] Fix temperature values for D2_50 eep #16975

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

lovery
Copy link
Contributor

@lovery lovery commented Jul 1, 2024

Fixes #16974

There is a problem with parsing the data send from fan devices using EEP D2_50 (like Dimplex)
When the value is with leading bite - 1 is converted to a number < 0 and then to unsined int which leads to a very big value for OutdorAirTempareture channel.

Looking at the code I thing this could also happen to other channels so I added a fix for them & 0xff

Fixes openhab#16974
Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
@lovery lovery requested a review from fruggy83 as a code owner July 1, 2024 14:39
@jlaur jlaur added bug An unexpected problem or unintended behavior of an add-on rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jul 1, 2024
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.

LGTM, thanks! @fruggy83, does it look good to you too?

@lolodomo
Copy link
Contributor

lolodomo commented Jul 6, 2024

@jlaur : do we include that fix in 4.2 ? Do you think it is risky ?

@jlaur
Copy link
Contributor

jlaur commented Jul 6, 2024

@lolodomo - it doesn't look risky to me, but it doesn't look critical either.

@jlaur jlaur merged commit 35add30 into openhab:main Jul 13, 2024
5 checks passed
@jlaur jlaur added this to the 4.3 milestone Jul 13, 2024
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Jul 18, 2024
Fixes openhab#16974

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
@lovery lovery deleted the enocean-D2-50-temp-fix branch September 9, 2024 08:40
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
Fixes openhab#16974

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
Fixes openhab#16974

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
Fixes openhab#16974

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
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.

[enocean] Dimplex fan - wrong temperature values
3 participants