Skip to content

Commit

Permalink
Pin active phases to 1 to handle slow phase switching (evcc-io#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and dontbyte committed Aug 2, 2022
1 parent 2469e6e commit 1333178
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,11 @@ func (lp *LoadPoint) pvScalePhases(availablePower, minCurrent, maxCurrent float6
// observed phase state inconsistency (https://github.com/evcc-io/evcc/issues/1572, https://github.com/evcc-io/evcc/issues/2230)
if phases > 0 && phases < lp.activePhases {
lp.log.WARN.Printf("ignoring inconsistent phases: %dp < %dp observed active", phases, lp.activePhases)

// if 3p->1p change is slow and we're no longer charging, we'll correct the observed phases here
if lp.GetStatus() == api.StatusB {
lp.activePhases = 1
}
}

// this can happen the first time for a 1p3p-capable charger, see https://github.com/evcc-io/evcc/issues/2520
Expand Down

0 comments on commit 1333178

Please sign in to comment.