@@ -16,7 +16,6 @@ import (
16
16
"github.com/enbility/eebus-go/api"
17
17
"github.com/enbility/eebus-go/service"
18
18
ucapi "github.com/enbility/eebus-go/usecases/api"
19
- "github.com/enbility/eebus-go/usecases/cs/lpc"
20
19
cslpc "github.com/enbility/eebus-go/usecases/cs/lpc"
21
20
cslpp "github.com/enbility/eebus-go/usecases/cs/lpp"
22
21
eglpc "github.com/enbility/eebus-go/usecases/eg/lpc"
@@ -122,7 +121,7 @@ func (h *hems) OnLPCEvent(ski string, device spineapi.DeviceRemoteInterface, ent
122
121
}
123
122
124
123
switch event {
125
- case lpc .WriteApprovalRequired :
124
+ case cslpc .WriteApprovalRequired :
126
125
// get pending writes
127
126
pendingWrites := h .uccslpc .PendingConsumptionLimits ()
128
127
@@ -131,7 +130,7 @@ func (h *hems) OnLPCEvent(ski string, device spineapi.DeviceRemoteInterface, ent
131
130
fmt .Println ("Approving LPC write with msgCounter" , msgCounter , "and limit" , write .Value , "W" )
132
131
h .uccslpc .ApproveOrDenyConsumptionLimit (msgCounter , true , "" )
133
132
}
134
- case lpc .DataUpdateLimit :
133
+ case cslpc .DataUpdateLimit :
135
134
if currentLimit , err := h .uccslpc .ConsumptionLimit (); err != nil {
136
135
fmt .Println ("New LPC Limit set to" , currentLimit .Value , "W" )
137
136
}
@@ -146,7 +145,7 @@ func (h *hems) OnLPPEvent(ski string, device spineapi.DeviceRemoteInterface, ent
146
145
}
147
146
148
147
switch event {
149
- case lpc .WriteApprovalRequired :
148
+ case cslpp .WriteApprovalRequired :
150
149
// get pending writes
151
150
pendingWrites := h .uccslpp .PendingProductionLimits ()
152
151
@@ -155,7 +154,7 @@ func (h *hems) OnLPPEvent(ski string, device spineapi.DeviceRemoteInterface, ent
155
154
fmt .Println ("Approving LPP write with msgCounter" , msgCounter , "and limit" , write .Value , "W" )
156
155
h .uccslpp .ApproveOrDenyProductionLimit (msgCounter , true , "" )
157
156
}
158
- case lpc .DataUpdateLimit :
157
+ case cslpp .DataUpdateLimit :
159
158
if currentLimit , err := h .uccslpp .ProductionLimit (); err != nil {
160
159
fmt .Println ("New LPP Limit set to" , currentLimit .Value , "W" )
161
160
}
0 commit comments