iobroker.zigbee 1.8.15 → 1.8.16

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
@@ -138,14 +138,13 @@ You can thank the authors by these links:
138
138
 
139
139
 
140
140
  ## Changelog
141
- ### 1.8.15 (2023-07-11)
142
- * (arteck) corr battery status
141
+ ### 1.8.16 (2023-07-11)
142
+ * (arteck) battery corr
143
143
 
144
- ### 1.8.13 (2023-07-09)
144
+ ### 1.8.13
145
145
  * (arteck) ota corr
146
146
  * (arteck) devices are wrong with enum exposes
147
- * (arteck) select field for groups is larger
148
- * (kirovilya) tuya.whitelabel corr
147
+ * (arteck) select field for groups is larger
149
148
 
150
149
  ### 1.8.12 (2023-06-30)
151
150
  * (arteck) new Documentation (thx Stefan)
@@ -972,7 +972,7 @@
972
972
  <div class="modal-content">
973
973
  <h3 class="translate">Config device</h3>
974
974
  <div class="row">
975
- <div class="col">
975
+ <div class="co1l">
976
976
  <div class="input-field">
977
977
  <input id="d_name" type="text" class="value validate">
978
978
  <label for="d_name" class="translate">Name</label>
package/io-package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee",
4
- "version": "1.8.15",
4
+ "version": "1.8.16",
5
5
  "news": {
6
- "1.8.15": {
7
- "en": "corr battery status",
8
- "de": "corr batteriestatus",
9
- "ru": "корр состояние батареи",
10
- "pt": "status da bateria de corrimento",
11
- "nl": "corr batterij status",
12
- "fr": "état de la batterie",
13
- "it": "stato della batteria",
14
- "es": "estado de la batería",
15
- "pl": "kor battery status",
16
- "uk": "статус на сервери",
17
- "zh-cn": "2. 电池身份"
18
- },
19
- "1.8.14": {
20
- "en": "",
21
- "de": ""
6
+ "1.8.16": {
7
+ "en": "battery corr",
8
+ "de": "batterie korrektor",
9
+ "ru": "аккумулятор корр",
10
+ "pt": "corante da bateria",
11
+ "nl": "batterij corr",
12
+ "fr": "batterie",
13
+ "it": "batteria corpo",
14
+ "es": "batería corrido",
15
+ "pl": "baterie",
16
+ "uk": "акумулятор",
17
+ "zh-cn": "电池组"
22
18
  },
23
19
  "1.8.13": {
24
20
  "en": "see Readme https://github.com/ioBroker/ioBroker.zigbee/blob/master/README.md",
@@ -48,6 +44,10 @@
48
44
  "pl": "naprawiony plug",
49
45
  "uk": "фіксувати роз'єм",
50
46
  "zh-cn": "fix 滑坡"
47
+ },
48
+ "1.8.8": {
49
+ "en": "fix lidl plug",
50
+ "de": "fix lidl plug"
51
51
  }
52
52
  },
53
53
  "title": "Zigbee",
package/main.js CHANGED
@@ -135,7 +135,7 @@ class Zigbee extends utils.Adapter {
135
135
  }
136
136
 
137
137
  filterError(errormessage, message, error) {
138
- if (error.code === undefined) {
138
+ if (error != null && error.code == undefined) {
139
139
  let em = error.stack.match(/failed \((.+?)\) at/);
140
140
  em = em || error.stack.match(/failed \((.+?)\)/);
141
141
  this.log.error(`${message} no error code (${(em ? em[1] : 'undefined')})`);
@@ -515,29 +515,25 @@ class Zigbee extends utils.Adapter {
515
515
 
516
516
  if (!converters.length) {
517
517
  if (type !== 'readResponse') {
518
- this.log.debug(
519
- `No converter available for '${mappedModel.model}' '${devId}' with cluster '${cluster}' and type '${type}'`
518
+ this.log.debug(`No converter available for '${mappedModel.model}' '${devId}' with cluster '${cluster}' and type '${type}'`
520
519
  );
521
520
  }
522
521
  return;
523
522
  }
524
523
 
525
- converters.forEach((converter) => {
526
- const publish = (payload) => {
527
- this.log.debug(`Publish ${safeJsonStringify(payload)} to ${safeJsonStringify(devId)}`);
528
- if (payload) {
529
- this.publishToState(devId, model, payload);
530
- }
531
- };
524
+ const publish = (payload) => {
525
+ this.log.debug(`Publish '${safeJsonStringify(payload)}' devId '${devId}'`);
526
+ if (payload) {
527
+ this.publishToState(devId, model, payload);
528
+ }
529
+ };
532
530
 
533
- this.stController.collectOptions(devId, model, (options) => {
534
- const payload = converter.convert(mappedModel, message, publish, options, meta);
535
- if (payload) {
536
- // Add device linkquality.
537
- publish(payload);
538
- }
539
- });
540
- });
531
+ for (const converter of converters) {
532
+ let payload = await converter.convert(mappedModel, message, publish, mappedModel.options, meta);
533
+ if (payload) {
534
+ publish(payload);
535
+ }
536
+ }
541
537
  }
542
538
 
543
539
  publishToState(devId, model, payload) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zigbee",
3
- "version": "1.8.15",
3
+ "version": "1.8.16",
4
4
  "author": {
5
5
  "name": "Kirov Ilya",
6
6
  "email": "kirovilya@gmail.com"
@@ -18,13 +18,13 @@
18
18
  "node": ">=10"
19
19
  },
20
20
  "optionalDependencies": {
21
- "serialport": "^10.5.0"
21
+ "serialport": "^11.0.0"
22
22
  },
23
23
  "dependencies": {
24
24
  "@iobroker/adapter-core": "^2.6.8",
25
25
  "tar": "^6.1.15",
26
26
  "typescript": "^5.1.6",
27
- "zigbee-herdsman": "0.16.0",
27
+ "zigbee-herdsman": "0.17.1",
28
28
  "zigbee-herdsman-converters": "15.38.0"
29
29
  },
30
30
  "description": "Zigbee devices",