iobroker.zendure-solarflow 1.9.2 → 1.10.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 +126 -118
- package/admin/build/index.js +6 -6
- package/admin/build/index.js.map +2 -2
- package/build/helpers/createControlStates.js +21 -0
- package/build/helpers/createControlStates.js.map +2 -2
- package/build/services/adapterService.js +38 -30
- package/build/services/adapterService.js.map +2 -2
- package/build/services/calculationService.js +7 -2
- package/build/services/calculationService.js.map +2 -2
- package/build/services/mqttService.js +19 -1
- package/build/services/mqttService.js.map +2 -2
- package/io-package.json +27 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,139 +47,147 @@ If you find the adapter useful for you and want to support my work, feel free to
|
|
|
47
47
|
|
|
48
48
|
[](https://www.paypal.com/paypalme/PeterFrommert)
|
|
49
49
|
|
|
50
|
-
## Changelog
|
|
50
|
+
## Changelog
|
|
51
|
+
### 1.10.0 (2024-12-02)
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
- Add setting to perform a full charge if SOC from Zendure is greater than 50% when on low voltage
|
|
54
|
+
- Bugfixes
|
|
55
|
+
|
|
56
|
+
### 1.9.3 (2024-11-22)
|
|
53
57
|
|
|
54
|
-
- Fix
|
|
58
|
+
- Fix for Low Voltage Block not deactivated
|
|
59
|
+
|
|
60
|
+
### 1.9.2 (2024-11-21)
|
|
55
61
|
|
|
62
|
+
- Fix some state definitions
|
|
63
|
+
|
|
56
64
|
### 1.9.1 (2024-11-21)
|
|
57
65
|
|
|
58
66
|
- Improvement for 'Low Voltage Block'.
|
|
59
|
-
- Changed the state "hubState" a an option value.
|
|
60
|
-
|
|
67
|
+
- Changed the state "hubState" a an option value.
|
|
68
|
+
|
|
61
69
|
### 1.9.0 (2024-11-20)
|
|
62
70
|
|
|
63
|
-
- New option to force Solarflow device to go offline when "Low Voltage Block"-option is used.
|
|
64
|
-
|
|
71
|
+
- New option to force Solarflow device to go offline when "Low Voltage Block"-option is used.
|
|
72
|
+
|
|
65
73
|
### 1.8.8 (2024-09-20)
|
|
66
74
|
|
|
67
75
|
- Improve connection retry, expand the time with every retry attempt.
|
|
68
76
|
- Start "restart adapter job" regardless of connection.
|
|
69
|
-
- Fix Hyper setInputLimit with step
|
|
70
|
-
|
|
77
|
+
- Fix Hyper setInputLimit with step
|
|
78
|
+
|
|
71
79
|
### 1.8.7 (2024-09-09)
|
|
72
80
|
|
|
73
|
-
- Fix missing control states for AIO
|
|
74
|
-
|
|
81
|
+
- Fix missing control states for AIO
|
|
82
|
+
|
|
75
83
|
### 1.8.6 (2024-09-06)
|
|
76
84
|
|
|
77
|
-
- Change login method: Added a retry loop for connecting to Zendure Cloud, if the Cloud Service "hangs" or is not available it will retry the connection 3 times.
|
|
78
|
-
|
|
85
|
+
- Change login method: Added a retry loop for connecting to Zendure Cloud, if the Cloud Service "hangs" or is not available it will retry the connection 3 times.
|
|
86
|
+
|
|
79
87
|
### 1.8.5 (2024-08-26)
|
|
80
88
|
|
|
81
89
|
- Fix missing states for new HUB Firmware when connected to ACE
|
|
82
|
-
- Fix correct max value for AIO
|
|
83
|
-
|
|
90
|
+
- Fix correct max value for AIO
|
|
91
|
+
|
|
84
92
|
### 1.8.4 (2024-08-16)
|
|
85
93
|
|
|
86
94
|
- Add support for Smart Plug, but only Power is available at the moment - unstable as often data is not updated by MQTT
|
|
87
|
-
- Some code improvements
|
|
88
|
-
|
|
95
|
+
- Some code improvements
|
|
96
|
+
|
|
89
97
|
### 1.8.3 (2024-08-12)
|
|
90
98
|
|
|
91
99
|
- Fix SOC and energyWhMax Value (counted by type of attached batteries)
|
|
92
100
|
- Add Calculation for Grid Input (only for Ace 1500 and Hyper 2000)
|
|
93
|
-
- Fix suggestions by ioBroker repository checker
|
|
94
|
-
|
|
101
|
+
- Fix suggestions by ioBroker repository checker
|
|
102
|
+
|
|
95
103
|
### 1.7.7 (2024-08-02)
|
|
96
104
|
|
|
97
|
-
- Fix Input and Output limit for Hyper 2000
|
|
98
|
-
|
|
105
|
+
- Fix Input and Output limit for Hyper 2000
|
|
106
|
+
|
|
99
107
|
### 1.7.6 (2024-08-01)
|
|
100
108
|
|
|
101
109
|
- Fix support for 'Hyper_Test' devices
|
|
102
|
-
- Improved code for state creation
|
|
103
|
-
|
|
110
|
+
- Improved code for state creation
|
|
111
|
+
|
|
104
112
|
### 1.7.5 (2024-07-31)
|
|
105
113
|
|
|
106
114
|
- Fix controlling AC mode for Hyper 2000 (set acMode to 1: Charge by AC, 2: Output to AC)
|
|
107
115
|
- Show product name in channel name
|
|
108
116
|
- Show battery type as state in packData
|
|
109
|
-
- Show Hyper Temperature in States
|
|
110
|
-
|
|
117
|
+
- Show Hyper Temperature in States
|
|
118
|
+
|
|
111
119
|
### 1.7.4 (2024-07-31)
|
|
112
120
|
|
|
113
|
-
- Set max value and step for setInputLimit
|
|
114
|
-
|
|
121
|
+
- Set max value and step for setInputLimit
|
|
122
|
+
|
|
115
123
|
### 1.7.3 (2024-07-30)
|
|
116
124
|
|
|
117
125
|
- Fix AC input value for Hyper to max. 1200W
|
|
118
|
-
- Fix dcSwitch and acSwitch value
|
|
119
|
-
|
|
126
|
+
- Fix dcSwitch and acSwitch value
|
|
127
|
+
|
|
120
128
|
### 1.7.2 (2024-07-29)
|
|
121
129
|
|
|
122
|
-
- Fix acSwitch for ACE and Hyper
|
|
123
|
-
|
|
130
|
+
- Fix acSwitch for ACE and Hyper
|
|
131
|
+
|
|
124
132
|
### 1.7.1 (2024-07-29)
|
|
125
133
|
|
|
126
134
|
- Fix missing ACE 1500 when connected with HUB1200 / HUB2000
|
|
127
|
-
- Fix some missing states
|
|
128
|
-
|
|
135
|
+
- Fix some missing states
|
|
136
|
+
|
|
129
137
|
### 1.7.0 (2024-07-26)
|
|
130
138
|
|
|
131
139
|
- Add support for Hyper 2000 and ACE 1500. Maybe not all states and control parameter are available. Still need to do some investigation.
|
|
132
|
-
- Some minor bugfixes.
|
|
133
|
-
|
|
140
|
+
- Some minor bugfixes.
|
|
141
|
+
|
|
134
142
|
### 1.6.7 (2024-06-23)
|
|
135
143
|
|
|
136
|
-
- Fix reconnect again. Adapter will now restart every 3 hours to cleanup fully.
|
|
137
|
-
|
|
144
|
+
- Fix reconnect again. Adapter will now restart every 3 hours to cleanup fully.
|
|
145
|
+
|
|
138
146
|
### 1.6.6 (2024-06-21)
|
|
139
147
|
|
|
140
|
-
- Tweaked recurring refresh of access token.
|
|
141
|
-
|
|
148
|
+
- Tweaked recurring refresh of access token.
|
|
149
|
+
|
|
142
150
|
### 1.6.5 (2024-06-20)
|
|
143
151
|
|
|
144
|
-
- Fix reconnect issue. Adapter will now restart if connection semms to be broken.
|
|
145
|
-
|
|
152
|
+
- Fix reconnect issue. Adapter will now restart if connection semms to be broken.
|
|
153
|
+
|
|
146
154
|
### 1.6.4 (2024-06-03)
|
|
147
155
|
|
|
148
|
-
- Fix services
|
|
149
|
-
|
|
156
|
+
- Fix services
|
|
157
|
+
|
|
150
158
|
### 1.6.3 (2024-06-03)
|
|
151
159
|
|
|
152
|
-
- Fixed reconnect when connection seems to be dead.
|
|
153
|
-
|
|
160
|
+
- Fixed reconnect when connection seems to be dead.
|
|
161
|
+
|
|
154
162
|
### 1.6.2 (2024-05-21)
|
|
155
163
|
|
|
156
|
-
- Changed standby usage to 10W
|
|
157
|
-
|
|
164
|
+
- Changed standby usage to 10W
|
|
165
|
+
|
|
158
166
|
### 1.6.1 (2024-05-13)
|
|
159
167
|
|
|
160
168
|
- Fix issue that sometime data is not updated
|
|
161
|
-
- Add standby usage of HUB (20W) when solarinput is low
|
|
162
|
-
|
|
169
|
+
- Add standby usage of HUB (20W) when solarinput is low
|
|
170
|
+
|
|
163
171
|
### 1.5.3 (2024-04-19)
|
|
164
172
|
|
|
165
|
-
- Fix autoRecover datatype issue
|
|
166
|
-
|
|
173
|
+
- Fix autoRecover datatype issue
|
|
174
|
+
|
|
167
175
|
### 1.5.2 (2024-04-17)
|
|
168
176
|
|
|
169
|
-
- Minor bugfixes and improvements
|
|
170
|
-
|
|
177
|
+
- Minor bugfixes and improvements
|
|
178
|
+
|
|
171
179
|
### 1.5.0 (2024-04-12)
|
|
172
180
|
|
|
173
|
-
- Add the possibility to connect to the 'Fallback' MQTT server known as 'Developer MQTT'. This server is read-only - so no control is possible!
|
|
174
|
-
|
|
181
|
+
- Add the possibility to connect to the 'Fallback' MQTT server known as 'Developer MQTT'. This server is read-only - so no control is possible!
|
|
182
|
+
|
|
175
183
|
### 1.4.0 (2024-04-03)
|
|
176
184
|
|
|
177
185
|
- Add calculation states for solar input 1 & 2
|
|
178
186
|
- Add states for wifiState, hubState, pvBrand and inverseMaxPower
|
|
179
187
|
- Rename missleading title for input field 'Username' in settings to 'E-Mail'
|
|
180
188
|
- Fix energyWh, energyWhMax and SOC in calculations if "Low Voltage Check" is not used, it will set the calculation soc to 0 if minSoc (discharge limit) is reached
|
|
181
|
-
- Fix password input in settings
|
|
182
|
-
|
|
189
|
+
- Fix password input in settings
|
|
190
|
+
|
|
183
191
|
### 1.3.0 (2024-03-26)
|
|
184
192
|
|
|
185
193
|
- Fix calculation for outputPackEnergy and packInputEnergy
|
|
@@ -188,149 +196,149 @@ If you find the adapter useful for you and want to support my work, feel free to
|
|
|
188
196
|
- Add state and control for bypass mode and automatic reset of bypass mode next day
|
|
189
197
|
- Add states for pass (Bypass on/off), autoRecover (auto-mode for Bypass next day) and passMode (current bypass mode)
|
|
190
198
|
- Add efficiency factor for calculations (96% charging, 92%-98%\* for discharging - based on measuring from VoltAmpereLux Youtube channel - THANKS!)
|
|
191
|
-
- Changed calculations timeframe from 10secs to 30secs (performance related)
|
|
192
|
-
|
|
199
|
+
- Changed calculations timeframe from 10secs to 30secs (performance related)
|
|
200
|
+
|
|
193
201
|
### 1.2.5 (2024-03-19)
|
|
194
202
|
|
|
195
|
-
- Fix error "Read-only" state written without ack-flag
|
|
196
|
-
|
|
203
|
+
- Fix error "Read-only" state written without ack-flag
|
|
204
|
+
|
|
197
205
|
### 1.2.4 (2024-03-18)
|
|
198
206
|
|
|
199
|
-
- Use setInterval instead of cronjob for refreshing access token
|
|
200
|
-
|
|
207
|
+
- Use setInterval instead of cronjob for refreshing access token
|
|
208
|
+
|
|
201
209
|
### 1.2.3 (2024-03-15)
|
|
202
210
|
|
|
203
211
|
- Fix ACK on onStateChange
|
|
204
|
-
- Update Readme
|
|
205
|
-
|
|
212
|
+
- Update Readme
|
|
213
|
+
|
|
206
214
|
### 1.2.2 (2024-03-14)
|
|
207
215
|
|
|
208
216
|
- Fix issue that renamed devices could not be found.
|
|
209
217
|
- Add states for name, product name, serial ID and configured server.
|
|
210
218
|
- Make "energyWhMax" State writable, so you can adjust the max Value.
|
|
211
|
-
- Sent a warning if a device is configured for a server not in use.
|
|
212
|
-
|
|
219
|
+
- Sent a warning if a device is configured for a server not in use.
|
|
220
|
+
|
|
213
221
|
### 1.2.1 (2024-03-13)
|
|
214
222
|
|
|
215
223
|
- Fix calculation of soc: Set energyMaxWh to current energyWh if Zendures SOC is 100%
|
|
216
|
-
- Round SOC to max 1 digit after comma.
|
|
217
|
-
|
|
224
|
+
- Round SOC to max 1 digit after comma.
|
|
225
|
+
|
|
218
226
|
### 1.2.0 (2024-03-13)
|
|
219
227
|
|
|
220
228
|
- EU server is working now.
|
|
221
229
|
- Fix calculation errors in log when calculation is not used
|
|
222
230
|
- More Debug Output
|
|
223
231
|
- Filter SolarFlow devices, so no other devices (e.g. SmartPlugs) will be added.
|
|
224
|
-
- Clear password when settings loaded, as encrypted password is loaded into input and leads to a wrong password.
|
|
225
|
-
|
|
232
|
+
- Clear password when settings loaded, as encrypted password is loaded into input and leads to a wrong password.
|
|
233
|
+
|
|
226
234
|
### 1.1.23 (2024-03-11)
|
|
227
235
|
|
|
228
236
|
- Fix calculation of "energy in batteries"
|
|
229
|
-
- Try to implement EU server - untested -
|
|
230
|
-
|
|
237
|
+
- Try to implement EU server - untested -
|
|
238
|
+
|
|
231
239
|
### 1.1.22 (2024-03-09)
|
|
232
240
|
|
|
233
|
-
- Try to fix reset values at midnight
|
|
234
|
-
|
|
241
|
+
- Try to fix reset values at midnight
|
|
242
|
+
|
|
235
243
|
### 1.1.21 (2024-03-08)
|
|
236
244
|
|
|
237
|
-
- Fix calculation timeframe
|
|
238
|
-
|
|
245
|
+
- Fix calculation timeframe
|
|
246
|
+
|
|
239
247
|
### 1.1.17 (2024-03-08)
|
|
240
248
|
|
|
241
249
|
- Improve calculations
|
|
242
|
-
- No autocomplete on settings
|
|
243
|
-
|
|
250
|
+
- No autocomplete on settings
|
|
251
|
+
|
|
244
252
|
### 1.1.15 (2024-03-06)
|
|
245
253
|
|
|
246
254
|
- Calculations improved
|
|
247
|
-
- Stop energy input on low voltage is now an option in settings
|
|
248
|
-
|
|
255
|
+
- Stop energy input on low voltage is now an option in settings
|
|
256
|
+
|
|
249
257
|
### 1.1.14 (2024-03-04)
|
|
250
258
|
|
|
251
259
|
- Reorganize Code
|
|
252
260
|
- Calculations are now optional and have to be enabled in settings
|
|
253
261
|
- Calculation of SOC from voltage and energy go in and out of batteries
|
|
254
|
-
- Stop energy feed if voltage drops under limit
|
|
255
|
-
|
|
262
|
+
- Stop energy feed if voltage drops under limit
|
|
263
|
+
|
|
256
264
|
### 1.1.11 (2024-03-01)
|
|
257
265
|
|
|
258
266
|
- Fix Solar Input 1 and 2 from the new Zendure firmware
|
|
259
267
|
- Fix remaining charging time
|
|
260
|
-
- Fix calculations overwritten when data with 0 value comes in.
|
|
261
|
-
|
|
268
|
+
- Fix calculations overwritten when data with 0 value comes in.
|
|
269
|
+
|
|
262
270
|
### 1.1.8 (2024-02-29)
|
|
263
271
|
|
|
264
|
-
- Fix calculation error
|
|
265
|
-
|
|
272
|
+
- Fix calculation error
|
|
273
|
+
|
|
266
274
|
### 1.1.7 (2024-02-29)
|
|
267
275
|
|
|
268
276
|
- Add energy calculations for 'today'
|
|
269
|
-
- Fix minutes display bug for remaining charge and discharge time
|
|
270
|
-
|
|
277
|
+
- Fix minutes display bug for remaining charge and discharge time
|
|
278
|
+
|
|
271
279
|
### 1.1.4 (2024-02-28)
|
|
272
280
|
|
|
273
|
-
- Fix timeout issues
|
|
274
|
-
|
|
281
|
+
- Fix timeout issues
|
|
282
|
+
|
|
275
283
|
### 1.1.0 (2024-02-27)
|
|
276
284
|
|
|
277
285
|
- Switched solar input 1 und 2 to adjust the behavior like the offical app
|
|
278
286
|
- Added Calculations folder, remaining charge and discharge time is now available as formatted time
|
|
279
|
-
- Added a note in the settings that this adapter only works with the global server
|
|
280
|
-
|
|
287
|
+
- Added a note in the settings that this adapter only works with the global server
|
|
288
|
+
|
|
281
289
|
### 1.0.7 (2024-01-16)
|
|
282
290
|
|
|
283
291
|
- Add control for charge and discharge limit
|
|
284
|
-
- Update Readme Screenshot
|
|
285
|
-
|
|
292
|
+
- Update Readme Screenshot
|
|
293
|
+
|
|
286
294
|
### 1.0.6 (2024-01-16)
|
|
287
295
|
|
|
288
|
-
- Update Readme
|
|
289
|
-
|
|
296
|
+
- Update Readme
|
|
297
|
+
|
|
290
298
|
### 1.0.5 (2024-01-15)
|
|
291
299
|
|
|
292
|
-
- Added state for both Solarflow PV inputs
|
|
293
|
-
|
|
300
|
+
- Added state for both Solarflow PV inputs
|
|
301
|
+
|
|
294
302
|
### 1.0.4 (2023-12-16)
|
|
295
303
|
|
|
296
|
-
- Added Timeout for axios
|
|
297
|
-
|
|
304
|
+
- Added Timeout for axios
|
|
305
|
+
|
|
298
306
|
### 1.0.3 (2023-12-12)
|
|
299
307
|
|
|
300
|
-
- Password is now encrypted. NOTE: You have to re-enter the password after adapter update!
|
|
301
|
-
|
|
308
|
+
- Password is now encrypted. NOTE: You have to re-enter the password after adapter update!
|
|
309
|
+
|
|
302
310
|
### 1.0.2 (2023-12-12)
|
|
303
311
|
|
|
304
312
|
- Adapter improvements suggested by iobroker team
|
|
305
|
-
- Fixed battery pack temperature (data is in kelvin, so now converting to celcius)
|
|
306
|
-
|
|
313
|
+
- Fixed battery pack temperature (data is in kelvin, so now converting to celcius)
|
|
314
|
+
|
|
307
315
|
### 1.0.1 (2023-11-03)
|
|
308
316
|
|
|
309
317
|
- Fix translationscd so
|
|
310
318
|
- Use 'extendObject' instead of 'setObjectNotExistsAsync'
|
|
311
|
-
- First official release version
|
|
312
|
-
|
|
319
|
+
- First official release version
|
|
320
|
+
|
|
313
321
|
### 0.1.0-alpha.2 (2023-10-27)
|
|
314
322
|
|
|
315
|
-
- Don't stop the adapter when no login information is provided!
|
|
316
|
-
|
|
323
|
+
- Don't stop the adapter when no login information is provided!
|
|
324
|
+
|
|
317
325
|
### 0.1.0-alpha.1 (2023-10-27)
|
|
318
326
|
|
|
319
|
-
- Fix Typescript typos
|
|
320
|
-
|
|
327
|
+
- Fix Typescript typos
|
|
328
|
+
|
|
321
329
|
### 0.1.0-alpha.0 (2023-10-26)
|
|
322
330
|
|
|
323
331
|
- Get battery information
|
|
324
|
-
- Reset states if no new data comes in (e.g. when Hub goes offline). Currently the last value still persist when Hub goes offline, so you may have 'pseudo' data in your states.
|
|
325
|
-
|
|
332
|
+
- Reset states if no new data comes in (e.g. when Hub goes offline). Currently the last value still persist when Hub goes offline, so you may have 'pseudo' data in your states.
|
|
333
|
+
|
|
326
334
|
### 0.0.2 (2023-10-25)
|
|
327
335
|
|
|
328
|
-
- Initital Release, retrieving Hub data, telemetry and setting the output limit works!
|
|
329
|
-
|
|
336
|
+
- Initital Release, retrieving Hub data, telemetry and setting the output limit works!
|
|
337
|
+
|
|
330
338
|
### 0.0.1 (2023-10-24)
|
|
331
339
|
|
|
332
|
-
- First test
|
|
333
|
-
|
|
340
|
+
- First test
|
|
341
|
+
|
|
334
342
|
## License
|
|
335
343
|
|
|
336
344
|
MIT License
|
|
@@ -353,4 +361,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
353
361
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
354
362
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
355
363
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
356
|
-
SOFTWARE.
|
|
364
|
+
SOFTWARE.
|