iobroker.alpha-ess 1.3.0 → 2.0.0-beta.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 CHANGED
@@ -11,12 +11,12 @@
11
11
 
12
12
  ## alpha-ess adapter for ioBroker
13
13
 
14
- This adapter logs into the web API of [Alpha ESS](https://www.alphaess.com/) and retrieves information for your Alpha ESS equipment.\
15
- Depending on your Alpha ESS product, it is possible to get realtime data and configuration data for your equipment. Which data points are returned by the API depends on your Alpha ESS equipment.
14
+ This adapter logs into the web API of [Alpha-ESS](https://www.alphaess.com/) and retrieves information for your Alpha-ESS equipment.\
15
+ Depending on your Alpha-ESS product, it is possible to get realtime data and configuration data for your equipment. Which data points are returned by the API depends on your Alpha-ESS equipment.
16
16
 
17
- This adapter supports two APIs, the internal Alpha ESS Web API, which may be changed at any time by Alpha ESS, and the Alpha ESS Open API, which provides less functionality but is an official and documented API for Alpha ESS devices.
17
+ This adapter uses the Alpha-ESS Open API, which is an official and documented API for Alpha-ESS devices.
18
18
 
19
- Staring with version 1.0.0-alpha.5, the quality attribute of each state is set accordingly to its status:
19
+ The quality attribute of each state is set accordingly to its status:
20
20
  | Quality | meaning |
21
21
  |:--------|:--------------------------------------------------|
22
22
  |0x00 |OK and up to date |
@@ -27,55 +27,33 @@ Staring with version 1.0.0-alpha.5, the quality attribute of each state is set a
27
27
 
28
28
  ## Settings:
29
29
 
30
- **Used API:** Choose between the inofficial "Closed" API and the official "Open" API
31
- Depending on the selected API there are different settings available.
32
-
33
- **Closed API Settings:**
34
-
35
- - **Username:** The username of your Alpha ESS Account
36
- - **Password:** The password of your Alpha ESS Account
37
- - **Alpha ESS System ID:** The system Identifier of your Alpha ESS equipment
38
- - **Interval to read realtime data:** Unit: seconds.
39
- - **Interval to read energy data:** Unit: minutes.
40
- - **Interval to read settings data:** Unit: minutes.
41
- - **Interval to read statistical data for the current day:** Unit: minutes.
42
- - **Interval to read summary data:** Unit: minutes.
43
-
44
- It is possible to use a demo account provided by Alpha ESS. The credentials (user name, system id) are set as default values within the adapter.
45
- The password is stored encrypted and must therefore be entered manually: demo
46
-
47
- **Open API Settings:**
48
-
49
- To be able to use the new Open API you have to register your Alpha-ESS device unter https://open.alphaess.com. Once registered, you get a developer ID and a developer key (called "Secret"). You will need these to have access to the Open API. Currently I have no information if this will be changed in the future.
30
+ To be able to use the Alpha-ESS Open API, you have to register your Alpha-ESS device unter https://open.alphaess.com. Once registered, you get a developer ID and a developer key (called "Secret"). You will need these to have access to the Open API.
50
31
  How to find SN and Check code for registration is described here: https://github.com/alphaess-developer/alphacloud_open_api
51
32
 
52
33
  - **Personal application ID:** The application ID (see above)
53
34
  - **Personal application Secret:** The application Secret (see above)
54
- - **Alpha ESS System ID:** The system Identifier of your Alpha ESS equipment
35
+ - **Alpha-ESS System ID:** The system Identifier of your Alpha-ESS equipment
55
36
  - **Interval to read realtime data:** Unit: seconds.
56
37
  - **Interval to read energy data:** Unit: minutes.
57
38
  - **Interval to read charging settings:** Unit: minutes.
58
39
  - **Interval to read discharging settings:** Unit: minutes.
59
40
  - **Interval to read summary data:** Unit: minutes.
60
41
  - **Interval to read wallbox data:** Unit: minutes. Caution: Currently only one Wallbox is supported.
42
+ - **Update unchanged states:** If this option is checked, states are changed even if the corresponding value is unchanged.
61
43
 
62
44
  ## Disclaimer
63
45
 
64
46
  **All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal.**
65
47
 
66
48
  ## Changelog
67
- ### 1.3.0 (2023-11-22)
68
-
69
- - (Gaspode) Support wallbox with Open API
70
- - (Gaspode) Start and stop charging of wallbox with Open API
49
+ ### 2.0.0-beta.0 (2023-12-01)
71
50
 
72
- ### 1.3.0-beta.1 (2023-11-21)
51
+ - (Gaspode) Breaking Change: Removed support of Closed API
73
52
 
74
- - (Gaspode) Start and stop charging of wallbox with Open API
75
-
76
- ### 1.3.0-beta.0 (2023-11-18)
53
+ ### 1.3.0 (2023-11-22)
77
54
 
78
55
  - (Gaspode) Support wallbox with Open API
56
+ - (Gaspode) Start and stop charging of wallbox with Open API
79
57
 
80
58
  ### 1.2.1 (2023-11-11)
81
59
 
@@ -139,11 +117,11 @@ How to find SN and Check code for registration is described here: https://github
139
117
 
140
118
  - (Gaspode) Use meaningful state names
141
119
  - (Gaspode) Use suitable state roles
142
- - (Gaspode) Added new state for Alpha ESS settings parameter 'upsReserve'
120
+ - (Gaspode) Added new state for Alpha-ESS settings parameter 'upsReserve'
143
121
 
144
122
  ### 0.0.4
145
123
 
146
- - (Gaspode) use axios to perform Alpha ESS API calls instead of deprecated request
124
+ - (Gaspode) use axios to perform Alpha-ESS API calls instead of deprecated request
147
125
  - (Gaspode) New option "Update unchanged states" added
148
126
 
149
127
  ### 0.0.3
@@ -2,53 +2,17 @@
2
2
  "i18n": true,
3
3
  "type": "panel",
4
4
  "items": {
5
- "apiType": {
6
- "sm": 5,
7
- "type": "select",
8
- "label": "Select API",
9
- "newLine": true,
10
- "options": [
11
- { "label": "Closed API", "value": 0 },
12
- { "label": "Open API", "value": 1 }
13
- ]
14
- },
15
- "closedAPINotSupported": {
16
- "sm": 5,
17
- "type": "staticText",
18
- "text": "Sorry. Closed API currently not supported!",
19
- "style": {
20
- "color": "red"
21
- },
22
- "newLine": true,
23
- "hidden": "data.apiType == 1 || data.apiType == 0"
24
- },
25
- "username": {
26
- "sm": 5,
27
- "type": "text",
28
- "label": "Username",
29
- "newLine": true,
30
- "hidden": "data.apiType == 1 || data.apiType == 3"
31
- },
32
- "password": {
33
- "sm": 5,
34
- "type": "password",
35
- "label": "Password",
36
- "newLine": true,
37
- "hidden": "data.apiType == 1 || data.apiType == 3"
38
- },
39
5
  "appID": {
40
6
  "sm": 5,
41
7
  "type": "text",
42
8
  "label": "Personal APP ID",
43
- "newLine": true,
44
- "hidden": "data.apiType == 0"
9
+ "newLine": true
45
10
  },
46
11
  "appSecret": {
47
12
  "sm": 5,
48
13
  "type": "password",
49
14
  "label": "Personal APP Secret",
50
- "newLine": true,
51
- "hidden": "data.apiType == 0"
15
+ "newLine": true
52
16
  },
53
17
  "systemId": {
54
18
  "sm": 5,
@@ -57,122 +21,9 @@
57
21
  "newLine": true,
58
22
  "disabled": "data.apiType == 3"
59
23
  },
60
- "enableRealtimedata": {
61
- "type": "checkbox",
62
- "newLine": true,
63
- "hidden": "data.apiType == 1 || data.apiType == 3"
64
- },
65
- "intervalRealtimedata": {
66
- "sm": 5,
67
- "min": 10,
68
- "type": "number",
69
- "label": "Interval to read realtime data",
70
- "newLine": false,
71
- "disabled": "!data.enableRealtimedata",
72
- "hidden": "data.apiType == 1 || data.apiType == 3"
73
- },
74
- "enableEnergydata": {
75
- "type": "checkbox",
76
- "newLine": true,
77
- "hidden": "data.apiType == 1 || data.apiType == 3"
78
- },
79
- "intervalEnergydataMins": {
80
- "sm": 5,
81
- "min": 1,
82
- "type": "number",
83
- "label": "Interval to read energy data",
84
- "newLine": false,
85
- "disabled": "!data.enableEnergydata",
86
- "hidden": "data.apiType == 1 || data.apiType == 3"
87
- },
88
- "enableSettingsdata": {
89
- "type": "checkbox",
90
- "newLine": true,
91
- "hidden": "data.apiType == 1 || data.apiType == 3"
92
- },
93
- "enableSettingsCharge": {
94
- "type": "checkbox",
95
- "newLine": true,
96
- "hidden": "true"
97
- },
98
- "intervalSettingsChargeMins": {
99
- "sm": 5,
100
- "min": 1,
101
- "type": "number",
102
- "label": "Interval to read charging settings",
103
- "newLine": false,
104
- "disabled": "!data.oAEnableSettingsCharge",
105
- "hidden": "true"
106
- },
107
- "enableSettingsDisCharge": {
108
- "type": "checkbox",
109
- "newLine": true,
110
- "hidden": "true"
111
- },
112
- "intervalSettingsDisChargeMins": {
113
- "sm": 5,
114
- "min": 1,
115
- "type": "number",
116
- "label": "Interval to read charging settings",
117
- "newLine": false,
118
- "disabled": "!data.oAEnableSettingsCharge",
119
- "hidden": "true"
120
- },
121
- "intervalSettingsdataMins": {
122
- "sm": 5,
123
- "min": 1,
124
- "type": "number",
125
- "label": "Interval to read settings data",
126
- "newLine": false,
127
- "disabled": "!data.enableSettingsdata",
128
- "hidden": "data.apiType == 1 || data.apiType == 3"
129
- },
130
- "enableStatisticalTodaydata": {
131
- "type": "checkbox",
132
- "newLine": true,
133
- "hidden": "data.apiType == 1 || data.apiType == 3"
134
- },
135
- "intervalStatisticalTodaydataMins": {
136
- "sm": 5,
137
- "min": 1,
138
- "type": "number",
139
- "label": "Interval to read statistical data (today)",
140
- "newLine": false,
141
- "disabled": "!data.enableStatisticalTodaydata",
142
- "hidden": "data.apiType == 1 || data.apiType == 3"
143
- },
144
- "enableSummarydata": {
145
- "type": "checkbox",
146
- "newLine": true,
147
- "hidden": "data.apiType == 1 || data.apiType == 3"
148
- },
149
- "intervalSummarydataMins": {
150
- "sm": 5,
151
- "min": 5,
152
- "type": "number",
153
- "label": "Interval to read summary data",
154
- "newLine": false,
155
- "disabled": "!data.enableSummarydata",
156
- "hidden": "data.apiType == 1 || data.apiType == 3"
157
- },
158
- "enableWallbox": {
159
- "type": "checkbox",
160
- "newLine": true,
161
- "hidden": "true"
162
- },
163
- "intervalWallboxMins": {
164
- "sm": 5,
165
- "min": 1,
166
- "type": "number",
167
- "label": "Interval to read wallbox data",
168
- "newLine": false,
169
- "disabled": "!data.oAEnableWallbox",
170
- "hidden": "true"
171
- },
172
24
  "oAEnableRealtime": {
173
25
  "type": "checkbox",
174
- "newLine": true,
175
- "hidden": "data.apiType == 0"
26
+ "newLine": true
176
27
  },
177
28
  "oAIntervalRealtime": {
178
29
  "sm": 5,
@@ -180,13 +31,11 @@
180
31
  "type": "number",
181
32
  "label": "Interval to read realtime data",
182
33
  "newLine": false,
183
- "disabled": "!data.oAEnableRealtime",
184
- "hidden": "data.apiType == 0"
34
+ "disabled": "!data.oAEnableRealtime"
185
35
  },
186
36
  "oAEnableEnergy": {
187
37
  "type": "checkbox",
188
- "newLine": true,
189
- "hidden": "data.apiType == 0"
38
+ "newLine": true
190
39
  },
191
40
  "oAIntervalEnergyMins": {
192
41
  "sm": 5,
@@ -194,41 +43,11 @@
194
43
  "type": "number",
195
44
  "label": "Interval to read energy data",
196
45
  "newLine": false,
197
- "disabled": "!data.oAEnableEnergy",
198
- "hidden": "data.apiType == 0"
199
- },
200
- "oAEnableStatisticsToday": {
201
- "type": "checkbox",
202
- "newLine": true,
203
- "hidden": "true"
204
- },
205
- "oAIntervalStatisticsTodayMins": {
206
- "sm": 5,
207
- "min": 5,
208
- "type": "number",
209
- "label": "Interval to read statistical data (today)",
210
- "newLine": false,
211
- "disabled": "!data.oAEnableStatisticsToday",
212
- "hidden": "true"
213
- },
214
- "oAEnableSettings": {
215
- "type": "checkbox",
216
- "newLine": true,
217
- "hidden": "true"
218
- },
219
- "oAIntervalSettingsMins": {
220
- "sm": 5,
221
- "min": 1,
222
- "type": "number",
223
- "label": "Interval to read settings data",
224
- "newLine": false,
225
- "disabled": "!data.oAEnableSettings",
226
- "hidden": "true"
46
+ "disabled": "!data.oAEnableEnergy"
227
47
  },
228
48
  "oAEnableSettingsCharge": {
229
49
  "type": "checkbox",
230
- "newLine": true,
231
- "hidden": "data.apiType == 0"
50
+ "newLine": true
232
51
  },
233
52
  "oAIntervalSettingsChargeMins": {
234
53
  "sm": 5,
@@ -236,13 +55,11 @@
236
55
  "type": "number",
237
56
  "label": "Interval to read charging settings",
238
57
  "newLine": false,
239
- "disabled": "!data.oAEnableSettingsCharge",
240
- "hidden": "data.apiType == 0"
58
+ "disabled": "!data.oAEnableSettingsCharge"
241
59
  },
242
60
  "oAEnableSettingsDischarge": {
243
61
  "type": "checkbox",
244
- "newLine": true,
245
- "hidden": "data.apiType == 0"
62
+ "newLine": true
246
63
  },
247
64
  "oAIntervalSettingsDischargeMins": {
248
65
  "sm": 5,
@@ -250,13 +67,11 @@
250
67
  "type": "number",
251
68
  "label": "Interval to read discharging settings",
252
69
  "newLine": false,
253
- "disabled": "!data.oAEnableSettingsDischarge",
254
- "hidden": "data.apiType == 0"
70
+ "disabled": "!data.oAEnableSettingsDischarge"
255
71
  },
256
72
  "oAEnableSummary": {
257
73
  "type": "checkbox",
258
- "newLine": true,
259
- "hidden": "data.apiType == 0"
74
+ "newLine": true
260
75
  },
261
76
  "oAIntervalSummaryMins": {
262
77
  "sm": 5,
@@ -264,13 +79,11 @@
264
79
  "type": "number",
265
80
  "label": "Interval to read summary data",
266
81
  "newLine": false,
267
- "disabled": "!data.oAEnableSummary",
268
- "hidden": "data.apiType == 0"
82
+ "disabled": "!data.oAEnableSummary"
269
83
  },
270
84
  "oAEnableWallbox": {
271
85
  "type": "checkbox",
272
- "newLine": true,
273
- "hidden": "data.apiType == 0"
86
+ "newLine": true
274
87
  },
275
88
  "oAIntervalWallboxMins": {
276
89
  "sm": 5,
@@ -278,8 +91,7 @@
278
91
  "type": "number",
279
92
  "label": "Interval to read wallbox data",
280
93
  "newLine": false,
281
- "disabled": "!data.oAEnableWallbox",
282
- "hidden": "data.apiType == 0"
94
+ "disabled": "!data.oAEnableWallbox"
283
95
  },
284
96
  "updateUnchangedStates": {
285
97
  "type": "checkbox",
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "alpha-ess",
4
- "version": "1.3.0",
4
+ "version": "2.0.0-beta.0",
5
5
  "news": {
6
+ "2.0.0-beta.0": {
7
+ "en": "Breaking Change: Removed support of Closed API",
8
+ "de": "Breaking Change: Entfernte Unterstützung von Closed API",
9
+ "ru": "Перерыв изменения: Удаленная поддержка Закрытого API",
10
+ "pt": "Mudança de ruptura: Suporte removido da API fechada",
11
+ "nl": "Vertaling: Verwijderde steun van gesloten API",
12
+ "fr": "Changement de rupture : Soutien retiré de l'API fermée",
13
+ "it": "Cambiamento di rottura: Supporto rimosso delle API chiuse",
14
+ "es": "Cambio de ruptura: Soporte extraído de API cerrada",
15
+ "pl": "Zmiana: Przewiduje wsparcie API Closed",
16
+ "uk": "Зміна несправностей: Видалити підтримку Закритого API",
17
+ "zh-cn": "打破变化: B. 取消对已结束的反补贴方案的支持"
18
+ },
6
19
  "1.3.0": {
7
20
  "en": "Support wallbox with Open API\nStart and stop charging of wallbox with Open API",
8
21
  "de": "Wallbox Unterstützung mit Open API\nStarten und stoppen des Ladevorgangs der Wallbox mit Open API",
@@ -129,55 +142,31 @@
129
142
  ]
130
143
  },
131
144
  "encryptedNative": [
132
- "password",
133
145
  "appSecret"
134
146
  ],
135
147
  "protectedNative": [
136
148
  "username",
137
- "password",
138
149
  "appID",
139
150
  "appSecret"
140
151
  ],
141
152
  "native": {
142
- "username": "",
143
- "password": "",
144
- "systemId": "",
145
- "enableRealtimedata": true,
146
- "intervalRealtimedata": 30,
147
- "enableEnergydata": true,
148
- "intervalEnergydataMins": 5,
149
- "enableSettingsdata": false,
150
- "enableSettingsCharge": false,
151
- "intervalSettingsChargeMins": 5,
152
- "enableSettingsDisCharge": false,
153
- "intervalSettingsDisChargeMins": 5,
154
- "intervalSettingsdataMins": 5,
155
- "enableStatisticalTodaydata": false,
156
- "intervalStatisticalTodaydataMins": 5,
157
- "enableSummarydata": false,
158
- "intervalSummarydataMins": 5,
159
- "enableWallbox": false,
160
- "intervalWallboxMins": 5,
161
- "updateUnchangedStates": false,
153
+ "apiType": 1,
162
154
  "appID": "",
163
155
  "appSecret": "",
164
- "apiType": 1,
156
+ "systemId": "",
165
157
  "oAEnableRealtime": true,
166
158
  "oAIntervalRealtime": 30,
167
159
  "oAEnableEnergy": true,
168
160
  "oAIntervalEnergyMins": 5,
169
- "oAEnableSettings": false,
170
- "oAIntervalSettingsMins": 5,
171
161
  "oAEnableSettingsCharge": true,
172
162
  "oAIntervalSettingsChargeMins": 5,
173
163
  "oAEnableSettingsDischarge": true,
174
164
  "oAIntervalSettingsDischargeMins": 5,
175
- "oAEnableStatisticsToday": false,
176
- "oAIntervalStatisticsTodayMins": 5,
177
165
  "oAEnableSummary": true,
178
166
  "oAIntervalSummaryMins": 5,
179
167
  "oAEnableWallbox": false,
180
- "oAIntervalWallboxMins": 5
168
+ "oAIntervalWallboxMins": 5,
169
+ "updateUnchangedStates": false
181
170
  },
182
171
  "objects": [],
183
172
  "instanceObjects": [