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

Function getLoadpointDynamicConfig

server/http_config_loadpoint_handler.go:29–50  ·  view source on GitHub ↗
(lp loadpoint.API)

Source from the content-addressed store, hash-verified

27}
28
29func getLoadpointDynamicConfig(lp loadpoint.API) loadpoint.DynamicConfig {
30 planTime, planEnergy := lp.GetPlanEnergy()
31 return loadpoint.DynamicConfig{
32 Title: lp.GetTitle(),
33 DefaultMode: string(lp.GetDefaultMode()),
34 Priority: lp.GetPriority(),
35 PhasesConfigured: lp.GetPhasesConfigured(),
36 MinCurrent: lp.GetMinCurrent(),
37 MaxCurrent: lp.GetMaxCurrent(),
38 SmartCostLimit: lp.GetSmartCostLimit(),
39 SmartFeedInPriorityLimit: lp.GetSmartFeedInPriorityLimit(),
40 Thresholds: lp.GetThresholds(),
41 Soc: lp.GetSocConfig(),
42 UI: lp.GetUI(),
43 PlanEnergy: planEnergy,
44 PlanTime: planTime,
45 PlanStrategy: lp.GetPlanStrategy(),
46 BatteryBoostLimit: lp.GetBatteryBoostLimit(),
47 LimitEnergy: lp.GetLimitEnergy(),
48 LimitSoc: lp.GetLimitSoc(),
49 }
50}
51
52type loadpointFullConfig struct {
53 ID int `json:"id,omitempty"` // db row id

Callers 1

loadpointConfigFunction · 0.85

Calls 15

GetPlanEnergyMethod · 0.65
GetTitleMethod · 0.65
GetDefaultModeMethod · 0.65
GetPriorityMethod · 0.65
GetPhasesConfiguredMethod · 0.65
GetMinCurrentMethod · 0.65
GetMaxCurrentMethod · 0.65
GetSmartCostLimitMethod · 0.65
GetThresholdsMethod · 0.65
GetSocConfigMethod · 0.65
GetUIMethod · 0.65

Tested by

no test coverage detected