Integrate external optmizer (experimental) (#22495)

This commit is contained in:
andig 2025-08-17 11:39:11 +02:00 • committed by GitHub
parent 3cb810965a
commit b5a8a2d3c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 2325 additions and 54 deletions

View file

@ -197,7 +197,7 @@ type API interface {
IsFastChargingActive() bool
// GetRemainingDuration is the estimated remaining charging duration
GetRemainingDuration() time.Duration
// GetRemainingEnergy is the remaining charge energy in Wh
// GetRemainingEnergy is the remaining charge energy in kWh
GetRemainingEnergy() float64
//
@ -210,4 +210,6 @@ type API interface {
SetVehicle(vehicle api.Vehicle)
// StartVehicleDetection allows triggering vehicle detection for debugging purposes
StartVehicleDetection()
// GetSoc returns the last vehicle or charger soc in %
GetSoc() float64
}

View file

@ -562,6 +562,20 @@ func (mr *MockAPIMockRecorder) GetSmartFeedInPriorityLimit() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSmartFeedInPriorityLimit", reflect.TypeOf((*MockAPI)(nil).GetSmartFeedInPriorityLimit))
}
// GetSoc mocks base method.
func (m *MockAPI) GetSoc() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSoc")
ret0, _ := ret[0].(float64)
return ret0
}
// GetSoc indicates an expected call of GetSoc.
func (mr *MockAPIMockRecorder) GetSoc() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSoc", reflect.TypeOf((*MockAPI)(nil).GetSoc))
}
// GetSocConfig mocks base method.
func (m *MockAPI) GetSocConfig() SocConfig {
m.ctrl.T.Helper()