MCPcopy Create free account
hub / github.com/evcc-io/evcc / phaseSwitchCompleted

Method phaseSwitchCompleted

core/loadpoint.go:1984–1986  ·  view source on GitHub ↗

phaseSwitchCompleted returns true if phase switch command should be already processed by the charger (so we can try to sync charger and loadpoint and are able to measure currents)

()

Source from the content-addressed store, hash-verified

1982
1983// phaseSwitchCompleted returns true if phase switch command should be already processed by the charger (so we can try to sync charger and loadpoint and are able to measure currents)
1984func (lp *Loadpoint) phaseSwitchCompleted() bool {
1985 return time.Since(lp.phasesSwitched) > phaseSwitchDuration
1986}
1987
1988// Update is the main control function. It reevaluates meters and charger state
1989func (lp *Loadpoint) Update(sitePower, batteryBoostPower float64, consumption, feedin api.Rates, batteryBuffered, batteryStart bool, greenShare float64, effPrice, effCo2 *float64, dim *bool) {

Callers 5

syncChargerMethod · 0.95
pvScalePhasesMethod · 0.95
pvMaxCurrentMethod · 0.95
shouldBeConsistentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected