Loadpoint: add min temperature for heating devices (#31749)
This commit is contained in:
parent
857a93f83e
commit
3bb943cbe5
23 changed files with 386 additions and 27 deletions
|
|
@ -91,6 +91,10 @@ type API interface {
|
|||
GetLimitEnergy() float64
|
||||
// SetLimitEnergy sets the session limit energy
|
||||
SetLimitEnergy(energy float64)
|
||||
// GetMinSoc returns the loadpoint min soc (heating: min temperature)
|
||||
GetMinSoc() int
|
||||
// SetMinSoc sets the loadpoint min soc (heating: min temperature)
|
||||
SetMinSoc(soc int)
|
||||
|
||||
//
|
||||
// effective values
|
||||
|
|
|
|||
|
|
@ -431,6 +431,20 @@ func (mr *MockAPIMockRecorder) GetMinCurrent() *gomock.Call {
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinCurrent", reflect.TypeOf((*MockAPI)(nil).GetMinCurrent))
|
||||
}
|
||||
|
||||
// GetMinSoc mocks base method.
|
||||
func (m *MockAPI) GetMinSoc() int {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetMinSoc")
|
||||
ret0, _ := ret[0].(int)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetMinSoc indicates an expected call of GetMinSoc.
|
||||
func (mr *MockAPIMockRecorder) GetMinSoc() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinSoc", reflect.TypeOf((*MockAPI)(nil).GetMinSoc))
|
||||
}
|
||||
|
||||
// GetMode mocks base method.
|
||||
func (m *MockAPI) GetMode() api.ChargeMode {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
@ -939,6 +953,18 @@ func (mr *MockAPIMockRecorder) SetMinCurrent(arg0 any) *gomock.Call {
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMinCurrent", reflect.TypeOf((*MockAPI)(nil).SetMinCurrent), arg0)
|
||||
}
|
||||
|
||||
// SetMinSoc mocks base method.
|
||||
func (m *MockAPI) SetMinSoc(soc int) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetMinSoc", soc)
|
||||
}
|
||||
|
||||
// SetMinSoc indicates an expected call of SetMinSoc.
|
||||
func (mr *MockAPIMockRecorder) SetMinSoc(soc any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMinSoc", reflect.TypeOf((*MockAPI)(nil).SetMinSoc), soc)
|
||||
}
|
||||
|
||||
// SetMode mocks base method.
|
||||
func (m *MockAPI) SetMode(arg0 api.ChargeMode) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue