iobroker.zigbee2mqtt 2.7.3 → 2.7.4

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
@@ -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.7.4 (2023-03-05)
36
+
37
+ - (o0shojo0o) fix for Aqara presence detector FP1 `reset_nopresence_status`
38
+
35
39
  ### 2.7.3 (2023-02-18)
36
40
 
37
41
  - (o0shojo0o) hotfix for Aqara presence detector FP1
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee2mqtt",
4
- "version": "2.7.3",
4
+ "version": "2.7.4",
5
5
  "news": {
6
+ "2.7.4": {
7
+ "en": "fix for Aqara presence detector FP1 `reset_nopresence_status`",
8
+ "de": "fix für Aqara Präsenzmelder FP1 reset_nopresence_status",
9
+ "ru": "фикс для Aqara детектор присутствия FP1 reset_nopresence_status",
10
+ "pt": "correção para o detector de presença de Aqara FP1 reset_nopresence_status",
11
+ "nl": "vertaling:",
12
+ "fr": "fix pour détecteur de présence Aqara FP1 reset_nopresence_status",
13
+ "it": "correzione per rilevatore di presenza Aqara FP1 reset_nopresence_status",
14
+ "es": "fijado para el detector de presencia Aqara FP1 reset_nopresence_status",
15
+ "pl": "reset_nopresence_status (ang.)",
16
+ "uk": "фіксація для датчика присутності Aqara FP1 скидання_nopresence_status",
17
+ "zh-cn": "fix Aqara存在探测器FP1 重新定位_nopreence_status"
18
+ },
6
19
  "2.7.3": {
7
20
  "en": "hotfix for Aqara presence detector FP1",
8
21
  "de": "hotfix für Aqara Präsenzmelder FP1",
@@ -80,19 +93,6 @@
80
93
  "pl": "dodał również krok opcji 'Brightness'\ndodano obsługę jasności (stop #96) (https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/96)\nprzetwarzają bardziej elastyczne przetwory #94 (https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/94)",
81
94
  "uk": "доданий варіант `Бритальність кроку також повинен перетворювати світло або вимкнути`\nдодано обробка яскравості_кроку #[96](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/96)\n[94] (https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/94)",
82
95
  "zh-cn": "增加“权利步骤”的选择,也应该改变“或”的提法。\n增加光明处理:第[96]号(http://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/96)\n国家处理较为灵活的第[94]号(http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/94)"
83
- },
84
- "2.4.5": {
85
- "en": "extend 'text' for 'action' ([#84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84))",
86
- "de": "text für die Aktion #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
87
- "ru": "расширить текст для действия #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
88
- "pt": "extensão do texto para a ação #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
89
- "nl": "quality over Quantity (QoQ) Releases Vertaling:",
90
- "fr": "extension text for action #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
91
- "it": "estendere il testo all'azione #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
92
- "es": "extensión text for action #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
93
- "pl": "tekst do akcji #84 (https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
94
- "uk": "javaScript licenses API Веб-сайт Go1.13.8",
95
- "zh-cn": "行动案文[84](http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/84)"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/lib/exposes.js CHANGED
@@ -113,7 +113,12 @@ function genState(expose, role, name, desc) {
113
113
  };
114
114
 
115
115
  for (const val of expose.values) {
116
- state.states[val] = val;
116
+ // if a definition of a button (eg. Aqara presence detector FP1)
117
+ if (val == '') {
118
+ state.states[propName] = propName;
119
+ } else {
120
+ state.states[val] = val;
121
+ }
117
122
  state.type = typeof (val);
118
123
  }
119
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zigbee2mqtt",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "description": "Zigbee2MQTT adapter for ioBroker",
5
5
  "author": {
6
6
  "name": "Dennis Rathjen",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@iobroker/adapter-core": "^2.6.7",
23
- "aedes": "^0.48.1",
23
+ "aedes": "^0.49.0",
24
24
  "aedes-persistence-nedb": "^2.0.3",
25
25
  "mqtt": "^4.3.7",
26
26
  "net": "^1.0.2",
27
- "ws": "^8.12.0"
27
+ "ws": "^8.12.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@alcalzone/release-script-plugin-iobroker": "^3.5.9",
@@ -36,13 +36,13 @@
36
36
  "@types/chai": "^4.3.4",
37
37
  "@types/chai-as-promised": "^7.1.5",
38
38
  "@types/mocha": "^10.0.1",
39
- "@types/node": "^18.13.0",
39
+ "@types/node": "^18.14.6",
40
40
  "@types/proxyquire": "^1.3.28",
41
41
  "@types/sinon": "^10.0.13",
42
42
  "@types/sinon-chai": "^3.2.9",
43
43
  "chai": "^4.3.7",
44
44
  "chai-as-promised": "^7.1.1",
45
- "eslint": "^8.34.0",
45
+ "eslint": "^8.35.0",
46
46
  "eslint-config-prettier": "^8.6.0",
47
47
  "eslint-plugin-prettier": "^4.2.1",
48
48
  "mocha": "^10.2.0",