-
-
Notifications
You must be signed in to change notification settings - Fork 915
KEBA: Compensate incorrect energy reporting for P40 #20907
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
Conversation
Reviewer's Guide by SourceryThis pull request implements a workaround for the KEBA P40 wallbox to correctly report energy values. It reads the device's firmware version and adjusts the scaling factor used for energy calculations based on whether the firmware is older than version 1.2.1, which is known to report energy incorrectly. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @breiti - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider defining the firmware version threshold
10201
as a named constant to improve readability. - If reading the firmware version fails for a P40, the energy factor defaults to
1e4
; should it default to1e3
instead, as the description implies all current P40 versions are affected by the bug?
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
43ddbf8
to
0383056
Compare
0383056
to
b1b7d32
Compare
The documentation of the KEBA P40 wallbox states that the energy values are falsely reported in "Wh" (Watt hours) instead of "0.1 Wh" for versions below 1.2.1, which is not yet released. This commit adds a workaround for all current versions of the KEBA P40.
b1b7d32
to
86f510f
Compare
The documentation of the KEBA P40 wallbox states that the energy values are falsely reported in "Wh" (Watt hours) instead of "0.1 Wh" for versions below 1.2.1, which is not yet released.
This commit adds a workaround for all current versions of the KEBA P40.
Summary by Sourcery
Bug Fixes: