zigbee-herdsman-converters 14.0.451 → 14.0.452
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/converters/fromZigbee.js +3 -1
- package/devices/innr.js +8 -0
- package/devices/lixee.js +10 -2
- package/devices/philips.js +18 -0
- package/devices/tuya.js +22 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -674,7 +674,9 @@ const converters = {
|
|
|
674
674
|
type: ['attributeReport', 'readResponse'],
|
|
675
675
|
convert: (model, msg, publish, options, meta) => {
|
|
676
676
|
const result = converters.metering.convert(model, msg, publish, options, meta);
|
|
677
|
-
result.power
|
|
677
|
+
if (result.hasOwnProperty('power')) {
|
|
678
|
+
result.power /= 1000;
|
|
679
|
+
}
|
|
678
680
|
return result;
|
|
679
681
|
},
|
|
680
682
|
},
|
package/devices/innr.js
CHANGED
|
@@ -95,6 +95,14 @@ module.exports = [
|
|
|
95
95
|
extend: extend.light_onoff_brightness(),
|
|
96
96
|
meta: {turnsOffAtBrightness1: true},
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
zigbeeModel: ['RB 266'],
|
|
100
|
+
model: 'RB 266',
|
|
101
|
+
vendor: 'Innr',
|
|
102
|
+
description: 'E27 bulb',
|
|
103
|
+
extend: extend.light_onoff_brightness(),
|
|
104
|
+
meta: {turnsOffAtBrightness1: true},
|
|
105
|
+
},
|
|
98
106
|
{
|
|
99
107
|
zigbeeModel: ['RF 265'],
|
|
100
108
|
model: 'RF 265',
|
package/devices/lixee.js
CHANGED
|
@@ -567,7 +567,11 @@ const definition = {
|
|
|
567
567
|
clustersDef._0xFF66, /* liXeePrivate */
|
|
568
568
|
]);
|
|
569
569
|
|
|
570
|
-
await endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null})
|
|
570
|
+
await endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null})
|
|
571
|
+
.catch((e) => {
|
|
572
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/11674
|
|
573
|
+
logger.warn(`Failed to read zigbee attributes: ${e}`);
|
|
574
|
+
});
|
|
571
575
|
|
|
572
576
|
const configReportings = [];
|
|
573
577
|
const suscribeNew = getCurrentConfig(device, options, logger).filter((e) => e.reportable);
|
|
@@ -608,7 +612,11 @@ const definition = {
|
|
|
608
612
|
onEvent: async (type, data, device, options) => {
|
|
609
613
|
const endpoint = device.getEndpoint(1);
|
|
610
614
|
if (type === 'start') {
|
|
611
|
-
endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null})
|
|
615
|
+
endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null})
|
|
616
|
+
.catch((e) => {
|
|
617
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/11674
|
|
618
|
+
console.warn(`Failed to read zigbee attributes: ${e}`);
|
|
619
|
+
});
|
|
612
620
|
} else if (type === 'stop') {
|
|
613
621
|
clearInterval(globalStore.getValue(device, 'interval'));
|
|
614
622
|
globalStore.clearValue(device, 'interval');
|
package/devices/philips.js
CHANGED
|
@@ -759,6 +759,15 @@ module.exports = [
|
|
|
759
759
|
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
760
760
|
ota: ota.zigbeeOTA,
|
|
761
761
|
},
|
|
762
|
+
{
|
|
763
|
+
zigbeeModel: ['LTA012'],
|
|
764
|
+
model: '929002335105',
|
|
765
|
+
vendor: 'Philips',
|
|
766
|
+
description: 'Hue white ambiance E26 1600lm with Bluetooth',
|
|
767
|
+
ota: ota.zigbeeOTA,
|
|
768
|
+
meta: {turnsOffAtBrightness1: true},
|
|
769
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
770
|
+
},
|
|
762
771
|
{
|
|
763
772
|
zigbeeModel: ['LTA008'],
|
|
764
773
|
model: '9290022267A',
|
|
@@ -2435,6 +2444,15 @@ module.exports = [
|
|
|
2435
2444
|
extend: hueExtend.light_onoff_brightness_colortemp(),
|
|
2436
2445
|
ota: ota.zigbeeOTA,
|
|
2437
2446
|
},
|
|
2447
|
+
{
|
|
2448
|
+
zigbeeModel: ['929003047101'],
|
|
2449
|
+
model: '929003047101',
|
|
2450
|
+
vendor: 'Philips',
|
|
2451
|
+
description: 'Hue White ambiance Milliskin (round)',
|
|
2452
|
+
meta: {turnsOffAtBrightness1: true},
|
|
2453
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
2454
|
+
ota: ota.zigbeeOTA,
|
|
2455
|
+
},
|
|
2438
2456
|
{
|
|
2439
2457
|
zigbeeModel: ['5047131P9', '5047131P6'],
|
|
2440
2458
|
model: '5047131P9',
|
package/devices/tuya.js
CHANGED
|
@@ -229,6 +229,7 @@ module.exports = [
|
|
|
229
229
|
{modelID: 'TS0505B', manufacturerName: '_TZ3000_kohbva1f'},
|
|
230
230
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_wslkvrau'},
|
|
231
231
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_0rn9qhnu'},
|
|
232
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3210_ejctepku'},
|
|
232
233
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_bicjqpg4'},
|
|
233
234
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_jmiuubkz'},
|
|
234
235
|
{modelID: 'TS0505B', manufacturerName: '_TZ3000_cmaky9gq'},
|
|
@@ -884,6 +885,27 @@ module.exports = [
|
|
|
884
885
|
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
885
886
|
},
|
|
886
887
|
},
|
|
888
|
+
{
|
|
889
|
+
fingerprint: [{modelID: 'TS0002', manufacturerName: '_TZ3000_fisb3ajo'}],
|
|
890
|
+
model: 'TS0002_switch_module_2',
|
|
891
|
+
vendor: 'TuYa',
|
|
892
|
+
description: '2 gang switch module',
|
|
893
|
+
toZigbee: extend.switch().toZigbee.concat([tz.moes_power_on_behavior]),
|
|
894
|
+
fromZigbee: extend.switch().fromZigbee.concat([fz.moes_power_on_behavior]),
|
|
895
|
+
exposes: [
|
|
896
|
+
e.switch().withEndpoint('l1'),
|
|
897
|
+
e.switch().withEndpoint('l2'),
|
|
898
|
+
exposes.presets.power_on_behavior(),
|
|
899
|
+
],
|
|
900
|
+
endpoint: (device) => {
|
|
901
|
+
return {'l1': 1, 'l2': 2};
|
|
902
|
+
},
|
|
903
|
+
meta: {multiEndpoint: true},
|
|
904
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
905
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
906
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
907
|
+
},
|
|
908
|
+
},
|
|
887
909
|
{
|
|
888
910
|
fingerprint: [{modelID: 'TS0003', manufacturerName: '_TZ3000_vsasbzkf'},
|
|
889
911
|
{modelID: 'TS0003', manufacturerName: '_TZ3000_odzoiovu'}],
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.452",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "zigbee-herdsman-converters",
|
|
9
|
-
"version": "14.0.
|
|
9
|
+
"version": "14.0.452",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"axios": "^0.26.1",
|