zigbee-herdsman-converters 25.45.0 → 25.47.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 (69) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/devices/bosch.d.ts.map +1 -1
  3. package/dist/devices/bosch.js +82 -563
  4. package/dist/devices/bosch.js.map +1 -1
  5. package/dist/devices/box.d.ts.map +1 -1
  6. package/dist/devices/box.js +5 -4
  7. package/dist/devices/box.js.map +1 -1
  8. package/dist/devices/develco.js +2 -2
  9. package/dist/devices/develco.js.map +1 -1
  10. package/dist/devices/elko.js +4 -4
  11. package/dist/devices/elko.js.map +1 -1
  12. package/dist/devices/evn.d.ts.map +1 -1
  13. package/dist/devices/evn.js +7 -0
  14. package/dist/devices/evn.js.map +1 -1
  15. package/dist/devices/gewiss.js +4 -4
  16. package/dist/devices/gewiss.js.map +1 -1
  17. package/dist/devices/ikea.d.ts.map +1 -1
  18. package/dist/devices/ikea.js +14 -0
  19. package/dist/devices/ikea.js.map +1 -1
  20. package/dist/devices/innr.d.ts.map +1 -1
  21. package/dist/devices/innr.js +15 -1
  22. package/dist/devices/innr.js.map +1 -1
  23. package/dist/devices/lumi.d.ts.map +1 -1
  24. package/dist/devices/lumi.js +11 -6
  25. package/dist/devices/lumi.js.map +1 -1
  26. package/dist/devices/moes.js +4 -4
  27. package/dist/devices/moes.js.map +1 -1
  28. package/dist/devices/nordtronic.d.ts.map +1 -1
  29. package/dist/devices/nordtronic.js +7 -1
  30. package/dist/devices/nordtronic.js.map +1 -1
  31. package/dist/devices/paulmann.d.ts.map +1 -1
  32. package/dist/devices/paulmann.js +10 -3
  33. package/dist/devices/paulmann.js.map +1 -1
  34. package/dist/devices/philips.d.ts.map +1 -1
  35. package/dist/devices/philips.js +6 -9
  36. package/dist/devices/philips.js.map +1 -1
  37. package/dist/devices/schneider_electric.js +1 -1
  38. package/dist/devices/schneider_electric.js.map +1 -1
  39. package/dist/devices/sengled.js +1 -1
  40. package/dist/devices/sengled.js.map +1 -1
  41. package/dist/devices/sonoff.d.ts.map +1 -1
  42. package/dist/devices/sonoff.js +9 -0
  43. package/dist/devices/sonoff.js.map +1 -1
  44. package/dist/devices/third_reality.d.ts.map +1 -1
  45. package/dist/devices/third_reality.js +22 -0
  46. package/dist/devices/third_reality.js.map +1 -1
  47. package/dist/devices/tuya.d.ts.map +1 -1
  48. package/dist/devices/tuya.js +82 -18
  49. package/dist/devices/tuya.js.map +1 -1
  50. package/dist/devices/wirenboard.js +1 -1
  51. package/dist/devices/wirenboard.js.map +1 -1
  52. package/dist/lib/bosch.d.ts +134 -12
  53. package/dist/lib/bosch.d.ts.map +1 -1
  54. package/dist/lib/bosch.js +983 -69
  55. package/dist/lib/bosch.js.map +1 -1
  56. package/dist/lib/exposes.d.ts +0 -1
  57. package/dist/lib/exposes.d.ts.map +1 -1
  58. package/dist/lib/exposes.js +4 -8
  59. package/dist/lib/exposes.js.map +1 -1
  60. package/dist/lib/generateDefinition.js +2 -2
  61. package/dist/lib/generateDefinition.js.map +1 -1
  62. package/dist/lib/modernExtend.d.ts +28 -10
  63. package/dist/lib/modernExtend.d.ts.map +1 -1
  64. package/dist/lib/modernExtend.js +71 -24
  65. package/dist/lib/modernExtend.js.map +1 -1
  66. package/dist/lib/utils.js +3 -3
  67. package/dist/lib/utils.js.map +1 -1
  68. package/dist/models-index.json +1 -1
  69. package/package.json +1 -1
@@ -2737,6 +2737,39 @@ exports.definitions = [
2737
2737
  tuya.whitelabel("GIEX", "GX06", "Soil Moisture Sensor", ["_TZE284_3urschql"]),
2738
2738
  ],
2739
2739
  },
