Meter (SunSpec): read max AC power from nameplate (#32732)

This commit is contained in:
andig 2026-08-20 20:14:13 +02:00 • committed by GitHub
parent fb35c0905f
commit e2c59fc6e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 91 additions and 24 deletions

View file

@ -685,7 +685,9 @@ func (site *Site) updatePvMeters() {
}
if m, ok := api.Cap[api.MaxACPowerGetter](meter); ok {
if dc := power - m.MaxACPower(); dc > 0 && power > 0 {
// unknown rating (0) must not turn the entire production into excess DC
if maxACPower := m.MaxACPower(); maxACPower > 0 && power > maxACPower {
dc := power - maxACPower
mm[i].ExcessDCPower = dc
site.log.DEBUG.Printf("pv %d excess DC: %.0fW", i+1, dc)
}