zigbee-herdsman-converters 23.50.1 → 23.52.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 +31 -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/echostar.js +1 -1
- package/dist/devices/heiman.js +46 -46
- 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/moes.d.ts.map +1 -1
- package/dist/devices/moes.js +59 -8
- package/dist/devices/moes.js.map +1 -1
- package/dist/devices/neo.js +5 -5
- package/dist/devices/third_reality.js +1 -1
- package/dist/devices/third_reality.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +335 -9
- 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/philips.d.ts.map +1 -1
- package/dist/lib/philips.js +6 -0
- package/dist/lib/philips.js.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +1 -1
package/dist/devices/tuya.js
CHANGED
|
@@ -265,6 +265,60 @@ const convLocal = {
|
|
|
265
265
|
},
|
|
266
266
|
};
|
|
267
267
|
},
|
|
268
|
+
sceneCubeAction: () => {
|
|
269
|
+
const lookup = ["side_1", "side_2", "side_3", "side_4", "knock", "shake"];
|
|
270
|
+
const expose = e.action(lookup);
|
|
271
|
+
return [
|
|
272
|
+
tuya.modernExtend.dpEnumLookup({
|
|
273
|
+
dp: 0x01,
|
|
274
|
+
name: "action",
|
|
275
|
+
type: tuya.dataTypes.bool,
|
|
276
|
+
readOnly: true,
|
|
277
|
+
expose: expose,
|
|
278
|
+
lookup: { side_1: 0 },
|
|
279
|
+
}),
|
|
280
|
+
tuya.modernExtend.dpEnumLookup({
|
|
281
|
+
dp: 0x02,
|
|
282
|
+
name: "action",
|
|
283
|
+
type: tuya.dataTypes.bool,
|
|
284
|
+
readOnly: true,
|
|
285
|
+
expose: expose,
|
|
286
|
+
lookup: { side_2: 0 },
|
|
287
|
+
}),
|
|
288
|
+
tuya.modernExtend.dpEnumLookup({
|
|
289
|
+
dp: 0x03,
|
|
290
|
+
name: "action",
|
|
291
|
+
type: tuya.dataTypes.bool,
|
|
292
|
+
readOnly: true,
|
|
293
|
+
expose: expose,
|
|
294
|
+
lookup: { side_3: 0 },
|
|
295
|
+
}),
|
|
296
|
+
tuya.modernExtend.dpEnumLookup({
|
|
297
|
+
dp: 0x04,
|
|
298
|
+
name: "action",
|
|
299
|
+
type: tuya.dataTypes.bool,
|
|
300
|
+
readOnly: true,
|
|
301
|
+
expose: expose,
|
|
302
|
+
lookup: { side_4: 0 },
|
|
303
|
+
}),
|
|
304
|
+
tuya.modernExtend.dpEnumLookup({
|
|
305
|
+
dp: 0x05,
|
|
306
|
+
name: "action",
|
|
307
|
+
type: tuya.dataTypes.bool,
|
|
308
|
+
readOnly: true,
|
|
309
|
+
expose: expose,
|
|
310
|
+
lookup: { knock: 0 },
|
|
311
|
+
}),
|
|
312
|
+
tuya.modernExtend.dpEnumLookup({
|
|
313
|
+
dp: 0x06,
|
|
314
|
+
name: "action",
|
|
315
|
+
type: tuya.dataTypes.bool,
|
|
316
|
+
readOnly: true,
|
|
317
|
+
expose: expose,
|
|
318
|
+
lookup: { shake: 0 },
|
|
319
|
+
}),
|
|
320
|
+
];
|
|
321
|
+
},
|
|
268
322
|
};
|
|
269
323
|
const tzLocal = {
|
|
270
324
|
ts110eCountdown: {
|
|
@@ -1451,6 +1505,7 @@ exports.definitions = [
|
|
|
1451
1505
|
},
|
|
1452
1506
|
},
|
|
1453
1507
|
{
|
|
1508
|
+
zigbeeModel: ["ZG-301Z"],
|
|
1454
1509
|
fingerprint: [
|
|
1455
1510
|
...tuya.fingerprint("TS0001", [
|
|
1456
1511
|
"_TZ3000_hktqahrq",
|
|
@@ -1479,7 +1534,15 @@ exports.definitions = [
|
|
|
1479
1534
|
],
|
|
1480
1535
|
model: "WHD02",
|
|
1481
1536
|
vendor: "Tuya",
|
|
1482
|
-
whiteLabel: [
|
|
1537
|
+
whiteLabel: [
|
|
1538
|
+
{ vendor: "Tuya", model: "iHSW02" },
|
|
1539
|
+
{
|
|
1540
|
+
vendor: "HOBEIAN",
|
|
1541
|
+
model: "ZG-301Z",
|
|
1542
|
+
fingerprint: [{ modelID: "ZG-301Z" }],
|
|
1543
|
+
},
|
|
1544
|
+
tuya.whitelabel("Tuya", "QS-zigbee-S08-16A-RF", "Wall switch module", ["_TZ3000_dlhhrhs8"]),
|
|
1545
|
+
],
|
|
1483
1546
|
description: "Wall switch module",
|
|
1484
1547
|
extend: [tuya.modernExtend.tuyaOnOff({ switchType: true, onOffCountdown: true })],
|
|
1485
1548
|
configure: async (device, coordinatorEndpoint) => {
|
|
@@ -1539,6 +1602,7 @@ exports.definitions = [
|
|
|
1539
1602
|
"_TZ3000_h8ngtlxy",
|
|
1540
1603
|
"_TZ3000_w0ypwa1f",
|
|
1541
1604
|
"_TZ3000_wpueorev",
|
|
1605
|
+
"_TZ3000_cmcjbqup",
|
|
1542
1606
|
]),
|
|
1543
1607
|
...tuya.fingerprint("TS0011", ["_TYZB01_rifa0wlb"]),
|
|
1544
1608
|
],
|
|
@@ -1892,6 +1956,7 @@ exports.definitions = [
|
|
|
1892
1956
|
whiteLabel: [tuya.whitelabel("Aubess", "40ZH-O", "Motion sensor", ["_TZ3040_msl6wxk9"])],
|
|
1893
1957
|
},
|
|
1894
1958
|
{
|
|
1959
|
+
zigbeeModel: ["ZG-204Z"],
|
|
1895
1960
|
fingerprint: tuya.fingerprint("TS0202", ["_TZ3000_mcxw5ehu", "_TZ3000_6ygjfyll", "_TZ3040_6ygjfyll", "_TZ3000_msl6wxk9"]),
|
|
1896
1961
|
model: "IH012-RT01",
|
|
1897
1962
|
vendor: "Tuya",
|
|
@@ -1919,7 +1984,14 @@ exports.definitions = [
|
|
|
1919
1984
|
await reporting.batteryPercentageRemaining(endpoint);
|
|
1920
1985
|
await reporting.batteryVoltage(endpoint);
|
|
1921
1986
|
},
|
|
1922
|
-
whiteLabel: [
|
|
1987
|
+
whiteLabel: [
|
|
1988
|
+
{
|
|
1989
|
+
vendor: "HOBEIAN",
|
|
1990
|
+
model: "ZG-204Z",
|
|
1991
|
+
fingerprint: [{ modelID: "ZG-204Z" }],
|
|
1992
|
+
},
|
|
1993
|
+
tuya.whitelabel("Tuya", "ZMS-102", "Motion sensor", ["_TZ3000_msl6wxk9"]),
|
|
1994
|
+
],
|
|
1923
1995
|
},
|
|
1924
1996
|
{
|
|
1925
1997
|
fingerprint: tuya.fingerprint("TS0202", ["_TZ3000_o4mkahkc"]),
|
|
@@ -1972,13 +2044,18 @@ exports.definitions = [
|
|
|
1972
2044
|
exposes: [],
|
|
1973
2045
|
},
|
|
1974
2046
|
{
|
|
1975
|
-
zigbeeModel: ["TS0207", "FNB54-WTS08ML1.0"],
|
|
2047
|
+
zigbeeModel: ["TS0207", "FNB54-WTS08ML1.0", "ZG-222Z"],
|
|
1976
2048
|
model: "TS0207_water_leak_detector",
|
|
1977
2049
|
vendor: "Tuya",
|
|
1978
2050
|
description: "Water leak detector",
|
|
1979
2051
|
fromZigbee: [fz.ias_water_leak_alarm_1, fz.battery, fz.ignore_basic_report],
|
|
1980
2052
|
whiteLabel: [
|
|
1981
2053
|
{ vendor: "CR Smart Home", model: "TS0207" },
|
|
2054
|
+
{
|
|
2055
|
+
vendor: "HOBEIAN",
|
|
2056
|
+
model: "ZG-222Z",
|
|
2057
|
+
fingerprint: [{ modelID: "ZG-222Z" }],
|
|
2058
|
+
},
|
|
1982
2059
|
tuya.whitelabel("Meian", "SW02", "Water leak sensor", ["_TZ3000_kyb656no"]),
|
|
1983
2060
|
tuya.whitelabel("Aubess", "IH-K665", "Water leak sensor", ["_TZ3000_kstbkt6a"]),
|
|
1984
2061
|
tuya.whitelabel("HOBEIAN", "ZG-222ZA", "Water leak sensor", ["_TZ3000_k4ej3ww2"]),
|
|
@@ -2894,6 +2971,7 @@ exports.definitions = [
|
|
|
2894
2971
|
"_TZE204_g4au0afs",
|
|
2895
2972
|
"_TZE204_w1wwxoja",
|
|
2896
2973
|
"_TZE204_lmgrbuwf",
|
|
2974
|
+
"_TZE284_tdhnhhiy",
|
|
2897
2975
|
]),
|
|
2898
2976
|
model: "TS0601_switch_6_gang",
|
|
2899
2977
|
vendor: "Tuya",
|
|
@@ -2932,6 +3010,7 @@ exports.definitions = [
|
|
|
2932
3010
|
whiteLabel: [
|
|
2933
3011
|
tuya.whitelabel("Mercator Ikuü", "SSW06G", "6 Gang switch", ["_TZE200_wnp4d4va"]),
|
|
2934
3012
|
tuya.whitelabel("Nova Digital", "NTZB-04-W-B", "4 gang switch with 2 gang socket 4x4", ["_TZE204_lmgrbuwf"]),
|
|
3013
|
+
tuya.whitelabel("Nova Digital", "SYZB-6W", "6 gang switch 4x4", ["_TZE284_tdhnhhiy"]),
|
|
2935
3014
|
],
|
|
2936
3015
|
},
|
|
2937
3016
|
{
|
|
@@ -4740,13 +4819,50 @@ exports.definitions = [
|
|
|
4740
4819
|
],
|
|
4741
4820
|
meta: {
|
|
4742
4821
|
tuyaDatapoints: [
|
|
4743
|
-
[
|
|
4822
|
+
[
|
|
4823
|
+
1,
|
|
4824
|
+
"state",
|
|
4825
|
+
tuya.valueConverterBasic.lookup({
|
|
4826
|
+
CLOSE: tuya.enum(2),
|
|
4827
|
+
STOP: tuya.enum(1),
|
|
4828
|
+
OPEN: tuya.enum(0),
|
|
4829
|
+
}),
|
|
4830
|
+
],
|
|
4744
4831
|
[2, "position", tuya.valueConverter.coverPositionInverted],
|
|
4745
4832
|
[3, "position", tuya.valueConverter.coverPositionInverted],
|
|
4746
|
-
[
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4833
|
+
[
|
|
4834
|
+
4,
|
|
4835
|
+
"opening_mode",
|
|
4836
|
+
tuya.valueConverterBasic.lookup({
|
|
4837
|
+
tilt: tuya.enum(0),
|
|
4838
|
+
lift: tuya.enum(1),
|
|
4839
|
+
}),
|
|
4840
|
+
],
|
|
4841
|
+
[
|
|
4842
|
+
7,
|
|
4843
|
+
"work_state",
|
|
4844
|
+
tuya.valueConverterBasic.lookup({
|
|
4845
|
+
standby: tuya.enum(0),
|
|
4846
|
+
success: tuya.enum(1),
|
|
4847
|
+
learning: tuya.enum(2),
|
|
4848
|
+
}),
|
|
4849
|
+
],
|
|
4850
|
+
[
|
|
4851
|
+
101,
|
|
4852
|
+
"motor_direction",
|
|
4853
|
+
tuya.valueConverterBasic.lookup({
|
|
4854
|
+
left: tuya.enum(0),
|
|
4855
|
+
right: tuya.enum(1),
|
|
4856
|
+
}),
|
|
4857
|
+
],
|
|
4858
|
+
[
|
|
4859
|
+
102,
|
|
4860
|
+
"set_upper_limit",
|
|
4861
|
+
tuya.valueConverterBasic.lookup({
|
|
4862
|
+
start: tuya.enum(1),
|
|
4863
|
+
stop: tuya.enum(0),
|
|
4864
|
+
}),
|
|
4865
|
+
],
|
|
4750
4866
|
[107, "factory_reset", tuya.valueConverter.setLimit],
|
|
4751
4867
|
],
|
|
4752
4868
|
},
|
|
@@ -8915,6 +9031,7 @@ exports.definitions = [
|
|
|
8915
9031
|
{
|
|
8916
9032
|
// Only the ones with applicationVersion 145 should be detected as this, e.g. applicationVersion 66 should be detected as ERS-10TZBVK-AA.
|
|
8917
9033
|
// https://github.com/Koenkk/zigbee2mqtt/issues/25053
|
|
9034
|
+
zigbeeModel: ["ZG-101ZD"],
|
|
8918
9035
|
fingerprint: [
|
|
8919
9036
|
{
|
|
8920
9037
|
modelID: "TS004F",
|
|
@@ -8926,6 +9043,7 @@ exports.definitions = [
|
|
|
8926
9043
|
model: "ZG-101Z/D",
|
|
8927
9044
|
vendor: "Tuya",
|
|
8928
9045
|
description: "Smart knob",
|
|
9046
|
+
whiteLabel: [{ vendor: "COOLO", model: "ZG-101ZD" }],
|
|
8929
9047
|
fromZigbee: [fz.tuya_multi_action, fz.battery, fz.tuya_operation_mode],
|
|
8930
9048
|
exposes: [
|
|
8931
9049
|
e.action(["rotate_left", "rotate_right"]),
|
|
@@ -9321,6 +9439,7 @@ exports.definitions = [
|
|
|
9321
9439
|
},
|
|
9322
9440
|
},
|
|
9323
9441
|
{
|
|
9442
|
+
zigbeeModel: ["ZG-205ZL"],
|
|
9324
9443
|
fingerprint: tuya.fingerprint("TS0225", ["_TZE200_hl0ss9oa"]),
|
|
9325
9444
|
model: "ZG-205ZL",
|
|
9326
9445
|
vendor: "Tuya",
|
|
@@ -9551,6 +9670,7 @@ exports.definitions = [
|
|
|
9551
9670
|
],
|
|
9552
9671
|
},
|
|
9553
9672
|
{
|
|
9673
|
+
zigbeeModel: ["ZG-227Z", "ZG-227ZL"],
|
|
9554
9674
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_qoy0ekbd", "_TZE200_znbl8dj5", "_TZE200_a8sdabtg", "_TZE200_dikkika5", "_TZE200_vs0skpuc"]),
|
|
9555
9675
|
model: "ZG-227ZL",
|
|
9556
9676
|
vendor: "Tuya",
|
|
@@ -9765,6 +9885,7 @@ exports.definitions = [
|
|
|
9765
9885
|
},
|
|
9766
9886
|
},
|
|
9767
9887
|
{
|
|
9888
|
+
zigbeeModel: ["ZG-102Z"],
|
|
9768
9889
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_n8dljorx"]),
|
|
9769
9890
|
model: "ZG-102Z",
|
|
9770
9891
|
vendor: "Tuya",
|
|
@@ -9867,6 +9988,7 @@ exports.definitions = [
|
|
|
9867
9988
|
},
|
|
9868
9989
|
},
|
|
9869
9990
|
{
|
|
9991
|
+
zigbeeModel: ["ZG-204ZL"],
|
|
9870
9992
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_3towulqd", "_TZE200_1ibpyhdc", "_TZE200_bh3n6gk8", "_TZE200_ttcovulf", "_TZE200_gjldowol"]),
|
|
9871
9993
|
model: "ZG-204ZL",
|
|
9872
9994
|
vendor: "Tuya",
|
|
@@ -10036,6 +10158,7 @@ exports.definitions = [
|
|
|
10036
10158
|
},
|
|
10037
10159
|
},
|
|
10038
10160
|
{
|
|
10161
|
+
zigbeeModel: ["ZG-204ZM"],
|
|
10039
10162
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_2aaelwxk", "_TZE200_kb5noeto"]),
|
|
10040
10163
|
model: "ZG-204ZM",
|
|
10041
10164
|
vendor: "Tuya",
|
|
@@ -10964,6 +11087,7 @@ exports.definitions = [
|
|
|
10964
11087
|
model: "SPM01",
|
|
10965
11088
|
vendor: "Tuya",
|
|
10966
11089
|
description: "Smart energy monitor for 1P+N system",
|
|
11090
|
+
ota: true,
|
|
10967
11091
|
fromZigbee: [tuya.fz.datapoints],
|
|
10968
11092
|
toZigbee: [tuya.tz.datapoints],
|
|
10969
11093
|
configure: tuya.configureMagicPacket,
|
|
@@ -13578,6 +13702,7 @@ exports.definitions = [
|
|
|
13578
13702
|
},
|
|
13579
13703
|
},
|
|
13580
13704
|
{
|
|
13705
|
+
zigbeeModel: ["ZG-101Z"],
|
|
13581
13706
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_nojsjtj2"]),
|
|
13582
13707
|
model: "ZG-101Z",
|
|
13583
13708
|
vendor: "Loginovo",
|
|
@@ -15183,6 +15308,7 @@ exports.definitions = [
|
|
|
15183
15308
|
},
|
|
15184
15309
|
},
|
|
15185
15310
|
{
|
|
15311
|
+
zigbeeModel: ["ZG-103Z"],
|
|
15186
15312
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_iba1ckek", "_TZE200_hggxgsjj"]),
|
|
15187
15313
|
model: "ZG-103Z",
|
|
15188
15314
|
vendor: "Tuya",
|
|
@@ -17282,6 +17408,7 @@ exports.definitions = [
|
|
|
17282
17408
|
},
|
|
17283
17409
|
},
|
|
17284
17410
|
{
|
|
17411
|
+
zigbeeModel: ["ZG-102ZM"],
|
|
17285
17412
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_wzk0x7fq"]),
|
|
17286
17413
|
model: "ZG-102ZM",
|
|
17287
17414
|
vendor: "HOBEIAN",
|
|
@@ -17311,6 +17438,7 @@ exports.definitions = [
|
|
|
17311
17438
|
},
|
|
17312
17439
|
},
|
|
17313
17440
|
{
|
|
17441
|
+
zigbeeModel: ["ZG-204ZV"],
|
|
17314
17442
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_uli8wasj", "_TZE200_grgol3xp"]),
|
|
17315
17443
|
model: "ZG-204ZV",
|
|
17316
17444
|
vendor: "HOBEIAN",
|
|
@@ -17367,6 +17495,7 @@ exports.definitions = [
|
|
|
17367
17495
|
},
|
|
17368
17496
|
},
|
|
17369
17497
|
{
|
|
17498
|
+
zigbeeModel: ["ZG-223Z"],
|
|
17370
17499
|
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_jsaqgakf"]),
|
|
17371
17500
|
model: "ZG-223Z",
|
|
17372
17501
|
vendor: "HOBEIAN",
|
|
@@ -17445,7 +17574,15 @@ exports.definitions = [
|
|
|
17445
17574
|
],
|
|
17446
17575
|
meta: {
|
|
17447
17576
|
tuyaDatapoints: [
|
|
17448
|
-
[
|
|
17577
|
+
[
|
|
17578
|
+
1,
|
|
17579
|
+
"presence_state",
|
|
17580
|
+
tuya.valueConverterBasic.lookup({
|
|
17581
|
+
none: 0,
|
|
17582
|
+
motion: 1,
|
|
17583
|
+
stationary: 2,
|
|
17584
|
+
}),
|
|
17585
|
+
],
|
|
17449
17586
|
[3, "near_detection", tuya.valueConverter.divideBy100],
|
|
17450
17587
|
[4, "far_detection", tuya.valueConverter.divideBy100],
|
|
17451
17588
|
[9, "target_distance_closest", tuya.valueConverter.divideBy100],
|
|
@@ -17454,5 +17591,194 @@ exports.definitions = [
|
|
|
17454
17591
|
],
|
|
17455
17592
|
},
|
|
17456
17593
|
},
|
|
17594
|
+
{
|
|
17595
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_gubdgai2", "_TZE200_vdiuwbkq"]),
|
|
17596
|
+
model: "M515EGBZTN",
|
|
17597
|
+
vendor: "Quoya",
|
|
17598
|
+
description: "Zigbee roller blind",
|
|
17599
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
17600
|
+
toZigbee: [tuya.tz.datapoints],
|
|
17601
|
+
onEvent: tuya.onEventSetTime,
|
|
17602
|
+
configure: tuya.configureMagicPacket,
|
|
17603
|
+
options: [exposes.options.invert_cover()],
|
|
17604
|
+
exposes: [
|
|
17605
|
+
e.cover_position().setAccess("position", ea.STATE_SET),
|
|
17606
|
+
e.enum("motor_direction", ea.STATE_SET, ["forward", "back"]).withDescription("Motor direction"),
|
|
17607
|
+
e.enum("border", ea.STATE_SET, ["up", "down", "up_delete", "down_delete", "remove_top_bottom"]).withDescription("Limit setting"),
|
|
17608
|
+
],
|
|
17609
|
+
meta: {
|
|
17610
|
+
tuyaDatapoints: [
|
|
17611
|
+
[
|
|
17612
|
+
1,
|
|
17613
|
+
"state",
|
|
17614
|
+
tuya.valueConverterBasic.lookup({
|
|
17615
|
+
OPEN: tuya.enum(0),
|
|
17616
|
+
STOP: tuya.enum(1),
|
|
17617
|
+
CLOSE: tuya.enum(2),
|
|
17618
|
+
}),
|
|
17619
|
+
],
|
|
17620
|
+
[2, "position", tuya.valueConverter.coverPositionInverted],
|
|
17621
|
+
[
|
|
17622
|
+
5,
|
|
17623
|
+
"motor_direction",
|
|
17624
|
+
tuya.valueConverterBasic.lookup({
|
|
17625
|
+
forward: tuya.enum(0),
|
|
17626
|
+
back: tuya.enum(1),
|
|
17627
|
+
}),
|
|
17628
|
+
],
|
|
17629
|
+
[
|
|
17630
|
+
16,
|
|
17631
|
+
"border",
|
|
17632
|
+
tuya.valueConverterBasic.lookup({
|
|
17633
|
+
up: tuya.enum(0),
|
|
17634
|
+
down: tuya.enum(1),
|
|
17635
|
+
up_delete: tuya.enum(2),
|
|
17636
|
+
down_delete: tuya.enum(3),
|
|
17637
|
+
remove_top_bottom: tuya.enum(4),
|
|
17638
|
+
}),
|
|
17639
|
+
],
|
|
17640
|
+
],
|
|
17641
|
+
},
|
|
17642
|
+
},
|
|
17643
|
+
{
|
|
17644
|
+
zigbeeModel: ["ZG-303Z"],
|
|
17645
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_npj9bug3"]),
|
|
17646
|
+
model: "CS-201Z",
|
|
17647
|
+
vendor: "COOLO",
|
|
17648
|
+
description: "Soil moisture sensor",
|
|
17649
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
17650
|
+
toZigbee: [tuya.tz.datapoints],
|
|
17651
|
+
configure: tuya.configureMagicPacket,
|
|
17652
|
+
exposes: [
|
|
17653
|
+
e.enum("water_warning", ea.STATE, ["none", "alarm"]).withDescription("Water shortage warning"),
|
|
17654
|
+
e.temperature(),
|
|
17655
|
+
e.humidity(),
|
|
17656
|
+
e.soil_moisture(),
|
|
17657
|
+
tuya.exposes.temperatureUnit(),
|
|
17658
|
+
tuya.exposes.temperatureCalibration(),
|
|
17659
|
+
tuya.exposes.humidityCalibration(),
|
|
17660
|
+
tuya.exposes.soilCalibration(),
|
|
17661
|
+
tuya.exposes.temperatureSampling(),
|
|
17662
|
+
tuya.exposes.soilSampling(),
|
|
17663
|
+
tuya.exposes.soilWarning(),
|
|
17664
|
+
e.battery(),
|
|
17665
|
+
],
|
|
17666
|
+
meta: {
|
|
17667
|
+
tuyaDatapoints: [
|
|
17668
|
+
[
|
|
17669
|
+
106,
|
|
17670
|
+
"water_warning",
|
|
17671
|
+
tuya.valueConverterBasic.lookup({
|
|
17672
|
+
none: tuya.enum(0),
|
|
17673
|
+
alarm: tuya.enum(1),
|
|
17674
|
+
}),
|
|
17675
|
+
],
|
|
17676
|
+
[5, "temperature", tuya.valueConverter.divideBy10],
|
|
17677
|
+
[109, "humidity", tuya.valueConverter.raw],
|
|
17678
|
+
[3, "soil_moisture", tuya.valueConverter.raw],
|
|
17679
|
+
[15, "battery", tuya.valueConverter.raw],
|
|
17680
|
+
[9, "temperature_unit", tuya.valueConverter.temperatureUnit],
|
|
17681
|
+
[104, "temperature_calibration", tuya.valueConverter.divideBy10],
|
|
17682
|
+
[105, "humidity_calibration", tuya.valueConverter.raw],
|
|
17683
|
+
[102, "soil_calibration", tuya.valueConverter.raw],
|
|
17684
|
+
[111, "temperature_sampling", tuya.valueConverter.raw],
|
|
17685
|
+
[112, "soil_sampling", tuya.valueConverter.raw],
|
|
17686
|
+
[110, "soil_warning", tuya.valueConverter.raw],
|
|
17687
|
+
],
|
|
17688
|
+
},
|
|
17689
|
+
},
|
|
17690
|
+
{
|
|
17691
|
+
fingerprint: tuya.fingerprint("TS0001", ["_TZE21C_dohbhb5k"]),
|
|
17692
|
+
model: "TYONOFFTS",
|
|
17693
|
+
vendor: "Scimagic",
|
|
17694
|
+
description: "Smart switch with temperature sensor",
|
|
17695
|
+
extend: [
|
|
17696
|
+
tuya.modernExtend.tuyaMagicPacket(),
|
|
17697
|
+
tuya.modernExtend.dpOnOff({
|
|
17698
|
+
dp: 0x02,
|
|
17699
|
+
}),
|
|
17700
|
+
tuya.modernExtend.dpTemperature({ dp: 0x1b }),
|
|
17701
|
+
tuya.modernExtend.dpNumeric({
|
|
17702
|
+
dp: 0x1e,
|
|
17703
|
+
name: "temperature_calibration",
|
|
17704
|
+
type: tuya.dataTypes.number,
|
|
17705
|
+
valueMin: -10,
|
|
17706
|
+
valueMax: 10,
|
|
17707
|
+
valueStep: 0.5,
|
|
17708
|
+
unit: "°C",
|
|
17709
|
+
scale: 2,
|
|
17710
|
+
description: "Temperature calibration",
|
|
17711
|
+
}),
|
|
17712
|
+
tuya.modernExtend.dpNumeric({
|
|
17713
|
+
dp: 0x1d,
|
|
17714
|
+
name: "temperature_range",
|
|
17715
|
+
type: tuya.dataTypes.number,
|
|
17716
|
+
valueMin: 1,
|
|
17717
|
+
valueMax: 10,
|
|
17718
|
+
valueStep: 0.1,
|
|
17719
|
+
unit: "°C",
|
|
17720
|
+
scale: 10,
|
|
17721
|
+
description: "Keep the temperature in a range",
|
|
17722
|
+
}),
|
|
17723
|
+
tuya.modernExtend.dpBinary({
|
|
17724
|
+
name: "auto_work",
|
|
17725
|
+
dp: 0x09,
|
|
17726
|
+
type: tuya.dataTypes.bool,
|
|
17727
|
+
valueOn: ["ON", true],
|
|
17728
|
+
valueOff: ["OFF", false],
|
|
17729
|
+
description: "Auto work mode",
|
|
17730
|
+
}),
|
|
17731
|
+
tuya.modernExtend.dpNumeric({
|
|
17732
|
+
dp: 0x16,
|
|
17733
|
+
name: "temperature_target",
|
|
17734
|
+
type: tuya.dataTypes.number,
|
|
17735
|
+
valueMin: -100,
|
|
17736
|
+
valueMax: 100,
|
|
17737
|
+
valueStep: 0.5,
|
|
17738
|
+
unit: "°C",
|
|
17739
|
+
scale: 10,
|
|
17740
|
+
description: "Temperature target",
|
|
17741
|
+
}),
|
|
17742
|
+
tuya.modernExtend.dpEnumLookup({
|
|
17743
|
+
dp: 0x08,
|
|
17744
|
+
name: "mode",
|
|
17745
|
+
type: tuya.dataTypes.enum,
|
|
17746
|
+
lookup: { Heating: 0, Cooling: 2 },
|
|
17747
|
+
description: "Work mode",
|
|
17748
|
+
}),
|
|
17749
|
+
tuya.modernExtend.dpBinary({
|
|
17750
|
+
name: "delay",
|
|
17751
|
+
dp: 0x38,
|
|
17752
|
+
type: tuya.dataTypes.bool,
|
|
17753
|
+
valueOn: ["ON", 1],
|
|
17754
|
+
valueOff: ["OFF", 0],
|
|
17755
|
+
description: "Switch delay time mode",
|
|
17756
|
+
}),
|
|
17757
|
+
tuya.modernExtend.dpNumeric({
|
|
17758
|
+
dp: 0x37,
|
|
17759
|
+
name: "delay_time",
|
|
17760
|
+
type: tuya.dataTypes.number,
|
|
17761
|
+
valueMin: 0,
|
|
17762
|
+
valueMax: 10,
|
|
17763
|
+
valueStep: 1,
|
|
17764
|
+
unit: "minute",
|
|
17765
|
+
scale: 1,
|
|
17766
|
+
description: "Switch delay time",
|
|
17767
|
+
}),
|
|
17768
|
+
],
|
|
17769
|
+
},
|
|
17770
|
+
{
|
|
17771
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE284_5ys44kzo"]),
|
|
17772
|
+
model: "TYSCENECUBE",
|
|
17773
|
+
vendor: "iHseno",
|
|
17774
|
+
description: "Scene cube",
|
|
17775
|
+
extend: [
|
|
17776
|
+
tuya.modernExtend.tuyaMagicPacket(),
|
|
17777
|
+
...convLocal.sceneCubeAction(),
|
|
17778
|
+
tuya.modernExtend.dpBattery({
|
|
17779
|
+
dp: 0x0a,
|
|
17780
|
+
}),
|
|
17781
|
+
],
|
|
17782
|
+
},
|
|
17457
17783
|
];
|
|
17458
17784
|
//# sourceMappingURL=tuya.js.map
|