iobroker.zendure-solarflow 1.8.3 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/build/constants/smartPlugStates.js +36 -0
- package/build/constants/smartPlugStates.js.map +2 -2
- package/build/helpers/createCalculationStates.js +298 -300
- package/build/helpers/createCalculationStates.js.map +2 -2
- package/build/helpers/createSolarFlowStates.js +42 -34
- package/build/helpers/createSolarFlowStates.js.map +2 -2
- package/build/main.js +23 -8
- package/build/main.js.map +2 -2
- package/build/models/ISolarFlowMqttProperties.js.map +2 -2
- package/build/services/jobSchedule.js +3 -1
- package/build/services/jobSchedule.js.map +2 -2
- package/build/services/mqttService.js +45 -24
- package/build/services/mqttService.js.map +2 -2
- package/build/services/webService.js +5 -2
- package/build/services/webService.js.map +2 -2
- package/io-package.json +15 -4
- package/package.json +3 -2
|
@@ -22,9 +22,9 @@ __export(createCalculationStates_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(createCalculationStates_exports);
|
|
24
24
|
const createCalculationStates = async (adapter, productKey, deviceKey, type) => {
|
|
25
|
-
if (type == "hyper" || type == "ace") {
|
|
25
|
+
if (type == "hyper" || type == "ace" || type == "solarflow") {
|
|
26
26
|
await (adapter == null ? void 0 : adapter.extendObject(
|
|
27
|
-
`${productKey}.${deviceKey}.calculations.
|
|
27
|
+
`${productKey}.${deviceKey}.calculations.gridInputEnergyTodayWh`,
|
|
28
28
|
{
|
|
29
29
|
type: "state",
|
|
30
30
|
common: {
|
|
@@ -33,7 +33,7 @@ const createCalculationStates = async (adapter, productKey, deviceKey, type) =>
|
|
|
33
33
|
en: "Charged by AC (Wh)"
|
|
34
34
|
},
|
|
35
35
|
type: "number",
|
|
36
|
-
desc: "
|
|
36
|
+
desc: "gridInputEnergyTodayWh",
|
|
37
37
|
role: "value.energy",
|
|
38
38
|
read: true,
|
|
39
39
|
write: false,
|
|
@@ -43,7 +43,7 @@ const createCalculationStates = async (adapter, productKey, deviceKey, type) =>
|
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
45
|
await (adapter == null ? void 0 : adapter.extendObject(
|
|
46
|
-
`${productKey}.${deviceKey}.calculations.
|
|
46
|
+
`${productKey}.${deviceKey}.calculations.gridInputEnergyTodaykWh`,
|
|
47
47
|
{
|
|
48
48
|
type: "state",
|
|
49
49
|
common: {
|
|
@@ -52,7 +52,7 @@ const createCalculationStates = async (adapter, productKey, deviceKey, type) =>
|
|
|
52
52
|
en: "Charged by AC (kWh)"
|
|
53
53
|
},
|
|
54
54
|
type: "number",
|
|
55
|
-
desc: "
|
|
55
|
+
desc: "gridInputEnergyTodaykWh",
|
|
56
56
|
role: "value.energy",
|
|
57
57
|
read: true,
|
|
58
58
|
write: false,
|
|
@@ -62,326 +62,324 @@ const createCalculationStates = async (adapter, productKey, deviceKey, type) =>
|
|
|
62
62
|
}
|
|
63
63
|
));
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
en: "Todays solar input (Wh)"
|
|
74
|
-
},
|
|
75
|
-
type: "number",
|
|
76
|
-
desc: "solarInputEnergyTodayWh",
|
|
77
|
-
role: "value.energy",
|
|
78
|
-
read: true,
|
|
79
|
-
write: false,
|
|
80
|
-
unit: "Wh"
|
|
65
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
66
|
+
`${productKey}.${deviceKey}.calculations.solarInputEnergyTodayWh`,
|
|
67
|
+
{
|
|
68
|
+
type: "state",
|
|
69
|
+
common: {
|
|
70
|
+
name: {
|
|
71
|
+
de: "Heutiger Solarertrag (Wh)",
|
|
72
|
+
en: "Todays solar input (Wh)"
|
|
81
73
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
74
|
+
type: "number",
|
|
75
|
+
desc: "solarInputEnergyTodayWh",
|
|
76
|
+
role: "value.energy",
|
|
77
|
+
read: true,
|
|
78
|
+
write: false,
|
|
79
|
+
unit: "Wh"
|
|
80
|
+
},
|
|
81
|
+
native: {}
|
|
82
|
+
}
|
|
83
|
+
));
|
|
84
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
85
|
+
`${productKey}.${deviceKey}.calculations.solarInputEnergyTodaykWh`,
|
|
86
|
+
{
|
|
87
|
+
type: "state",
|
|
88
|
+
common: {
|
|
89
|
+
name: {
|
|
90
|
+
de: "Heutiger Solarertrag (kWh)",
|
|
91
|
+
en: "Todays solar input (kWh)"
|
|
100
92
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
93
|
+
type: "number",
|
|
94
|
+
desc: "solarInputEnergyTodaykWh",
|
|
95
|
+
role: "value.energy",
|
|
96
|
+
read: true,
|
|
97
|
+
write: false,
|
|
98
|
+
unit: "kWh"
|
|
99
|
+
},
|
|
100
|
+
native: {}
|
|
101
|
+
}
|
|
102
|
+
));
|
|
103
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
104
|
+
`${productKey}.${deviceKey}.calculations.solarInputPv1EnergyTodayWh`,
|
|
105
|
+
{
|
|
106
|
+
type: "state",
|
|
107
|
+
common: {
|
|
108
|
+
name: {
|
|
109
|
+
de: "Heutiger Solarertrag PV1 (Wh)",
|
|
110
|
+
en: "Todays solar input PV1 (Wh)"
|
|
119
111
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
112
|
+
type: "number",
|
|
113
|
+
desc: "solarInputEnergyTodayWh",
|
|
114
|
+
role: "value.energy",
|
|
115
|
+
read: true,
|
|
116
|
+
write: false,
|
|
117
|
+
unit: "Wh"
|
|
118
|
+
},
|
|
119
|
+
native: {}
|
|
120
|
+
}
|
|
121
|
+
));
|
|
122
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
123
|
+
`${productKey}.${deviceKey}.calculations.solarInputPv1EnergyTodaykWh`,
|
|
124
|
+
{
|
|
125
|
+
type: "state",
|
|
126
|
+
common: {
|
|
127
|
+
name: {
|
|
128
|
+
de: "Heutiger Solarertrag PV1 (kWh)",
|
|
129
|
+
en: "Todays solar input PV1 (kWh)"
|
|
138
130
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
131
|
+
type: "number",
|
|
132
|
+
desc: "solarInputEnergyTodaykWh",
|
|
133
|
+
role: "value.energy",
|
|
134
|
+
read: true,
|
|
135
|
+
write: false,
|
|
136
|
+
unit: "kWh"
|
|
137
|
+
},
|
|
138
|
+
native: {}
|
|
139
|
+
}
|
|
140
|
+
));
|
|
141
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
142
|
+
`${productKey}.${deviceKey}.calculations.solarInputPv2EnergyTodayWh`,
|
|
143
|
+
{
|
|
144
|
+
type: "state",
|
|
145
|
+
common: {
|
|
146
|
+
name: {
|
|
147
|
+
de: "Heutiger Solarertrag PV2 (Wh)",
|
|
148
|
+
en: "Todays solar input PV2 (Wh)"
|
|
157
149
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
150
|
+
type: "number",
|
|
151
|
+
desc: "solarInputEnergyTodayWh",
|
|
152
|
+
role: "value.energy",
|
|
153
|
+
read: true,
|
|
154
|
+
write: false,
|
|
155
|
+
unit: "Wh"
|
|
156
|
+
},
|
|
157
|
+
native: {}
|
|
158
|
+
}
|
|
159
|
+
));
|
|
160
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
161
|
+
`${productKey}.${deviceKey}.calculations.solarInputPv2EnergyTodaykWh`,
|
|
162
|
+
{
|
|
163
|
+
type: "state",
|
|
164
|
+
common: {
|
|
165
|
+
name: {
|
|
166
|
+
de: "Heutiger Solarertrag PV2 (kWh)",
|
|
167
|
+
en: "Todays solar input PV2 (kWh)"
|
|
176
168
|
},
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
169
|
+
type: "number",
|
|
170
|
+
desc: "solarInputEnergyTodaykWh",
|
|
171
|
+
role: "value.energy",
|
|
172
|
+
read: true,
|
|
173
|
+
write: false,
|
|
174
|
+
unit: "kWh"
|
|
175
|
+
},
|
|
176
|
+
native: {}
|
|
177
|
+
}
|
|
178
|
+
));
|
|
179
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
180
|
+
`${productKey}.${deviceKey}.calculations.outputPackEnergyTodayWh`,
|
|
181
|
+
{
|
|
182
|
+
type: "state",
|
|
183
|
+
common: {
|
|
184
|
+
name: {
|
|
185
|
+
de: "Heutige Ladung zu Batterie (Wh)",
|
|
186
|
+
en: "Todays charge energy to battery (Wh)"
|
|
195
187
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
188
|
+
type: "number",
|
|
189
|
+
desc: "outputPackEnergyTodayWh",
|
|
190
|
+
role: "value.energy",
|
|
191
|
+
read: true,
|
|
192
|
+
write: false,
|
|
193
|
+
unit: "Wh"
|
|
194
|
+
},
|
|
195
|
+
native: {}
|
|
196
|
+
}
|
|
197
|
+
));
|
|
198
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
199
|
+
`${productKey}.${deviceKey}.calculations.outputPackEnergyTodaykWh`,
|
|
200
|
+
{
|
|
201
|
+
type: "state",
|
|
202
|
+
common: {
|
|
203
|
+
name: {
|
|
204
|
+
de: "Heutige Ladung zur Batterie (kWh)",
|
|
205
|
+
en: "todays charge energy to battery (kWh)"
|
|
214
206
|
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
207
|
+
type: "number",
|
|
208
|
+
desc: "outputPackEnergyTodaykWh",
|
|
209
|
+
role: "value.energy",
|
|
210
|
+
read: true,
|
|
211
|
+
write: false,
|
|
212
|
+
unit: "kWh"
|
|
213
|
+
},
|
|
214
|
+
native: {}
|
|
215
|
+
}
|
|
216
|
+
));
|
|
217
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
218
|
+
`${productKey}.${deviceKey}.calculations.packInputEnergyTodayWh`,
|
|
219
|
+
{
|
|
220
|
+
type: "state",
|
|
221
|
+
common: {
|
|
222
|
+
name: {
|
|
223
|
+
de: "Heutige Einspeisung aus Batterie (Wh)",
|
|
224
|
+
en: "Todays discharge energy from battery (Wh)"
|
|
233
225
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
226
|
+
type: "number",
|
|
227
|
+
desc: "packInputEnergyTodayWh",
|
|
228
|
+
role: "value.energy",
|
|
229
|
+
read: true,
|
|
230
|
+
write: false,
|
|
231
|
+
unit: "Wh"
|
|
232
|
+
},
|
|
233
|
+
native: {}
|
|
234
|
+
}
|
|
235
|
+
));
|
|
236
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
237
|
+
`${productKey}.${deviceKey}.calculations.packInputEnergyTodaykWh`,
|
|
238
|
+
{
|
|
239
|
+
type: "state",
|
|
240
|
+
common: {
|
|
241
|
+
name: {
|
|
242
|
+
de: "Heutige Einspeisung aus Batterie (kWh)",
|
|
243
|
+
en: "Todays discharge energy from battery (kWh)"
|
|
252
244
|
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
245
|
+
type: "number",
|
|
246
|
+
desc: "packInputEnergyTodaykWh",
|
|
247
|
+
role: "value.energy",
|
|
248
|
+
read: true,
|
|
249
|
+
write: false,
|
|
250
|
+
unit: "kWh"
|
|
251
|
+
},
|
|
252
|
+
native: {}
|
|
253
|
+
}
|
|
254
|
+
));
|
|
255
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
256
|
+
`${productKey}.${deviceKey}.calculations.outputHomeEnergyTodayWh`,
|
|
257
|
+
{
|
|
258
|
+
type: "state",
|
|
259
|
+
common: {
|
|
260
|
+
name: {
|
|
261
|
+
de: "Heutige Einspeisung ins Haus (Wh)",
|
|
262
|
+
en: "Todays input energy to home (Wh)"
|
|
271
263
|
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
264
|
+
type: "number",
|
|
265
|
+
desc: "outputHomeEnergyTodayWh",
|
|
266
|
+
role: "value.energy",
|
|
267
|
+
read: true,
|
|
268
|
+
write: false,
|
|
269
|
+
unit: "Wh"
|
|
270
|
+
},
|
|
271
|
+
native: {}
|
|
272
|
+
}
|
|
273
|
+
));
|
|
274
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
275
|
+
`${productKey}.${deviceKey}.calculations.outputHomeEnergyTodaykWh`,
|
|
276
|
+
{
|
|
277
|
+
type: "state",
|
|
278
|
+
common: {
|
|
279
|
+
name: {
|
|
280
|
+
de: "Heutige Einspeisung ins Haus (kWh)",
|
|
281
|
+
en: "Todays input energy to home (kWh)"
|
|
290
282
|
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
283
|
+
type: "number",
|
|
284
|
+
desc: "outputHomeEnergyTodaykWh",
|
|
285
|
+
role: "value.energy",
|
|
286
|
+
read: true,
|
|
287
|
+
write: false,
|
|
288
|
+
unit: "kWh"
|
|
289
|
+
},
|
|
290
|
+
native: {}
|
|
291
|
+
}
|
|
292
|
+
));
|
|
293
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
294
|
+
`${productKey}.${deviceKey}.calculations.remainInputTime`,
|
|
295
|
+
{
|
|
296
|
+
type: "state",
|
|
297
|
+
common: {
|
|
298
|
+
name: {
|
|
299
|
+
de: "Erwartete Ladedauer (hh:mm)",
|
|
300
|
+
en: "remaining charge time (hh:mm)"
|
|
308
301
|
},
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
302
|
+
type: "string",
|
|
303
|
+
desc: "calcRemainInputTime",
|
|
304
|
+
role: "value",
|
|
305
|
+
read: true,
|
|
306
|
+
write: false
|
|
307
|
+
},
|
|
308
|
+
native: {}
|
|
309
|
+
}
|
|
310
|
+
));
|
|
311
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
312
|
+
`${productKey}.${deviceKey}.calculations.remainOutTime`,
|
|
313
|
+
{
|
|
314
|
+
type: "state",
|
|
315
|
+
common: {
|
|
316
|
+
name: {
|
|
317
|
+
de: "Erwartete Entladedauer (hh:mm)",
|
|
318
|
+
en: "remaining discharge time (hh:mm)"
|
|
326
319
|
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
320
|
+
type: "string",
|
|
321
|
+
desc: "calcRemainOutTime",
|
|
322
|
+
role: "value",
|
|
323
|
+
read: true,
|
|
324
|
+
write: false
|
|
325
|
+
},
|
|
326
|
+
native: {}
|
|
327
|
+
}
|
|
328
|
+
));
|
|
329
|
+
await (adapter == null ? void 0 : adapter.extendObject(`${productKey}.${deviceKey}.calculations.soc`, {
|
|
330
|
+
type: "state",
|
|
331
|
+
common: {
|
|
332
|
+
name: {
|
|
333
|
+
de: "Ladezustand in % (der nutzbaren Energie)",
|
|
334
|
+
en: "State of Charge % (of usable energy)"
|
|
335
|
+
},
|
|
336
|
+
type: "number",
|
|
337
|
+
desc: "soc",
|
|
338
|
+
role: "value",
|
|
339
|
+
read: true,
|
|
340
|
+
write: false,
|
|
341
|
+
unit: "%"
|
|
342
|
+
},
|
|
343
|
+
native: {}
|
|
344
|
+
}));
|
|
345
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
346
|
+
`${productKey}.${deviceKey}.calculations.energyWh`,
|
|
347
|
+
{
|
|
331
348
|
type: "state",
|
|
332
349
|
common: {
|
|
333
350
|
name: {
|
|
334
|
-
de: "
|
|
335
|
-
en: "
|
|
351
|
+
de: "Nutzbare Energie in den Batterien (Wh)",
|
|
352
|
+
en: "Usable energy in battery (Wh)"
|
|
336
353
|
},
|
|
337
354
|
type: "number",
|
|
338
|
-
desc: "
|
|
355
|
+
desc: "energyWh",
|
|
339
356
|
role: "value",
|
|
340
357
|
read: true,
|
|
341
358
|
write: false,
|
|
342
|
-
unit: "
|
|
359
|
+
unit: "Wh"
|
|
343
360
|
},
|
|
344
361
|
native: {}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
type: "number",
|
|
356
|
-
desc: "energyWh",
|
|
357
|
-
role: "value",
|
|
358
|
-
read: true,
|
|
359
|
-
write: false,
|
|
360
|
-
unit: "Wh"
|
|
361
|
-
},
|
|
362
|
-
native: {}
|
|
363
|
-
}
|
|
364
|
-
));
|
|
365
|
-
await (adapter == null ? void 0 : adapter.extendObject(
|
|
366
|
-
`${productKey}.${deviceKey}.calculations.energyWhMax`,
|
|
367
|
-
{
|
|
368
|
-
type: "state",
|
|
369
|
-
common: {
|
|
370
|
-
name: {
|
|
371
|
-
de: "Max. Energie in allen Batterien (Wh)",
|
|
372
|
-
en: "Max. Energy in battery (Wh)"
|
|
373
|
-
},
|
|
374
|
-
type: "number",
|
|
375
|
-
desc: "energyWhMax",
|
|
376
|
-
role: "value",
|
|
377
|
-
read: true,
|
|
378
|
-
write: true,
|
|
379
|
-
unit: "Wh"
|
|
362
|
+
}
|
|
363
|
+
));
|
|
364
|
+
await (adapter == null ? void 0 : adapter.extendObject(
|
|
365
|
+
`${productKey}.${deviceKey}.calculations.energyWhMax`,
|
|
366
|
+
{
|
|
367
|
+
type: "state",
|
|
368
|
+
common: {
|
|
369
|
+
name: {
|
|
370
|
+
de: "Max. nutzbare Energie in allen Batterien (Wh)",
|
|
371
|
+
en: "Max. usable energy in battery (Wh)"
|
|
380
372
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
373
|
+
type: "number",
|
|
374
|
+
desc: "energyWhMax",
|
|
375
|
+
role: "value",
|
|
376
|
+
read: true,
|
|
377
|
+
write: true,
|
|
378
|
+
unit: "Wh"
|
|
379
|
+
},
|
|
380
|
+
native: {}
|
|
381
|
+
}
|
|
382
|
+
));
|
|
385
383
|
};
|
|
386
384
|
// Annotate the CommonJS export names for ESM import in node:
|
|
387
385
|
0 && (module.exports = {
|