zigbee-herdsman-converters 21.0.0-pre.1 → 21.0.0-pre.2

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 (73) hide show
  1. package/CHANGELOG.md +123 -0
  2. package/converters/fromZigbee.d.ts +2 -1
  3. package/converters/fromZigbee.d.ts.map +1 -1
  4. package/converters/fromZigbee.js +55 -2
  5. package/converters/fromZigbee.js.map +1 -1
  6. package/devices/bosch.js +1 -1
  7. package/devices/bosch.js.map +1 -1
  8. package/devices/candeo.d.ts.map +1 -1
  9. package/devices/candeo.js +15 -72
  10. package/devices/candeo.js.map +1 -1
  11. package/devices/custom_devices_diy.d.ts.map +1 -1
  12. package/devices/custom_devices_diy.js +8 -1
  13. package/devices/custom_devices_diy.js.map +1 -1
  14. package/devices/ecodim.js +2 -2
  15. package/devices/ecodim.js.map +1 -1
  16. package/devices/elko.js +3 -3
  17. package/devices/elko.js.map +1 -1
  18. package/devices/gledopto.d.ts.map +1 -1
  19. package/devices/gledopto.js +13 -2
  20. package/devices/gledopto.js.map +1 -1
  21. package/devices/ikea.d.ts.map +1 -1
  22. package/devices/ikea.js +21 -7
  23. package/devices/ikea.js.map +1 -1
  24. package/devices/index.d.ts.map +1 -1
  25. package/devices/index.js +4 -0
  26. package/devices/index.js.map +1 -1
  27. package/devices/innr.d.ts.map +1 -1
  28. package/devices/innr.js +1 -0
  29. package/devices/innr.js.map +1 -1
  30. package/devices/lumi.d.ts.map +1 -1
  31. package/devices/lumi.js +7 -0
  32. package/devices/lumi.js.map +1 -1
  33. package/devices/schneider_electric.d.ts.map +1 -1
  34. package/devices/schneider_electric.js +103 -0
  35. package/devices/schneider_electric.js.map +1 -1
  36. package/devices/somfy.d.ts.map +1 -1
  37. package/devices/somfy.js +2 -9
  38. package/devices/somfy.js.map +1 -1
  39. package/devices/sonoff.d.ts.map +1 -1
  40. package/devices/sonoff.js +226 -0
  41. package/devices/sonoff.js.map +1 -1
  42. package/devices/sunricher.d.ts.map +1 -1
  43. package/devices/sunricher.js +14 -0
  44. package/devices/sunricher.js.map +1 -1
  45. package/devices/tech.d.ts +4 -0
  46. package/devices/tech.d.ts.map +1 -0
  47. package/devices/tech.js +118 -0
  48. package/devices/tech.js.map +1 -0
  49. package/devices/tuya.d.ts.map +1 -1
  50. package/devices/tuya.js +90 -16
  51. package/devices/tuya.js.map +1 -1
  52. package/devices/yandex.d.ts +4 -0
  53. package/devices/yandex.d.ts.map +1 -0
  54. package/devices/yandex.js +398 -0
  55. package/devices/yandex.js.map +1 -0
  56. package/index.d.ts +4 -3
  57. package/index.d.ts.map +1 -1
  58. package/index.js +90 -45
  59. package/index.js.map +1 -1
  60. package/lib/exposes.d.ts +1 -0
  61. package/lib/exposes.d.ts.map +1 -1
  62. package/lib/exposes.js +8 -5
  63. package/lib/exposes.js.map +1 -1
  64. package/lib/modernExtend.d.ts +1 -0
  65. package/lib/modernExtend.d.ts.map +1 -1
  66. package/lib/modernExtend.js +23 -1
  67. package/lib/modernExtend.js.map +1 -1
  68. package/lib/types.d.ts +14 -18
  69. package/lib/types.d.ts.map +1 -1
  70. package/lib/utils.d.ts +1 -1
  71. package/lib/utils.d.ts.map +1 -1
  72. package/lib/utils.js.map +1 -1
  73. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,128 @@
1
1
  # Changelog
2
2
 
