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 +3 -0
- package/io-package.json +14 -5
- package/main.js +25 -21
- package/package.json +3 -3
package/README.md
CHANGED
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee",
|
|
4
|
-
"version": "1.8.
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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.
|
|
788
|
-
|
|
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.
|
|
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.
|
|
28
|
-
"zigbee-herdsman-converters": "15.
|
|
27
|
+
"zigbee-herdsman": "0.17.2",
|
|
28
|
+
"zigbee-herdsman-converters": "15.41.0"
|
|
29
29
|
},
|
|
30
30
|
"description": "Zigbee devices",
|
|
31
31
|
"devDependencies": {
|