zigbee-herdsman-converters 23.1.0 → 23.2.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/devices/dqsmart.d.ts +3 -0
  3. package/dist/devices/dqsmart.d.ts.map +1 -0
  4. package/dist/devices/dqsmart.js +17 -0
  5. package/dist/devices/dqsmart.js.map +1 -0
  6. package/dist/devices/efekta.d.ts.map +1 -1
  7. package/dist/devices/efekta.js +295 -0
  8. package/dist/devices/efekta.js.map +1 -1
  9. package/dist/devices/enkin.d.ts +3 -0
  10. package/dist/devices/enkin.d.ts.map +1 -0
  11. package/dist/devices/enkin.js +14 -0
  12. package/dist/devices/enkin.js.map +1 -0
  13. package/dist/devices/index.d.ts.map +1 -1
  14. package/dist/devices/index.js +4 -0
  15. package/dist/devices/index.js.map +1 -1
  16. package/dist/devices/lumi.d.ts.map +1 -1
  17. package/dist/devices/lumi.js +57 -0
  18. package/dist/devices/lumi.js.map +1 -1
  19. package/dist/devices/moes.js +1 -1
  20. package/dist/devices/moes.js.map +1 -1
  21. package/dist/devices/nodon.js +1 -1
  22. package/dist/devices/nodon.js.map +1 -1
  23. package/dist/devices/pushok.d.ts.map +1 -1
  24. package/dist/devices/pushok.js +31 -0
  25. package/dist/devices/pushok.js.map +1 -1
  26. package/dist/devices/sinope.js +5 -5
  27. package/dist/devices/sinope.js.map +1 -1
  28. package/dist/devices/third_reality.js +1 -1
  29. package/dist/devices/third_reality.js.map +1 -1
  30. package/dist/devices/tuya.d.ts.map +1 -1
  31. package/dist/devices/tuya.js +192 -6
  32. package/dist/devices/tuya.js.map +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +12 -5
  35. package/dist/index.js.map +1 -1
  36. package/dist/lib/lumi.d.ts +3 -1
  37. package/dist/lib/lumi.d.ts.map +1 -1
  38. package/dist/lib/lumi.js +13 -6
  39. package/dist/lib/lumi.js.map +1 -1
  40. package/dist/models-index.json +1 -1
  41. package/package.json +1 -1
@@ -860,7 +860,7 @@ exports.definitions = [
860
860
  whiteLabel: [
861
861
  { vendor: "Tesla Smart", model: "TSL-SEN-SMOKE" },
862
862
  { vendor: "Dongguan Daying Electornics Technology", model: "YG400A" },
863
- tuya.whitelabel("Tuya", "TS0205_smoke_2", "Smoke sensor", ["_TZ3210_up3pngle"]),
863
+ tuya.whitelabel("Tuya", "TS0205_smoke_2", "Optical smoke sensor (model YG500A on the PCB)", ["_TZ3210_up3pngle"]),
864
864
  tuya.whitelabel("Nedis", "ZBDS10WT", "Smoke sensor", ["_TYZB01_wqcac7lo"]),
865
865
  ],
866
866
  // Configure battery % fails
@@ -1196,7 +1196,7 @@ exports.definitions = [
1196
1196
  },
1197
1197
  },
