iobroker.zigbee2mqtt 2.4.4 → 2.4.5

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.4.5 (2022-12-20)
36
+
37
+ - (o0shojo0o) extend 'text' for 'action' ([#84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84))
38
+
35
39
  ### 2.4.4 (2022-12-06)
36
40
 
37
41
  - (o0shojo0o) better state identification ([#79](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/79))
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee2mqtt",
4
- "version": "2.4.4",
4
+ "version": "2.4.5",
5
5
  "news": {
6
+ "2.4.5": {
7
+ "en": "extend 'text' for 'action' ([#84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84))",
8
+ "de": "text für die Aktion #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
9
+ "ru": "расширить текст для действия #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
10
+ "pt": "extensão do texto para a ação #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
11
+ "nl": "quality over Quantity (QoQ) Releases Vertaling:",
12
+ "fr": "extension text for action #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
13
+ "it": "estendere il testo all'azione #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/84)",
14
+ "es": "extensión text for action #[84](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
15
+ "pl": "tekst do akcji #84 (https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/84)",
16
+ "uk": "javaScript licenses API Веб-сайт Go1.13.8",
17
+ "zh-cn": "行动案文[84](http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/84)"
18
+ },
6
19
  "2.4.4": {
7
20
  "en": "better state identification ([#79](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/79))",
8
21
  "de": "bessere Zustandserkennung #[79](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/79)",
@@ -80,19 +93,6 @@
80
93
  "pl": "dodał wsparcie dla porozumień stanów, które to wspierają.\ndodano poprawne zachowanie koloru i kolor_temperature_move",
81
94
  "uk": "додана підтримка для тягових станів, які підтримують це.\nдодано правильну обробку кольором_move та color_ infrastructure_move",
82
95
  "zh-cn": "此外,还支持支持这一国家。.\n· 删除白色、流血和色色色色色彩。"
83
- },
84
- "2.2.1": {
85
- "en": "fix state roles and access\nfix state handling\nfix createZ2MMessage",
86
- "de": "zustandsrollen und zugriff beheben\nmanuelle zustandsbearbeitung\nfix erstellenZ2MMessage",
87
- "ru": "исправить государственные роли и доступ\nисправить государственную обработку\nисправить CreateZ2MMessage",
88
- "pt": "corrigir funções estaduais e acesso\ncorrigir o manuseio do estado\ncorrigir createZ2MMessage",
89
- "nl": "vertaling:\nvertaling:\nvertaling:",
90
- "fr": "fixer les rôles de l'état et l'accès\nmaniement de l ' état\nfix createZ2MMessage",
91
- "it": "fissare i ruoli dello stato e l'accesso\ncorretta gestione dello stato\nfix createZ2MMessage",
92
- "es": "fijar funciones estatales y acceso\ncorrección del estado\nfix createZ2MMessage",
93
- "pl": "uchwała rola państwowa i dostęp\nnaprawa\ntworzenie Z2MM",
94
- "uk": "фіксувати державні ролі і доступ\nфіксувати стан обробки\nфіксатор творуZ2MMessage",
95
- "zh-cn": "fix 国家作用和准入\nfix 国家处理\nfix 建立Z2MMessage"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/lib/exposes.js CHANGED
@@ -90,7 +90,7 @@ function genState(expose, role, name, desc) {
90
90
  write: writable,
91
91
  read: true,
92
92
  type: 'number',
93
- min: expose.value_min || 0,
93
+ min: expose.value_min,
94
94
  max: expose.value_max,
95
95
  unit: expose.unit,
96
96
  };
@@ -143,12 +143,15 @@ function genState(expose, role, name, desc) {
143
143
  id: stateId,
144
144
  prop: propName,
145
145
  name: stateName,
146
- icon: undefined,
147
146
  role: role || 'state',
148
147
  write: writable,
149
148
  read: true,
150
149
  type: 'string',
151
150
  };
151
+ if (propName == 'action') {
152
+ state.isEvent = true;
153
+ state.getter = (payload) => { return payload[propName]; };
154
+ }
152
155
  if (expose.endpoint) {
153
156
  state.epname = expose.endpoint;
154
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zigbee2mqtt",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Zigbee2MQTT adapter for ioBroker",
5
5
  "author": {
6
6
  "name": "Dennis Rathjen",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@iobroker/adapter-core": "^2.6.7",
23
- "aedes": "^0.48.0",
23
+ "aedes": "^0.48.1",
24
24
  "aedes-persistence-nedb": "^2.0.3",
25
25
  "mqtt": "^4.3.7",
26
26
  "net": "^1.0.2",
@@ -36,21 +36,21 @@
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.11.10",
39
+ "@types/node": "^18.11.17",
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.29.0",
45
+ "eslint": "^8.30.0",
46
46
  "eslint-config-prettier": "^8.5.0",
47
47
  "eslint-plugin-prettier": "^4.2.1",
48
- "mocha": "^10.1.0",
49
- "prettier": "^2.8.0",
48
+ "mocha": "^10.2.0",
49
+ "prettier": "^2.8.1",
50
50
  "proxyquire": "^2.1.3",
51
- "sinon": "^15.0.0",
51
+ "sinon": "^15.0.1",
52
52
  "sinon-chai": "^3.7.0",
53
- "typescript": "~4.9.3"
53
+ "typescript": "~4.9.4"
54
54
  },
55
55
  "main": "main.js",
56
56
  "files": [