3
+ ## [20.51.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.50.0...v20.51.0) (2024-11-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * **add:** SR-ZG9042MP ([#8347](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8347)) ([f4ff3d8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f4ff3d8e2e477f2186c81e3fd1597a5403e51049))
9
+ * Support OTA for Tuya TS0201 ([#8350](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8350)) ([8e3d26e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8e3d26e5cce136a65d0283800e480414ea769560))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **detect:** Detect `_TZE200_ya4ft0w4` as Tuya ZY-M100-24G wall mounted variant ([#8352](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8352)) ([237923b](https://github.com/Koenkk/zigbee-herdsman-converters/commit/237923b67080fbe048e3153d96c7433b10644a63))
15
+ * **detect:** Detect `_TZE204_o3x45p96` as AVATTO_TRV06 ([#8349](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8349)) ([865478b](https://github.com/Koenkk/zigbee-herdsman-converters/commit/865478b854647eddcabaa92dbf79aa6d8db4f15d))
16
+ * **detect:** Detect `_TZE204_ogkdpgy2` as Tuya TS0601_co2_sensor ([#8354](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8354)) ([53d6b99](https://github.com/Koenkk/zigbee-herdsman-converters/commit/53d6b99555114b760394e32857f17052e6a1e1f2))
17
+ * **detect:** Detect `RBSH-TRV1-ZB-EU` as Bosch BTH-RA ([#8351](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8351)) ([d7dca0b](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d7dca0b0f68bf8b2f6feb1a6587a2f33a8b5d665))
18
+
19
+ ## [20.50.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.49.1...v20.50.0) (2024-11-20)
20
+
21
+
22
+ ### Features
23
+
24
+ * **add:** AVATTO_TRV06 ([#8343](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8343)) ([3c2d52c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/3c2d52c601d10a549fbe7f127c56f1080497c131))
25
+ * **add:** YNDX_00537, YNDX_00538, YNDX_00534, YNDX_00535, YNDX_00531, YNDX_00532 ([#8345](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8345)) ([4afed8c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/4afed8c3634407b92d6c0154276074f7ca7e939b))
26
+ * **add:** ZSS-QT-LS-C ([#8294](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8294)) ([18b80ed](https://github.com/Koenkk/zigbee-herdsman-converters/commit/18b80ed29e069751f7bd9bcf2d75ffbe8e65f6d4))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * Add Nedis ZBWS40WT as whitelabel for Tuya TS0044 ([#8342](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8342)) ([545b2af](https://github.com/Koenkk/zigbee-herdsman-converters/commit/545b2afcea4b6eed0045f4f5e99c3ee53f491598))
32
+ * Add new fingerprint for GL-C-007-2ID https://github.com/Koenkk/zigbee2mqtt/issues/24745 ([ac7e475](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ac7e4758c3af5ff924bcb75fc28a51340ac24f1d))
33
+ * Elko Super Thermostat: configurable reporting of local temperature based on sensor choice ([#8313](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8313)) ([9c0d004](https://github.com/Koenkk/zigbee-herdsman-converters/commit/9c0d004b0d84f09773e059321eb8208b39a7f1b2))
34
+
35
+ ## [20.49.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.49.0...v20.49.1) (2024-11-19)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **ignore:** fix f982c46bda87f66191d47f2d22d831e106ad7cfa ([0e3eb39](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0e3eb398b9533875600583bc148ad18975b40c47))
41
+
42
+ ## [20.49.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.48.0...v20.49.0) (2024-11-19)
43
+
44
+
45
+ ### Features
46
+
47
+ * **add:** HHST001 ([#8337](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8337)) ([fcf278d](https://github.com/Koenkk/zigbee-herdsman-converters/commit/fcf278d76a6caa475b548fa46d44d1daf550eb4a))
48
+ * **add:** SR-ZG2835PAC-AU ([#8338](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8338)) ([d66acfc](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d66acfc8b5d1475ba2ca7cc978d0487521b2ab91))
49
+ * **add:** VNTH-T2 ([#8323](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8323)) ([f982c46](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f982c46bda87f66191d47f2d22d831e106ad7cfa))
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * **detect:** Detect `_TZE284_o3x45p96` as AVATTO TRV06_1 ([#8339](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8339)) ([14f56db](https://github.com/Koenkk/zigbee-herdsman-converters/commit/14f56dbd43353a0d1a0bda90e06047b45ba9796f))
55
+ * Fixed presence state for Tuya RT_ZCZ03Z (_TZE204_uxllnywp) ([#8335](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8335)) ([27c4c48](https://github.com/Koenkk/zigbee-herdsman-converters/commit/27c4c48aa3f5f3fdb015079b437c66739c7bf398))
56
+
57
+ ## [20.48.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.47.0...v20.48.0) (2024-11-18)
58
+
59
+
60
+ ### Features
61
+
62
+ * **add:** EFR32MG21.Router ([#8334](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8334)) ([42004da](https://github.com/Koenkk/zigbee-herdsman-converters/commit/42004da71f36bbf5d0c976fd4976983010faa971))
63
+ * **add:** NH3527A ([#8300](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8300)) ([6dd98f8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6dd98f89a9fc09a01f2396ec37b1ea83741ab1ba))
64
+ * **add:** ZBM5-1C-120, ZBM5-2C-120, ZBM5-3C-120 ([#8314](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8314)) ([6113ce2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6113ce277075e6be2ffacea0a484299d959e16ad))
65
+ * **add:** ZNTGMK12LM ([#8315](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8315)) ([38644c2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/38644c287a09508c415c1c0682833bdb64c82fb7))
66
+ * Expose switch type for TS110E_1gang_2 ([#8326](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8326)) ([f711098](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f7110985024ac51bb1523ac389de843abf186f95))
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * Detect new model of LED2109G6 and fix model of LED2201G8 ([#8330](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8330)) ([df7e3eb](https://github.com/Koenkk/zigbee-herdsman-converters/commit/df7e3eb1c8453ec3702fb5ca2dd68b599c1e7a5a))
72
+ * **detect:** Detect `_TZ3000_9kbbfeho` as Tuya TS0222_light ([#8318](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8318)) ([5466e60](https://github.com/Koenkk/zigbee-herdsman-converters/commit/5466e6096970b24cb4f6a68aae0baacde355bb24))
73
+ * **detect:** Detect `_TZ3000_upgcbody` as Tuya TS0207_water_leak_detector_1 https://github.com/Koenkk/zigbee2mqtt/issues/24759 ([16efcd2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/16efcd232b9167285ab55e60e5011c3831ffafd4))
74
+ * **detect:** Detect `_TZE200_ojtqawav` as Tuya TS0601_switch_1_gang https://github.com/Koenkk/zigbee2mqtt/issues/24747 ([347eeb3](https://github.com/Koenkk/zigbee-herdsman-converters/commit/347eeb3a4ce88bf7f2eb9490f8881e1d45f5e04c))
75
+ * **detect:** Detect `_TZE200_qjp4ynvi` as Tuya TS0601_thermostat ([#8319](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8319)) ([3f3549f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/3f3549f79a38e8daabbca41760672bc73e0c42c6))
76
+ * **detect:** Detect `TRADFRIbulbG125E26WSopal440lm` as IKEA LED1936G5 ([#8328](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8328)) ([c7e6744](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c7e6744be4ee25b5113a0b6487114f316612588e))
77
+ * Fix overall power for TS0601_3_phase_clamp_meter ([#8329](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8329)) ([71b0617](https://github.com/Koenkk/zigbee-herdsman-converters/commit/71b06171d41389afdde402a8f4b6afc7210baf89))
78
+ * Fix Somfy SOMFY-1241752 integration ([#8325](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8325)) ([0306b39](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0306b3969990effe612477f6f93aa47364004e32))
79
+ * Fixed LoraTap SC400ZB-EU calibration time reading ([#8321](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8321)) ([761650e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/761650e1fe2833acd3c02a4722ad6f778b77a80a))
80
+ * **ignore:** fix 42004da71f36bbf5d0c976fd4976983010faa971 ([936e0f4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/936e0f4f1b999f520676bc07076d1c4076624171))
81
+ * **ignore:** fix c7e6744be4ee25b5113a0b6487114f316612588e ([fc44f1c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/fc44f1cce4a903061f82ee203be2029815593b81))
82
+
83
+ ## [20.47.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.46.0...v20.47.0) (2024-11-14)
84
+
85
+
86
+ ### Features
87
+
88
+ * **add:** C203 ([#8309](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8309)) ([f9fdbd5](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f9fdbd541653fbf05347caea66d999e815065cd0))
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **detect:** Detect `_TZE204_g4au0afs` as Tuya TS0601_switch_6_gang https://github.com/Koenkk/zigbee2mqtt/issues/24743 ([8e8cefc](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8e8cefc4307d735f61dad076ac9e99bc9f337b65))
94
+ * **detect:** Detect `_TZE284_p3dbf6qs` as Tuya TS0601_thermostat_3 https://github.com/Koenkk/zigbee2mqtt/issues/24742 ([1e70867](https://github.com/Koenkk/zigbee-herdsman-converters/commit/1e708678d3c6bb58cccede24ef314ffe5c65f3f4))
95
+ * **detect:** Detect `SNZB-05` as Tuya TS0207_water_leak_detector https://github.com/Koenkk/zigbee2mqtt/issues/24759 ([4c83855](https://github.com/Koenkk/zigbee-herdsman-converters/commit/4c83855f37f2219aa9c886b892421b781dc23eca))
96
+
97
+ ## [20.46.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.45.0...v20.46.0) (2024-11-13)
98
+
99
+
100
+ ### Features
101
+
102
+ * Add Livarno Home (Lidl) HG08131A, HG08131B, HG08131C ([#8307](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8307)) ([963d9a9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/963d9a9eaf06e64c0751f3adb4c623d9692729b1))
103
+ * Support OTA for RB 272 T ([#8310](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8310)) ([3e08ed6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/3e08ed6d294ef5ce428a03afbb6cfcafe67d63af))
104
+
105
+
106
+ ### Bug Fixes
107
+
108
+ * Add back colour to Gledopto GL-C-003P ([#8305](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8305)) ([829eb5f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/829eb5fff07f34a988596b4b92a9793e3759d978))
109
+ * **detect:** Detect `_TZE200_9xfjixap` as Avatto ME167 ([#8312](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8312)) ([14f3c9f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/14f3c9fcabf62210e817aaa1bc6ffa4c09dec7c9))
110
+ * Fix attribute name for Elko Super RF ([#8308](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8308)) ([ebbe3b2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ebbe3b247c6ad546bbd6c53efc9920c8fe60899d))
111
+
112
+ ## [20.45.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.44.0...v20.45.0) (2024-11-12)
113
+
114
+
115
+ ### Features
116
+
117
+ * **add:** TS0105 https://github.com/Koenkk/zigbee2mqtt/issues/24722 ([ebfb2d5](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ebfb2d55d31fffc3c72e075bdc0871a9c2a29fa8))
118
+
119
+
120
+ ### Bug Fixes
121
+
122
+ * Fix EcoDim ED-10012 and ED-10014 battery % https://github.com/Koenkk/zigbee2mqtt/issues/24698 ([8047ae2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/8047ae24e0c1c15bf703c42517cab7e5b8fb9ec6))
123
+ * Fix hasAlreadyProcessedMessage when device has multiple endpoints ([#8301](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8301)) ([ba97340](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ba97340d2416dfde77794d780fec9c44d403fa90))
124
+ * Fix preset value for Tuya `_TZE200_viy9ihs7` ([#8298](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8298)) ([e96ca33](https://github.com/Koenkk/zigbee-herdsman-converters/commit/e96ca33e1c2c73156e1f7f0b766e79d9556a0577))
125
+
3
126
  ## [20.44.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.43.0...v20.44.0) (2024-11-10)
4
127
 
5
128
 
@@ -845,7 +845,8 @@ declare const converters: {
845
845
  elko_thermostat: {
846
846
  cluster: string;
847
847
  type: string[];
848
- convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValue, meta: Fz.Meta) => KeyValueAny;
848
+ options: exposes.Binary[];
849
+ convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValue, meta: Fz.Meta) => KeyValue;
849
850
  };
850
851
  ias_smoke_alarm_1_develco: {
851
852
  cluster: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAC,EAAE,EAAE,QAA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;;;;;;;;;;;;;;;;;;;;;;;;+IA4rHiD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAo0BpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
@@ -1878,13 +1878,38 @@ const converters1 = {
1878
1878
  elko_thermostat: {
1879
1879
  cluster: 'hvacThermostat',
1880
1880
  type: ['attributeReport', 'readResponse'],
1881
+ options: [exposes.options.local_temperature_based_on_sensor()],
1881
1882
  convert: (model, msg, publish, options, meta) => {
1882
- const result = {};
1883
+ const result = converters1.thermostat.convert(model, msg, publish, options, meta);
1883
1884
  const data = msg.data;
1885
+ if (data.localTemp !== undefined) {
1886
+ const value = (0, utils_1.precisionRound)(msg.data['localTemp'], 2) / 100;
1887
+ const valuesFloorSensor = ['floor', 'supervisor_floor'];
1888
+ const sensorType = meta.state.sensor;
1889
+ const floorTemperature = meta.state.floor_temp;
1890
+ if (valuesFloorSensor.includes(sensorType) && options.local_temperature_based_on_sensor) {
1891
+ result[(0, utils_1.postfixWithEndpointName)('local_temperature', msg, model, meta)] = floorTemperature / 100;
1892
+ }
1893
+ else {
1894
+ if (value >= -273.15) {
1895
+ result[(0, utils_1.postfixWithEndpointName)('local_temperature', msg, model, meta)] = value;
1896
+ }
1897
+ }
1898
+ }
1884
1899
  if (data.elkoDisplayText !== undefined) {
1885
1900
  // Display text
1886
1901
  result.display_text = data['elkoDisplayText'];
1887
1902
  }
1903
+ if (data.elkoSensor !== undefined) {
1904
+ // Sensor
1905
+ const sensorModeLookup = {
1906
+ 0: 'air',
1907
+ 1: 'floor',
1908
+ 3: 'supervisor_floor',
1909
+ };
1910
+ const value = utils.getFromLookup(data['elkoSensor'], sensorModeLookup);
1911
+ result.sensor = value;
1912
+ }
1888
1913
  if (data.elkoPowerStatus !== undefined) {
1889
1914
  // Power status
1890
1915
  result.system_mode = data['elkoPowerStatus'] ? 'heat' : 'off';
@@ -1901,6 +1926,34 @@ const converters1 = {
1901
1926
  // Calibration
1902
1927
  result.local_temperature_calibration = (0, utils_1.precisionRound)(data['elkoCalibration'], 2) / 10;
1903
1928
  }
1929
+ if (data.elkoLoad !== undefined) {
1930
+ // Load
1931
+ result.load = data['elkoLoad'];
1932
+ }
1933
+ if (data.elkoRegulatorMode !== undefined) {
1934
+ // Regulator mode
1935
+ result.regulator_mode = data['elkoRegulatorMode'] ? 'regulator' : 'thermostat';
1936
+ }
1937
+ if (data.elkoMeanPower !== undefined) {
1938
+ // Mean power
1939
+ result.mean_power = data['elkoMeanPower'];
1940
+ }
1941
+ if (data.elkoNightSwitching !== undefined) {
1942
+ // Night switching
1943
+ result.night_switching = data['elkoNightSwitching'] ? 'on' : 'off';
1944
+ }
1945
+ if (data.elkoFrostGuard !== undefined) {
1946
+ // Frost guard
1947
+ result.frost_guard = data['elkoFrostGuard'] ? 'on' : 'off';
1948
+ }
1949
+ if (data.elkoChildLock !== undefined) {
1950
+ // Child lock
1951
+ result.child_lock = data['elkoChildLock'] ? 'lock' : 'unlock';
1952
+ }
1953
+ if (data.elkoMaxFloorTemp !== undefined) {
1954
+ // Max floor temp
1955
+ result.max_floor_temp = data['elkoMaxFloorTemp'];
1956
+ }
1904
1957
  return result;
1905
1958
  },
1906
1959
  },
@@ -2163,7 +2216,7 @@ const converters1 = {
2163
2216
  if (meta.device.manufacturerName === '_TZ3000_cet6ch1r') {
2164
2217
  const endpoint = msg.endpoint.ID;
2165
2218
  const calibrationLookup = { 1: 'up', 2: 'down' };
2166
- result[(0, utils_1.postfixWithEndpointName)(`calibration_time_'${calibrationLookup[endpoint]}'`, msg, model, meta)] = value;
2219
+ result[(0, utils_1.postfixWithEndpointName)(`calibration_time_${calibrationLookup[endpoint]}`, msg, model, meta)] = value;
2167
2220
  }
2168
2221
  else {
2169
2222
  result[(0, utils_1.postfixWithEndpointName)('calibration_time', msg, model, meta)] = value;