Loadpoint: add min temperature for heating devices (#31749)

This commit is contained in:
Michael Geers 2026-07-13 14:12:33 +02:00 • committed by GitHub
parent 857a93f83e
commit 3bb943cbe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 386 additions and 27 deletions

View file

@ -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

View file

@ -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()