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

Method socBasedPlanning

core/loadpoint.go:1038–1041  ·  view source on GitHub ↗

socBasedPlanning returns true if vehicle soc (optionally from charger) and capacity are available

()

Source from the content-addressed store, hash-verified

1036
1037// socBasedPlanning returns true if vehicle soc (optionally from charger) and capacity are available
1038func (lp *Loadpoint) socBasedPlanning() bool {
1039 v := lp.GetVehicle()
1040 return (v != nil && v.Capacity() > 0) && (lp.vehicleHasSoc() || lp.vehicleSoc > 0)
1041}
1042
1043// repeatingPlanning returns true if the current plan is a repeating plan
1044func (lp *Loadpoint) repeatingPlanning() bool {

Callers 10

repeatingPlanningMethod · 0.95
remainingLimitEnergyMethod · 0.95
getPlanIdMethod · 0.95
EffectivePlanTimeMethod · 0.95
SocBasedPlanningMethod · 0.95
finishPlanMethod · 0.95
GetPlanGoalMethod · 0.95

Calls 3

GetVehicleMethod · 0.95
vehicleHasSocMethod · 0.95
CapacityMethod · 0.65