Skip to content

New energy meter of type Hager ECR380D#3336

Merged
sfeilmeier merged 18 commits intoOpenEMS:developfrom
hrohmer:feature_hager_meter
Jan 24, 2026
Merged

New energy meter of type Hager ECR380D#3336
sfeilmeier merged 18 commits intoOpenEMS:developfrom
hrohmer:feature_hager_meter

Conversation

@hrohmer
Copy link
Copy Markdown
Contributor

@hrohmer hrohmer commented Sep 30, 2025

For personal use, I created a new bundle for a Hager ECR380D energy meter. I'd like to provide my additions to the OpenEMS community.
I tried to follow the implementation examples, but I'd appreciate any review, since this is my first contribution to the OpenEMS community. The new bundle is up and running for several days and report data as expected (Power, Current, Voltage).
Any feedback, improvements are warmly welcome.

@github-actions
Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity

If it is still relevant, please update the PR.
Otherwise, it will be automatically closed in 14 days.

Before updating, please review our Contribution Guidelines to ensure all required information is provided.

@github-actions github-actions bot added the Stale label Dec 30, 2025
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.

Thank you for your contribution. Well done! Please see my note on the modbus tasks implemtation.

Also, if you could allow maintainers to edit your PR, I could do some final touches and formattings myself.

Thanks & Regards, Stefan

*/
@Override
protected ModbusProtocol defineModbusProtocol() {
final ModbusProtocol modbusProtocol = new ModbusProtocol(this);
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.

I think I understand your intention. I would still prefer using the same coding style as described in the Docs and used in other Modbus implementations for readability and maintainability

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello Stefan, first of all: Happy New Year!
Thanks a lot for comming back on my PR. Can you please provide me a link to the Docs you mentioned? In the meantime, I'll have a look at other Modbus implementations ;-)
I hope I used the correct flag to enable write access to the PR...

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @sfeilmeier, I should have seen this 🙈
I'll change my code as described in the instructions and other Modbus modules...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello @sfeilmeier ,

I add code changes related to the Modbus configuration. Please see my latest commit. Please let me know if you find more inconsistencies.

Thanks & Regards,
Heinz

@github-actions github-actions bot removed the Stale label Jan 2, 2026
Heinz Rohmer and others added 3 commits January 2, 2026 11:17
- Apply Eclipse AutoFormat and Organize Imports
- default debugLog()
- Use default ElementToChannelConverters
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 24, 2026

Codecov Report

❌ Patch coverage is 91.20000% with 22 lines in your changes missing coverage. Please review.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3336      +/-   ##
=============================================
+ Coverage      59.22%   59.37%   +0.16%     
  Complexity       105      105              
=============================================
  Files           3040     3068      +28     
  Lines         132217   133081     +864     
  Branches        9756     9815      +59     
=============================================
+ Hits           78293    79005     +712     
- Misses         50976    51105     +129     
- Partials        2948     2971      +23     
🚀 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.

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.

Thank you for your contribution! 🚀

@sfeilmeier sfeilmeier merged commit 6368edf into OpenEMS:develop Jan 24, 2026
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