Hi @MrT,
sorry, I did not find the time to dig into this in detail. I created a PR with your suggested change:
Your fix looks good to me. Unfortunately now the JUnit tests fail and I don’t seem to find an easy way to fix them. It’s been a while since I was working on that code…
Could you support and fix the JUnit tests to suit your improvement?
Can you share your Github User account? I could then add you as co-author on the PR.
Could you share your RCT (“io.openems.edge.rctpower.ess.RctPowerEss”) and SolareEdge-ESS (“io.openems.edge.solaredge.ess.SolarEdgeEss”) implementations publically? Those would be great additions to the OpenEMS project.
Thanks & Regards,
Stefan