iobroker.sun2000 1.0.0 → 1.0.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 +6 -2
- package/io-package.json +15 -15
- package/lib/register.js +18 -18
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -27,10 +27,10 @@ Read and write register data from Huawei SUN2000 inverter and LUNA2000 battery u
|
|
|
27
27
|
|
|
28
28
|
Feel free to follow the discussions in the german [iobroker forum](https://forum.iobroker.net/topic/71768/test-adapter-sun2000-v0-1-x-huawei-wechselrichter)
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Requirements
|
|
31
31
|
* Node.js 20 or higher
|
|
32
32
|
* ioBroker host (js-controller) 6.0.11 or higher
|
|
33
|
-
* ioBroker admin 6.
|
|
33
|
+
* ioBroker admin 6.17.14 or higher
|
|
34
34
|
|
|
35
35
|
## Documentation
|
|
36
36
|
|
|
@@ -64,6 +64,10 @@ browse in the [wiki](https://github.com/bolliy/ioBroker.sun2000/wiki)
|
|
|
64
64
|
Placeholder for the next version (at the beginning of the line):
|
|
65
65
|
### **WORK IN PROGRESS**
|
|
66
66
|
-->
|
|
67
|
+
### 1.0.1 (2025-03-01)
|
|
68
|
+
* updated further case sensitivity of the object status name
|
|
69
|
+
* require ioBroker admin 7.4.10 or higher #154
|
|
70
|
+
|
|
67
71
|
### 1.0.0 (2025-02-10)
|
|
68
72
|
* dependency and configuration updates
|
|
69
73
|
* updated case sensitivity of the object status name
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sun2000",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.0.1": {
|
|
7
|
+
"en": "updated further case sensitivity of the object status name\nrequire ioBroker admin 7.4.10 or higher #154",
|
|
8
|
+
"de": "aktualisierte weitere fallempfindlichkeit des objektstatusnamens\nioBroker admin 7.4.10 oder höher #154",
|
|
9
|
+
"ru": "обновлена дополнительная деловая чувствительность названия статуса объекта\nтребуется админ ioBroker 7.4.10 или выше #154",
|
|
10
|
+
"pt": "sensibilidade de caso adicional atualizada do nome de status do objeto\nexigir ioBroker admin 7.4.10 ou superior #154",
|
|
11
|
+
"nl": "bijgewerkte verdere gevoeligheid van de statusnaam van het object\nvereisen ioBroker admin 7.4.10 of hoger #154",
|
|
12
|
+
"fr": "mise à jour de la sensibilité du nom d'état de l'objet\nrequiert ioBroker admin 7.4.10 ou supérieur #154",
|
|
13
|
+
"it": "aggiornato ulteriore sensibilità caso del nome di stato dell'oggetto\nrichiedono ioBroker admin 7.4.10 o superiore #154",
|
|
14
|
+
"es": "actualizado más sensibilidad de caso del nombre del estado del objeto\nrequiere ioBroker admin 7.4.10 o superior #154",
|
|
15
|
+
"pl": "zaktualizowana dalsza wrażliwość przypadku nazwy statusu obiektu\nwymagają joBroker admin 7.4.10 lub wyższy # 154",
|
|
16
|
+
"uk": "оновлений подальший випадок чутливості назви стану об'єкта\nпотрібно ioBroker admin 7.4.10 або вище #154",
|
|
17
|
+
"zh-cn": "更新对象状态名称的进一步大小写灵敏度\n需要 ioBroker 管理员 7.4.10 或 以上 # 154"
|
|
18
|
+
},
|
|
6
19
|
"1.0.0": {
|
|
7
20
|
"en": "dependency and configuration updates\nupdated case sensitivity of the object status name\nInterval time of the slave inverter increased slightly\nRegister data is not read in \"Standby: detecting irradiation\" (0x0002) of the slave inverter\nControl: battery.maximumDischargePower is deprecated use \"maximumDischargingPower\" instead\nControl: battery.maximumChargePower is deprecated use \"maximumChargingPower\" instead\nbreaking changes\nNode.js 20 or higher required\nioBroker host (js-controller) 6.0.1 or higher\nioBroker admin 6.13.16 or higher",
|
|
8
21
|
"de": "abhängigkeits- und konfigurationsupdates\naktualisierte fallempfindlichkeit des objektstatusnamens\nDie Laufzeit des Slave-Wechselrichters stieg leicht an\nRegisterdaten werden nicht in \"Standby: Detektion von Bestrahlung\" (0x0002) des Slave-Wechselrichters gelesen\nSteuerung: batterie.maximumDischargePower ist deprecated verwenden \"maximumDischargingPower\" statt\nSteuerung: Batterie.maximumChargePower wird mit \"maximumChargingPower\" depreciert\nänderungen\nNode.js 20 oder höher erforderlich\nioBroker Host (js-controller) 6.0.1 oder höher\nioBroker admin 6.13.16 oder höher",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "aktualizacje zależności i konfiguracji\nprzeczytaj dodatkowe dane rejestru Huawei Emma",
|
|
81
94
|
"uk": "оновлення залежності та конфігурації\nчитати додаткові реєстраційні дані Huawei Emma",
|
|
82
95
|
"zh-cn": "依赖和配置更新\n读取 Huawei Emma 的额外注册数据"
|
|
83
|
-
},
|
|
84
|
-
"0.15.2": {
|
|
85
|
-
"en": "EMMA Device was not initialized",
|
|
86
|
-
"de": "EMMA Gerät wurde nicht initialisiert",
|
|
87
|
-
"ru": "EMMA Устройство не было инициализировано",
|
|
88
|
-
"pt": "EMPRESA Dispositivo não inicializado",
|
|
89
|
-
"nl": "EMMA Apparaat is niet geïnitialiseerd",
|
|
90
|
-
"fr": "EMMA L'appareil n'a pas été initialisé",
|
|
91
|
-
"it": "EMMA Il dispositivo non è stato inizializzato",
|
|
92
|
-
"es": "EMMA No se inicializó el dispositivo",
|
|
93
|
-
"pl": "EMMA Urządzenie nie zostało zainicjowane",
|
|
94
|
-
"uk": "ЕММА Пристрої не було ініціалізовано",
|
|
95
|
-
"zh-cn": "埃马 设备未初始化"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
],
|
|
222
222
|
"globalDependencies": [
|
|
223
223
|
{
|
|
224
|
-
"admin": ">=
|
|
224
|
+
"admin": ">=7.4.10"
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
227
|
"plugins": {
|
package/lib/register.js
CHANGED
|
@@ -22,7 +22,7 @@ class Registers {
|
|
|
22
22
|
{
|
|
23
23
|
refresh: dataRefreshRate.high,
|
|
24
24
|
states: [
|
|
25
|
-
{ id: 'collected.houseConsumption', name: 'House
|
|
25
|
+
{ id: 'collected.houseConsumption', name: 'House consumption', type: 'number', unit: 'kW', role: 'value.power', desc: 'Load power' },
|
|
26
26
|
{ id: 'collected.activePower', name: 'Active power', type: 'number', unit: 'kW', role: 'value.power.active', desc: 'Power currently used' },
|
|
27
27
|
{ id: 'collected.inputPower', name: 'Input power', type: 'number', unit: 'kW', role: 'value.power', desc: 'Power from solar' },
|
|
28
28
|
{
|
|
@@ -35,7 +35,7 @@ class Registers {
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
id: 'collected.chargeDischargePower',
|
|
38
|
-
name: 'Charge/
|
|
38
|
+
name: 'Charge/discharge power',
|
|
39
39
|
desc: '(>0 charging, <0 discharging)',
|
|
40
40
|
type: 'number',
|
|
41
41
|
unit: 'kW',
|
|
@@ -70,7 +70,7 @@ class Registers {
|
|
|
70
70
|
states: [
|
|
71
71
|
{
|
|
72
72
|
id: 'collected.dailyEnergyYield',
|
|
73
|
-
name: 'Daily
|
|
73
|
+
name: 'Daily energy yield',
|
|
74
74
|
type: 'number',
|
|
75
75
|
unit: 'kWh',
|
|
76
76
|
role: 'value.power.consumption',
|
|
@@ -78,7 +78,7 @@ class Registers {
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
id: 'collected.dailyInputYield',
|
|
81
|
-
name: 'Daily
|
|
81
|
+
name: 'Daily portal yield',
|
|
82
82
|
type: 'number',
|
|
83
83
|
unit: 'kWh',
|
|
84
84
|
role: 'value.power.consumption',
|
|
@@ -86,39 +86,39 @@ class Registers {
|
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
id: 'collected.dailySolarYield',
|
|
89
|
-
name: 'Daily
|
|
89
|
+
name: 'Daily solar yield',
|
|
90
90
|
type: 'number',
|
|
91
91
|
unit: 'kWh',
|
|
92
92
|
role: 'value.power.consumption',
|
|
93
93
|
desc: 'Riemann sum of input power with efficiency loss',
|
|
94
94
|
},
|
|
95
|
-
{ id: 'collected.accumulatedEnergyYield', name: 'Accumulated
|
|
96
|
-
{ id: 'collected.consumptionSum', name: 'Consumption
|
|
97
|
-
{ id: 'collected.gridExportStart', name: 'Grid
|
|
98
|
-
{ id: 'collected.gridImportStart', name: 'Grid
|
|
99
|
-
{ id: 'collected.consumptionStart', name: 'Consumption
|
|
100
|
-
{ id: 'collected.gridExportToday', name: 'Grid
|
|
101
|
-
{ id: 'collected.gridImportToday', name: 'Grid
|
|
102
|
-
{ id: 'collected.consumptionToday', name: 'Consumption
|
|
103
|
-
{ id: 'collected.totalCharge', name: 'Total
|
|
104
|
-
{ id: 'collected.totalDischarge', name: 'Total
|
|
95
|
+
{ id: 'collected.accumulatedEnergyYield', name: 'Accumulated energy yield', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
96
|
+
{ id: 'collected.consumptionSum', name: 'Consumption sum', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
97
|
+
{ id: 'collected.gridExportStart', name: 'Grid export start today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
98
|
+
{ id: 'collected.gridImportStart', name: 'Grid export start today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
99
|
+
{ id: 'collected.consumptionStart', name: 'Consumption start today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
100
|
+
{ id: 'collected.gridExportToday', name: 'Grid export today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
101
|
+
{ id: 'collected.gridImportToday', name: 'Grid import today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
102
|
+
{ id: 'collected.consumptionToday', name: 'Consumption today', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
103
|
+
{ id: 'collected.totalCharge', name: 'Total charge of battery', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
104
|
+
{ id: 'collected.totalDischarge', name: 'Total discharge of battery', type: 'number', unit: 'kWh', role: 'value.power.consumption' },
|
|
105
105
|
{
|
|
106
106
|
id: 'collected.currentDayChargeCapacity',
|
|
107
|
-
name: 'Current
|
|
107
|
+
name: 'Current day charge capacity of battery',
|
|
108
108
|
type: 'number',
|
|
109
109
|
unit: 'kWh',
|
|
110
110
|
role: 'value.power.consumption',
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
id: 'collected.currentDayDischargeCapacity',
|
|
114
|
-
name: 'Current
|
|
114
|
+
name: 'Current day discharge capacity of battery',
|
|
115
115
|
type: 'number',
|
|
116
116
|
unit: 'kWh',
|
|
117
117
|
role: 'value.power.consumption',
|
|
118
118
|
desc: '',
|
|
119
119
|
},
|
|
120
120
|
{ id: 'collected.SOC', name: 'State of battery capacity', type: 'number', unit: '%', role: 'value.battery', desc: 'SOC' },
|
|
121
|
-
{ id: 'collected.ratedCapacity', name: 'Rated of battery
|
|
121
|
+
{ id: 'collected.ratedCapacity', name: 'Rated of battery capacity', type: 'number', unit: 'Wh', role: 'value.capacity' },
|
|
122
122
|
],
|
|
123
123
|
fn: inverters => {
|
|
124
124
|
let inYield = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.sun2000",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "sun2000",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bolliy",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
|
|
38
38
|
"@alcalzone/release-script-plugin-license": "^3.7.0",
|
|
39
39
|
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
|
|
40
|
-
"@eslint/eslintrc": "^3.
|
|
40
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
41
41
|
"@eslint/js": "^9.20.0",
|
|
42
|
-
"@iobroker/adapter-dev": "^1.
|
|
42
|
+
"@iobroker/adapter-dev": "^1.4.0",
|
|
43
43
|
"@iobroker/eslint-config": "^1.0.0",
|
|
44
44
|
"@iobroker/testing": "^5.0.3",
|
|
45
45
|
"@tsconfig/node20": "^20.1.4",
|
|
46
46
|
"@types/chai": "^4.3.20",
|
|
47
47
|
"@types/chai-as-promised": "^7.1.8",
|
|
48
48
|
"@types/mocha": "^10.0.10",
|
|
49
|
-
"@types/node": "^22.13.
|
|
49
|
+
"@types/node": "^22.13.8",
|
|
50
50
|
"@types/proxyquire": "^1.3.31",
|
|
51
|
-
"@types/sinon": "^17.0.
|
|
51
|
+
"@types/sinon": "^17.0.4",
|
|
52
52
|
"@types/sinon-chai": "^3.2.12",
|
|
53
53
|
"chai": "^4.5.0",
|
|
54
54
|
"chai-as-promised": "^7.1.2",
|
|
55
|
-
"globals": "^15.
|
|
55
|
+
"globals": "^15.15.0",
|
|
56
56
|
"mocha": "^11.1.0",
|
|
57
57
|
"proxyquire": "^2.1.3",
|
|
58
58
|
"sinon": "^19.0.2",
|