1198
1198
  {
1199
- fingerprint: tuya.fingerprint("TS0601", ["_TZE200_vvmbj46n", "_TZE284_vvmbj46n"]),
1199
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE200_vvmbj46n", "_TZE284_vvmbj46n", "_TZE200_w6n8jeuu"]),
1200
1200
  model: "ZTH05Z",
1201
1201
  vendor: "Tuya",
1202
1202
  description: "Temperature and humidity sensor",
@@ -1436,10 +1436,7 @@ exports.definitions = [
1436
1436
  e.numeric("alarm_time", ea.STATE_SET).withValueMin(1).withValueMax(180).withValueStep(1).withUnit("s").withDescription("Alarm time"),
1437
1437
  e.binary("preheat", ea.STATE, true, false).withDescription("Indicates sensor preheat is active"),
1438
1438
  ],
1439
- whiteLabel: [
1440
- tuya.whitelabel("DYGSM", "DY-RQ500A", "Gas sensor", ["_TZE204_zougpkpy"]),
1441
- tuya.whitelabel("DYGSM", "DY-RQ500A", "Gas sensor", ["_TZE204_chbyv06x"]),
1442
- ],
1439
+ whiteLabel: [tuya.whitelabel("DYGSM", "DY-RQ500A", "Gas sensor", ["_TZE204_zougpkpy", "_TZE204_chbyv06x", "_TZE284_chbyv06x"])],
1443
1440
  meta: {
1444
1441
  tuyaDatapoints: [
1445
1442
  [1, "gas", tuya.valueConverter.trueFalseEnum0],
@@ -13291,6 +13288,195 @@ exports.definitions = [
13291
13288
  queryIntervalSeconds: 10,
13292
13289
  }),
13293
13290
  },
13291
+ {
13292
+ fingerprint: [{ modelID: "TS0601", manufacturerName: "_TZE284_6ocnqlhn" }],
13293
+ model: "TO-Q-SYS-J2T",
13294
+ vendor: "Tongou",
13295
+ description: "Din rail smart meter",
13296
+ fromZigbee: [tuya.fz.datapoints, tuya.fz.gateway_connection_status],
13297
+ toZigbee: [tuya.tz.datapoints],
13298
+ onEvent: tuya.onEvent({ respondToMcuVersionResponse: false, queryIntervalSeconds: 10 }),
13299
+ configure: async (device, coordinatorEndpoint) => {
13300
+ await tuya.configureMagicPacket(device, coordinatorEndpoint);
13301
+ // Required to get the device to start reporting
13302
+ await device.getEndpoint(1).command("manuSpecificTuya", "dataQuery", {});
13303
+ },
13304
+ exposes: [
13305
+ tuya.exposes.switch(),
13306
+ e.power(),
13307
+ e.current(),
13308
+ e.voltage(),
13309
+ e.energy(),
13310
+ e.ac_frequency(),
13311
+ e.power_factor().withUnit("%"),
13312
+ e.numeric("temperature", ea.STATE).withUnit("°C").withDescription("Current temperature"),
13313
+ e
13314
+ .enum("event", ea.STATE, [
13315
+ "normal",
13316
+ "over_current_trip",
13317
+ "over_power_trip",
13318
+ "high_temp_trip",
13319
+ "over_voltage_trip",
13320
+ "under_voltage_trip",
13321
+ "over_current_alarm",
13322
+ "over_power_alarm",
13323
+ "high_temp_alarm",
13324
+ "over_voltage_alarm",
13325
+ "under_voltage_alarm",
13326
+ "remote_on",
13327
+ "remote_off",
13328
+ "manual_on",
13329
+ "manual_off",
13330
+ "leakage_trip",
13331
+ "leakage_alarm",
13332
+ "restore_default",
13333
+ "automatic_closing",
13334
+ "electricity_shortage",
13335
+ "electricity_shortage_alarm",
13336
+ "timing_switch_On",
13337
+ "timing_switch_off",
13338
+ ])
13339
+ .withDescription("Last event of the device"),
13340
+ e.enum("over_current_setting", ea.STATE_SET, ["Ignore", "Alarm", "Trip"]).withDescription("Over current setting"),
13341
+ e
13342
+ .numeric("over_current_threshold", ea.STATE_SET)
13343
+ .withUnit("A")
13344
+ .withDescription("Setup the value on the device")
13345
+ .withValueMin(1)
13346
+ .withValueMax(50),
13347
+ e.enum("over_voltage_setting", ea.STATE_SET, ["Ignore", "Alarm", "Trip"]).withDescription("Over voltage setting"),
13348
+ e
13349
+ .numeric("over_voltage_threshold", ea.STATE_SET)
13350
+ .withUnit("V")
13351
+ .withDescription("Setup value on the device")
13352
+ .withValueMin(240)
13353
+ .withValueMax(295),
13354
+ e.enum("under_voltage_setting", ea.STATE_SET, ["Ignore", "Alarm", "Trip"]).withDescription("Under voltage setting"),
13355
+ e
13356
+ .numeric("under_voltage_threshold", ea.STATE_SET)
13357
+ .withUnit("V")
13358
+ .withDescription("Setup value on the device")
13359
+ .withValueMin(90)
13360
+ .withValueMax(220),
13361
+ e.enum("temperature_setting", ea.STATE_SET, ["Ignore", "Alarm", "Trip"]).withDescription("Temperature setting"),
13362
+ e
13363
+ .numeric("temperature_threshold", ea.STATE_SET)
13364
+ .withUnit("°C")
13365
+ .withDescription("Setup value on the device")
13366
+ .withValueMin(-25)
13367
+ .withValueMax(80),
13368
+ e.enum("over_power_setting", ea.STATE_SET, ["Ignore", "Alarm", "Trip"]).withDescription("Over power setting"),
13369
+ e
13370
+ .numeric("over_power_threshold", ea.STATE_SET)
13371
+ .withUnit("W")
13372
+ .withDescription("Setup value on the device")
13373
+ .withValueMin(1000)
13374
+ .withValueMax(26000),
13375
+ e.numeric("test1", ea.STATE), // ?
13376
+ e.numeric("test5", ea.STATE), // ?
13377
+ ],
13378
+ meta: {
13379
+ tuyaDatapoints: [
13380
+ [1, "energy", tuya.valueConverter.divideBy100],
13381
+ [6, null, tuya.valueConverter.phaseVariant2],
13382
+ [13, "test1", tuya.valueConverter.raw], // ?
13383
+ [15, "leakage_current", tuya.valueConverter.raw],
13384
+ [16, "state", tuya.valueConverter.onOff],
13385
+ [32, "ac_frequency", tuya.valueConverter.divideBy100],
13386
+ [50, "power_factor", tuya.valueConverter.raw],
13387
+ [
13388
+ 102,
13389
+ "over_voltage_setting",
13390
+ tuya.valueConverterBasic.lookup({
13391
+ Ignore: tuya.enum(0),
13392
+ Alarm: tuya.enum(1),
13393
+ Trip: tuya.enum(2),
13394
+ }),
13395
+ ],
13396
+ [
13397
+ 103,
13398
+ "under_voltage_setting",
13399
+ tuya.valueConverterBasic.lookup({
13400
+ Ignore: tuya.enum(0),
13401
+ Alarm: tuya.enum(1),
13402
+ Trip: tuya.enum(2),
13403
+ }),
13404
+ ],
13405
+ [
13406
+ 104,
13407
+ "over_current_setting",
13408
+ tuya.valueConverterBasic.lookup({
13409
+ Ignore: tuya.enum(0),
13410
+ Alarm: tuya.enum(1),
13411
+ Trip: tuya.enum(2),
13412
+ }),
13413
+ ],
13414
+ [
13415
+ 105,
13416
+ "over_power_setting",
13417
+ tuya.valueConverterBasic.lookup({
13418
+ Ignore: tuya.enum(0),
13419
+ Alarm: tuya.enum(1),
13420
+ Trip: tuya.enum(2),
13421
+ }),
13422
+ ],
13423
+ [
13424
+ 107,
13425
+ "temperature_setting",
13426
+ tuya.valueConverterBasic.lookup({
13427
+ Ignore: tuya.enum(0),
13428
+ Alarm: tuya.enum(1),
13429
+ Trip: tuya.enum(2),
13430
+ }),
13431
+ ],
13432
+ [
13433
+ 108,
13434
+ "leakage_setting",
13435
+ tuya.valueConverterBasic.lookup({
13436
+ Ignore: tuya.enum(0),
13437
+ Alarm: tuya.enum(1),
13438
+ Trip: tuya.enum(2),
13439
+ }),
13440
+ ],
13441
+ [
13442
+ 110,
13443
+ "event",
13444
+ tuya.valueConverterBasic.lookup({
13445
+ normal: 0,
13446
+ over_current_trip: 1,
13447
+ over_power_trip: 2,
13448
+ high_temp_trip: 3,
13449
+ over_voltage_trip: 4,
13450
+ under_voltage_trip: 5,
13451
+ over_current_alarm: 6,
13452
+ over_power_alarm: 7,
13453
+ high_temp_alarm: 8,
13454
+ over_voltage_alarm: 9,
13455
+ under_voltage_alarm: 10,
13456
+ remote_on: 11,
13457
+ remote_off: 12,
13458
+ manual_on: 13,
13459
+ manual_off: 14,
13460
+ leakage_trip: 15,
13461
+ leakage_alarm: 16,
13462
+ restore_default: 17,
13463
+ automatic_closing: 18,
13464
+ electricity_shortage: 19,
13465
+ electricity_shortage_alarm: 20,
13466
+ timing_switch_on: 21,
13467
+ timing_switch_off: 22,
13468
+ }),
13469
+ ],
13470
+ [114, "over_current_threshold", tuya.valueConverter.raw],
13471
+ [115, "over_voltage_threshold", tuya.valueConverter.raw],
13472
+ [116, "under_voltage_threshold", tuya.valueConverter.raw],
13473
+ [118, "temperature_threshold", tuya.valueConverter.divideBy10],
13474
+ [119, "over_power_threshold", tuya.valueConverter.raw],
13475
+ [125, "test5", tuya.valueConverter.raw], // ?
13476
+ [131, "temperature", tuya.valueConverter.divideBy10],
13477
+ ],
13478
+ },
13479
+ },
13294
13480
  {
13295
13481
  fingerprint: tuya.fingerprint("TS0601", ["_TZE204_l6llgoxq"]),
13296
13482
  model: "EA4161C-BI",