Skip to content

Conversation

@Bockhorn-IT
Copy link
Contributor

Added GoodWe Charger PV 4 to 8 and changed/added calculation of power instead of reading the power from register.
For PV strings greater than number 4 there are no registers for the power, only for current and voltage, so we calculate them all instead.

Pascal Bockhorn added 2 commits November 26, 2025 18:14
instead of reading the power from register. For PV strings greater than
number 4 there are no registers for the power, only for current and
voltage, so we calculate them all instead.
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

❌ Patch coverage is 62.39316% with 44 lines in your changes missing coverage. Please review.

❌ Your patch check has failed because the patch coverage (62.40%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3444      +/-   ##
=============================================
+ Coverage      59.62%   59.64%   +0.02%     
  Complexity       112      112              
=============================================
  Files           2894     2899       +5     
  Lines         124658   124769     +111     
  Branches        9343     9355      +12     
=============================================
+ Hits           74318    74405      +87     
+ Misses         47522    47519       -3     
- Partials        2818     2845      +27     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

new ComponentTest(new GoodWeChargerPv2()) //
.addReference("cm", new DummyConfigurationAdmin()) //
.addReference("setModbus", new DummyModbusBridge("modbus0")) //
.activate(MyConfig.create() //
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep the Format as before.

new ComponentTest(new GoodWeChargerPv1()) //
.addReference("cm", new DummyConfigurationAdmin()) //
.addReference("setModbus", new DummyModbusBridge("modbus0")) //
.activate(MyConfig.create() //
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep the Format as before.

public void test() throws Exception {
new ComponentTest(new GoodWeChargerPv3()) //
.addReference("cm", new DummyConfigurationAdmin()) //
.addReference("setModbus", new DummyModbusBridge("modbus0")).activate(MyConfig.create() //
Copy link
Contributor

Choose a reason for hiding this comment

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

Same applies to here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx, mistakly formatted the file

Copy link
Contributor

@Sn0w3y Sn0w3y left a comment

Choose a reason for hiding this comment

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

The Tests are Failing right now aswell.

@Bockhorn-IT
Copy link
Contributor Author

The Tests are Failing right now aswell.

and forgot one file to commit, sorry

@sebastianasen
Copy link
Contributor

Hi @Bockhorn-IT,
nice to hear that this is working in your system.

Initially, we had nearly the same implementation, but our problem was that the GoodWe had inaccurate current values for each string. While measuring, a lot of test systems, we had total different current values even if the Nr. of Modules and the cardinal direction was the same, especially with low power.
It would also be interesting to know what firmware your inverter has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants