zigbee-herdsman-converters 20.15.0 → 20.16.1
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/CHANGELOG.md +26 -0
- package/converters/toZigbee.d.ts +4 -0
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +7 -0
- package/converters/toZigbee.js.map +1 -1
- package/devices/bosch.d.ts.map +1 -1
- package/devices/bosch.js +1 -15
- package/devices/bosch.js.map +1 -1
- package/devices/custom_devices_diy.js +5 -5
- package/devices/custom_devices_diy.js.map +1 -1
- package/devices/datek.d.ts.map +1 -1
- package/devices/datek.js +3 -49
- package/devices/datek.js.map +1 -1
- package/devices/develco.d.ts.map +1 -1
- package/devices/develco.js +8 -71
- package/devices/develco.js.map +1 -1
- package/devices/legrand.js +8 -8
- package/devices/legrand.js.map +1 -1
- package/devices/lifecontrol.js +1 -1
- package/devices/lifecontrol.js.map +1 -1
- package/devices/owon.d.ts.map +1 -1
- package/devices/owon.js +4 -48
- package/devices/owon.js.map +1 -1
- package/devices/robb.d.ts.map +1 -1
- package/devices/robb.js +7 -0
- package/devices/robb.js.map +1 -1
- package/devices/salus_controls.d.ts.map +1 -1
- package/devices/salus_controls.js +2 -23
- package/devices/salus_controls.js.map +1 -1
- package/devices/shinasystem.d.ts.map +1 -1
- package/devices/shinasystem.js +3 -77
- package/devices/shinasystem.js.map +1 -1
- package/devices/sinope.d.ts.map +1 -1
- package/devices/sinope.js +16 -202
- package/devices/sinope.js.map +1 -1
- package/devices/sonoff.js +1 -1
- package/devices/sonoff.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +95 -4
- package/devices/tuya.js.map +1 -1
- package/lib/legrand.d.ts +12 -4
- package/lib/legrand.d.ts.map +1 -1
- package/lib/legrand.js +57 -19
- package/lib/legrand.js.map +1 -1
- package/lib/lumi.js +3 -3
- package/lib/lumi.js.map +1 -1
- package/lib/modernExtend.d.ts +6 -1
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +99 -31
- package/lib/modernExtend.js.map +1 -1
- package/lib/reporting.d.ts.map +1 -1
- package/lib/reporting.js +0 -1
- package/lib/reporting.js.map +1 -1
- package/lib/tuya.d.ts +0 -4
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +0 -1
- package/lib/tuya.js.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -0
- package/lib/utils.js.map +1 -1
- package/package.json +7 -7
package/devices/tuya.js
CHANGED
|
@@ -481,7 +481,10 @@ const tzLocal = {
|
|
|
481
481
|
}
|
|
482
482
|
case 'over_voltage_threshold': {
|
|
483
483
|
const state = meta.state['over_voltage_breaker'];
|
|
484
|
-
const buf = Buffer.
|
|
484
|
+
const buf = Buffer.alloc(4);
|
|
485
|
+
buf.writeUInt8(3, 0);
|
|
486
|
+
buf.writeUInt8(utils.getFromLookup(state, onOffLookup), 1);
|
|
487
|
+
buf.writeUInt16BE(utils.toNumber(value, 'over_voltage_threshold'), 2);
|
|
485
488
|
await entity.command('manuSpecificTuya_3', 'setOptions3', { data: buf });
|
|
486
489
|
break;
|
|
487
490
|
}
|
|
@@ -6360,7 +6363,19 @@ const definitions = [
|
|
|
6360
6363
|
[101, 'running_state', tuya.valueConverterBasic.lookup({ heat: tuya.enum(1), idle: tuya.enum(0) })],
|
|
6361
6364
|
[102, 'frost_protection', tuya.valueConverter.onOff],
|
|
6362
6365
|
[103, 'factory_reset', tuya.valueConverter.onOff],
|
|
6363
|
-
[
|
|
6366
|
+
[
|
|
6367
|
+
104,
|
|
6368
|
+
'working_day',
|
|
6369
|
+
tuya.valueConverterBasic.lookup((_, device) => {
|
|
6370
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/23979
|
|
6371
|
+
if (device.manufacturerName === '_TZE204_lzriup1j') {
|
|
6372
|
+
return { disabled: tuya.enum(0), '6-1': tuya.enum(2), '5-2': tuya.enum(1), '7': tuya.enum(3) };
|
|
6373
|
+
}
|
|
6374
|
+
else {
|
|
6375
|
+
return { disabled: tuya.enum(0), '6-1': tuya.enum(1), '5-2': tuya.enum(2), '7': tuya.enum(3) };
|
|
6376
|
+
}
|
|
6377
|
+
}),
|
|
6378
|
+
],
|
|
6364
6379
|
[106, 'sensor', tuya.valueConverterBasic.lookup({ internal: tuya.enum(0), external: tuya.enum(1), both: tuya.enum(2) })],
|
|
6365
6380
|
[107, 'deadzone_temperature', tuya.valueConverter.divideBy10],
|
|
6366
6381
|
[109, null, tuya.valueConverter.ZWT198_schedule],
|
|
@@ -7929,7 +7944,7 @@ const definitions = [
|
|
|
7929
7944
|
},
|
|
7930
7945
|
},
|
|
7931
7946
|
{
|
|
7932
|
-
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_zxbtub8r'
|
|
7947
|
+
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_zxbtub8r']),
|
|
7933
7948
|
model: 'TS110E_1gang_1',
|
|
7934
7949
|
vendor: 'Tuya',
|
|
7935
7950
|
description: '1 channel dimmer',
|
|
@@ -7940,7 +7955,7 @@ const definitions = [
|
|
|
7940
7955
|
configure: tuya.configureMagicPacket,
|
|
7941
7956
|
},
|
|
7942
7957
|
{
|
|
7943
|
-
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_ngqk6jia', '_TZ3210_weaqkhab']),
|
|
7958
|
+
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_ngqk6jia', '_TZ3210_weaqkhab', '_TZ3210_k1msuvg6']),
|
|
7944
7959
|
model: 'TS110E_1gang_2',
|
|
7945
7960
|
vendor: 'Tuya',
|
|
7946
7961
|
description: '1 channel dimmer',
|
|
@@ -11489,6 +11504,82 @@ const definitions = [
|
|
|
11489
11504
|
],
|
|
11490
11505
|
},
|
|
11491
11506
|
},
|
|
11507
|
+
{
|
|
11508
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_ex3rcdha']),
|
|
11509
|
+
model: 'ZY_HPS01',
|
|
11510
|
+
vendor: 'Tuya',
|
|
11511
|
+
description: 'mmWave radar 5.8GHz',
|
|
11512
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
11513
|
+
toZigbee: [tuya.tz.datapoints],
|
|
11514
|
+
configure: tuya.configureMagicPacket,
|
|
11515
|
+
extend: [],
|
|
11516
|
+
exposes: [
|
|
11517
|
+
e.illuminance().withUnit('lx'),
|
|
11518
|
+
e.occupancy(),
|
|
11519
|
+
e
|
|
11520
|
+
.numeric('presence_timeout', ea.STATE_SET)
|
|
11521
|
+
.withValueMin(0)
|
|
11522
|
+
.withValueMax(180)
|
|
11523
|
+
.withValueStep(1)
|
|
11524
|
+
.withDescription('Presence timeout')
|
|
11525
|
+
.withUnit('s'),
|
|
11526
|
+
e
|
|
11527
|
+
.numeric('move_sensitivity', ea.STATE_SET)
|
|
11528
|
+
.withValueMin(0)
|
|
11529
|
+
.withValueMax(10)
|
|
11530
|
+
.withValueStep(1)
|
|
11531
|
+
.withDescription('sensitivity of the radar')
|
|
11532
|
+
.withUnit('X'),
|
|
11533
|
+
e
|
|
11534
|
+
.numeric('move_minimum_range', ea.STATE_SET)
|
|
11535
|
+
.withValueMin(0)
|
|
11536
|
+
.withValueMax(600)
|
|
11537
|
+
.withValueStep(10)
|
|
11538
|
+
.withDescription('Movement minimum range')
|
|
11539
|
+
.withUnit('cm'),
|
|
11540
|
+
e
|
|
11541
|
+
.numeric('move_maximum_range', ea.STATE_SET)
|
|
11542
|
+
.withValueMin(0)
|
|
11543
|
+
.withValueMax(600)
|
|
11544
|
+
.withValueStep(10)
|
|
11545
|
+
.withDescription('Movement maximum range')
|
|
11546
|
+
.withUnit('cm'),
|
|
11547
|
+
e
|
|
11548
|
+
.numeric('breath_sensitivity', ea.STATE_SET)
|
|
11549
|
+
.withValueMin(0)
|
|
11550
|
+
.withValueMax(10)
|
|
11551
|
+
.withValueStep(1)
|
|
11552
|
+
.withDescription('Breath sensitivity of the radar')
|
|
11553
|
+
.withUnit('X'),
|
|
11554
|
+
e
|
|
11555
|
+
.numeric('breath_minimum_range', ea.STATE_SET)
|
|
11556
|
+
.withValueMin(0)
|
|
11557
|
+
.withValueMax(600)
|
|
11558
|
+
.withValueStep(10)
|
|
11559
|
+
.withDescription('Breath minimum range')
|
|
11560
|
+
.withUnit('cm'),
|
|
11561
|
+
e
|
|
11562
|
+
.numeric('breath_maximum_range', ea.STATE_SET)
|
|
11563
|
+
.withValueMin(0)
|
|
11564
|
+
.withValueMax(600)
|
|
11565
|
+
.withValueStep(10)
|
|
11566
|
+
.withDescription('Breath maximum range')
|
|
11567
|
+
.withUnit('cm'),
|
|
11568
|
+
],
|
|
11569
|
+
meta: {
|
|
11570
|
+
tuyaDatapoints: [
|
|
11571
|
+
[12, 'illuminance', tuya.valueConverter.raw],
|
|
11572
|
+
[101, 'occupancy', tuya.valueConverter.trueFalse0],
|
|
11573
|
+
[104, 'presence_timeout', tuya.valueConverter.raw],
|
|
11574
|
+
[105, 'move_sensitivity', tuya.valueConverter.raw],
|
|
11575
|
+
[107, 'breath_sensitivity', tuya.valueConverter.raw],
|
|
11576
|
+
[109, 'move_maximum_range', tuya.valueConverter.raw],
|
|
11577
|
+
[110, 'move_minimum_range', tuya.valueConverter.raw],
|
|
11578
|
+
[111, 'breath_maximum_range', tuya.valueConverter.raw],
|
|
11579
|
+
[112, 'breath_minimum_range', tuya.valueConverter.raw],
|
|
11580
|
+
],
|
|
11581
|
+
},
|
|
11582
|
+
},
|
|
11492
11583
|
];
|
|
11493
11584
|
exports.default = definitions;
|
|
11494
11585
|
module.exports = definitions;
|