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)
()
| 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) |
| 1984 | func (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 |
| 1989 | func (lp *Loadpoint) Update(sitePower, batteryBoostPower float64, consumption, feedin api.Rates, batteryBuffered, batteryStart bool, greenShare float64, effPrice, effCo2 *float64, dim *bool) { |
no outgoing calls
no test coverage detected