iobroker.zigbee 1.8.16 → 1.8.17

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,9 @@ You can thank the authors by these links:
138
138
 
139
139
 
140
140
  ## Changelog
141
+ ### 1.8.17 (2023-07-15)
142
+ * (arteck) sentry corr
143
+
141
144
  ### 1.8.16 (2023-07-11)
142
145
  * (arteck) battery corr
143
146
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee",
4
- "version": "1.8.16",
4
+ "version": "1.8.17",
5
5
  "news": {
6
+ "1.8.17": {
7
+ "en": "sentry corr",
8
+ "de": "versand",
9
+ "ru": "сендри корр",
10
+ "pt": "corante de sentinela",
11
+ "nl": "vertaling:",
12
+ "fr": "corr",
13
+ "it": "cor",
14
+ "es": "centry corr",
15
+ "pl": "kor",
16
+ "uk": "кофрів",
17
+ "zh-cn": "发信"
18
+ },
6
19
  "1.8.16": {
7
20
  "en": "battery corr",
8
21
  "de": "batterie korrektor",
@@ -44,10 +57,6 @@
44
57
  "pl": "naprawiony plug",
45
58
  "uk": "фіксувати роз'єм",
46
59
  "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: Sentry.Severity.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.17",
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": {