zigbee-herdsman-converters 23.50.0 → 23.51.0
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/dist/devices/bacchus.d.ts.map +1 -1
- package/dist/devices/bacchus.js +15 -14
- package/dist/devices/bacchus.js.map +1 -1
- package/dist/devices/legrand.d.ts.map +1 -1
- package/dist/devices/legrand.js +69 -0
- package/dist/devices/legrand.js.map +1 -1
- package/dist/devices/third_reality.js +2 -2
- package/dist/devices/third_reality.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +92 -5
- package/dist/devices/tuya.js.map +1 -1
- package/dist/devices/zemismart.d.ts.map +1 -1
- package/dist/devices/zemismart.js +0 -13
- package/dist/devices/zemismart.js.map +1 -1
- package/dist/lib/modernExtend.d.ts +1 -1
- package/dist/lib/modernExtend.d.ts.map +1 -1
- package/dist/lib/modernExtend.js +170 -211
- package/dist/lib/modernExtend.js.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +1 -1
package/dist/devices/tuya.js
CHANGED
|
@@ -1451,6 +1451,7 @@ exports.definitions = [
|
|
|
1451
1451
|
},
|
|
1452
1452
|
},
|
|
1453
1453
|
{
|
|
1454
|
+
zigbeeModel: ["ZG-301Z"],
|
|
1454
1455
|
fingerprint: [
|
|
1455
1456
|
...tuya.fingerprint("TS0001", [
|
|
1456
1457
|
"_TZ3000_hktqahrq",
|
|
@@ -1479,7 +1480,11 @@ exports.definitions = [
|
|
|
1479
1480
|
],
|
|
1480
1481
|
model: "WHD02",
|
|
1481
1482
|
vendor: "Tuya",
|
|
1482
|
-
whiteLabel: [
|
|
1483
|
+
whiteLabel: [
|
|
1484
|
+
{ vendor: "Tuya", model: "iHSW02" },
|
|
1485
|
+
{ vendor: "HOBEIAN", model: "ZG-301Z", fingerprint: [{ modelID: "ZG-301Z" }] },
|
|
1486
|
+
tuya.whitelabel("Tuya", "QS-zigbee-S08-16A-RF", "Wall switch module", ["_TZ3000_dlhhrhs8"]),
|
|
1487
|
+
],
|
|
1483
1488
|
description: "Wall switch module",
|
|
1484
1489
|
extend: [tuya.modernExtend.tuyaOnOff({ switchType: true, onOffCountdown: true })],
|
|
1485
1490
|
configure: async (device, coordinatorEndpoint) => {
|
|
@@ -1892,6 +1897,7 @@ exports.definitions = [
|
|
|
1892
1897
|
whiteLabel: [tuya.whitelabel("Aubess", "40ZH-O", "Motion sensor", ["_TZ3040_msl6wxk9"])],
|
|
1893
1898
|
},
|
|
1894
1899
|
{
|
|
1900
|
+
zigbeeModel: ["ZG-204Z"],
|
|
1895
1901
|
fingerprint: tuya.fingerprint("TS0202", ["_TZ3000_mcxw5ehu", "_TZ3000_6ygjfyll", "_TZ3040_6ygjfyll", "_TZ3000_msl6wxk9"]),
|
|
1896
1902
|
model: "IH012-RT01",
|
|
1897
1903
|
vendor: "Tuya",
|
|
@@ -1919,7 +1925,10 @@ exports.definitions = [
|
|
|
1919
1925
|
await reporting.batteryPercentageRemaining(endpoint);
|
|
1920
1926
|
await reporting.batteryVoltage(endpoint);
|
|
1921
1927
|
},
|
|
1922
|
-
whiteLabel: [
|
|
1928
|
+
whiteLabel: [
|
|
1929
|
+
{ vendor: "HOBEIAN", model: "ZG-204Z", fingerprint: [{ modelID: "ZG-204Z" }] },
|
|
1930
|
+
tuya.whitelabel("Tuya", "ZMS-102", "Motion sensor", ["_TZ3000_msl6wxk9"]),
|
|
1931
|
+
],
|
|
1923
1932
|
},
|
|
1924
1933
|
{
|
|
1925
1934
|
fingerprint: tuya.fingerprint("TS0202", ["_TZ3000_o4mkahkc"]),
|
|
@@ -1972,13 +1981,14 @@ exports.definitions = [
|
|
|
1972
1981
|
exposes: [],
|
|
1973
1982
|
},
|
|
1974
1983
|
{
|
|
1975
|
-
zigbeeModel: ["TS0207", "FNB54-WTS08ML1.0"],
|
|
1984
|
+
zigbeeModel: ["TS0207", "FNB54-WTS08ML1.0", "ZG-222Z"],
|
|
1976
1985
|
model: "TS0207_water_leak_detector",
|
|
1977
1986
|
vendor: "Tuya",
|
|
1978
1987
|
description: "Water leak detector",
|
|
1979
1988
|
fromZigbee: [fz.ias_water_leak_alarm_1, fz.battery, fz.ignore_basic_report],
|
|
1980
1989
|
whiteLabel: [
|
|
1981
1990
|
{ vendor: "CR Smart Home", model: "TS0207" },
|
|
1991
|
+
{ vendor: "HOBEIAN", model: "ZG-222Z", fingerprint: [{ modelID: "ZG-222Z" }] },
|
|
1982
1992
|
tuya.whitelabel("Meian", "SW02", "Water leak sensor", ["_TZ3000_kyb656no"]),
|
|
1983
1993
|
tuya.whitelabel("Aubess", "IH-K665", "Water leak sensor", ["_TZ3000_kstbkt6a"]),
|
|
1984
1994
|
tuya.whitelabel("HOBEIAN", "ZG-222ZA", "Water leak sensor", ["_TZ3000_k4ej3ww2"]),
|
|
@@ -2894,6 +2904,7 @@ exports.definitions = [
|
|
|
2894
2904
|
"_TZE204_g4au0afs",
|
|
2895
2905
|
"_TZE204_w1wwxoja",
|
|
2896
2906
|
"_TZE204_lmgrbuwf",
|
|
2907
|
+
"_TZE284_tdhnhhiy",
|
|
2897
2908
|
]),
|
|
2898
2909
|
model: "TS0601_switch_6_gang",
|
|
2899
2910
|
vendor: "Tuya",
|
|
@@ -2932,6 +2943,7 @@ exports.definitions = [
|
|
|
2932
2943
|
whiteLabel: [
|
|
2933
2944
|
tuya.whitelabel("Mercator Ikuü", "SSW06G", "6 Gang switch", ["_TZE200_wnp4d4va"]),
|
|
2934
2945
|
tuya.whitelabel("Nova Digital", "NTZB-04-W-B", "4 gang switch with 2 gang socket 4x4", ["_TZE204_lmgrbuwf"]),
|
|
2946
|
+
tuya.whitelabel("Nova Digital", "SYZB-6W", "6 gang switch 4x4", ["_TZE284_tdhnhhiy"]),
|
|
2935
2947
|
],
|
|
2936
2948
|
},
|
|
2937
2949
|
{
|
|
@@ -7543,7 +7555,7 @@ exports.definitions = [
|
|
|
7543
7555
|
},
|
|
7544
7556
|
},
|
|
7545
7557
|
{
|
|
7546
|
-
fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_1s0vfmtv"]),
|
|
7558
|
+
fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_1s0vfmtv", "_TZ3002_zjuvw9zf", "_TZ3002_gdwja9a7"]),
|
|
7547
7559
|
model: "TS0726_2_gang",
|
|
7548
7560
|
vendor: "Tuya",
|
|
7549
7561
|
description: "2 gang switch with neutral wire",
|
|
@@ -7663,7 +7675,44 @@ exports.definitions = [
|
|
|
7663
7675
|
},
|
|
7664
7676
|
},
|
|
7665
7677
|
{
|
|
7666
|
-
fingerprint: tuya.fingerprint("TS0726", ["
|
|
7678
|
+
fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_jn2x20tg"]),
|
|
7679
|
+
model: "TS0726_1_gang",
|
|
7680
|
+
vendor: "Tuya",
|
|
7681
|
+
description: "1 gang switch with neutral wire",
|
|
7682
|
+
fromZigbee: [fz.on_off, tuya.fz.power_on_behavior_2, fz.ignore_basic_report, fzLocal.TS0726_action],
|
|
7683
|
+
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2, tzLocal.TS0726_switch_mode],
|
|
7684
|
+
exposes: [e.switch(), e.power_on_behavior(), e.enum("switch_mode", ea.STATE_SET, ["switch", "scene"]), e.action(["scene_1"])],
|
|
7685
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
7686
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint);
|
|
7687
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ["genOnOff"]);
|
|
7688
|
+
},
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_iedhxgyi"]),
|
|
7692
|
+
model: "TS0726_3_gang",
|
|
7693
|
+
vendor: "Tuya",
|
|
7694
|
+
description: "3 gang switch with neutral wire",
|
|
7695
|
+
fromZigbee: [fz.on_off, tuya.fz.power_on_behavior_2, fz.ignore_basic_report, fzLocal.TS0726_action],
|
|
7696
|
+
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2, tzLocal.TS0726_switch_mode],
|
|
7697
|
+
exposes: [
|
|
7698
|
+
...[1, 2, 3].map((ep) => e.switch().withEndpoint(`l${ep}`)),
|
|
7699
|
+
...[1, 2, 3].map((ep) => e.power_on_behavior().withEndpoint(`l${ep}`)),
|
|
7700
|
+
...[1, 2, 3].map((ep) => e.enum("switch_mode", ea.STATE_SET, ["switch", "scene"]).withEndpoint(`l${ep}`)),
|
|
7701
|
+
e.action(["scene_1", "scene_2", "scene_3"]),
|
|
7702
|
+
],
|
|
7703
|
+
endpoint: (device) => {
|
|
7704
|
+
return { l1: 1, l2: 2, l3: 3 };
|
|
7705
|
+
},
|
|
7706
|
+
meta: { multiEndpoint: true },
|
|
7707
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
7708
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint);
|
|
7709
|
+
for (const ep of [1, 2, 3]) {
|
|
7710
|
+
await reporting.bind(device.getEndpoint(ep), coordinatorEndpoint, ["genOnOff"]);
|
|
7711
|
+
}
|
|
7712
|
+
},
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
fingerprint: tuya.fingerprint("TS0726", ["_TZ3000_wsspgtcd", "_TZ3000_s678wazd", "_TZ3002_pzao9ls1"]),
|
|
7667
7716
|
model: "TS0726_4_gang",
|
|
7668
7717
|
vendor: "Tuya",
|
|
7669
7718
|
description: "4 gang switch with neutral wire",
|
|
@@ -9514,6 +9563,7 @@ exports.definitions = [
|
|
|
9514
9563
|
],
|
|
9515
9564
|
},
|
|
9516
9565
|
{
|
|
9566
|
+
zigbeeModel: ["ZG-227Z", "ZG-227ZL"],
|
|
9517
9567
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_qoy0ekbd", "_TZE200_znbl8dj5", "_TZE200_a8sdabtg", "_TZE200_dikkika5", "_TZE200_vs0skpuc"]),
|
|
9518
9568
|
model: "ZG-227ZL",
|
|
9519
9569
|
vendor: "Tuya",
|
|
@@ -9728,6 +9778,7 @@ exports.definitions = [
|
|
|
9728
9778
|
},
|
|
9729
9779
|
},
|
|
9730
9780
|
{
|
|
9781
|
+
zigbeeModel: ["ZG-102Z"],
|
|
9731
9782
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_n8dljorx"]),
|
|
9732
9783
|
model: "ZG-102Z",
|
|
9733
9784
|
vendor: "Tuya",
|
|
@@ -9830,6 +9881,7 @@ exports.definitions = [
|
|
|
9830
9881
|
},
|
|
9831
9882
|
},
|
|
9832
9883
|
{
|
|
9884
|
+
zigbeeModel: ["ZG-204ZL"],
|
|
9833
9885
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_3towulqd", "_TZE200_1ibpyhdc", "_TZE200_bh3n6gk8", "_TZE200_ttcovulf", "_TZE200_gjldowol"]),
|
|
9834
9886
|
model: "ZG-204ZL",
|
|
9835
9887
|
vendor: "Tuya",
|
|
@@ -13541,6 +13593,7 @@ exports.definitions = [
|
|
|
13541
13593
|
},
|
|
13542
13594
|
},
|
|
13543
13595
|
{
|
|
13596
|
+
zigbeeModel: ["ZG-101Z"],
|
|
13544
13597
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_nojsjtj2"]),
|
|
13545
13598
|
model: "ZG-101Z",
|
|
13546
13599
|
vendor: "Loginovo",
|
|
@@ -17417,5 +17470,39 @@ exports.definitions = [
|
|
|
17417
17470
|
],
|
|
17418
17471
|
},
|
|
17419
17472
|
},
|
|
17473
|
+
{
|
|
17474
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_gubdgai2", "_TZE200_vdiuwbkq"]),
|
|
17475
|
+
model: "M515EGBZTN",
|
|
17476
|
+
vendor: "Quoya",
|
|
17477
|
+
description: "Zigbee roller blind",
|
|
17478
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
17479
|
+
toZigbee: [tuya.tz.datapoints],
|
|
17480
|
+
onEvent: tuya.onEventSetTime,
|
|
17481
|
+
configure: tuya.configureMagicPacket,
|
|
17482
|
+
options: [exposes.options.invert_cover()],
|
|
17483
|
+
exposes: [
|
|
17484
|
+
e.cover_position().setAccess("position", ea.STATE_SET),
|
|
17485
|
+
e.enum("motor_direction", ea.STATE_SET, ["forward", "back"]).withDescription("Motor direction"),
|
|
17486
|
+
e.enum("border", ea.STATE_SET, ["up", "down", "up_delete", "down_delete", "remove_top_bottom"]).withDescription("Limit setting"),
|
|
17487
|
+
],
|
|
17488
|
+
meta: {
|
|
17489
|
+
tuyaDatapoints: [
|
|
17490
|
+
[1, "state", tuya.valueConverterBasic.lookup({ OPEN: tuya.enum(0), STOP: tuya.enum(1), CLOSE: tuya.enum(2) })],
|
|
17491
|
+
[2, "position", tuya.valueConverter.coverPositionInverted],
|
|
17492
|
+
[5, "motor_direction", tuya.valueConverterBasic.lookup({ forward: tuya.enum(0), back: tuya.enum(1) })],
|
|
17493
|
+
[
|
|
17494
|
+
16,
|
|
17495
|
+
"border",
|
|
17496
|
+
tuya.valueConverterBasic.lookup({
|
|
17497
|
+
up: tuya.enum(0),
|
|
17498
|
+
down: tuya.enum(1),
|
|
17499
|
+
up_delete: tuya.enum(2),
|
|
17500
|
+
down_delete: tuya.enum(3),
|
|
17501
|
+
remove_top_bottom: tuya.enum(4),
|
|
17502
|
+
}),
|
|
17503
|
+
],
|
|
17504
|
+
],
|
|
17505
|
+
},
|
|
17506
|
+
},
|
|
17420
17507
|
];
|
|
17421
17508
|
//# sourceMappingURL=tuya.js.map
|