iobroker.zigbee2mqtt 2.10.0 → 2.10.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/io-package.json +14 -14
- package/lib/exposes.js +15 -15
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,6 +32,10 @@ This adapter allows to control the data points of the devices of a Zigbee2MQTT i
|
|
|
32
32
|
Placeholder for the next version (at the beginning of the line):
|
|
33
33
|
### **WORK IN PROGRESS**
|
|
34
34
|
-->
|
|
35
|
+
### 2.10.1 (2023-08-13)
|
|
36
|
+
|
|
37
|
+
- (o0shojo0o) fix type definitions (thx @arteck)
|
|
38
|
+
|
|
35
39
|
### 2.10.0 (2023-08-12)
|
|
36
40
|
|
|
37
41
|
- (o0shojo0o) optimisation for the MQTT connection
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee2mqtt",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.10.1": {
|
|
7
|
+
"en": "fix type definitions (thx @arteck)",
|
|
8
|
+
"de": "fix typdefinitionen (thx @arteck)",
|
|
9
|
+
"ru": "определение типа исправления (thx @arteck)",
|
|
10
|
+
"pt": "definições de tipo de correção (thx @arteck)",
|
|
11
|
+
"nl": "vertaling:",
|
|
12
|
+
"fr": "définitions de type fixe (thx @arteck)",
|
|
13
|
+
"it": "correggere le definizioni di tipo (thx @arteck)",
|
|
14
|
+
"es": "fijar definiciones tipo (thx @arteck)",
|
|
15
|
+
"pl": "definicja typów (tx @arteck)",
|
|
16
|
+
"uk": "фіксувати визначення типу (thx @arteck)",
|
|
17
|
+
"zh-cn": "fix类定义(x @arteck)"
|
|
18
|
+
},
|
|
6
19
|
"2.10.0": {
|
|
7
20
|
"en": "optimisation for the MQTT connection \nfix for MQTT output type: attribute_and_json ([#87](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87))\nadded support for external MQTT-Server credentials ([#148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148))\n*After update, Websocket Auth-Token must be set again, if used.*",
|
|
8
21
|
"de": "optimierung der MQTT-Verbindung\nfix für den MQTT-Ausgangstyp: attribute_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\nunterstützung für externe MQTT-Server-Anmeldeinformationen #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/148)\n*Nach dem Update muss Websocket Auth-Token wieder eingestellt werden, wenn verwendet*",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "hotfix",
|
|
81
94
|
"uk": "hotfix для датчика присутності Aqara FP1",
|
|
82
95
|
"zh-cn": "aqara存在侦查员FP1"
|
|
83
|
-
},
|
|
84
|
-
"2.7.2": {
|
|
85
|
-
"en": "rework of the detection of removed devices",
|
|
86
|
-
"de": "nacharbeiten der erkennung von entfernten geräten",
|
|
87
|
-
"ru": "переработка обнаружения удаленных устройств",
|
|
88
|
-
"pt": "retrabalho da detecção de dispositivos removidos",
|
|
89
|
-
"nl": "_",
|
|
90
|
-
"fr": "retravail de la détection des dispositifs enlevés",
|
|
91
|
-
"it": "rielaborazione del rilevamento dei dispositivi rimossi",
|
|
92
|
-
"es": "rework of the detection of removed devices",
|
|
93
|
-
"pl": "przepraszanie detekcji usuniętych urządzeń",
|
|
94
|
-
"uk": "реконструкція виявлення видалених пристроїв",
|
|
95
|
-
"zh-cn": "清除装置的探查工作"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"messages": [
|
package/lib/exposes.js
CHANGED
|
@@ -77,7 +77,6 @@ function genState(expose, role, name, desc) {
|
|
|
77
77
|
if (expose.endpoint) {
|
|
78
78
|
state.epname = expose.endpoint;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
80
|
break;
|
|
82
81
|
|
|
83
82
|
case 'numeric':
|
|
@@ -152,22 +151,23 @@ function genState(expose, role, name, desc) {
|
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
// Try to set the state defaults
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
154
|
+
if (state && state.type) {
|
|
155
|
+
switch (state.type) {
|
|
156
|
+
case 'boolean':
|
|
157
|
+
state.def = false;
|
|
158
|
+
break;
|
|
159
|
+
case 'number':
|
|
160
|
+
state.def = state.min || 0;
|
|
161
|
+
break;
|
|
162
|
+
case 'object':
|
|
163
|
+
state.def = {};
|
|
164
|
+
break;
|
|
165
|
+
case 'string':
|
|
166
|
+
state.def = '';
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
|
|
171
171
|
return state;
|
|
172
172
|
}
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zigbee2mqtt",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "Zigbee2MQTT adapter for ioBroker",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Dennis Rathjen",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@types/chai": "^4.3.5",
|
|
38
38
|
"@types/chai-as-promised": "^7.1.5",
|
|
39
39
|
"@types/mocha": "^10.0.1",
|
|
40
|
-
"@types/node": "^20.4.
|
|
40
|
+
"@types/node": "^20.4.10",
|
|
41
41
|
"@types/proxyquire": "^1.3.28",
|
|
42
42
|
"@types/sinon": "^10.0.16",
|
|
43
43
|
"@types/sinon-chai": "^3.2.9",
|
|
44
44
|
"chai": "^4.3.7",
|
|
45
45
|
"chai-as-promised": "^7.1.1",
|
|
46
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.47.0",
|
|
47
47
|
"eslint-config-prettier": "^9.0.0",
|
|
48
48
|
"eslint-plugin-prettier": "^5.0.0",
|
|
49
49
|
"mocha": "^10.2.0",
|