iobroker.alpha-ess 1.1.0 → 1.1.1
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 +4 -0
- package/admin/jsonConfig.json +15 -15
- package/io-package.json +14 -14
- package/main.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,10 @@ How to find SN and Check code for registration is described here: https://github
|
|
|
65
65
|
**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.**
|
|
66
66
|
|
|
67
67
|
## Changelog
|
|
68
|
+
### 1.1.1 (2023-11-04)
|
|
69
|
+
|
|
70
|
+
- (Gaspode) Closed API adapted to latest Alpha-ESS changes and enabled again
|
|
71
|
+
|
|
68
72
|
### 1.1.0 (2023-11-04)
|
|
69
73
|
|
|
70
74
|
- (Gaspode) Closed API disabled (temporarily?) because API has been changed by Alpha-ESS
|
package/admin/jsonConfig.json
CHANGED
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"color": "red"
|
|
21
21
|
},
|
|
22
22
|
"newLine": true,
|
|
23
|
-
"hidden": "data.apiType == 1"
|
|
23
|
+
"hidden": "data.apiType == 1 || data.apiType == 0"
|
|
24
24
|
},
|
|
25
25
|
"username": {
|
|
26
26
|
"sm": 5,
|
|
27
27
|
"type": "text",
|
|
28
28
|
"label": "Username",
|
|
29
29
|
"newLine": true,
|
|
30
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
30
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
31
31
|
},
|
|
32
32
|
"password": {
|
|
33
33
|
"sm": 5,
|
|
34
34
|
"type": "password",
|
|
35
35
|
"label": "Password",
|
|
36
36
|
"newLine": true,
|
|
37
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
37
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
38
38
|
},
|
|
39
39
|
"appID": {
|
|
40
40
|
"sm": 5,
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"type": "text",
|
|
56
56
|
"label": "Alpha ESS System ID",
|
|
57
57
|
"newLine": true,
|
|
58
|
-
"disabled": "data.apiType ==
|
|
58
|
+
"disabled": "data.apiType == 3"
|
|
59
59
|
},
|
|
60
60
|
"enableRealtimedata": {
|
|
61
61
|
"type": "checkbox",
|
|
62
62
|
"newLine": true,
|
|
63
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
63
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
64
64
|
},
|
|
65
65
|
"intervalRealtimedata": {
|
|
66
66
|
"sm": 5,
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"label": "Interval to read realtime data",
|
|
70
70
|
"newLine": false,
|
|
71
71
|
"disabled": "!data.enableRealtimedata",
|
|
72
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
72
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
73
73
|
},
|
|
74
74
|
"enableEnergydata": {
|
|
75
75
|
"type": "checkbox",
|
|
76
76
|
"newLine": true,
|
|
77
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
77
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
78
78
|
},
|
|
79
79
|
"intervalEnergydataMins": {
|
|
80
80
|
"sm": 5,
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
"label": "Interval to read energy data",
|
|
84
84
|
"newLine": false,
|
|
85
85
|
"disabled": "!data.enableEnergydata",
|
|
86
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
86
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
87
87
|
},
|
|
88
88
|
"enableSettingsdata": {
|
|
89
89
|
"type": "checkbox",
|
|
90
90
|
"newLine": true,
|
|
91
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
91
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
92
92
|
},
|
|
93
93
|
"enableSettingsCharge": {
|
|
94
94
|
"type": "checkbox",
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"label": "Interval to read settings data",
|
|
126
126
|
"newLine": false,
|
|
127
127
|
"disabled": "!data.enableSettingsdata",
|
|
128
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
128
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
129
129
|
},
|
|
130
130
|
"enableStatisticalTodaydata": {
|
|
131
131
|
"type": "checkbox",
|
|
132
132
|
"newLine": true,
|
|
133
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
133
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
134
134
|
},
|
|
135
135
|
"intervalStatisticalTodaydataMins": {
|
|
136
136
|
"sm": 5,
|
|
@@ -139,12 +139,12 @@
|
|
|
139
139
|
"label": "Interval to read statistical data (today)",
|
|
140
140
|
"newLine": false,
|
|
141
141
|
"disabled": "!data.enableStatisticalTodaydata",
|
|
142
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
142
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
143
143
|
},
|
|
144
144
|
"enableSummarydata": {
|
|
145
145
|
"type": "checkbox",
|
|
146
146
|
"newLine": true,
|
|
147
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
147
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
148
148
|
},
|
|
149
149
|
"intervalSummarydataMins": {
|
|
150
150
|
"sm": 5,
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"label": "Interval to read summary data",
|
|
154
154
|
"newLine": false,
|
|
155
155
|
"disabled": "!data.enableSummarydata",
|
|
156
|
-
"hidden": "data.apiType == 1 || data.apiType ==
|
|
156
|
+
"hidden": "data.apiType == 1 || data.apiType == 3"
|
|
157
157
|
},
|
|
158
158
|
"oAEnableRealtime": {
|
|
159
159
|
"type": "checkbox",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"type": "checkbox",
|
|
258
258
|
"label": "Update unchanged states",
|
|
259
259
|
"newLine": true,
|
|
260
|
-
"hidden": "data.apiType ==
|
|
260
|
+
"hidden": "data.apiType == 3"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "alpha-ess",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.1.1": {
|
|
7
|
+
"en": "Closed API adapted to latest Alpha-ESS changes and enabled again",
|
|
8
|
+
"de": "Closed API angepasst an neueste Alpha-ESS-Änderungen und wieder aktiviert",
|
|
9
|
+
"ru": "Закрытый API адаптирован к последним изменениям Alpha-ESS и включен снова",
|
|
10
|
+
"pt": "API fechada adaptada às últimas alterações Alpha-ESS e ativada novamente",
|
|
11
|
+
"nl": "Quality over Quantity (QoQ) Releases Vertaling:",
|
|
12
|
+
"fr": "API fermée adaptée aux derniers changements Alpha-ESS et réactivée",
|
|
13
|
+
"it": "API chiusa adattata alle ultime modifiche Alpha-ESS e abilitata di nuovo",
|
|
14
|
+
"es": "API cerrada adaptada a los últimos cambios de Alpha-ESS y habilitada de nuevo",
|
|
15
|
+
"pl": "Zamknięty interfejs API zaadaptował się do najnowszych zmian Alpha-ESS i umożliwił powtórzenie się",
|
|
16
|
+
"uk": "Закритий API, адаптований до останніх змін Альфа-ESS і знову ввімкнено",
|
|
17
|
+
"zh-cn": "适应最近Alpha-ESS变革的贴近性联谊会再次促成了变革。"
|
|
18
|
+
},
|
|
6
19
|
"1.1.0": {
|
|
7
20
|
"en": "Closed API disabled (temporarily?) because API has been changed by Alpha-ESS\nRead back changed settings values 2 seconds after they have been changed",
|
|
8
21
|
"de": "Closed API deaktiviert (vorläufig?), weil die API von Alpha-ESS geändert wurde\nLesen Sie zurück geänderte Einstellungen Werte 2 Sekunden nachdem sie geändert wurden",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Scenariusze zaimplementowali \"zniszczone\" API",
|
|
81
94
|
"uk": "Написання параметрів, реалізованих для \"Closed API\"",
|
|
82
95
|
"zh-cn": "A. 落实的封闭环境"
|
|
83
|
-
},
|
|
84
|
-
"1.0.0-alpha.3": {
|
|
85
|
-
"en": "Slow down requests in case of permanent errors for OpenAPI",
|
|
86
|
-
"de": "Verlangsamen von Online-Abfragen bei permanent auftretenden Fehlern (OpenAPI)",
|
|
87
|
-
"ru": "Замедлить запросы в случае постоянных ошибок для OpenAPI",
|
|
88
|
-
"pt": "Abranda os pedidos em caso de erros permanentes para o OpenAPI",
|
|
89
|
-
"nl": "Vertragen verzoeken in geval van permanente fouten voor OpenAPI",
|
|
90
|
-
"fr": "Ralentissez les requêtes en cas d'erreurs permanentes pour OpenAPI",
|
|
91
|
-
"it": "Rallentare le richieste in caso di errori permanenti per OpenAPI",
|
|
92
|
-
"es": "Reduzca las solicitudes en caso de errores permanentes para OpenAPI",
|
|
93
|
-
"pl": "Slow down requests as permanent error for OpenAPI",
|
|
94
|
-
"uk": "Повільні запити у разі постійних помилок для OpenAPI",
|
|
95
|
-
"zh-cn": "对开放式企业投机的长期错误请求下降"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -14,7 +14,7 @@ const axios = require('axios').default;
|
|
|
14
14
|
const CA_AUTHPREFIX = 'al8e4s';
|
|
15
15
|
const CA_AUTHCONSTANT = 'LS885ZYDA95JVFQKUIUUUV7PQNODZRDZIS4ERREDS0EED8BCWSS';
|
|
16
16
|
const CA_AUTHSUFFIX = 'ui893ed';
|
|
17
|
-
const CA_BaseURI = 'https://
|
|
17
|
+
const CA_BaseURI = 'https://www.alphaess-cloud.com/';
|
|
18
18
|
const OA_BaseURI = 'https://openapi.alphaess.com/api';
|
|
19
19
|
|
|
20
20
|
const WriteTimeoutIntervalInS = 5;
|
|
@@ -1967,7 +1967,7 @@ class AlphaEss extends utils.Adapter {
|
|
|
1967
1967
|
this.log.info('States will be migrated.');
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
if (this.config.apiType ==
|
|
1970
|
+
if (this.config.apiType == 3) { // For future possibility to disable Closed API
|
|
1971
1971
|
this.log.error('Closed API: Sorry, Closed API currently not supported because of changes by Alpha-ESS.');
|
|
1972
1972
|
}
|
|
1973
1973
|
else {
|