File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
15
15
16
16
"github.com/enbility/eebus-go/api"
17
17
"github.com/enbility/eebus-go/service"
18
+ ucapi "github.com/enbility/eebus-go/usecases/api"
18
19
"github.com/enbility/eebus-go/usecases/cs/lpc"
19
20
shipapi "github.com/enbility/ship-go/api"
20
21
"github.com/enbility/ship-go/cert"
@@ -92,6 +93,16 @@ func (h *evse) run() {
92
93
h .uclpc = lpc .NewLPC (localEntity , h .OnLPCEvent )
93
94
h .myService .AddUseCase (h .uclpc )
94
95
96
+ // Initialize local server data
97
+ _ = h .uclpc .SetConsumptionNominalMax (32000 )
98
+ _ = h .uclpc .SetConsumptionLimit (ucapi.LoadLimit {
99
+ Value : 4200 ,
100
+ IsChangeable : true ,
101
+ IsActive : false ,
102
+ })
103
+ _ = h .uclpc .SetFailsafeConsumptionActivePowerLimit (4200 , true )
104
+ _ = h .uclpc .SetFailsafeDurationMinimum (2 * time .Hour , true )
105
+
95
106
if len (remoteSki ) == 0 {
96
107
os .Exit (0 )
97
108
}
Original file line number Diff line number Diff line change @@ -103,6 +103,25 @@ func (h *hems) run() {
103
103
h .uceglpp = eglpp .NewLPP (localEntity , nil )
104
104
h .myService .AddUseCase (h .uceglpp )
105
105
106
+ // Initialize local server data
107
+ _ = h .uccslpc .SetConsumptionNominalMax (32000 )
108
+ _ = h .uccslpc .SetConsumptionLimit (ucapi.LoadLimit {
109
+ Value : 4200 ,
110
+ IsChangeable : true ,
111
+ IsActive : false ,
112
+ })
113
+ _ = h .uccslpc .SetFailsafeConsumptionActivePowerLimit (4200 , true )
114
+ _ = h .uccslpc .SetFailsafeDurationMinimum (2 * time .Hour , true )
115
+
116
+ _ = h .uccslpp .SetProductionNominalMax (10000 )
117
+ _ = h .uccslpp .SetProductionLimit (ucapi.LoadLimit {
118
+ Value : 10000 ,
119
+ IsChangeable : true ,
120
+ IsActive : false ,
121
+ })
122
+ _ = h .uccslpp .SetFailsafeProductionActivePowerLimit (4200 , true )
123
+ _ = h .uccslpp .SetFailsafeDurationMinimum (2 * time .Hour , true )
124
+
106
125
if len (remoteSki ) == 0 {
107
126
os .Exit (0 )
108
127
}
You can’t perform that action at this time.
0 commit comments