iobroker.zigbee 1.8.5 → 1.8.9
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 +6 -0
- package/admin/adapter-settings.js +244 -0
- package/admin/admin.js +13 -6
- package/admin/tab_m.html +2 -1
- package/io-package.json +35 -26
- package/lib/exposes.js +6 -5
- package/lib/states.js +526 -511
- package/lib/utils.js +5 -0
- package/package.json +3 -3
package/lib/utils.js
CHANGED
|
@@ -132,6 +132,10 @@ function getDeviceIcon(definition) {
|
|
|
132
132
|
}
|
|
133
133
|
return icon;
|
|
134
134
|
}
|
|
135
|
+
function getModelRegEx( model) {
|
|
136
|
+
const stripModel = (model) ? model.replace(/\0.*$/g, '').trim() : '';
|
|
137
|
+
return stripModel;
|
|
138
|
+
}
|
|
135
139
|
|
|
136
140
|
exports.secondsToMilliseconds = seconds => seconds * 1000;
|
|
137
141
|
exports.bulbLevelToAdapterLevel = bulbLevelToAdapterLevel;
|
|
@@ -142,6 +146,7 @@ exports.miredKelvinConversion = miredKelvinConversion;
|
|
|
142
146
|
exports.decimalToHex = decimalToHex;
|
|
143
147
|
exports.getZbId = getZbId;
|
|
144
148
|
exports.getAdId = getAdId;
|
|
149
|
+
exports.getModelRegEx = getModelRegEx;
|
|
145
150
|
exports.isRouter = device => device.type === 'Router' && !forceEndDevice.includes(device.modelID);
|
|
146
151
|
exports.isBatteryPowered = device => device.powerSource && device.powerSource === 'Battery';
|
|
147
152
|
exports.isXiaomiDevice = device =>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zigbee",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
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.7",
|
|
25
25
|
"tar": "^6.1.12",
|
|
26
26
|
"typescript": "^4.9.3",
|
|
27
|
-
"zigbee-herdsman": "0.14.
|
|
28
|
-
"zigbee-herdsman-converters": "14.0.
|
|
27
|
+
"zigbee-herdsman": "0.14.80",
|
|
28
|
+
"zigbee-herdsman-converters": "14.0.687"
|
|
29
29
|
},
|
|
30
30
|
"description": "Zigbee devices",
|
|
31
31
|
"devDependencies": {
|