iobroker.alpha-ess 2.0.0 → 2.0.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Gaspode <gaspode69@online.de>
3
+ Copyright (c) 2024 Gaspode <gaspode69@online.de>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -11,6 +11,14 @@
11
11
 
12
12
  ## alpha-ess adapter for ioBroker
13
13
 
14
+ ---
15
+
16
+ ### Due to current circumstances, please take note!
17
+
18
+ [Interface restriction announcement](https://github.com/alphaess-developer/alphacloud_open_api/issues/54)
19
+
20
+ ---
21
+
14
22
  This adapter logs into the web API of [Alpha-ESS](https://www.alphaess.com/) and retrieves information for your Alpha-ESS equipment.\
15
23
  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
24
 
@@ -46,6 +54,15 @@ How to find SN and Check code for registration is described here: https://github
46
54
  **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.**
47
55
 
48
56
  ## Changelog
57
+
58
+ ### 2.0.2 (2024-01-12)
59
+
60
+ - (Gaspode) Updated Copyright year
61
+
62
+ ### 2.0.1 (2024-01-03)
63
+
64
+ - (Gaspode) Adapted timeout to new API restrictions
65
+
49
66
  ### 2.0.0 (2023-12-02)
50
67
 
51
68
  - (Gaspode) Breaking Change: Removed support of Closed API
@@ -140,7 +157,7 @@ How to find SN and Check code for registration is described here: https://github
140
157
 
141
158
  MIT License
142
159
 
143
- Copyright (c) 2023 Gaspode <gaspode69@online.de>
160
+ Copyright (c) 2024 Gaspode <gaspode69@online.de>
144
161
 
145
162
  Permission is hereby granted, free of charge, to any person obtaining a copy
146
163
  of this software and associated documentation files (the "Software"), to deal
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "alpha-ess",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "news": {
6
+ "2.0.2": {
7
+ "en": "Updated Copyright year",
8
+ "de": "Aktualisierung des Copyright-Jahres",
9
+ "ru": "Обновленный год авторского права",
10
+ "pt": "Ano de direitos autorais atualizado",
11
+ "nl": "Bijgewerkt Copyrightjaar",
12
+ "fr": "Mise à jour de l'année de droit d'auteur",
13
+ "it": "Aggiornato Copyright anno",
14
+ "es": "Actualizado Año de Copyright",
15
+ "pl": "Aktualizacja roku Copyright",
16
+ "uk": "Оновлений рік авторського права",
17
+ "zh-cn": "更新版权年度"
18
+ },
19
+ "2.0.1": {
20
+ "en": "Adapted timeout to new API restrictions",
21
+ "de": "Timeout Werte an neue API-Beschränkungen angepasst",
22
+ "ru": "Адаптированное таймирование к новым ограничениям API",
23
+ "pt": "Timeout adaptado para novas restrições de API",
24
+ "nl": "Vertaling:",
25
+ "fr": "Timeout adapté aux nouvelles restrictions de l'API",
26
+ "it": "Adeguato timeout alle nuove restrizioni API",
27
+ "es": "Tiempo de adaptación a nuevas restricciones de API",
28
+ "pl": "Zastosowany czas do nowych ograniczeń API",
29
+ "uk": "Адаптивний час для нових обмежень API",
30
+ "zh-cn": "A. 取消新优惠制度限制的时间"
31
+ },
6
32
  "2.0.0": {
7
33
  "en": "Breaking Change: Removed support of Closed API",
8
34
  "de": "Breaking Change: Entfernte Unterstützung von Closed API",
@@ -67,19 +93,6 @@
67
93
  "pl": "Zamknięty interfejs API zaadaptował się do najnowszych zmian Alpha-ESS i umożliwił powtórzenie się",
68
94
  "uk": "Закритий API, адаптований до останніх змін Альфа-ESS і знову ввімкнено",
69
95
  "zh-cn": "适应最近Alpha-ESS变革的贴近性联谊会再次促成了变革。"
70
- },
71
- "1.1.0": {
72
- "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",
73
- "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",
74
- "ru": "Закрытый API отключен (временно?) потому что API был изменен Alpha-ESS\nЧитать назад измененные настройки значения 2 секунды после их изменения",
75
- "pt": "API fechada desabilitada (temporariamente?) porque a API foi alterada por Alpha-ESS\nLeia novamente os valores das configurações alteradas 2 segundos depois de terem sido alterados",
76
- "nl": "Omdat API veranderd is door Alpha-ESSS\nLees terug veranderde instellingen 2 seconden nadat ze veranderd zijn",
77
- "fr": "API fermée désactivée (temporairement?) parce que l'API a été changée par Alpha-ESS\nLire les valeurs de paramètres changées 2 secondes après avoir été changées",
78
- "it": "Chiuso API disabilitato (temporaneo?) perché API è stato modificato da Alpha-ESS\nLeggi indietro i valori delle impostazioni cambiati 2 secondi dopo che sono stati modificati",
79
- "es": "API cerrada deshabilitada (temporalmente?) porque API ha sido cambiado por Alpha-ESS\nLea los valores de configuración cambiados 2 segundos después de haber cambiado",
80
- "pl": "Zamknięty API niepełnosprawny (czasowo?) ponieważ interfejs API został zmieniony przez Alpha-ESS\nCzytanie z powrotem zmieniało wartości 2 sekundy po zmianie ich wartości",
81
- "uk": "Замкнено API вимкнено (попередньо?) тому, що API було змінено Альфа-ESS\nЧитання змінених значень налаштувань 2 секунд після зміни",
82
- "zh-cn": "由于Alpha-ESS已改变API残疾(有时?)\n阅读后的环境价值观2"
83
96
  }
84
97
  },
85
98
  "titleLang": {
package/main.js CHANGED
@@ -13,7 +13,7 @@ const axios = require('axios').default;
13
13
 
14
14
  const OA_BaseURI = 'https://openapi.alphaess.com/api';
15
15
 
16
- const ReadAfterWriteTimeoutIntervalInS = 2;
16
+ const ReadAfterWriteTimeoutIntervalInS = 6;
17
17
 
18
18
  const REQUEST_TIMEOUT = 10000;
19
19
  const WATCHDOG_TIMER = 60000;
@@ -872,7 +872,6 @@ class OpenAPI {
872
872
  * @param {string} group
873
873
  */
874
874
  async writeConfigInfo(group, _updState, _updStateInfo) {
875
- const nextReadTimeout = ReadAfterWriteTimeoutIntervalInS;
876
875
  try {
877
876
  this.adapter.stopGroupWriteTimeout(group);
878
877
  this.adapter.stopGroupTimeout(group);
@@ -918,7 +917,7 @@ class OpenAPI {
918
917
  this.adapter.log.error('Writing data for group ' + group + ': Exception occurred: ' + e);
919
918
  await this.handleError(this.emptyBody, group);
920
919
  }
921
- this.adapter.startGroupTimeout(nextReadTimeout, group);
920
+ this.adapter.startGroupTimeout(ReadAfterWriteTimeoutIntervalInS, group);
922
921
  }
923
922
 
924
923
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.alpha-ess",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Read and write data from and to Alpha ESS systems.",
5
5
  "author": {
6
6
  "name": "Gaspode",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@iobroker/adapter-core": "^3.0.4",
23
- "axios": "^1.6.2"
23
+ "axios": "^1.6.3"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@alcalzone/release-script": "^3.6.0",
@@ -41,15 +41,15 @@
41
41
  "@types/sinon-chai": "^3.2.12",
42
42
  "chai": "^4.3.10",
43
43
  "chai-as-promised": "^7.1.1",
44
- "eslint": "^8.54.0",
45
- "eslint-config-prettier": "^9.0.0",
44
+ "eslint": "^8.56.0",
45
+ "eslint-config-prettier": "^9.1.0",
46
46
  "eslint-plugin-prettier": "^5.0.1",
47
47
  "mocha": "^10.2.0",
48
- "prettier": "^3.1.0",
48
+ "prettier": "^3.1.1",
49
49
  "proxyquire": "^2.1.3",
50
50
  "sinon": "^17.0.1",
51
51
  "sinon-chai": "^3.7.0",
52
- "typescript": "~5.3.2"
52
+ "typescript": "~5.3.3"
53
53
  },
54
54
  "main": "main.js",
55
55
  "files": [