zigbee-herdsman-converters 19.31.1 → 19.33.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 (70) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/converters/fromZigbee.d.ts.map +1 -1
  3. package/converters/fromZigbee.js +12 -10
  4. package/converters/fromZigbee.js.map +1 -1
  5. package/converters/toZigbee.d.ts +22 -6
  6. package/converters/toZigbee.d.ts.map +1 -1
  7. package/converters/toZigbee.js +90 -63
  8. package/converters/toZigbee.js.map +1 -1
  9. package/devices/bosch.js +22 -22
  10. package/devices/bosch.js.map +1 -1
  11. package/devices/ctm.d.ts.map +1 -1
  12. package/devices/ctm.js +35 -45
  13. package/devices/ctm.js.map +1 -1
  14. package/devices/custom_devices_diy.js +9 -9
  15. package/devices/custom_devices_diy.js.map +1 -1
  16. package/devices/efekta.js +55 -58
  17. package/devices/efekta.js.map +1 -1
  18. package/devices/eurotronic.d.ts.map +1 -1
  19. package/devices/eurotronic.js +10 -6
  20. package/devices/eurotronic.js.map +1 -1
  21. package/devices/ikea.js +2 -5
  22. package/devices/ikea.js.map +1 -1
  23. package/devices/index.d.ts +10 -1
  24. package/devices/index.d.ts.map +1 -1
  25. package/devices/index.js +2 -0
  26. package/devices/index.js.map +1 -1
  27. package/devices/inovelli.d.ts.map +1 -1
  28. package/devices/inovelli.js +91 -93
  29. package/devices/inovelli.js.map +1 -1
  30. package/devices/kmpcil.d.ts.map +1 -1
  31. package/devices/kmpcil.js +2 -1
  32. package/devices/kmpcil.js.map +1 -1
  33. package/devices/legrand.d.ts.map +1 -1
  34. package/devices/legrand.js +4 -3
  35. package/devices/legrand.js.map +1 -1
  36. package/devices/lumi.js +3 -3
  37. package/devices/lumi.js.map +1 -1
  38. package/devices/lytko.d.ts.map +1 -1
  39. package/devices/lytko.js +5 -5
  40. package/devices/lytko.js.map +1 -1
  41. package/devices/namron.js +4 -4
  42. package/devices/nodon.d.ts.map +1 -1
  43. package/devices/nodon.js +7 -8
  44. package/devices/nodon.js.map +1 -1
  45. package/devices/robb.js +1 -1
  46. package/devices/robb.js.map +1 -1
  47. package/devices/sonoff.js +12 -12
  48. package/devices/tuya.d.ts.map +1 -1
  49. package/devices/tuya.js +286 -13
  50. package/devices/tuya.js.map +1 -1
  51. package/devices/ubisys.js +3 -3
  52. package/devices/zigbeetlc.d.ts +12 -0
  53. package/devices/zigbeetlc.d.ts.map +1 -0
  54. package/devices/zigbeetlc.js +214 -0
  55. package/devices/zigbeetlc.js.map +1 -0
  56. package/lib/legacy.d.ts +0 -6
  57. package/lib/legacy.d.ts.map +1 -1
  58. package/lib/legacy.js +0 -63
  59. package/lib/legacy.js.map +1 -1
  60. package/lib/lumi.js +4 -4
  61. package/lib/lumi.js.map +1 -1
  62. package/lib/modernExtend.d.ts +9 -1
  63. package/lib/modernExtend.d.ts.map +1 -1
  64. package/lib/modernExtend.js +138 -30
  65. package/lib/modernExtend.js.map +1 -1
  66. package/lib/tuya.d.ts +1 -1
  67. package/lib/tuya.d.ts.map +1 -1
  68. package/lib/tuya.js +2 -2
  69. package/lib/tuya.js.map +1 -1
  70. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [19.33.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.32.0...v19.33.0) (2024-05-01)
