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