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

Method getPlanId

core/loadpoint_effective.go:111–120  ·  view source on GitHub ↗

getPlanId returns the plan id of the current/next plan

()

Source from the content-addressed store, hash-verified

109
110// getPlanId returns the plan id of the current/next plan
111func (lp *Loadpoint) getPlanId() int {
112 if lp.socBasedPlanning() {
113 _, _, id := lp.nextVehiclePlan()
114 return id
115 }
116 if lp.planEnergy > 0 {
117 return 1
118 }
119 return 0
120}
121
122// EffectivePlanId returns the id for the current plan
123func (lp *Loadpoint) EffectivePlanId() int {

Callers 3

repeatingPlanningMethod · 0.95
EffectivePlanIdMethod · 0.95
plannerActiveMethod · 0.95

Calls 2

socBasedPlanningMethod · 0.95
nextVehiclePlanMethod · 0.95

Tested by

no test coverage detected