4
+
5
+
6
+ ### Features
7
+
8
+ * ZCL types revamp ([#7456](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7456)) ([bab4322](https://github.com/Koenkk/zigbee-herdsman-converters/commit/bab43229b331b271b3a17c2a8c76856720f58981))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **detect:** Detect `_TZ3000_gdyjfvgm` as TuYa TS011F_5 [@mircicd](https://github.com/mircicd) https://github.com/Koenkk/zigbee2mqtt/discussions/22356 ([51b1f70](https://github.com/Koenkk/zigbee-herdsman-converters/commit/51b1f7051171d27eb03599d9f14af21be5086e66))
14
+ * Rework and expand occupancy extend ([#7441](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7441)) ([0ca12a2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0ca12a2f105070abea9e4c1cbcd80a103a9a2b36))
15
+
16
+ ## [19.32.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.31.1...v19.32.0) (2024-05-01)
17
+
18
+
19
+ ### Features
20
+
21
+ * **add:** LYWSD03MMC-z, CGDK2, TS0201-z ([#7457](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7457)) ([cb6dd3e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/cb6dd3ed2d1001912ec699025d66939de04c5542))
22
+ * **add:** TS0002_switch_module_4 ([#7469](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7469)) ([6a544cc](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6a544cc798008ef10159e7bc551867dbb29fed19))
23
+ * Improvements for TuYa PJ-1203A ([#7455](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7455)) ([6152028](https://github.com/Koenkk/zigbee-herdsman-converters/commit/61520281646c67873590d24a7d1d290c02a510b0))
24
+ * Support `on_level` for Legrand 067771 ([#7472](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7472)) ([425d755](https://github.com/Koenkk/zigbee-herdsman-converters/commit/425d7551c86ede1f040012d629e9f01e8ece21fd))
25
+ * Use common `motor_state` values for Bosch & Lumi devices ([#7470](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7470)) ([5f578b1](https://github.com/Koenkk/zigbee-herdsman-converters/commit/5f578b163c22db66e87e0968074371243a80d875))
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * Correct attribute name for Aqara curtain hand open ([#7476](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7476)) ([1f91c88](https://github.com/Koenkk/zigbee-herdsman-converters/commit/1f91c882813b7cd289676a3fcc45acacd1fb8c55))
31
+ * **detect:** Detect `_TZ3000_tgddllx4` as Colorock CR-MNZ1 ([#7474](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7474)) ([1fd4f7b](https://github.com/Koenkk/zigbee-herdsman-converters/commit/1fd4f7bed34dd56fbc620f1bc87ea48ddf9a08e9))
32
+ * Fix `cover_position_tilt_disable_report` ([#7467](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7467)) ([9db6203](https://github.com/Koenkk/zigbee-herdsman-converters/commit/9db6203c657978107f5bfc249278bba5bae4c5f5))
33
+ * Fix Eurotronic Zigbee Spirit system mode/host flags ([#7473](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7473)) ([b4a0cba](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b4a0cba4922ee12bc7c056d92919fe7e3b0ea37f))
34
+ * Fix ROBB ROB_200-024-0 battery percentage divided by 2 https://github.com/Koenkk/zigbee2mqtt/issues/22348 ([3839ea6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/3839ea6df4f0e66d9fc6f01faffd1298d7e508e5))
35
+ * Fix typo "indetify" to "identify" ([#7468](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7468)) ([584b0b5](https://github.com/Koenkk/zigbee-herdsman-converters/commit/584b0b5c16c2bad9a7f41932ac42bf35deb6cec6))
36
+ * **ignore:** Revert "fix(ignore): fix datatype" ([04e4a50](https://github.com/Koenkk/zigbee-herdsman-converters/commit/04e4a50673c29888f3a488ccd17473ec10af8432))
37
+ * **ignore:** update dependencies ([#7477](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7477)) ([9845942](https://github.com/Koenkk/zigbee-herdsman-converters/commit/984594233a3cec84900028e7deef402e38085d51))
38
+
3
39
  ## [19.31.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.31.0...v19.31.1) (2024-04-29)
4
40
 
5
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,EAAE,EAAE,WAAW,EAAuB,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6wBpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
@@ -4873,22 +4873,24 @@ const converters2 = {
4873
4873
  convert: async (model, msg, publish, options, meta) => {
4874
4874
  const result = await converters1.thermostat.convert(model, msg, publish, options, meta);
4875
4875
  if (result) {
4876
- // system_mode is always 'heat', we set it below based on eurotronic_host_flags
4877
- delete result['system_mode'];
4878
4876
  if (typeof msg.data[0x4003] == 'number') {
4879
4877
  result.current_heating_setpoint = (0, utils_1.precisionRound)(msg.data[0x4003], 2) / 100;
4880
4878
  }
4881
4879
  if (typeof msg.data[0x4008] == 'number') {
4882
- result.child_protection = (msg.data[0x4008] & (1 << 7)) != 0;
4883
- result.mirror_display = (msg.data[0x4008] & (1 << 1)) != 0;
4884
- result.boost = (msg.data[0x4008] & 1 << 2) != 0;
4885
- result.window_open = (msg.data[0x4008] & (1 << 4)) != 0;
4886
- if (result.boost)
4887
- result.system_mode = constants.thermostatSystemModes[4];
4888
- else if (result.window_open)
4880
+ result.child_lock = (msg.data[0x4008] & 0x80) != 0 ? 'LOCK' : 'UNLOCK';
4881
+ result.mirror_display = (msg.data[0x4008] & 0x02) != 0 ? 'ON' : 'OFF';
4882
+ // This seems broken... We need to write 0x20 to turn it off and 0x10 to set
4883
+ // it to auto mode. However, when it reports the flag, it will report 0x10
4884
+ // when it's off, and nothing at all when it's in auto mode
4885
+ if ((msg.data[0x4008] & 0x10) != 0) { // reports auto -> setting to force_off
4889
4886
  result.system_mode = constants.thermostatSystemModes[0];
4890
- else
4887
+ }
4888
+ else if ((msg.data[0x4008] & 0x04) != 0) { // always_on
4889
+ result.system_mode = constants.thermostatSystemModes[4];
4890
+ }
4891
+ else { // auto
4891
4892
  result.system_mode = constants.thermostatSystemModes[1];
4893
+ }
4892
4894
  }
4893
4895
  if (typeof msg.data[0x4002] == 'number') {
4894
4896
  result.error_status = msg.data[0x4002];