zigbee-herdsman-converters 14.0.346 → 14.0.347
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 +2 -2
- package/devices/osram.js +56 -2
- package/devices/tuya.js +5 -2
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -7312,9 +7312,9 @@ const converters = {
|
|
|
7312
7312
|
const value = tuya.getDataValue(msg.data.datatype, msg.data.data);
|
|
7313
7313
|
switch (dp) {
|
|
7314
7314
|
case tuya.dataPoints.trsPresenceState:
|
|
7315
|
-
return {presence: {0:
|
|
7315
|
+
return {presence: {0: false, 1: true}[value]};
|
|
7316
7316
|
case tuya.dataPoints.trsMotionState:
|
|
7317
|
-
return {motion: {1:
|
|
7317
|
+
return {motion: {1: false, 2: true}[value]};
|
|
7318
7318
|
case tuya.dataPoints.trsMotionSpeed:
|
|
7319
7319
|
return {motion_speed: value};
|
|
7320
7320
|
case tuya.dataPoints.trsMotionDirection:
|
package/devices/osram.js
CHANGED
|
@@ -391,14 +391,68 @@ module.exports = [
|
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
zigbeeModel: ['Zigbee 3.0 DALI CONV LI'],
|
|
394
|
-
model: '
|
|
394
|
+
model: '4062172044776_1',
|
|
395
395
|
vendor: 'OSRAM',
|
|
396
|
-
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires',
|
|
396
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (only one device)',
|
|
397
397
|
extend: extend.ledvance.light_onoff_brightness(),
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 25}, {ID: 242}]}],
|
|
401
|
+
model: '4062172044776_2',
|
|
402
|
+
vendor: 'OSRAM',
|
|
403
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (one device and pushbutton)',
|
|
404
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
405
|
+
onEvent: async (type, data, device) => {
|
|
406
|
+
if (type === 'deviceInterview') {
|
|
407
|
+
device.getEndpoint(25).addBinding('genOnOff', device.getEndpoint(10));
|
|
408
|
+
device.getEndpoint(25).addBinding('genLevelCtrl', device.getEndpoint(10));
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 11}, {ID: 242}]}],
|
|
414
|
+
model: '4062172044776_3',
|
|
415
|
+
vendor: 'OSRAM',
|
|
416
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices)',
|
|
417
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
398
418
|
exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
399
419
|
endpoint: (device) => {
|
|
400
420
|
return {'l1': 10, 'l2': 11};
|
|
401
421
|
},
|
|
402
422
|
meta: {multiEndpoint: true},
|
|
423
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
424
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
425
|
+
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
426
|
+
await reporting.onOff(device.getEndpoint(10));
|
|
427
|
+
await reporting.brightness(device.getEndpoint(10));
|
|
428
|
+
await reporting.onOff(device.getEndpoint(11));
|
|
429
|
+
await reporting.brightness(device.getEndpoint(11));
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 11}, {ID: 25}, {ID: 242}]}],
|
|
434
|
+
model: '4062172044776_4',
|
|
435
|
+
vendor: 'OSRAM',
|
|
436
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices and pushbutton)',
|
|
437
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
438
|
+
exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
439
|
+
endpoint: (device) => {
|
|
440
|
+
return {'l1': 10, 'l2': 11};
|
|
441
|
+
},
|
|
442
|
+
meta: {multiEndpoint: true},
|
|
443
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
444
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
445
|
+
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
446
|
+
await reporting.onOff(device.getEndpoint(10));
|
|
447
|
+
await reporting.brightness(device.getEndpoint(10));
|
|
448
|
+
await reporting.onOff(device.getEndpoint(11));
|
|
449
|
+
await reporting.brightness(device.getEndpoint(11));
|
|
450
|
+
},
|
|
451
|
+
onEvent: async (type, data, device) => {
|
|
452
|
+
if (type === 'deviceInterview') {
|
|
453
|
+
device.getEndpoint(25).addBinding('genOnOff', device.getEndpoint(10));
|
|
454
|
+
device.getEndpoint(25).addBinding('genLevelCtrl', device.getEndpoint(10));
|
|
455
|
+
}
|
|
456
|
+
},
|
|
403
457
|
},
|
|
404
458
|
];
|
package/devices/tuya.js
CHANGED
|
@@ -1026,6 +1026,7 @@ module.exports = [
|
|
|
1026
1026
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_nfnmi125'},
|
|
1027
1027
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_ps3dmato'},
|
|
1028
1028
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_w0qqde0g'},
|
|
1029
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_u5u4cakc'},
|
|
1029
1030
|
],
|
|
1030
1031
|
model: 'TS011F_plug_1',
|
|
1031
1032
|
description: 'Smart plug (with power monitoring)',
|
|
@@ -1078,17 +1079,19 @@ module.exports = [
|
|
|
1078
1079
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_mraovvmm', applicationVersion: 68},
|
|
1079
1080
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_mraovvmm', applicationVersion: 69},
|
|
1080
1081
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_nfnmi125', applicationVersion: 68},
|
|
1082
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_nfnmi125', applicationVersion: 65},
|
|
1081
1083
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_nfnmi125', applicationVersion: 69},
|
|
1082
1084
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_ps3dmato', applicationVersion: 68},
|
|
1083
1085
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_ps3dmato', applicationVersion: 69},
|
|
1084
1086
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_w0qqde0g', applicationVersion: 64},
|
|
1085
1087
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_w0qqde0g', applicationVersion: 68},
|
|
1086
1088
|
{modelID: 'TS011F', manufacturerName: '_TZ3000_w0qqde0g', applicationVersion: 69},
|
|
1089
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_u5u4cakc', applicationVersion: 69},
|
|
1087
1090
|
],
|
|
1088
1091
|
model: 'TS011F_plug_3',
|
|
1089
1092
|
description: 'Smart plug (with power monitoring by polling)',
|
|
1090
1093
|
vendor: 'TuYa',
|
|
1091
|
-
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}],
|
|
1094
|
+
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}, {vendor: 'BlitzWolf', model: 'BW-SHP15'}],
|
|
1092
1095
|
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory],
|
|
1093
1096
|
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
|
|
1094
1097
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
@@ -1667,7 +1670,7 @@ module.exports = [
|
|
|
1667
1670
|
toZigbee: [tz.tuya_radar_sensor],
|
|
1668
1671
|
exposes: [
|
|
1669
1672
|
e.illuminance_lux(), e.presence(),
|
|
1670
|
-
exposes.
|
|
1673
|
+
exposes.binary('motion', ea.STATE, [true, false]).withDescription('moving inside the range of the sensor'),
|
|
1671
1674
|
exposes.numeric('motion_speed', ea.STATE).withDescription('Speed of movement'),
|
|
1672
1675
|
exposes.enum('motion_direction', ea.STATE, ['standing still', 'moving forward', 'moving backward'])
|
|
1673
1676
|
.withDescription('direction of movement from the point of view of the radar'),
|
package/npm-shrinkwrap.json
CHANGED