iobroker.zigbee 1.8.16 → 1.8.18

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,6 +138,13 @@ You can thank the authors by these links:
138
138
 
139
139
 
140
140
  ## Changelog
141
+ ### 1.8.18 (2023-07-16)
142
+ * (arteck) little fix sentry and error log
143
+ *
144
+
145
+ ### 1.8.17 (2023-07-15)
146
+ * (arteck) sentry corr
147
+
141
148
  ### 1.8.16 (2023-07-11)
142
149
  * (arteck) battery corr
143
150
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee",
4
- "version": "1.8.16",
4
+ "version": "1.8.18",
5
5
  "news": {
6
+ "1.8.18": {
7
+ "en": "little fix sentry and error log\n",
8
+ "de": "kleines fix-sende- und fehlerprotokoll\n",
9
+ "ru": "мало исправлена отправка и ошибка журнала\n",
10
+ "pt": "pequena correção sentinela e log de erro\n",
11
+ "nl": "kleine herstellende sentimentele logboek\n",
12
+ "fr": "petit journal de réparation et d'erreur\n",
13
+ "it": "piccolo fix registro di errore\n",
14
+ "es": "pequeño solucion centry y error log\n",
15
+ "pl": "wadliwość i błąd\n",
16
+ "uk": "маленька фіксація відправлень і журнал помилок\n",
17
+ "zh-cn": "很少发送过材料和错误逻辑\n"
18
+ },
19
+ "1.8.17": {
20
+ "en": "sentry corr",
21
+ "de": "versand",
22
+ "ru": "сендри корр",
23
+ "pt": "corante de sentinela",
24
+ "nl": "vertaling:",
25
+ "fr": "corr",
26
+ "it": "cor",
27
+ "es": "centry corr",
28
+ "pl": "kor",
29
+ "uk": "кофрів",
30
+ "zh-cn": "发信"
31
+ },
6
32
  "1.8.16": {
7
33
  "en": "battery corr",
8
34
  "de": "batterie korrektor",
@@ -31,23 +57,6 @@
31
57
  "1.8.10": {
32
58
  "en": "fix group access and any new functions",
33
59
  "de": "fix group access and any new functions"
34
- },
35
- "1.8.9": {
36
- "en": "fix lidl plug",
37
- "de": "deckelstecker",
38
- "ru": "исправить lidl plug",
39
- "pt": "fixar tampa",
40
- "nl": "los deksel",
41
- "fr": "fixer le couvercle",
42
- "it": "correzione della spina del coperchio",
43
- "es": "enchufe de tapa fija",
44
- "pl": "naprawiony plug",
45
- "uk": "фіксувати роз'єм",
46
- "zh-cn": "fix 滑坡"
47
- },
48
- "1.8.8": {
49
- "en": "fix lidl plug",
50
- "de": "fix lidl plug"
51
60
  }
52
61
  },
53
62
  "title": "Zigbee",
package/main.js CHANGED
@@ -109,28 +109,32 @@ class Zigbee extends utils.Adapter {
109
109
  }
110
110
 
111
111
  sendError(error, message) {
112
- if (this.supportsFeature && this.supportsFeature('PLUGINS')) {
113
- const sentryInstance = this.getPluginInstance('sentry');
114
- if (sentryInstance) {
115
- const Sentry = sentryInstance.getSentryObject();
116
- if (Sentry) {
117
- if (message) {
118
- Sentry.configureScope(scope =>
119
- scope.addBreadcrumb({
120
- type: 'error', // predefined types
121
- category: 'error message',
122
- level: Sentry.Severity.Error,
123
- message
124
- }));
125
- }
126
-
127
- if (typeof error == 'string') {
128
- Sentry.captureException(new Error(error));
129
- } else {
130
- Sentry.captureException(error);
112
+ try {
113
+ if (this.supportsFeature && this.supportsFeature('PLUGINS')) {
114
+ const sentryInstance = this.getPluginInstance('sentry');
115
+ if (sentryInstance) {
116
+ const Sentry = sentryInstance.getSentryObject();
117
+ if (Sentry) {
118
+ if (message) {
119
+ Sentry.configureScope(scope =>
120
+ scope.addBreadcrumb({
121
+ type: 'error', // predefined types
122
+ category: 'error message',
123
+ level: 'error',
124
+ message
125
+ }));
126
+ }
127
+
128
+ if (typeof error == 'string') {
129
+ Sentry.captureException(new Error(error));
130
+ } else {
131
+ Sentry.captureException(error);
132
+ }
131
133
  }
132
134
  }
133
135
  }
136
+ } catch (err) {
137
+ this.log.error(`SentryError : ${message} ${error} ${err} `);
134
138
  }
135
139
  }
136
140
 
@@ -784,8 +788,8 @@ class Zigbee extends utils.Adapter {
784
788
  await this.publishFromState(`0x${payload.device}`, '', undefined, stateList, payload.options);
785
789
  return {success: true};
786
790
  } catch (error) {
787
- this.filterError(`Error ${error.code} on send command to ${payload.device}.` +
788
- ` Error: ${error.stack}`, `Send command to ${payload.device} failed with`, error);
791
+ this.log.error(`Error ${error.code} on send command to ${payload.device}.` + ` Error: ${error.stack} ` + `Send command to ${payload.device} failed with ` + error);
792
+ this.filterError(`Error ${error.code} on send command to ${payload.device}.` + ` Error: ${error.stack}`, `Send command to ${payload.device} failed with`, error);
789
793
  return {success: false, error};
790
794
  }
791
795
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zigbee",
3
- "version": "1.8.16",
3
+ "version": "1.8.18",
4
4
  "author": {
5
5
  "name": "Kirov Ilya",
6
6
  "email": "kirovilya@gmail.com"
@@ -24,8 +24,8 @@
24
24
  "@iobroker/adapter-core": "^2.6.8",
25
25
  "tar": "^6.1.15",
26
26
  "typescript": "^5.1.6",
27
- "zigbee-herdsman": "0.17.1",
28
- "zigbee-herdsman-converters": "15.38.0"
27
+ "zigbee-herdsman": "0.17.2",
28
+ "zigbee-herdsman-converters": "15.41.0"
29
29
  },
30
30
  "description": "Zigbee devices",
31
31
  "devDependencies": {