2740
+ {
2741
+ fingerprint: tuya.fingerprint("SGS02Z", ["_TZE284_nt4pquef"]),
2742
+ model: "SGS02Z",
2743
+ vendor: "Tuya",
2744
+ description: "Soil sensor",
2745
+ extend: [tuya.modernExtend.tuyaBase({ dp: true })],
2746
+ exposes: [
2747
+ e.temperature(),
2748
+ e.soil_moisture(),
2749
+ tuya.exposes.temperatureUnit(),
2750
+ e.enum("illuminance_level", ea.STATE, ["low-", "low", "nor", "high", "high+"]).withDescription("Illuminance level"),
2751
+ e.battery(),
2752
+ ],
2753
+ meta: {
2754
+ tuyaDatapoints: [
2755
+ [
2756
+ 2,
2757
+ "illuminance_level",
2758
+ tuya.valueConverterBasic.lookup({
2759
+ "low-": 0,
2760
+ low: 1,
2761
+ nor: 2,
2762
+ high: 3,
2763
+ "high+": 4,
2764
+ }),
2765
+ ],
2766
+ [3, "soil_moisture", tuya.valueConverter.raw],
2767
+ [5, "temperature", tuya.valueConverter.divideBy10],
2768
+ [9, "temperature_unit", tuya.valueConverter.temperatureUnitEnum],
2769
+ [15, "battery", tuya.valueConverter.raw],
2770
+ ],
2771
+ },
2772
+ },
2740
2773
  {
2741
2774
  fingerprint: tuya.fingerprint("TS0601", [
2742
2775
  "_TZE200_ip2akl4w",
@@ -3391,6 +3424,7 @@ exports.definitions = [
3391
3424
  "_TZE204_f5efvtbv",
3392
3425
  "_TZE284_f5efvtbv",
3393
3426
  "_TZE204_lbhh5o6z",
3427
+ "_TZE284_lbhh5o6z",
3394
3428
  ]),
3395
3429
  model: "TS0601_switch_4_gang_1",
3396
3430
  vendor: "Tuya",
@@ -3411,7 +3445,7 @@ exports.definitions = [
3411
3445
  { vendor: "Moes", model: "WS-EUB1-ZG" },
3412
3446
  { vendor: "AVATTO", model: "ZGB-WS-EU" },
3413
3447
  tuya.whitelabel("AVATTO", "WSMD-4", "4 gang switch", ["_TZE204_f5efvtbv", "_TZE284_f5efvtbv"]),
3414
- tuya.whitelabel("AVATTO", "ZWSMD-4", "4 gang switch", ["_TZE204_lbhh5o6z"]),
3448
+ tuya.whitelabel("AVATTO", "ZWSMD-4", "4 gang switch", ["_TZE204_lbhh5o6z", "_TZE284_lbhh5o6z"]),
3415
3449
  tuya.whitelabel("Tuya", "MG-ZG04W", "4 gang switch", ["_TZE204_mexisfik"]),
3416
3450
  ],
3417
3451
  meta: {
@@ -19524,29 +19558,31 @@ exports.definitions = [
19524
19558
  description: "Cover motor",
19525
19559
  extend: [tuya.modernExtend.tuyaBase({ dp: true })],
19526
19560
  exposes: [
19527
- e.enum("control", ea.STATE_SET, ["stop", "open", "close"]).withDescription("Control the motor"),
19528
- e.numeric("time_total", ea.STATE).withUnit("s").withDescription("Total movement time"),
19529
- e.enum("work_state", ea.STATE, ["opening", "closing", "stopped"]).withDescription("Work state"),
19530
- e.enum("dry_contact_switch_mode", ea.STATE_SET, ["mode1", "mode2"]).withDescription("Dry contact switch mode"),
19531
- e.enum("ac_switch_mode", ea.STATE_SET, ["mode1", "mode2"]).withDescription("AC switch mode"),
19532
- e.numeric("speed", ea.STATE_SET).withValueMin(0).withValueMax(100).withDescription("Motor speed"),
19533
- e.numeric("percent_state", ea.STATE).withUnit("%").withDescription("Current percent position"),
19534
- e.enum("dot_mode", ea.STATE_SET, ["single", "multi"]).withDescription("Dot mode"),
19535
- e.numeric("percent_control", ea.STATE_SET).withUnit("%").withValueMin(0).withValueMax(100).withDescription("Set percent position"),
19536
- e.enum("direction", ea.STATE_SET, ["normal", "reversed"]).withDescription("Motor direction"),
19537
- e.enum("border", ea.STATE_SET, ["UP", "Down", "Delete"]).withDescription("Border mode"),
19561
+ e.cover_position().setAccess("position", ea.STATE_SET),
19562
+ e
19563
+ .enum("dot_mode", ea.STATE_SET, ["single", "multi"])
19564
+ .withDescription("Dot mode"), // DP 104
19565
+ e
19566
+ .enum("direction", ea.STATE_SET, ["normal", "reversed"])
19567
+ .withDescription("Motor direction"), // DP 11
19568
+ e
19569
+ .enum("border", ea.STATE_SET, ["UP", "Down", "Delete"])
19570
+ .withDescription("Border mode"), // DP 16
19571
+ e
19572
+ .numeric("speed", ea.STATE_SET)
19573
+ .withValueMin(1)
19574
+ .withValueMax(5)
19575
+ .withDescription("Motor speed"), // DP 103
19576
+ e.text("work_state", ea.STATE),
19538
19577
  ],
19539
19578
  meta: {
19540
19579
  tuyaDatapoints: [
19541
- [1, "control", tuya.valueConverterBasic.lookup({ stop: tuya.enum(1), open: tuya.enum(0), close: tuya.enum(2) })],
19542
- [2, "time_total", tuya.valueConverter.raw],
19580
+ [1, "state", tuya.valueConverterBasic.lookup({ OPEN: tuya.enum(0), STOP: tuya.enum(1), CLOSE: tuya.enum(2) })],
19543
19581
  [3, "work_state", tuya.valueConverterBasic.lookup({ opening: tuya.enum(0), closing: tuya.enum(1), stopped: tuya.enum(2) })],
19544
- [101, "dry_contact_switch_mode", tuya.valueConverterBasic.lookup({ mode1: tuya.enum(0), mode2: tuya.enum(1) })],
19545
- [102, "ac_switch_mode", tuya.valueConverterBasic.lookup({ mode1: tuya.enum(0), mode2: tuya.enum(1) })],
19582
+ [9, "position", tuya.valueConverter.coverPositionInverted],
19583
+ [8, "position", tuya.valueConverter.coverPositionInverted],
19546
19584
  [103, "speed", tuya.valueConverter.raw],
19547
- [8, "percent_state", tuya.valueConverter.raw],
19548
19585
  [104, "dot_mode", tuya.valueConverterBasic.lookup({ single: tuya.enum(0), multi: tuya.enum(1) })],
19549
- [9, "percent_control", tuya.valueConverter.raw],
19550
19586
  [11, "direction", tuya.valueConverterBasic.lookup({ normal: tuya.enum(0), reversed: tuya.enum(1) })],
19551
19587
  [16, "border", tuya.valueConverterBasic.lookup({ Up: tuya.enum(0), Down: tuya.enum(1), Delete: tuya.enum(2) })],
19552
19588
  ],
@@ -20057,5 +20093,33 @@ exports.definitions = [
20057
20093
  ],
20058
20094
  },
20059
20095
  },
20096
+ {
20097
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE284_gyzlwu5q"]),
20098
+ model: "228WZH",
20099
+ vendor: "Tuya",
20100
+ description: "Smoke detector with temperature and humidity sensor",
20101
+ extend: [tuya.modernExtend.tuyaBase({ dp: true })],
20102
+ exposes: [
20103
+ e.smoke(),
20104
+ e.temperature(),
20105
+ e.humidity(),
20106
+ tuya.exposes.batteryState(),
20107
+ e.enum("self_test", ea.STATE, ["Checking", "Check success", "Check failure"]).withDescription("Test button status"),
20108
+ e.enum("silence", ea.STATE_SET, ["ON"]).withDescription("Silence alarm"),
20109
+ e.text("version", ea.STATE_GET).withDescription("Device version"),
20110
+ ],
20111
+ meta: {
20112
+ // All datapoints go in here
20113
+ tuyaDatapoints: [
20114
+ [1, "smoke", tuya.valueConverter.trueFalse0],
20115
+ [9, "self_test", tuya.valueConverterBasic.lookup({ checking: 0, check_success: 1, check_failure: 2 })],
20116
+ [14, "battery_state", tuya.valueConverter.batteryState],
20117
+ [16, "silence", tuya.valueConverter.onOff],
20118
+ [23, "temperature", tuya.valueConverter.divideBy10],
20119
+ [24, "humidity", tuya.valueConverter.raw],
20120
+ [103, "version", tuya.valueConverter.raw], // maybe!?
20121
+ ],
20122
+ },
20123
+ },
20060
20124
  ];
20061
20125
  //# sourceMappingURL=tuya.js.map