Smart grid charging per loadpoint (BC) (#12135)

This commit is contained in:
Michael Geers 2024-02-24 17:52:15 +01:00 • committed by GitHub
parent 974cc85b6c
commit 93a1faf755
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 615 additions and 598 deletions

View file

@ -105,6 +105,15 @@ type API interface {
// RemoteControl sets remote status demand
RemoteControl(string, RemoteDemand)
//
// smart grid charging
//
// GetSmartChargingActive determines if smart charging is active
GetSmartCostLimit() float64
// SetSmartCostLimit sets the smart cost limit
SetSmartCostLimit(limit float64)
//
// power and energy
//

View file

@ -351,6 +351,20 @@ func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemainingEnergy", reflect.TypeOf((*MockAPI)(nil).GetRemainingEnergy))
}
// GetSmartCostLimit mocks base method.
func (m *MockAPI) GetSmartCostLimit() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSmartCostLimit")
ret0, _ := ret[0].(float64)
return ret0
}
// GetSmartCostLimit indicates an expected call of GetSmartCostLimit.
func (mr *MockAPIMockRecorder) GetSmartCostLimit() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSmartCostLimit", reflect.TypeOf((*MockAPI)(nil).GetSmartCostLimit))
}
// GetStatus mocks base method.
func (m *MockAPI) GetStatus() api.ChargeStatus {
m.ctrl.T.Helper()
@ -559,6 +573,18 @@ func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPriority", reflect.TypeOf((*MockAPI)(nil).SetPriority), arg0)
}
// SetSmartCostLimit mocks base method.
func (m *MockAPI) SetSmartCostLimit(arg0 float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSmartCostLimit", arg0)
}
// SetSmartCostLimit indicates an expected call of SetSmartCostLimit.
func (mr *MockAPIMockRecorder) SetSmartCostLimit(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSmartCostLimit", reflect.TypeOf((*MockAPI)(nil).SetSmartCostLimit), arg0)
}
// SetVehicle mocks base method.
func (m *MockAPI) SetVehicle(arg0 api.Vehicle) {
m.ctrl.T.Helper()