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

Method setThresholds

core/loadpoint_api.go:502–509  ·  view source on GitHub ↗
(thresholds loadpoint.ThresholdsConfig)

Source from the content-addressed store, hash-verified

500}
501
502func (lp *Loadpoint) setThresholds(thresholds loadpoint.ThresholdsConfig) {
503 lp.Enable = thresholds.Enable
504 lp.Disable = thresholds.Disable
505 lp.publish(keys.EnableThreshold, lp.Enable.Threshold)
506 lp.publish(keys.DisableThreshold, lp.Disable.Threshold)
507 lp.settings.SetJson(keys.Thresholds, thresholds)
508 lp.requestUpdate()
509}
510
511// SetThresholds sets the PV mode threshold settings
512func (lp *Loadpoint) SetThresholds(thresholds loadpoint.ThresholdsConfig) {

Callers 4

restoreSettingsMethod · 0.95
SetThresholdsMethod · 0.95
SetEnableThresholdMethod · 0.95
SetDisableThresholdMethod · 0.95

Calls 3

publishMethod · 0.95
requestUpdateMethod · 0.95
SetJsonMethod · 0.65

Tested by

no test coverage detected