Skip to content

[EDGE] Add tests and update Victron components#3505

Open
Sn0w3y wants to merge 3 commits intoOpenEMS:developfrom
Sn0w3y:victron-improve
Open

[EDGE] Add tests and update Victron components#3505
Sn0w3y wants to merge 3 commits intoOpenEMS:developfrom
Sn0w3y:victron-improve

Conversation

@Sn0w3y
Copy link
Collaborator

@Sn0w3y Sn0w3y commented Jan 7, 2026

This commit introduces several changes across the Victron components and their tests. Specifically, it adds new test configurations and test cases for Victron battery inverter, AC in/out meters, and PV inverter via DC charger components. Additionally, it updates the VictronBatteryInverterImpl and VictronEssImpl classes to improve event handling and reference policy configurations.

See: #3457 (comment)
and: #3457

This commit introduces several changes across the Victron components and their tests. Specifically, it adds new test configurations and test cases for Victron battery inverter, AC in/out meters, and PV inverter via DC charger components. Additionally, it updates the VictronBatteryInverterImpl and VictronEssImpl classes to improve event handling and reference policy configurations.
@Sn0w3y
Copy link
Collaborator Author

Sn0w3y commented Jan 7, 2026

@GrisuBerlin and @DerWahreKlinki could you check if everything still works?

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

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

HEAD has 1 upload less than BASE
Flag BASE (a508528) HEAD (f2ec10f)
java 1 0
Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #3505       +/-   ##
==============================================
- Coverage      59.58%   29.17%   -30.40%     
==============================================
  Files           3006      291     -2715     
  Lines         130472     8147   -122325     
  Branches        9639     1397     -8242     
==============================================
- Hits           77723     2376    -75347     
+ Misses         49845     5648    -44197     
+ Partials        2904      123     -2781     
🚀 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.

Sn0w3y added 2 commits January 7, 2026 04:31
Removed unnecessary ESS and battery references from Victron components to simplify the codebase and improve maintainability. This change affects Victron battery, battery inverter, and ESS configurations and implementations by eliminating redundant or unused configuration parameters and references.
This commit updates the ChargeStateEss enumeration by correcting the value of BULK_STOPPED from 1 to 8, ensuring the enum values are unique and correctly ordered. Additionally, it significantly extends the VictronEssImplTest with new test cases and setup for comprehensive testing of the Victron Energy Storage System (ESS) implementation.
@DerWahreKlinki
Copy link
Collaborator

BatteryInverter never gets a reference to battery so (battery-)limits cannot be calculated. Maybe you/we should transfer hardware checks to the Ess component?

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.

2 participants