zigbee-herdsman-converters 25.12.0 → 25.14.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 +32 -0
- package/dist/converters/fromZigbee.d.ts.map +1 -1
- package/dist/converters/fromZigbee.js +2 -0
- package/dist/converters/fromZigbee.js.map +1 -1
- package/dist/devices/avatto.js +1 -1
- package/dist/devices/avatto.js.map +1 -1
- package/dist/devices/gledopto.js +1 -1
- package/dist/devices/gledopto.js.map +1 -1
- package/dist/devices/lumi.d.ts.map +1 -1
- package/dist/devices/lumi.js +28 -0
- package/dist/devices/lumi.js.map +1 -1
- package/dist/devices/moes.d.ts.map +1 -1
- package/dist/devices/moes.js +1 -1
- package/dist/devices/moes.js.map +1 -1
- package/dist/devices/schneider_electric.d.ts.map +1 -1
- package/dist/devices/schneider_electric.js +5 -2
- package/dist/devices/schneider_electric.js.map +1 -1
- package/dist/devices/slacky_diy.d.ts.map +1 -1
- package/dist/devices/slacky_diy.js +141 -21
- package/dist/devices/slacky_diy.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +214 -13
- package/dist/devices/tuya.js.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +2 -2
package/dist/devices/tuya.js
CHANGED
|
@@ -2828,9 +2828,7 @@ exports.definitions = [
|
|
|
2828
2828
|
description: "13A Smart Switched Fused Connection Unit",
|
|
2829
2829
|
extend: [
|
|
2830
2830
|
tuya.modernExtend.tuyaOnOff({
|
|
2831
|
-
|
|
2832
|
-
childLock: true,
|
|
2833
|
-
powerOnBehavior2: true,
|
|
2831
|
+
onOffCountdown: true,
|
|
2834
2832
|
}),
|
|
2835
2833
|
],
|
|
2836
2834
|
configure: async (device, coordinatorEndpoint) => {
|
|
@@ -13932,8 +13930,8 @@ exports.definitions = [
|
|
|
13932
13930
|
.withDescription("Free chlorine value. The water in the swimming pool should " +
|
|
13933
13931
|
"be between 6.5-8ph and ORP should be between 487-840mv, and the chlorine value will be displayed normally. Chlorine will not " +
|
|
13934
13932
|
"be displayed if either value is out of range"),
|
|
13935
|
-
e.numeric("ph_max", ea.STATE_SET).withUnit("pH").withDescription("pH maximal value").withValueMin(0).withValueMax(
|
|
13936
|
-
e.numeric("ph_min", ea.STATE_SET).withUnit("pH").withDescription("pH minimal value").withValueMin(0).withValueMax(
|
|
13933
|
+
e.numeric("ph_max", ea.STATE_SET).withUnit("pH").withDescription("pH maximal value").withValueMin(0).withValueMax(140),
|
|
13934
|
+
e.numeric("ph_min", ea.STATE_SET).withUnit("pH").withDescription("pH minimal value").withValueMin(0).withValueMax(140),
|
|
13937
13935
|
e
|
|
13938
13936
|
.numeric("ec_max", ea.STATE_SET)
|
|
13939
13937
|
.withUnit("µS/cm")
|
|
@@ -13945,31 +13943,31 @@ exports.definitions = [
|
|
|
13945
13943
|
.withUnit("µS/cm")
|
|
13946
13944
|
.withDescription("Electrical Conductivity minimal value")
|
|
13947
13945
|
.withValueMin(0)
|
|
13948
|
-
.withValueMax(
|
|
13946
|
+
.withValueMax(20000),
|
|
13949
13947
|
e
|
|
13950
13948
|
.numeric("orp_max", ea.STATE_SET)
|
|
13951
13949
|
.withUnit("mV")
|
|
13952
13950
|
.withDescription("Oxidation Reduction Potential maximal value")
|
|
13953
13951
|
.withValueMin(0)
|
|
13954
|
-
.withValueMax(
|
|
13952
|
+
.withValueMax(1200),
|
|
13955
13953
|
e
|
|
13956
13954
|
.numeric("orp_min", ea.STATE_SET)
|
|
13957
13955
|
.withUnit("mV")
|
|
13958
13956
|
.withDescription("Oxidation Reduction Potential minimal value")
|
|
13959
13957
|
.withValueMin(0)
|
|
13960
|
-
.withValueMax(
|
|
13958
|
+
.withValueMax(1200),
|
|
13961
13959
|
e
|
|
13962
13960
|
.numeric("free_chlorine_max", ea.STATE_SET)
|
|
13963
13961
|
.withUnit("mg/L")
|
|
13964
13962
|
.withDescription("Free Chlorine maximal value")
|
|
13965
13963
|
.withValueMin(0)
|
|
13966
|
-
.withValueMax(
|
|
13964
|
+
.withValueMax(40),
|
|
13967
13965
|
e
|
|
13968
13966
|
.numeric("free_chlorine_min", ea.STATE_SET)
|
|
13969
13967
|
.withUnit("mg/L")
|
|
13970
13968
|
.withDescription("Free Chlorine minimal value")
|
|
13971
13969
|
.withValueMin(0)
|
|
13972
|
-
.withValueMax(
|
|
13970
|
+
.withValueMax(40),
|
|
13973
13971
|
e.numeric("salinity", ea.STATE).withUnit("ppm").withDescription("Salt value"),
|
|
13974
13972
|
e.numeric("backlightvalue", ea.STATE_SET).withUnit("gg").withDescription("Backlight Value").withValueMin(0).withValueMax(1),
|
|
13975
13973
|
],
|
|
@@ -13993,10 +13991,10 @@ exports.definitions = [
|
|
|
13993
13991
|
],
|
|
13994
13992
|
[11, "ec", tuya.valueConverter.raw],
|
|
13995
13993
|
[101, "orp", tuya.valueConverter.raw],
|
|
13996
|
-
[102, "free_chlorine", tuya.valueConverter.
|
|
13994
|
+
[102, "free_chlorine", tuya.valueConverter.divideBy10],
|
|
13997
13995
|
[105, "backlightvalue", tuya.valueConverter.raw],
|
|
13998
|
-
[106, "ph_max", tuya.valueConverter.
|
|
13999
|
-
[107, "ph_min", tuya.valueConverter.
|
|
13996
|
+
[106, "ph_max", tuya.valueConverter.raw],
|
|
13997
|
+
[107, "ph_min", tuya.valueConverter.raw],
|
|
14000
13998
|
[108, "ec_max", tuya.valueConverter.raw],
|
|
14001
13999
|
[109, "ec_min", tuya.valueConverter.raw],
|
|
14002
14000
|
[110, "orp_max", tuya.valueConverter.raw],
|
|
@@ -18295,5 +18293,208 @@ exports.definitions = [
|
|
|
18295
18293
|
],
|
|
18296
18294
|
},
|
|
18297
18295
|
},
|
|
18296
|
+
{
|
|
18297
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE284_pglpvdar"]),
|
|
18298
|
+
model: "TO-Q-SA1",
|
|
18299
|
+
vendor: "Tongou",
|
|
18300
|
+
description: "Zigbee energy meter (transformer clamp)",
|
|
18301
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
18302
|
+
toZigbee: [tuya.tz.datapoints],
|
|
18303
|
+
exposes: [
|
|
18304
|
+
e.energy(),
|
|
18305
|
+
e.voltage(),
|
|
18306
|
+
e.current(),
|
|
18307
|
+
e.power(),
|
|
18308
|
+
e.ac_frequency(),
|
|
18309
|
+
e.power_factor().withUnit("%"),
|
|
18310
|
+
e.numeric("temperature", ea.STATE).withUnit("°C").withDescription("Current temperature"),
|
|
18311
|
+
e
|
|
18312
|
+
.enum("event", ea.STATE, [
|
|
18313
|
+
"normal",
|
|
18314
|
+
"over_current_trip",
|
|
18315
|
+
"over_power_trip",
|
|
18316
|
+
"high_temp_trip",
|
|
18317
|
+
"over_voltage_trip",
|
|
18318
|
+
"under_voltage_trip",
|
|
18319
|
+
"over_current_alarm",
|
|
18320
|
+
"over_power_alarm",
|
|
18321
|
+
"high_temp_alarm",
|
|
18322
|
+
"over_voltage_alarm",
|
|
18323
|
+
"under_voltage_alarm",
|
|
18324
|
+
"remote_on",
|
|
18325
|
+
"remote_off",
|
|
18326
|
+
"manual_on",
|
|
18327
|
+
"manual_off",
|
|
18328
|
+
"leakage_trip",
|
|
18329
|
+
"leakage_alarm",
|
|
18330
|
+
"restore_default",
|
|
18331
|
+
"automatic_closing",
|
|
18332
|
+
"electricity_shortage",
|
|
18333
|
+
"electricity_shortage_alarm",
|
|
18334
|
+
"timing_switch_On",
|
|
18335
|
+
"timing_switch_off",
|
|
18336
|
+
])
|
|
18337
|
+
.withDescription("Last event of the device"),
|
|
18338
|
+
e.enum("over_current_setting", ea.STATE_SET, ["Ignore", "Alarm"]).withDescription("Over current setting"),
|
|
18339
|
+
e
|
|
18340
|
+
.numeric("over_current_threshold", ea.STATE_SET)
|
|
18341
|
+
.withUnit("A")
|
|
18342
|
+
.withDescription("Setup the value on the device")
|
|
18343
|
+
.withValueMin(1)
|
|
18344
|
+
.withValueMax(50),
|
|
18345
|
+
e.enum("over_voltage_setting", ea.STATE_SET, ["Ignore", "Alarm"]).withDescription("Over voltage setting"),
|
|
18346
|
+
e
|
|
18347
|
+
.numeric("over_voltage_threshold", ea.STATE_SET)
|
|
18348
|
+
.withUnit("V")
|
|
18349
|
+
.withDescription("Setup value on the device")
|
|
18350
|
+
.withValueMin(240)
|
|
18351
|
+
.withValueMax(295),
|
|
18352
|
+
e.enum("under_voltage_setting", ea.STATE_SET, ["Ignore", "Alarm"]).withDescription("Under voltage setting"),
|
|
18353
|
+
e
|
|
18354
|
+
.numeric("under_voltage_threshold", ea.STATE_SET)
|
|
18355
|
+
.withUnit("V")
|
|
18356
|
+
.withDescription("Setup value on the device")
|
|
18357
|
+
.withValueMin(90)
|
|
18358
|
+
.withValueMax(220),
|
|
18359
|
+
e.enum("temperature_setting", ea.STATE_SET, ["Ignore", "Alarm"]).withDescription("Temperature setting"),
|
|
18360
|
+
e
|
|
18361
|
+
.numeric("temperature_threshold", ea.STATE_SET)
|
|
18362
|
+
.withUnit("°C")
|
|
18363
|
+
.withDescription("Setup value on the device")
|
|
18364
|
+
.withValueMin(-25)
|
|
18365
|
+
.withValueMax(80),
|
|
18366
|
+
e.enum("over_power_setting", ea.STATE_SET, ["Ignore", "Alarm"]).withDescription("Over power setting"),
|
|
18367
|
+
e
|
|
18368
|
+
.numeric("over_power_threshold", ea.STATE_SET)
|
|
18369
|
+
.withUnit("W")
|
|
18370
|
+
.withDescription("Setup value on the device")
|
|
18371
|
+
.withValueMin(1000)
|
|
18372
|
+
.withValueMax(26000),
|
|
18373
|
+
],
|
|
18374
|
+
meta: {
|
|
18375
|
+
multiEndpointSkip: ["test1", "forward_electricity"],
|
|
18376
|
+
tuyaDatapoints: [
|
|
18377
|
+
[1, "energy", tuya.valueConverter.divideBy100], // Total forward energy
|
|
18378
|
+
[6, null, tuya.valueConverter.phaseVariant2], // Phase A
|
|
18379
|
+
[13, "test1", tuya.valueConverter.raw], // Remaining electricity
|
|
18380
|
+
[32, "ac_frequency", tuya.valueConverter.divideBy100], // Grid supply frequency
|
|
18381
|
+
[50, "power_factor", tuya.valueConverter.raw], // Overall power factor
|
|
18382
|
+
[
|
|
18383
|
+
102,
|
|
18384
|
+
"over_voltage_setting",
|
|
18385
|
+
tuya.valueConverterBasic.lookup({
|
|
18386
|
+
Ignore: tuya.enum(0),
|
|
18387
|
+
Alarm: tuya.enum(1),
|
|
18388
|
+
}),
|
|
18389
|
+
],
|
|
18390
|
+
[
|
|
18391
|
+
103,
|
|
18392
|
+
"under_voltage_setting",
|
|
18393
|
+
tuya.valueConverterBasic.lookup({
|
|
18394
|
+
Ignore: tuya.enum(0),
|
|
18395
|
+
Alarm: tuya.enum(1),
|
|
18396
|
+
}),
|
|
18397
|
+
],
|
|
18398
|
+
[
|
|
18399
|
+
104,
|
|
18400
|
+
"over_current_setting",
|
|
18401
|
+
tuya.valueConverterBasic.lookup({
|
|
18402
|
+
Ignore: tuya.enum(0),
|
|
18403
|
+
Alarm: tuya.enum(1),
|
|
18404
|
+
}),
|
|
18405
|
+
],
|
|
18406
|
+
[
|
|
18407
|
+
105,
|
|
18408
|
+
"over_power_setting",
|
|
18409
|
+
tuya.valueConverterBasic.lookup({
|
|
18410
|
+
Ignore: tuya.enum(0),
|
|
18411
|
+
Alarm: tuya.enum(1),
|
|
18412
|
+
}),
|
|
18413
|
+
],
|
|
18414
|
+
[
|
|
18415
|
+
107,
|
|
18416
|
+
"temperature_setting",
|
|
18417
|
+
tuya.valueConverterBasic.lookup({
|
|
18418
|
+
Ignore: tuya.enum(0),
|
|
18419
|
+
Alarm: tuya.enum(1),
|
|
18420
|
+
}),
|
|
18421
|
+
],
|
|
18422
|
+
[
|
|
18423
|
+
110,
|
|
18424
|
+
"event",
|
|
18425
|
+
tuya.valueConverterBasic.lookup({
|
|
18426
|
+
normal: 0,
|
|
18427
|
+
over_current_trip: 1,
|
|
18428
|
+
over_power_trip: 2,
|
|
18429
|
+
high_temp_trip: 3,
|
|
18430
|
+
over_voltage_trip: 4,
|
|
18431
|
+
under_voltage_trip: 5,
|
|
18432
|
+
over_current_alarm: 6,
|
|
18433
|
+
over_power_alarm: 7,
|
|
18434
|
+
high_temp_alarm: 8,
|
|
18435
|
+
over_voltage_alarm: 9,
|
|
18436
|
+
under_voltage_alarm: 10,
|
|
18437
|
+
remote_on: 11,
|
|
18438
|
+
remote_off: 12,
|
|
18439
|
+
manual_on: 13,
|
|
18440
|
+
manual_off: 14,
|
|
18441
|
+
leakage_trip: 15,
|
|
18442
|
+
leakage_alarm: 16,
|
|
18443
|
+
restore_default: 17,
|
|
18444
|
+
automatic_closing: 18,
|
|
18445
|
+
electricity_shortage: 19,
|
|
18446
|
+
electricity_shortage_alarm: 20,
|
|
18447
|
+
timing_switch_on: 21,
|
|
18448
|
+
timing_switch_off: 22,
|
|
18449
|
+
}),
|
|
18450
|
+
],
|
|
18451
|
+
[114, "over_current_threshold", tuya.valueConverter.raw],
|
|
18452
|
+
[115, "over_voltage_threshold", tuya.valueConverter.raw],
|
|
18453
|
+
[116, "under_voltage_threshold", tuya.valueConverter.raw],
|
|
18454
|
+
[118, "temperature_threshold", tuya.valueConverter.divideBy10],
|
|
18455
|
+
[119, "over_power_threshold", tuya.valueConverter.raw],
|
|
18456
|
+
[125, "forward_electricity", tuya.valueConverter.raw],
|
|
18457
|
+
[131, "temperature", tuya.valueConverter.divideBy10],
|
|
18458
|
+
],
|
|
18459
|
+
},
|
|
18460
|
+
},
|
|
18461
|
+
{
|
|
18462
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE204_q9xty0ad"]),
|
|
18463
|
+
model: "_TZE204_q9xty0ad",
|
|
18464
|
+
vendor: "Tuya",
|
|
18465
|
+
description: "Ayvolt Blinds",
|
|
18466
|
+
extend: [tuya.modernExtend.tuyaBase({ dp: true })],
|
|
18467
|
+
options: [exposes.options.invert_cover()],
|
|
18468
|
+
exposes: [e.cover_position(), e.enum("motor_direction", ea.STATE_SET, ["normal", "reversed"]).withDescription("Motor direction")],
|
|
18469
|
+
meta: {
|
|
18470
|
+
tuyaDatapoints: [
|
|
18471
|
+
[
|
|
18472
|
+
1,
|
|
18473
|
+
"state",
|
|
18474
|
+
tuya.valueConverterBasic.lookup((options) => options.invert_cover
|
|
18475
|
+
? { OPEN: tuya.enum(2), STOP: tuya.enum(1), CLOSE: tuya.enum(0) }
|
|
18476
|
+
: { OPEN: tuya.enum(0), STOP: tuya.enum(1), CLOSE: tuya.enum(2) }),
|
|
18477
|
+
],
|
|
18478
|
+
[
|
|
18479
|
+
3,
|
|
18480
|
+
"work_state",
|
|
18481
|
+
tuya.valueConverterBasic.lookup((options) => options.invert_cover ? { opening: tuya.enum(1), closing: tuya.enum(0) } : { opening: tuya.enum(0), closing: tuya.enum(1) }),
|
|
18482
|
+
],
|
|
18483
|
+
[
|
|
18484
|
+
8,
|
|
18485
|
+
null,
|
|
18486
|
+
{
|
|
18487
|
+
from: (v, meta, options, publish) => {
|
|
18488
|
+
return {
|
|
18489
|
+
position: tuya.valueConverter.coverPosition.from(v, meta, options, publish),
|
|
18490
|
+
};
|
|
18491
|
+
},
|
|
18492
|
+
},
|
|
18493
|
+
],
|
|
18494
|
+
[9, "position", tuya.valueConverter.coverPosition],
|
|
18495
|
+
[11, "motor_direction", tuya.valueConverter.tubularMotorDirection],
|
|
18496
|
+
],
|
|
18497
|
+
},
|
|
18498
|
+
},
|
|
18298
18499
|
];
|
|
18299
18500
|
//# sourceMappingURL=tuya.js.map
|