Draft
Conversation
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com> Agent-Logs-Url: https://github.com/evcc-io/evcc/sessions/c2ef3fdb-04b7-42a1-ae88-0aa1bf0f371c
Copilot
AI
changed the title
[WIP] Add SolarEdge Modbus write support for PV curtailment
Add SolarEdge Modbus write support for PV curtailment (Smart Feed-in)
Mar 24, 2026
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com> Agent-Logs-Url: https://github.com/evcc-io/evcc/sessions/f0568016-36a5-408f-bb5a-23285d4f0ae3
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com> Agent-Logs-Url: https://github.com/evcc-io/evcc/sessions/f0568016-36a5-408f-bb5a-23285d4f0ae3
Copilot
AI
changed the title
Add SolarEdge Modbus write support for PV curtailment (Smart Feed-in)
SolarEdge Modbus: PV curtailment (Smart Feed-in) with configurable power limits
Mar 24, 2026
Contributor
|
I want to implement that for Huawei as well, see interface here. So I guess that the "installer"/user will have to set the
Or shall we set the mode programmatically on every call? evcc will only write a percentage based on the Unlike |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

SolarEdge inverters support active power limiting via Modbus register
0xF001(0–100% of nominal), but evcc had no write path yet for applying curtailment using templates. Additionally, many PV installations have a statutory feed-in cap (e.g. 60% of kWp) that must be respected even when curtailment is not active.Generic curtailment support (
meter/meter.go)New optional fields on any custom PV meter:
curtailCurtail *plugin.ConfigFloatSetterwired to the inverter's power-limit registercurtailedCurtailed *plugin.ConfigFloatGetterreading the current limitcurtaillimitCurtailLimit float640feedinlimitFeedInLimit float64100Curtailed()thresholdThe
curtailMeterwrapper implementsapi.Curtailer:Curtail(true)→ writescurtailLimitCurtail(false)→ writesnominalLimit(feedinlimit)Curtailed()→currentLimit < nominalLimitThis ensures that an installation running at its legal cap (e.g. 60%) is not considered curtailed, and that lifting curtailment restores to 60%—not 100%.
Template params (
util/templates/defaults.yaml)curtaillimitandfeedinlimitadded as first-class global params (usages: ["pv"],advanced: true) with en/de descriptions and help text, so any future template can reference them without inline definitions.SolarEdge templates
Both
solaredge-inverter.yaml(pv usage) andsolaredge-hybrid.yaml(pv usage) gain:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
224.0.0.251REDACTED, pid is -1(packet block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.