Skip to content

pvinverter: Kostal Piko Corrected dayYield from kWh to Wh and corrected Units of totalYield a…#3499

Closed
sjjh wants to merge 22 commits intoOpenEMS:developfrom
sjjh:kostal-piko-unit
Closed

pvinverter: Kostal Piko Corrected dayYield from kWh to Wh and corrected Units of totalYield a…#3499
sjjh wants to merge 22 commits intoOpenEMS:developfrom
sjjh:kostal-piko-unit

Conversation

@sjjh
Copy link
Copy Markdown
Contributor

@sjjh sjjh commented Jan 4, 2026

…nd dayYield

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

❗ There is a different number of reports uploaded between BASE (ba78263) and HEAD (34fa68d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ba78263) HEAD (34fa68d)
java 1 0
Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #3499       +/-   ##
==============================================
- Coverage      59.21%   29.16%   -30.05%     
==============================================
  Files           3040      289     -2751     
  Lines         132207     8233   -123974     
  Branches        9758     1409     -8349     
==============================================
- Hits           78269     2400    -75869     
+ Misses         50979     5706    -45273     
+ Partials        2959      127     -2832     
🚀 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.

@sjjh
Copy link
Copy Markdown
Contributor Author

sjjh commented Jan 4, 2026

Currently the daily sum in OpenEMS UI is cut off as int. For example, a daily yield of 0.16 kWh is displayed as 0 kWh.
The webUI of the inverter shows the daily yield correct:
grafik

I recognized in the code base, that totalYield was multiplied with '1000', but dailyYield was not. Thus changed this. I then refactored the cast-method to include the multiplication to prevent duplicated code and be consistent with parsing the miliamps.
I further noticed, that the ChanelId-Enum still used KILOWATT_HOURS, but in my understanding we are using WATT_HOURS, thus changed it there as well.
@Sn0w3y can you please check if it makes sense what I did.

@sjjh sjjh changed the title Corrected dayYiel from kWh to kWh and corrected Units of totalYield a… pvinverter: Kostal Piko Corrected dayYield from kWh to kWh and corrected Units of totalYield a… Jan 5, 2026
@sjjh sjjh changed the title pvinverter: Kostal Piko Corrected dayYield from kWh to kWh and corrected Units of totalYield a… pvinverter: Kostal Piko Corrected dayYield from kWh to Wh and corrected Units of totalYield a… Jan 14, 2026
Copy link
Copy Markdown
Contributor

@sfeilmeier sfeilmeier left a comment

Choose a reason for hiding this comment

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

Looks ok in principle - but JUnit test fails:

PvInverterKostalPikoImplTest > test FAILED
    java.lang.Exception at PvInverterKostalPikoImplTest.java:126

@sjjh
Copy link
Copy Markdown
Contributor Author

sjjh commented Jan 19, 2026

Thx for the hint. Corrected it. But messed up my local git, thus need some time to push the commits. Will notify once it is ready.

sjjh and others added 21 commits January 20, 2026 00:02
Refactored modbus values from ScaledValuePoint to ValuePoint
- Move SunSpec-Mappings for S213 to AbstractSunSpecMeter
- Add "invert" to comply with inverted energy mappings

TODO:
- [ ] Complete Modbus JUnit-Test; including "invert"
- [ ] Fix activate() for all Modbus Meter implementations
- [ ] Continue Review
- [ ] Merge alle Fronius bundles to one (in separate PR)
* Bump org.jmdns:jmdns from 3.6.2 to 3.6.3 in /cnf

Bumps [org.jmdns:jmdns](https://github.com/jmdns/jmdns) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/jmdns/jmdns/releases)
- [Changelog](https://github.com/jmdns/jmdns/blob/main/CHANGELOG.txt)
- [Commits](jmdns/jmdns@3.6.2...v3.6.3)

---
updated-dependencies:
- dependency-name: org.jmdns:jmdns
  dependency-version: 3.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update bndrun

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefan Feilmeier <[email protected]>
* Bump org.jsoup:jsoup from 1.21.2 to 1.22.1 in /cnf

Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.21.2 to 1.22.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](jhy/jsoup@jsoup-1.21.2...jsoup-1.22.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.22.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update bndrun

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefan Feilmeier <[email protected]>
…ess image (#3490)

- added newline to fix unordered list in section "6. Process Image". 
- typographically corrected the dashes in the last sentence of the section.
…rvices (#3489)

- Corrected title from "Controller" to "Device and Service".
- In introduction section added "services" in addition to "devices" as description.
… IO) (#3488)

* extends docu on Dynamic Documentation Generation, Natures in general and 2 specific natures: ESS & IO
* improved ALT-texts of images to improve accessability
@sjjh
Copy link
Copy Markdown
Contributor Author

sjjh commented Jan 19, 2026

I tried to sort it out and hope to not have messed up the complete git history. The build is still failing, but this should not be related to my commits?

@sjjh sjjh requested a review from sfeilmeier January 19, 2026 23:10
@sjjh
Copy link
Copy Markdown
Contributor Author

sjjh commented Jan 23, 2026

As I messed up the commit history here, I'll close this and opened the new PR #3538.

@sjjh sjjh closed this Jan 23, 2026
@sjjh sjjh deleted the kostal-piko-unit branch January 23, 2026 17:34
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