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

Method disableUnlessClimater

core/loadpoint.go:1105–1112  ·  view source on GitHub ↗

disableUnlessClimater disables the charger unless climate is active

()

Source from the content-addressed store, hash-verified

1103
1104// disableUnlessClimater disables the charger unless climate is active
1105func (lp *Loadpoint) disableUnlessClimater() error {
1106 var current float64 // zero disables
1107 if lp.vehicleClimateActive() {
1108 current = lp.effectiveMinCurrent()
1109 }
1110
1111 return lp.setLimit(current)
1112}
1113
1114// statusEvents converts the observed charger status change into a logical sequence of events
1115func statusEvents(prevStatus, status api.ChargeStatus) []string {

Callers 1

UpdateMethod · 0.95

Calls 3

vehicleClimateActiveMethod · 0.95
effectiveMinCurrentMethod · 0.95
setLimitMethod · 0.95

Tested by

no test coverage detected