Add battery grid charging (#14855)

This commit is contained in:
andig 2024-08-03 15:23:50 +02:00 • committed by GitHub
parent bbf989c3c0
commit b0ea0582e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 797 additions and 489 deletions

View file

@ -110,9 +110,9 @@ type API interface {
//
// GetSmartChargingActive determines if smart charging is active
GetSmartCostLimit() float64
GetSmartCostLimit() *float64
// SetSmartCostLimit sets the smart cost limit
SetSmartCostLimit(limit float64)
SetSmartCostLimit(limit *float64)
//
// power and energy

View file

@ -380,10 +380,10 @@ func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call {
}
// GetSmartCostLimit mocks base method.
func (m *MockAPI) GetSmartCostLimit() float64 {
func (m *MockAPI) GetSmartCostLimit() *float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSmartCostLimit")
ret0, _ := ret[0].(float64)
ret0, _ := ret[0].(*float64)
return ret0
}
@ -602,7 +602,7 @@ func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call {
}
// SetSmartCostLimit mocks base method.
func (m *MockAPI) SetSmartCostLimit(arg0 float64) {
func (m *MockAPI) SetSmartCostLimit(arg0 *float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSmartCostLimit", arg0)
}