zigbee-herdsman-converters 14.0.499 → 14.0.502
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 +78 -18
- package/converters/toZigbee.js +49 -4
- package/devices/heiman.js +1 -1
- package/devices/moes.js +3 -3
- package/devices/neo.js +20 -11
- package/devices/nue_3a.js +6 -2
- package/devices/philips.js +9 -0
- package/devices/saswell.js +1 -0
- package/devices/tuya.js +58 -4
- package/devices/xiaomi.js +5 -2
- package/devices/zemismart.js +9 -0
- package/lib/tuya.js +19 -0
- package/lib/xiaomi.js +10 -4
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -2562,42 +2562,51 @@ const converters = {
|
|
|
2562
2562
|
const dpValue = tuya.firstDpValue(msg, meta, 'neo_nas_pd07');
|
|
2563
2563
|
const dp = dpValue.dp;
|
|
2564
2564
|
const value = tuya.getDataValue(dpValue);
|
|
2565
|
-
|
|
2566
|
-
|
|
2565
|
+
switch (dp) {
|
|
2566
|
+
case tuya.dataPoints.neoOccupancy:
|
|
2567
|
+
return {occupancy: value > 0 ? true : false};
|
|
2568
|
+
case 102:
|
|
2567
2569
|
return {
|
|
2568
2570
|
power_type: {0: 'battery_full', 1: 'battery_high', 2: 'battery_medium', 3: 'battery_low', 4: 'usb'}[value],
|
|
2569
2571
|
battery_low: value === 3,
|
|
2570
2572
|
};
|
|
2571
|
-
|
|
2573
|
+
case tuya.dataPoints.neoTamper:
|
|
2572
2574
|
return {tamper: value > 0 ? true : false};
|
|
2573
|
-
|
|
2575
|
+
case 104:
|
|
2574
2576
|
return {temperature: calibrateAndPrecisionRoundOptions(value / 10, options, 'temperature')};
|
|
2575
|
-
|
|
2577
|
+
case 105:
|
|
2576
2578
|
return {humidity: calibrateAndPrecisionRoundOptions(value, options, 'humidity')};
|
|
2577
|
-
|
|
2579
|
+
case tuya.dataPoints.neoMinTemp:
|
|
2578
2580
|
return {temperature_min: value};
|
|
2579
|
-
|
|
2581
|
+
case tuya.dataPoints.neoMaxTemp:
|
|
2580
2582
|
return {temperature_max: value};
|
|
2581
|
-
|
|
2583
|
+
case tuya.dataPoints.neoMinHumidity:
|
|
2582
2584
|
return {humidity_min: value};
|
|
2583
|
-
|
|
2585
|
+
case tuya.dataPoints.neoMaxHumidity:
|
|
2584
2586
|
return {humidity_max: value};
|
|
2585
|
-
|
|
2587
|
+
case tuya.dataPoints.neoTempScale:
|
|
2588
|
+
return {temperature_scale: value ? '°C' : '°F'};
|
|
2589
|
+
case 111:
|
|
2590
|
+
return {unknown_111: value ? 'ON' : 'OFF'};
|
|
2591
|
+
case 112:
|
|
2592
|
+
return {unknown_112: value ? 'ON' : 'OFF'};
|
|
2593
|
+
case tuya.dataPoints.neoTempHumidityAlarm:
|
|
2586
2594
|
return {alarm: {0: 'over_temperature', 1: 'over_humidity',
|
|
2587
2595
|
2: 'below_min_temperature', 3: 'below_min_humdity', 4: 'off'}[value]};
|
|
2588
|
-
|
|
2589
|
-
meta.logger.warn(`
|
|
2596
|
+
default: // Unknown code
|
|
2597
|
+
meta.logger.warn(`fz.neo_nas_pd07: Unhandled DP #${dp}: ${JSON.stringify(dpValue)}`);
|
|
2590
2598
|
}
|
|
2591
2599
|
},
|
|
2592
2600
|
},
|
|
2593
2601
|
neo_t_h_alarm: {
|
|
2594
2602
|
cluster: 'manuSpecificTuya',
|
|
2595
2603
|
type: ['commandDataReport', 'commandDataResponse'],
|
|
2604
|
+
options: [exposes.options.precision('temperature'), exposes.options.calibration('temperature'),
|
|
2605
|
+
exposes.options.precision('humidity'), exposes.options.calibration('humidity')],
|
|
2596
2606
|
convert: (model, msg, publish, options, meta) => {
|
|
2597
2607
|
const dpValue = tuya.firstDpValue(msg, meta, 'neo_t_h_alarm');
|
|
2598
2608
|
const dp = dpValue.dp;
|
|
2599
2609
|
const value = tuya.getDataValue(dpValue);
|
|
2600
|
-
|
|
2601
2610
|
switch (dp) {
|
|
2602
2611
|
case tuya.dataPoints.neoAlarm:
|
|
2603
2612
|
return {alarm: value};
|
|
@@ -2610,9 +2619,9 @@ const converters = {
|
|
|
2610
2619
|
case tuya.dataPoints.neoDuration: // 0x0267 [0,0,0,10] duration alarm in second
|
|
2611
2620
|
return {duration: value};
|
|
2612
2621
|
case tuya.dataPoints.neoTemp: // 0x0269 [0,0,0,240] temperature
|
|
2613
|
-
return {temperature: (value / 10)
|
|
2622
|
+
return {temperature: calibrateAndPrecisionRoundOptions((value / 10), options, 'temperature')};
|
|
2614
2623
|
case tuya.dataPoints.neoHumidity: // 0x026A [0,0,0,36] humidity
|
|
2615
|
-
return {humidity: value};
|
|
2624
|
+
return {humidity: calibrateAndPrecisionRoundOptions(value, options, 'humidity')};
|
|
2616
2625
|
case tuya.dataPoints.neoMinTemp: // 0x026B [0,0,0,18] min alarm temperature
|
|
2617
2626
|
return {temperature_min: value};
|
|
2618
2627
|
case tuya.dataPoints.neoMaxTemp: // 0x026C [0,0,0,27] max alarm temperature
|
|
@@ -2633,7 +2642,7 @@ const converters = {
|
|
|
2633
2642
|
case tuya.dataPoints.neoVolume: // 0x0474 [0]/[1]/[2] Volume 0-max, 2-low
|
|
2634
2643
|
return {volume: {2: 'low', 1: 'medium', 0: 'high'}[value]};
|
|
2635
2644
|
default: // Unknown code
|
|
2636
|
-
meta.logger.warn(`Unhandled DP #${dp}: ${JSON.stringify(dpValue)}`);
|
|
2645
|
+
meta.logger.warn(`fz.neo_t_h_alarm: Unhandled DP #${dp}: ${JSON.stringify(dpValue)}`);
|
|
2637
2646
|
}
|
|
2638
2647
|
},
|
|
2639
2648
|
},
|
|
@@ -4309,14 +4318,19 @@ const converters = {
|
|
|
4309
4318
|
// DP2: Smart Air Box: co2, Smart Air Housekeeper: MP25
|
|
4310
4319
|
case tuya.dataPoints.tuyaSabCO2:
|
|
4311
4320
|
if (meta.device.manufacturerName === '_TZE200_dwcarsat') {
|
|
4321
|
+
if (value === 0xaaab) return; // Ignore: https://github.com/Koenkk/zigbee2mqtt/issues/11033#issuecomment-1109808552
|
|
4312
4322
|
return {pm25: calibrateAndPrecisionRoundOptions(value, options, 'pm25')};
|
|
4313
4323
|
} else if (meta.device.manufacturerName === '_TZE200_ryfmq5rl') {
|
|
4314
|
-
return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd')};
|
|
4324
|
+
return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd') / 100};
|
|
4315
4325
|
} else {
|
|
4316
4326
|
return {co2: calibrateAndPrecisionRoundOptions(value, options, 'co2')};
|
|
4317
4327
|
}
|
|
4318
4328
|
case tuya.dataPoints.tuyaSabVOC:
|
|
4319
|
-
|
|
4329
|
+
if (meta.device.manufacturerName === '_TZE200_ryfmq5rl') {
|
|
4330
|
+
return {voc: calibrateAndPrecisionRoundOptions(value, options, 'voc') / 10};
|
|
4331
|
+
} else {
|
|
4332
|
+
return {voc: calibrateAndPrecisionRoundOptions(value, options, 'voc')};
|
|
4333
|
+
}
|
|
4320
4334
|
case tuya.dataPoints.tuyaSahkFormaldehyd:
|
|
4321
4335
|
return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd')};
|
|
4322
4336
|
default:
|
|
@@ -8399,6 +8413,52 @@ const converters = {
|
|
|
8399
8413
|
return result;
|
|
8400
8414
|
},
|
|
8401
8415
|
},
|
|
8416
|
+
tuya_smart_human_presense_sensor: {
|
|
8417
|
+
cluster: 'manuSpecificTuya',
|
|
8418
|
+
type: ['commandDataResponse', 'commandDataReport'],
|
|
8419
|
+
convert: (model, msg, publish, options, meta) => {
|
|
8420
|
+
const dpValue = tuya.firstDpValue(msg, meta, 'tuya_smart_human_presense_sensor');
|
|
8421
|
+
const dp = dpValue.dp;
|
|
8422
|
+
const value = tuya.getDataValue(dpValue);
|
|
8423
|
+
let result = null;
|
|
8424
|
+
switch (dp) {
|
|
8425
|
+
case tuya.dataPoints.tshpsPresenceState:
|
|
8426
|
+
result = {presence: {0: false, 1: true}[value]};
|
|
8427
|
+
break;
|
|
8428
|
+
case tuya.dataPoints.tshpscSensitivity:
|
|
8429
|
+
result = {radar_sensitivity: value};
|
|
8430
|
+
break;
|
|
8431
|
+
case tuya.dataPoints.tshpsMinimumRange:
|
|
8432
|
+
result = {minimum_range: value/100};
|
|
8433
|
+
break;
|
|
8434
|
+
case tuya.dataPoints.tshpsMaximumRange:
|
|
8435
|
+
result = {maximum_range: value/100};
|
|
8436
|
+
break;
|
|
8437
|
+
case tuya.dataPoints.tshpsTargetDistance:
|
|
8438
|
+
result = {target_distance: value/100};
|
|
8439
|
+
break;
|
|
8440
|
+
case tuya.dataPoints.tshpsDetectionDelay:
|
|
8441
|
+
result = {detection_delay: value/10};
|
|
8442
|
+
break;
|
|
8443
|
+
case tuya.dataPoints.tshpsFadingTime:
|
|
8444
|
+
result = {fading_time: value/10};
|
|
8445
|
+
break;
|
|
8446
|
+
case tuya.dataPoints.tshpsIlluminanceLux:
|
|
8447
|
+
result = {illuminance_lux: value};
|
|
8448
|
+
break;
|
|
8449
|
+
case tuya.dataPoints.tshpsCLI: // not recognize
|
|
8450
|
+
result = {cli: value};
|
|
8451
|
+
break;
|
|
8452
|
+
case tuya.dataPoints.tshpsSelfTest: // not recognize
|
|
8453
|
+
result = {self_test: value};
|
|
8454
|
+
break;
|
|
8455
|
+
default:
|
|
8456
|
+
meta.logger
|
|
8457
|
+
.warn(`fromZigbee.tuya_smart_human_presense_sensor: NOT RECOGNIZED DP ${dp} with data ${JSON.stringify(dpValue)}`);
|
|
8458
|
+
}
|
|
8459
|
+
return result;
|
|
8460
|
+
},
|
|
8461
|
+
},
|
|
8402
8462
|
// #endregion
|
|
8403
8463
|
|
|
8404
8464
|
// #region Ignore converters (these message dont need parsing).
|
package/converters/toZigbee.js
CHANGED
|
@@ -5531,7 +5531,7 @@ const converters = {
|
|
|
5531
5531
|
},
|
|
5532
5532
|
},
|
|
5533
5533
|
neo_nas_pd07: {
|
|
5534
|
-
key: ['temperature_max', 'temperature_min', 'humidity_max', 'humidity_min'],
|
|
5534
|
+
key: ['temperature_max', 'temperature_min', 'humidity_max', 'humidity_min', 'temperature_scale', 'unknown_111', 'unknown_112'],
|
|
5535
5535
|
convertSet: async (entity, key, value, meta) => {
|
|
5536
5536
|
switch (key) {
|
|
5537
5537
|
case 'temperature_max':
|
|
@@ -5546,8 +5546,17 @@ const converters = {
|
|
|
5546
5546
|
case 'humidity_min':
|
|
5547
5547
|
await tuya.sendDataPointValue(entity, tuya.dataPoints.neoMinHumidity, value);
|
|
5548
5548
|
break;
|
|
5549
|
+
case 'temperature_scale':
|
|
5550
|
+
await tuya.sendDataPointBool(entity, tuya.dataPoints.neoTempScale, value === '°C');
|
|
5551
|
+
break;
|
|
5552
|
+
case 'unknown_111':
|
|
5553
|
+
await tuya.sendDataPointBool(entity, 111, value === 'ON');
|
|
5554
|
+
break;
|
|
5555
|
+
case 'unknown_112':
|
|
5556
|
+
await tuya.sendDataPointBool(entity, 112, value === 'ON');
|
|
5557
|
+
break;
|
|
5549
5558
|
default: // Unknown key
|
|
5550
|
-
throw new Error(`
|
|
5559
|
+
throw new Error(`tz.neo_nas_pd07: Unhandled key ${key}`);
|
|
5551
5560
|
}
|
|
5552
5561
|
},
|
|
5553
5562
|
},
|
|
@@ -5593,7 +5602,7 @@ const converters = {
|
|
|
5593
5602
|
await tuya.sendDataPointBool(entity, tuya.dataPoints.neoHumidityAlarm, value);
|
|
5594
5603
|
break;
|
|
5595
5604
|
default: // Unknown key
|
|
5596
|
-
throw new Error(`Unhandled key ${key}`);
|
|
5605
|
+
throw new Error(`tz.neo_t_h_alarm: Unhandled key ${key}`);
|
|
5597
5606
|
}
|
|
5598
5607
|
},
|
|
5599
5608
|
},
|
|
@@ -5624,7 +5633,10 @@ const converters = {
|
|
|
5624
5633
|
},
|
|
5625
5634
|
},
|
|
5626
5635
|
nous_lcd_temperature_humidity_sensor: {
|
|
5627
|
-
key: [
|
|
5636
|
+
key: [
|
|
5637
|
+
'min_temperature', 'max_temperature', 'temperature_sensitivity', 'temperature_unit_convert',
|
|
5638
|
+
'min_humidity', 'max_humidity', 'report_interval',
|
|
5639
|
+
],
|
|
5628
5640
|
convertSet: async (entity, key, value, meta) => {
|
|
5629
5641
|
switch (key) {
|
|
5630
5642
|
case 'temperature_unit_convert':
|
|
@@ -5639,6 +5651,15 @@ const converters = {
|
|
|
5639
5651
|
case 'temperature_sensitivity':
|
|
5640
5652
|
await tuya.sendDataPointValue(entity, tuya.dataPoints.nousTempSensitivity, Math.round(value * 10));
|
|
5641
5653
|
break;
|
|
5654
|
+
case 'min_humidity':
|
|
5655
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.nousMinHumi, Math.round(value * 10));
|
|
5656
|
+
break;
|
|
5657
|
+
case 'max_humidity':
|
|
5658
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.nousMaxHumi, Math.round(value * 10));
|
|
5659
|
+
break;
|
|
5660
|
+
case 'report_interval':
|
|
5661
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.nousReportInterval, value);
|
|
5662
|
+
break;
|
|
5642
5663
|
default: // Unknown key
|
|
5643
5664
|
meta.logger.warn(`Unhandled key ${key}`);
|
|
5644
5665
|
}
|
|
@@ -7363,6 +7384,30 @@ const converters = {
|
|
|
7363
7384
|
}
|
|
7364
7385
|
},
|
|
7365
7386
|
},
|
|
7387
|
+
tuya_smart_human_presense_sensor: {
|
|
7388
|
+
key: ['radar_sensitivity', 'minimum_range', 'maximum_range', 'detection_delay', 'fading_time'],
|
|
7389
|
+
convertSet: async (entity, key, value, meta) => {
|
|
7390
|
+
switch (key) {
|
|
7391
|
+
case 'radar_sensitivity':
|
|
7392
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.tshpscSensitivity, value);
|
|
7393
|
+
break;
|
|
7394
|
+
case 'minimum_range':
|
|
7395
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.tshpsMinimumRange, value*100);
|
|
7396
|
+
break;
|
|
7397
|
+
case 'maximum_range':
|
|
7398
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.tshpsMaximumRange, value*100);
|
|
7399
|
+
break;
|
|
7400
|
+
case 'detection_delay':
|
|
7401
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.tshpsDetectionDelay, value*10);
|
|
7402
|
+
break;
|
|
7403
|
+
case 'fading_time':
|
|
7404
|
+
await tuya.sendDataPointValue(entity, tuya.dataPoints.tshpsFadingTime, value*10);
|
|
7405
|
+
break;
|
|
7406
|
+
default: // Unknown Key
|
|
7407
|
+
meta.logger.warn(`toZigbee.tuya_smart_human_presense_sensor: Unhandled Key ${key}`);
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
},
|
|
7366
7411
|
// #endregion
|
|
7367
7412
|
|
|
7368
7413
|
// #region Ignore converters
|
package/devices/heiman.js
CHANGED
|
@@ -469,7 +469,7 @@ module.exports = [
|
|
|
469
469
|
exposes: [e.vibration(), e.battery_low(), e.tamper(), e.battery()],
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
|
-
fingerprint: [{modelID: 'Vibration-EF_3.0', manufacturerName: 'HEIMAN'}],
|
|
472
|
+
fingerprint: [{modelID: 'Vibration-EF_3.0', manufacturerName: 'HEIMAN'}, {modelID: 'Vibration-EF-3.0', manufacturerName: 'HEIMAN'}],
|
|
473
473
|
model: 'HS1VS-EF',
|
|
474
474
|
vendor: 'HEIMAN',
|
|
475
475
|
description: 'Vibration sensor',
|
package/devices/moes.js
CHANGED
|
@@ -15,11 +15,11 @@ module.exports = [
|
|
|
15
15
|
model: 'ZP-LZ-FR2U',
|
|
16
16
|
vendor: 'Moes',
|
|
17
17
|
description: 'Zigbee 3.0 dual USB wireless socket plug',
|
|
18
|
-
fromZigbee: [fz.on_off, fz.tuya_switch_power_outage_memory],
|
|
19
|
-
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
|
|
18
|
+
fromZigbee: [fz.on_off, fz.tuya_switch_power_outage_memory, fz.ts011f_plug_child_mode],
|
|
19
|
+
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory, tz.ts011f_plug_child_mode],
|
|
20
20
|
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
21
21
|
exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
22
|
-
.withDescription('Recover state after power outage')],
|
|
22
|
+
.withDescription('Recover state after power outage'), e.child_lock()],
|
|
23
23
|
endpoint: (device) => {
|
|
24
24
|
return {'l1': 1, 'l2': 2};
|
|
25
25
|
},
|
package/devices/neo.js
CHANGED
|
@@ -12,18 +12,18 @@ module.exports = [
|
|
|
12
12
|
model: 'NAS-AB02B0',
|
|
13
13
|
vendor: 'Neo',
|
|
14
14
|
description: 'Temperature & humidity sensor and alarm',
|
|
15
|
-
fromZigbee: [fz.neo_t_h_alarm, fz.ignore_basic_report],
|
|
15
|
+
fromZigbee: [fz.neo_t_h_alarm, fz.ignore_basic_report, fz.ignore_tuya_set_time],
|
|
16
16
|
toZigbee: [tz.neo_t_h_alarm],
|
|
17
17
|
exposes: [
|
|
18
18
|
e.temperature(), e.humidity(), exposes.binary('humidity_alarm', ea.STATE_SET, true, false), e.battery_low(),
|
|
19
19
|
exposes.binary('temperature_alarm', ea.STATE_SET, true, false),
|
|
20
20
|
exposes.binary('alarm', ea.STATE_SET, true, false),
|
|
21
21
|
exposes.enum('melody', ea.STATE_SET, Array.from(Array(18).keys()).map((x)=>(x+1).toString())),
|
|
22
|
-
exposes.numeric('duration', ea.STATE_SET).withUnit('second').withValueMin(0).withValueMax(
|
|
23
|
-
exposes.numeric('temperature_min', ea.STATE_SET).withUnit('°C').withValueMin(-
|
|
24
|
-
exposes.numeric('temperature_max', ea.STATE_SET).withUnit('°C').withValueMin(-
|
|
25
|
-
exposes.numeric('humidity_min', ea.STATE_SET).withUnit('%').withValueMin(
|
|
26
|
-
exposes.numeric('humidity_max', ea.STATE_SET).withUnit('%').withValueMin(
|
|
22
|
+
exposes.numeric('duration', ea.STATE_SET).withUnit('second').withValueMin(0).withValueMax(1800),
|
|
23
|
+
exposes.numeric('temperature_min', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(80),
|
|
24
|
+
exposes.numeric('temperature_max', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(80),
|
|
25
|
+
exposes.numeric('humidity_min', ea.STATE_SET).withUnit('%').withValueMin(1).withValueMax(100),
|
|
26
|
+
exposes.numeric('humidity_max', ea.STATE_SET).withUnit('%').withValueMin(1).withValueMax(100),
|
|
27
27
|
exposes.enum('volume', ea.STATE_SET, ['low', 'medium', 'high']),
|
|
28
28
|
exposes.enum('power_type', ea.STATE, ['battery_full', 'battery_high', 'battery_medium', 'battery_low', 'usb']),
|
|
29
29
|
],
|
|
@@ -62,16 +62,25 @@ module.exports = [
|
|
|
62
62
|
model: 'NAS-PD07',
|
|
63
63
|
vendor: 'Neo',
|
|
64
64
|
description: 'Motion, temperature & humidity sensor',
|
|
65
|
-
fromZigbee: [fz.neo_nas_pd07],
|
|
65
|
+
fromZigbee: [fz.neo_nas_pd07, fz.ignore_tuya_set_time],
|
|
66
66
|
toZigbee: [tz.neo_nas_pd07],
|
|
67
67
|
onEvent: tuya.onEventSetTime,
|
|
68
68
|
exposes: [e.occupancy(), e.humidity(), e.temperature(), e.tamper(), e.battery_low(),
|
|
69
69
|
exposes.enum('power_type', ea.STATE, ['battery_full', 'battery_high', 'battery_medium', 'battery_low', 'usb']),
|
|
70
70
|
exposes.enum('alarm', ea.STATE, ['over_temperature', 'over_humidity', 'below_min_temperature', 'below_min_humdity', 'off'])
|
|
71
71
|
.withDescription('Temperature/humidity alarm status'),
|
|
72
|
-
exposes.numeric('temperature_min', ea.STATE_SET).withUnit('°C').withValueMin(-
|
|
73
|
-
exposes.numeric('temperature_max', ea.STATE_SET).withUnit('°C').withValueMin(-
|
|
74
|
-
exposes.
|
|
75
|
-
exposes.numeric('
|
|
72
|
+
exposes.numeric('temperature_min', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(80),
|
|
73
|
+
exposes.numeric('temperature_max', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(80),
|
|
74
|
+
exposes.binary('temperature_scale', ea.STATE_SET, '°C', '°F').withDescription('Temperature scale (°F/°C)'),
|
|
75
|
+
exposes.numeric('humidity_min', ea.STATE_SET).withUnit('%').withValueMin(1).withValueMax(100),
|
|
76
|
+
exposes.numeric('humidity_max', ea.STATE_SET).withUnit('%').withValueMin(1).withValueMax(100),
|
|
77
|
+
// exposes.binary('unknown_111', ea.STATE_SET, 'ON', 'OFF').withDescription('Unknown datapoint 111 (default: ON)'),
|
|
78
|
+
// exposes.binary('unknown_112', ea.STATE_SET, 'ON', 'OFF').withDescription('Unknown datapoint 112 (default: ON)')
|
|
79
|
+
],
|
|
80
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
81
|
+
const endpoint = device.getEndpoint(1);
|
|
82
|
+
await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
|
|
83
|
+
await endpoint.command('manuSpecificTuya', 'mcuVersionRequest', {'seq': 0x0002});
|
|
84
|
+
},
|
|
76
85
|
},
|
|
77
86
|
];
|
package/devices/nue_3a.js
CHANGED
|
@@ -137,8 +137,12 @@ module.exports = [
|
|
|
137
137
|
model: 'HGZB-04D / HGZB-4D-UK',
|
|
138
138
|
vendor: 'Nue / 3A',
|
|
139
139
|
description: 'Smart dimmer wall switch',
|
|
140
|
-
extend: extend.light_onoff_brightness({disableEffect: true}),
|
|
140
|
+
extend: extend.light_onoff_brightness({disableEffect: true, noConfigure: true}),
|
|
141
141
|
whiteLabel: [{vendor: 'Sunricher', model: 'SR-ZG9001K8-DIM'}],
|
|
142
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
143
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
144
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
145
|
+
},
|
|
142
146
|
},
|
|
143
147
|
{
|
|
144
148
|
zigbeeModel: ['FB56+ZSW1HKJ1.7', 'FB56+ZSW1HKJ2.5', 'FB56+ZSW1HKJ2.7'],
|
|
@@ -282,7 +286,7 @@ module.exports = [
|
|
|
282
286
|
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
283
287
|
},
|
|
284
288
|
{
|
|
285
|
-
zigbeeModel: ['LXN60-LS27-Z30'],
|
|
289
|
+
zigbeeModel: ['LXN60-LS27-Z30', 'FEB56-ZCW2CLX1.0'],
|
|
286
290
|
model: 'WL-SD001-9W',
|
|
287
291
|
vendor: 'Nue / 3A',
|
|
288
292
|
description: '9W RGB LED downlight',
|
package/devices/philips.js
CHANGED
|
@@ -2579,6 +2579,15 @@ module.exports = [
|
|
|
2579
2579
|
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
2580
2580
|
ota: ota.zigbeeOTA,
|
|
2581
2581
|
},
|
|
2582
|
+
{
|
|
2583
|
+
zigbeeModel: ['929003046201_01', '929003046201_02', '929003046201_03'],
|
|
2584
|
+
model: '929003046201',
|
|
2585
|
+
vendor: 'Philips',
|
|
2586
|
+
description: 'Hue White Ambiance Runner triple spotlight',
|
|
2587
|
+
meta: {turnsOffAtBrightness1: true},
|
|
2588
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
2589
|
+
ota: ota.zigbeeOTA,
|
|
2590
|
+
},
|
|
2582
2591
|
{
|
|
2583
2592
|
zigbeeModel: ['5309331P6', '5309330P6', '929003046301_03', '929003046301_02'],
|
|
2584
2593
|
model: '5309331P6',
|
package/devices/saswell.js
CHANGED
|
@@ -16,6 +16,7 @@ module.exports = [
|
|
|
16
16
|
{modelID: 'TS0601', manufacturerName: '_TZE200_c88teujp'},
|
|
17
17
|
{modelID: 'TS0601', manufacturerName: '_TZE200_yw7cahqs'},
|
|
18
18
|
{modelID: 'TS0601', manufacturerName: '_TZE200_azqp6ssj'},
|
|
19
|
+
{modelID: 'TS0601', manufacturerName: '_TZE200_bvu2wnxz'},
|
|
19
20
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zuhszj9s'},
|
|
20
21
|
{modelID: 'TS0601', manufacturerName: '_TZE200_9gvruqf5'},
|
|
21
22
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zr9c0day'},
|
package/devices/tuya.js
CHANGED
|
@@ -13,7 +13,7 @@ const utils = require('../lib/utils');
|
|
|
13
13
|
const TS011Fplugs = ['_TZ3000_5f43h46b', '_TZ3000_cphmq0q7', '_TZ3000_dpo1ysak', '_TZ3000_ew3ldmgx', '_TZ3000_gjnozsaz',
|
|
14
14
|
'_TZ3000_jvzvulen', '_TZ3000_mraovvmm', '_TZ3000_nfnmi125', '_TZ3000_ps3dmato', '_TZ3000_w0qqde0g', '_TZ3000_u5u4cakc',
|
|
15
15
|
'_TZ3000_rdtixbnu', '_TZ3000_typdpbpg', '_TZ3000_kx0pris5', '_TZ3000_amdymr7l', '_TZ3000_z1pnpsdo', '_TZ3000_ksw8qtmt',
|
|
16
|
-
'_TZ3000_nzkqcvvs', '_TZ3000_1h2x4akh'];
|
|
16
|
+
'_TZ3000_nzkqcvvs', '_TZ3000_1h2x4akh', '_TZ3000_9vo5icau'];
|
|
17
17
|
|
|
18
18
|
const tzLocal = {
|
|
19
19
|
TS0504B_color: {
|
|
@@ -1086,7 +1086,6 @@ module.exports = [
|
|
|
1086
1086
|
// Window pushers:
|
|
1087
1087
|
{modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'},
|
|
1088
1088
|
// Tubular motors:
|
|
1089
|
-
{modelID: 'TS0601', manufacturerName: '_TZE200_fzo2pocs'},
|
|
1090
1089
|
{modelID: 'TS0601', manufacturerName: '_TZE200_5sbebbzs'},
|
|
1091
1090
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'},
|
|
1092
1091
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zyrdrmno'},
|
|
@@ -1107,7 +1106,6 @@ module.exports = [
|
|
|
1107
1106
|
{vendor: 'Moes', model: 'AM43-0.45/40-ES-EB'},
|
|
1108
1107
|
{vendor: 'Larkkey', model: 'ZSTY-SM-1SRZG-EU'},
|
|
1109
1108
|
{vendor: 'Zemismart', model: 'ZM85EL-2Z', description: 'Roman Rod I type curtains track'},
|
|
1110
|
-
{vendor: 'Zemismart', model: 'ZM25TQ', description: 'Tubular motor'},
|
|
1111
1109
|
{vendor: 'Zemismart', model: 'AM43', description: 'Roller blind motor'},
|
|
1112
1110
|
{vendor: 'Zemismart', model: 'M2805EGBZTN', description: 'Tubular motor'},
|
|
1113
1111
|
{vendor: 'Zemismart', model: 'BCM500DS-TYZ', description: 'Curtain motor'},
|
|
@@ -1415,7 +1413,8 @@ module.exports = [
|
|
|
1415
1413
|
model: 'TS011F_plug_3',
|
|
1416
1414
|
description: 'Smart plug (with power monitoring by polling)',
|
|
1417
1415
|
vendor: 'TuYa',
|
|
1418
|
-
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}, {vendor: 'BlitzWolf', model: 'BW-SHP15'}
|
|
1416
|
+
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}, {vendor: 'BlitzWolf', model: 'BW-SHP15'},
|
|
1417
|
+
{vendor: 'Avatto', model: 'MIUCOT10Z'}],
|
|
1419
1418
|
ota: ota.zigbeeOTA,
|
|
1420
1419
|
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory,
|
|
1421
1420
|
fz.ts011f_plug_indicator_mode, fz.ts011f_plug_child_mode],
|
|
@@ -2249,4 +2248,59 @@ module.exports = [
|
|
|
2249
2248
|
fromZigbee: [fz.tuya_remote],
|
|
2250
2249
|
toZigbee: [],
|
|
2251
2250
|
},
|
|
2251
|
+
{
|
|
2252
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_ikvncluo'}],
|
|
2253
|
+
model: 'TS0601_smart_human_presense_sensor',
|
|
2254
|
+
vendor: 'TuYa',
|
|
2255
|
+
description: 'Smart Human presence sensor',
|
|
2256
|
+
fromZigbee: [fz.tuya_smart_human_presense_sensor],
|
|
2257
|
+
toZigbee: [tz.tuya_smart_human_presense_sensor],
|
|
2258
|
+
exposes: [
|
|
2259
|
+
e.illuminance_lux(), e.presence(),
|
|
2260
|
+
exposes.numeric('target_distance', ea.STATE).withDescription('Distance to target').withUnit('m'),
|
|
2261
|
+
exposes.numeric('radar_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(9).withValueStep(1)
|
|
2262
|
+
.withDescription('sensitivity of the radar'),
|
|
2263
|
+
exposes.numeric('minimum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
|
|
2264
|
+
.withDescription('Minimum range').withUnit('m'),
|
|
2265
|
+
exposes.numeric('maximum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
|
|
2266
|
+
.withDescription('Maximum range').withUnit('m'),
|
|
2267
|
+
exposes.numeric('detection_delay', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(0.1)
|
|
2268
|
+
.withDescription('Detection delay').withUnit('s'),
|
|
2269
|
+
exposes.numeric('fading_time', ea.STATE_SET).withValueMin(0).withValueMax(1500).withValueStep(1)
|
|
2270
|
+
.withDescription('Fading time').withUnit('s'),
|
|
2271
|
+
// exposes.text('cli', ea.STATE).withDescription('not recognize'),
|
|
2272
|
+
// exposes.text('self_test', ea.STATE).withDescription('not recognize'),
|
|
2273
|
+
],
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_whkgqxse'}],
|
|
2277
|
+
model: 'JM-TRH-ZGB-V1',
|
|
2278
|
+
vendor: 'TuYa',
|
|
2279
|
+
description: 'Temperature & humidity sensor with clock',
|
|
2280
|
+
fromZigbee: [fz.nous_lcd_temperature_humidity_sensor, fz.ignore_tuya_set_time],
|
|
2281
|
+
toZigbee: [tz.nous_lcd_temperature_humidity_sensor],
|
|
2282
|
+
onEvent: tuya.onEventSetLocalTime,
|
|
2283
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
2284
|
+
const endpoint = device.getEndpoint(1);
|
|
2285
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']);
|
|
2286
|
+
},
|
|
2287
|
+
exposes: [
|
|
2288
|
+
e.temperature(), e.humidity(), e.battery(),
|
|
2289
|
+
exposes.numeric('report_interval', ea.STATE_SET).withUnit('min').withValueMin(5).withValueMax(60).withValueStep(5)
|
|
2290
|
+
.withDescription('Report interval'),
|
|
2291
|
+
exposes.enum('temperature_unit_convert', ea.STATE_SET, ['celsius', 'fahrenheit']).withDescription('Current display unit'),
|
|
2292
|
+
exposes.enum('temperature_alarm', ea.STATE, ['canceled', 'lower_alarm', 'upper_alarm'])
|
|
2293
|
+
.withDescription('Temperature alarm status'),
|
|
2294
|
+
exposes.numeric('max_temperature', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(60)
|
|
2295
|
+
.withDescription('Alarm temperature max'),
|
|
2296
|
+
exposes.numeric('min_temperature', ea.STATE_SET).withUnit('°C').withValueMin(-20).withValueMax(60)
|
|
2297
|
+
.withDescription('Alarm temperature min'),
|
|
2298
|
+
exposes.enum('humidity_alarm', ea.STATE, ['canceled', 'lower_alarm', 'upper_alarm'])
|
|
2299
|
+
.withDescription('Humidity alarm status'),
|
|
2300
|
+
exposes.numeric('max_humidity', ea.STATE_SET).withUnit('%').withValueMin(0).withValueMax(100)
|
|
2301
|
+
.withDescription('Alarm humidity max'),
|
|
2302
|
+
exposes.numeric('min_humidity', ea.STATE_SET).withUnit('%').withValueMin(0).withValueMax(100)
|
|
2303
|
+
.withDescription('Alarm humidity min'),
|
|
2304
|
+
],
|
|
2305
|
+
},
|
|
2252
2306
|
];
|
package/devices/xiaomi.js
CHANGED
|
@@ -844,15 +844,17 @@ module.exports = [
|
|
|
844
844
|
model: 'WSDCGQ12LM',
|
|
845
845
|
vendor: 'Xiaomi',
|
|
846
846
|
description: 'Aqara T1 temperature, humidity and pressure sensor',
|
|
847
|
-
fromZigbee: [fz.
|
|
847
|
+
fromZigbee: [fz.aqara_opple, fz.temperature, fz.humidity, fz.pressure, fz.battery],
|
|
848
848
|
toZigbee: [],
|
|
849
|
+
exposes: [e.temperature(), e.humidity(), e.pressure(), e.battery(), e.battery_voltage()],
|
|
849
850
|
meta: {battery: {voltageToPercentage: '3V_2850_3000_log'}},
|
|
850
851
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
851
852
|
const endpoint = device.getEndpoint(1);
|
|
852
853
|
const binds = ['msTemperatureMeasurement', 'msRelativeHumidity', 'msPressureMeasurement'];
|
|
853
854
|
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
855
|
+
await endpoint.read('genPowerCfg', ['batteryVoltage']);
|
|
854
856
|
},
|
|
855
|
-
|
|
857
|
+
ota: ota.zigbeeOTA,
|
|
856
858
|
},
|
|
857
859
|
{
|
|
858
860
|
zigbeeModel: ['lumi.sensor_motion'],
|
|
@@ -1958,6 +1960,7 @@ module.exports = [
|
|
|
1958
1960
|
model: 'WXKG16LM',
|
|
1959
1961
|
vendor: 'Xiaomi',
|
|
1960
1962
|
description: 'Aqara wireless remote switch E1 (single rocker)',
|
|
1963
|
+
meta: {battery: {voltageToPercentage: '3V_2850_3000_log'}},
|
|
1961
1964
|
fromZigbee: [fz.xiaomi_multistate_action, fz.aqara_opple],
|
|
1962
1965
|
toZigbee: [tz.xiaomi_switch_click_mode],
|
|
1963
1966
|
exposes: [e.battery(), e.battery_voltage(), e.action(['single', 'double', 'hold']),
|
package/devices/zemismart.js
CHANGED
|
@@ -154,4 +154,13 @@ module.exports = [
|
|
|
154
154
|
// exposes.enum('situation_set', ea.STATE, Object.values(tuya.ZMAM02.AM02Situation)),
|
|
155
155
|
],
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_fzo2pocs'}],
|
|
159
|
+
model: 'ZM25TQ',
|
|
160
|
+
vendor: 'Zemismart',
|
|
161
|
+
description: 'Tubular motor',
|
|
162
|
+
fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
|
|
163
|
+
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options, tz.tuya_data_point_test],
|
|
164
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
|
|
165
|
+
},
|
|
157
166
|
];
|
package/lib/tuya.js
CHANGED
|
@@ -358,11 +358,14 @@ const dataPoints = {
|
|
|
358
358
|
moesSmaxTempSet: 108,
|
|
359
359
|
moesSminTempSet: 109,
|
|
360
360
|
// Neo T&H
|
|
361
|
+
neoOccupancy: 101,
|
|
361
362
|
neoPowerType: 101,
|
|
362
363
|
neoMelody: 102,
|
|
363
364
|
neoDuration: 103,
|
|
365
|
+
neoTamper: 103,
|
|
364
366
|
neoAlarm: 104,
|
|
365
367
|
neoTemp: 105,
|
|
368
|
+
neoTempScale: 106,
|
|
366
369
|
neoHumidity: 106,
|
|
367
370
|
neoMinTemp: 107,
|
|
368
371
|
neoMaxTemp: 108,
|
|
@@ -370,6 +373,7 @@ const dataPoints = {
|
|
|
370
373
|
neoMaxHumidity: 110,
|
|
371
374
|
neoUnknown2: 112,
|
|
372
375
|
neoTempAlarm: 113,
|
|
376
|
+
neoTempHumidityAlarm: 113,
|
|
373
377
|
neoHumidityAlarm: 114,
|
|
374
378
|
neoUnknown3: 115,
|
|
375
379
|
neoVolume: 116,
|
|
@@ -613,8 +617,12 @@ const dataPoints = {
|
|
|
613
617
|
nousTempUnitConvert: 9,
|
|
614
618
|
nousMaxTemp: 10,
|
|
615
619
|
nousMinTemp: 11,
|
|
620
|
+
nousMaxHumi: 12,
|
|
621
|
+
nousMinHumi: 13,
|
|
616
622
|
nousTempAlarm: 14,
|
|
623
|
+
nousHumiAlarm: 15,
|
|
617
624
|
nousTempSensitivity: 19,
|
|
625
|
+
nousReportInterval: 17,
|
|
618
626
|
// TUYA / HUMIDITY/ILLUMINANCE/TEMPERATURE SENSOR
|
|
619
627
|
thitBatteryPercentage: 3,
|
|
620
628
|
thitIlluminanceLux: 7,
|
|
@@ -667,6 +675,17 @@ const dataPoints = {
|
|
|
667
675
|
connecteTempProgram: 105,
|
|
668
676
|
connecteOpenWindow: 106,
|
|
669
677
|
connecteMaxProtectTemp: 107,
|
|
678
|
+
// TuYa Smart Human Presense Sensor
|
|
679
|
+
tshpsPresenceState: 1,
|
|
680
|
+
tshpscSensitivity: 2,
|
|
681
|
+
tshpsMinimumRange: 3,
|
|
682
|
+
tshpsMaximumRange: 4,
|
|
683
|
+
tshpsTargetDistance: 9,
|
|
684
|
+
tshpsDetectionDelay: 101,
|
|
685
|
+
tshpsFadingTime: 102,
|
|
686
|
+
tshpsIlluminanceLux: 104,
|
|
687
|
+
tshpsCLI: 103, // not recognize
|
|
688
|
+
tshpsSelfTest: 6, // not recognize
|
|
670
689
|
};
|
|
671
690
|
|
|
672
691
|
const thermostatWeekFormat = {
|
package/lib/xiaomi.js
CHANGED
|
@@ -158,7 +158,9 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
158
158
|
}
|
|
159
159
|
break;
|
|
160
160
|
case '3':
|
|
161
|
-
if (
|
|
161
|
+
if (['WSDCGQ12LM'].includes(model.model)) {
|
|
162
|
+
// This temperature value is ignored because with greater accuracy it is reported in key №100
|
|
163
|
+
} else if (!['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM'].includes(model.model)) {
|
|
162
164
|
payload.temperature = calibrateAndPrecisionRoundOptions(value, options, 'temperature'); // 0x03
|
|
163
165
|
}
|
|
164
166
|
break;
|
|
@@ -196,10 +198,11 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
196
198
|
payload[`state_${mapping}`] = value === 1 ? 'ON' : 'OFF';
|
|
197
199
|
} else if (['WXKG14LM', 'WXKG16LM', 'WXKG17LM'].includes(model.model)) {
|
|
198
200
|
payload.click_mode = {1: 'fast', 2: 'multi'}[value];
|
|
199
|
-
} else if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM'].includes(model.model)) {
|
|
201
|
+
} else if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM', 'ZNMS12LM'].includes(model.model)) {
|
|
200
202
|
// We don't know what the value means for these devices.
|
|
201
203
|
// https://github.com/Koenkk/zigbee2mqtt/issues/11126
|
|
202
|
-
|
|
204
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/12279
|
|
205
|
+
} else if (['WSDCGQ01LM', 'WSDCGQ11LM', 'WSDCGQ12LM'].includes(model.model)) {
|
|
203
206
|
// https://github.com/Koenkk/zigbee2mqtt/issues/798
|
|
204
207
|
// Sometimes the sensor publishes non-realistic vales, filter these
|
|
205
208
|
const temperature = parseFloat(value) / 100.0;
|
|
@@ -241,7 +244,7 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
241
244
|
payload[`state_${mapping}`] = value === 1 ? 'ON' : 'OFF';
|
|
242
245
|
} else if (['RTCGQ12LM', 'RTCGQ14LM'].includes(model.model)) {
|
|
243
246
|
payload.illuminance = calibrateAndPrecisionRoundOptions(value, options, 'illuminance');
|
|
244
|
-
} else if (['WSDCGQ01LM', 'WSDCGQ11LM'].includes(model.model)) {
|
|
247
|
+
} else if (['WSDCGQ01LM', 'WSDCGQ11LM', 'WSDCGQ12LM'].includes(model.model)) {
|
|
245
248
|
// https://github.com/Koenkk/zigbee2mqtt/issues/798
|
|
246
249
|
// Sometimes the sensor publishes non-realistic vales, filter these
|
|
247
250
|
const humidity = parseFloat(value) / 100.0;
|
|
@@ -259,6 +262,9 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
259
262
|
payload.state_right = value === 1 ? 'ON' : 'OFF';
|
|
260
263
|
} else if (['WSDCGQ01LM', 'WSDCGQ11LM'].includes(model.model)) {
|
|
261
264
|
payload.pressure = calibrateAndPrecisionRoundOptions(value/100.0, options, 'pressure');
|
|
265
|
+
} else if (['WSDCGQ12LM'].includes(model.model)) {
|
|
266
|
+
// This pressure value is ignored because it is less accurate than reported in the 'scaledValue' attribute
|
|
267
|
+
// of the 'msPressureMeasurement' cluster
|
|
262
268
|
} else if (['RTCZCGQ11LM'].includes(model.model)) {
|
|
263
269
|
if (meta.device.applicationVersion < 50) {
|
|
264
270
|
payload.presence_event = {0: 'enter', 1: 'leave', 2: 'left_enter', 3: 'right_leave', 4: 'right_enter',
|