Skip to content

Feature/controller ess cycle surplusfeedtogrid selltogridlimit reference target - #3903

Open
PunugupatiSaikumar wants to merge 5 commits into
OpenEMS:developfrom
PunugupatiSaikumar:feature/controller-ess-cycle-surplusfeedtogrid-selltogridlimit-reference-target
Open

Feature/controller ess cycle surplusfeedtogrid selltogridlimit reference target#3903
PunugupatiSaikumar wants to merge 5 commits into
OpenEMS:developfrom
PunugupatiSaikumar:feature/controller-ess-cycle-surplusfeedtogrid-selltogridlimit-reference-target

Conversation

@PunugupatiSaikumar

Copy link
Copy Markdown
Contributor

Migrates three ESS controllers to the Reference Target Plugin (@GenerateTargetsFromReferences).
Bundles:

  • Controller.Ess.Cycle
  • Controller.Ess.Hybrid.SurplusFeedToGrid
  • Controller.Ess.SellToGridLimit
    For each bundle:
  • Replace OpenemsComponent.updateReferenceFilter() with a static target filter on @Reference
  • Remove ConfigurationAdmin where it was only used for that
  • Remove ess_target() / meter_target() from Config and MyConfig where they existed
  • Update tests to JUnit Jupiter and drop DummyConfigurationAdmin
    SellToGridLimit uses two references (ess and meter). Cycle and SurplusFeedToGrid each use a single ess reference.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3903      +/-   ##
=============================================
+ Coverage      55.64%   55.64%   +0.01%     
- Complexity     19016    19017       +1     
=============================================
  Files           3670     3670              
  Lines         171447   171439       -8     
  Branches       14113    14108       -5     
=============================================
+ Hits           95377    95378       +1     
+ Misses         72302    72298       -4     
+ Partials        3768     3763       -5     
🚀 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.

@@ -68,23 +70,18 @@ public ControllerEssCycleImpl() {
@Activate
private void activate(ComponentContext context, Config config) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove ComponentContext context as well, it's not required anymore

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