zigbee-herdsman-converters 23.4.0 → 23.6.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 (50) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/converters/toZigbee.js +1 -1
  3. package/dist/converters/toZigbee.js.map +1 -1
  4. package/dist/devices/efekta.d.ts.map +1 -1
  5. package/dist/devices/efekta.js +273 -10
  6. package/dist/devices/efekta.js.map +1 -1
  7. package/dist/devices/envilar.d.ts.map +1 -1
  8. package/dist/devices/envilar.js +7 -0
  9. package/dist/devices/envilar.js.map +1 -1
  10. package/dist/devices/imou.d.ts.map +1 -1
  11. package/dist/devices/imou.js +7 -0
  12. package/dist/devices/imou.js.map +1 -1
  13. package/dist/devices/index.d.ts +3 -12
  14. package/dist/devices/index.d.ts.map +1 -1
  15. package/dist/devices/index.js +6 -1
  16. package/dist/devices/index.js.map +1 -1
  17. package/dist/devices/owon.d.ts.map +1 -1
  18. package/dist/devices/owon.js +36 -0
  19. package/dist/devices/owon.js.map +1 -1
  20. package/dist/devices/philips.d.ts.map +1 -1
  21. package/dist/devices/philips.js +8 -1
  22. package/dist/devices/philips.js.map +1 -1
  23. package/dist/devices/robb.d.ts.map +1 -1
  24. package/dist/devices/robb.js +7 -0
  25. package/dist/devices/robb.js.map +1 -1
  26. package/dist/devices/samotech.js +2 -2
  27. package/dist/devices/samotech.js.map +1 -1
  28. package/dist/devices/shinasystem.js +3 -3
  29. package/dist/devices/shinasystem.js.map +1 -1
  30. package/dist/devices/sprut.d.ts +3 -0
  31. package/dist/devices/sprut.d.ts.map +1 -0
  32. package/dist/devices/sprut.js +119 -0
  33. package/dist/devices/sprut.js.map +1 -0
  34. package/dist/devices/tuya.d.ts.map +1 -1
  35. package/dist/devices/tuya.js +28 -5
  36. package/dist/devices/tuya.js.map +1 -1
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +16 -5
  39. package/dist/index.js.map +1 -1
  40. package/dist/lib/constants.d.ts.map +1 -1
  41. package/dist/lib/constants.js +2 -0
  42. package/dist/lib/constants.js.map +1 -1
  43. package/dist/lib/modernExtend.d.ts +4 -1
  44. package/dist/lib/modernExtend.d.ts.map +1 -1
  45. package/dist/lib/modernExtend.js +13 -4
  46. package/dist/lib/modernExtend.js.map +1 -1
  47. package/dist/lib/types.d.ts +1 -1
  48. package/dist/lib/types.d.ts.map +1 -1
  49. package/dist/models-index.json +1 -1
  50. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"efekta.d.ts","sourceRoot":"","sources":["../../src/devices/efekta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAavD,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAmjG7C,CAAC"}
1
+ {"version":3,"file":"efekta.d.ts","sourceRoot":"","sources":["../../src/devices/efekta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAavD,eAAO,MAAM,WAAW,EAAE,oBAAoB,EA0zG7C,CAAC"}
@@ -95,6 +95,7 @@ exports.definitions = [
95
95
  cluster: "msCO2",
96
96
  attribute: { ID: 0x0203, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
97
97
  description: "Enable or Disable Auto Brightness of the Display",
98
+ access: "STATE_SET",
98
99
  }),
99
100
  m.binary({
100
101
  name: "night_onoff_backlight",
@@ -103,6 +104,7 @@ exports.definitions = [
103
104
  cluster: "msCO2",
104
105
  attribute: { ID: 0x0401, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
105
106
  description: "Complete shutdown of the backlight at night mode",
107
+ access: "STATE_SET",
106
108
  }),
107
109
  m.numeric({
108
110
  name: "night_on_backlight",
@@ -112,6 +114,7 @@ exports.definitions = [
112
114
  cluster: "msCO2",
113
115
  attribute: { ID: 0x0405, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
114
116
  description: "Night mode activation time",
117
+ access: "STATE_SET",
115
118
  }),
116
119
  m.numeric({
117
120
  name: "night_off_backlight",
@@ -121,6 +124,7 @@ exports.definitions = [
121
124
  cluster: "msCO2",
122
125
  attribute: { ID: 0x0406, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
123
126
  description: "Night mode deactivation time",
127
+ access: "STATE_SET",
124
128
  }),
125
129
  m.enumLookup({
126
130
  name: "rotate",
@@ -128,22 +132,23 @@ exports.definitions = [
128
132
  cluster: "msCO2",
129
133
  attribute: { ID: 0x0285, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
130
134
  description: "Display rotation angle",
135
+ access: "STATE_SET",
131
136
  }),
132
- m.binary({
137
+ m.enumLookup({
133
138
  name: "long_chart_period",
134
- valueOn: ["ON", 1],
135
- valueOff: ["OFF", 0],
139
+ lookup: { "1H": 0, "24H": 1 },
136
140
  cluster: "msCO2",
137
141
  attribute: { ID: 0x0204, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
138
142
  description: "The period of plotting the CO2 level(OFF - 1H | ON - 24H)",
143
+ access: "STATE_SET",
139
144
  }),
140
- m.binary({
145
+ m.enumLookup({
141
146
  name: "long_chart_period2",
142
- valueOn: ["ON", 1],
143
- valueOff: ["OFF", 0],
147
+ lookup: { "1H": 0, "24H": 1 },
144
148
  cluster: "msCO2",
145
149
  attribute: { ID: 0x0404, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
146
150
  description: "The period of plotting the VOC Index points(OFF - 1H | ON - 24H)",
151
+ access: "STATE_SET",
147
152
  }),
148
153
  m.numeric({
149
154
  name: "set_altitude",
@@ -153,6 +158,7 @@ exports.definitions = [
153
158
  cluster: "msCO2",
154
159
  attribute: { ID: 0x0205, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
155
160
  description: "Setting the altitude above sea level (for high accuracy of the CO2 sensor)",
161
+ access: "STATE_SET",
156
162
  }),
157
163
  m.numeric({
158
164
  name: "temperature_offset",
@@ -164,6 +170,7 @@ exports.definitions = [
164
170
  cluster: "msTemperatureMeasurement",
165
171
  attribute: { ID: 0x0210, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
166
172
  description: "Adjust temperature",
173
+ access: "STATE_SET",
167
174
  }),
168
175
  m.numeric({
169
176
  name: "humidity_offset",
@@ -174,14 +181,15 @@ exports.definitions = [
174
181
  cluster: "msRelativeHumidity",
175
182
  attribute: { ID: 0x0210, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
176
183
  description: "Adjust humidity",
184
+ access: "STATE_SET",
177
185
  }),
178
- m.binary({
186
+ m.enumLookup({
179
187
  name: "internal_or_external",
180
- valueOn: ["ON", 1],
181
- valueOff: ["OFF", 0],
188
+ lookup: { INTERNAL: 1, EXTERNAL: 0 },
182
189
  cluster: "msCO2",
183
190
  attribute: { ID: 0x0288, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
184
191
  description: "Display data from internal or external TH sensor",
192
+ access: "STATE_SET",
185
193
  }),
186
194
  m.binary({
187
195
  name: "automatic_scal",
@@ -190,6 +198,7 @@ exports.definitions = [
190
198
  cluster: "msCO2",
191
199
  attribute: { ID: 0x0402, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
192
200
  description: "Automatic self calibration",
201
+ access: "STATE_SET",
193
202
  }),
194
203
  m.binary({
195
204
  name: "forced_recalibration",
@@ -198,6 +207,7 @@ exports.definitions = [
198
207
  cluster: "msCO2",
199
208
  attribute: { ID: 0x0202, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
200
209
  description: "Start FRC (Perform Forced Recalibration of the CO2 Sensor)",
210
+ access: "STATE_SET",
201
211
  }),
202
212
  m.binary({
203
213
  name: "factory_reset_co2",
@@ -206,6 +216,7 @@ exports.definitions = [
206
216
  cluster: "msCO2",
207
217
  attribute: { ID: 0x0206, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
208
218
  description: "Factory Reset CO2 sensor",
219
+ access: "STATE_SET",
209
220
  }),
210
221
  m.numeric({
211
222
  name: "manual_forced_recalibration",
@@ -215,6 +226,7 @@ exports.definitions = [
215
226
  cluster: "msCO2",
216
227
  attribute: { ID: 0x0207, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
217
228
  description: "Start Manual FRC (Perform Forced Recalibration of the CO2 Sensor)",
229
+ access: "STATE_SET",
218
230
  }),
219
231
  m.binary({
220
232
  name: "enable_gas",
@@ -223,6 +235,7 @@ exports.definitions = [
223
235
  cluster: "msCO2",
224
236
  attribute: { ID: 0x0220, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
225
237
  description: "Enable CO2 Gas Control",
238
+ access: "STATE_SET",
226
239
  }),
227
240
  m.binary({
228
241
  name: "invert_logic_gas",
@@ -231,6 +244,7 @@ exports.definitions = [
231
244
  cluster: "msCO2",
232
245
  attribute: { ID: 0x0225, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
233
246
  description: "Enable invert logic CO2 Gas Control",
247
+ access: "STATE_SET",
234
248
  }),
235
249
  m.numeric({
236
250
  name: "high_gas",
@@ -240,6 +254,7 @@ exports.definitions = [
240
254
  cluster: "msCO2",
241
255
  attribute: { ID: 0x0221, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
242
256
  description: "Setting High CO2 Gas Border",
257
+ access: "STATE_SET",
243
258
  }),
244
259
  m.numeric({
245
260
  name: "low_gas",
@@ -249,6 +264,7 @@ exports.definitions = [
249
264
  cluster: "msCO2",
250
265
  attribute: { ID: 0x0222, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
251
266
  description: "Setting Low CO2 Gas Border",
267
+ access: "STATE_SET",
252
268
  }),
253
269
  ],
254
270
  },
@@ -1475,10 +1491,29 @@ exports.definitions = [
1475
1491
  }),
1476
1492
  ],
1477
1493
  },
1494
+ {
1495
+ zigbeeModel: ["EFEKTA_T1_Y"],
1496
+ model: "EFEKTA_T1_Y",
1497
+ vendor: "EFEKTA",
1498
+ description: "Temperature sensor DS18B20, AAA bsttery, works in Tuya",
1499
+ extend: [
1500
+ m.temperature({
1501
+ reporting: false,
1502
+ access: "STATE",
1503
+ }),
1504
+ m.battery({
1505
+ percentage: true,
1506
+ lowStatus: true,
1507
+ voltage: true,
1508
+ percentageReporting: false,
1509
+ voltageReporting: false,
1510
+ }),
1511
+ ],
1512
+ },
1478
1513
  {
1479
1514
  zigbeeModel: ["EFEKTA_T8_POW"],
1480
1515
  model: "EFEKTA_T8_POW",
1481
- vendor: "EfektaLab",
1516
+ vendor: "EFEKTA",
1482
1517
  description: "Temperature sensor with a signal amplifier, support up to 8 DS18B20",
1483
1518
  extend: [
1484
1519
  m.deviceEndpoints({
@@ -1600,6 +1635,234 @@ exports.definitions = [
1600
1635
  }),
1601
1636
  ],
1602
1637
  },
1638
+ {
1639
+ zigbeeModel: ["EFEKTA_T1_v2_LR"],
1640
+ model: "EFEKTA_T1_v2_LR",
1641
+ vendor: "EFEKTA",
1642
+ description: "Temperature sensors with a signal amplifier. External DS18b20 sensor. Simple Thermostat.",
1643
+ extend: [
1644
+ m.temperature({
1645
+ reporting: fourReporting,
1646
+ access: "STATE",
1647
+ }),
1648
+ m.battery({
1649
+ percentage: true,
1650
+ lowStatus: true,
1651
+ voltage: true,
1652
+ percentageReporting: true,
1653
+ voltageReporting: true,
1654
+ percentageReportingConfig: sixReporting,
1655
+ voltageReportingConfig: sixReporting,
1656
+ }),
1657
+ m.numeric({
1658
+ name: "reading_interval",
1659
+ unit: "sec",
1660
+ valueMin: 10,
1661
+ valueMax: 360,
1662
+ cluster: "genPowerCfg",
1663
+ attribute: { ID: 0x0201, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
1664
+ description: "Setting the sensor reading interval in seconds, by default 30 seconds",
1665
+ access: "STATE_SET",
1666
+ }),
1667
+ m.enumLookup({
1668
+ name: "tx_radio_power",
1669
+ lookup: { "4dbm": 4, "19dbm": 19 },
1670
+ cluster: "genPowerCfg",
1671
+ attribute: { ID: 0x0236, type: zigbee_herdsman_1.Zcl.DataType.INT8 },
1672
+ description: "Set TX Radio Power, dbm",
1673
+ access: "STATE_SET",
1674
+ }),
1675
+ m.binary({
1676
+ name: "smart_sleep",
1677
+ valueOn: ["ON", 1],
1678
+ valueOff: ["OFF", 0],
1679
+ cluster: "genPowerCfg",
1680
+ attribute: { ID: 0x0216, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1681
+ description: "Enable Smart Sleep, short wakeup every 7 seconds",
1682
+ access: "STATE_SET",
1683
+ }),
1684
+ m.numeric({
1685
+ name: "uptime",
1686
+ unit: "Hours",
1687
+ cluster: "genTime",
1688
+ attribute: "localTime",
1689
+ description: "Uptime",
1690
+ scale: 3600,
1691
+ precision: 1,
1692
+ access: "STATE",
1693
+ }),
1694
+ m.enumLookup({
1695
+ name: "resolution",
1696
+ lookup: { "9 bit": 9, "10 bit": 10, "11 bit": 11, "12 bit": 12 },
1697
+ cluster: "msTemperatureMeasurement",
1698
+ attribute: { ID: 0x0520, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
1699
+ description: "Set Bit resolution DS18B20",
1700
+ access: "STATE_SET",
1701
+ }),
1702
+ m.binary({
1703
+ name: "config_report_enable",
1704
+ valueOn: ["ON", 1],
1705
+ valueOff: ["OFF", 0],
1706
+ cluster: "genPowerCfg",
1707
+ attribute: { ID: 0x0275, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1708
+ description: "Enable reporting based on reporting configuration",
1709
+ access: "STATE_SET",
1710
+ }),
1711
+ m.binary({
1712
+ name: "comparison_previous_data",
1713
+ valueOn: ["ON", 1],
1714
+ valueOff: ["OFF", 0],
1715
+ cluster: "genPowerCfg",
1716
+ attribute: { ID: 0x0205, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1717
+ description: "Enable сontrol of comparison with previous data",
1718
+ access: "STATE_SET",
1719
+ }),
1720
+ m.binary({
1721
+ name: "enable_temperature",
1722
+ valueOn: ["ON", 1],
1723
+ valueOff: ["OFF", 0],
1724
+ cluster: "msTemperatureMeasurement",
1725
+ attribute: { ID: 0x0220, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1726
+ description: "Enable Temperature Control",
1727
+ }),
1728
+ m.binary({
1729
+ name: "invert_logic_temperature",
1730
+ valueOn: ["ON", 1],
1731
+ valueOff: ["OFF", 0],
1732
+ cluster: "msTemperatureMeasurement",
1733
+ attribute: { ID: 0x0225, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1734
+ description: "Invert Logic Temperature Control",
1735
+ }),
1736
+ m.numeric({
1737
+ name: "high_temperature",
1738
+ unit: "°C",
1739
+ valueMin: -50,
1740
+ valueMax: 120,
1741
+ cluster: "msTemperatureMeasurement",
1742
+ attribute: { ID: 0x0221, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
1743
+ description: "Setting High Temperature Border",
1744
+ }),
1745
+ m.numeric({
1746
+ name: "low_temperature",
1747
+ unit: "°C",
1748
+ valueMin: -50,
1749
+ valueMax: 120,
1750
+ cluster: "msTemperatureMeasurement",
1751
+ attribute: { ID: 0x0222, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
1752
+ description: "Setting Low Temperature Border",
1753
+ }),
1754
+ ],
1755
+ },
1756
+ {
1757
+ zigbeeModel: ["EFEKTA_T1_v2"],
1758
+ model: "EFEKTA_T1_v2",
1759
+ vendor: "EFEKTA",
1760
+ description: "Temperature sensors. External DS18b20 sensor. Simple Thermostat.",
1761
+ extend: [
1762
+ m.temperature({
1763
+ reporting: fourReporting,
1764
+ access: "STATE",
1765
+ }),
1766
+ m.battery({
1767
+ percentage: true,
1768
+ lowStatus: true,
1769
+ voltage: true,
1770
+ percentageReporting: true,
1771
+ voltageReporting: true,
1772
+ percentageReportingConfig: sixReporting,
1773
+ voltageReportingConfig: sixReporting,
1774
+ }),
1775
+ m.numeric({
1776
+ name: "reading_interval",
1777
+ unit: "sec",
1778
+ valueMin: 10,
1779
+ valueMax: 360,
1780
+ cluster: "genPowerCfg",
1781
+ attribute: { ID: 0x0201, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
1782
+ description: "Setting the sensor reading interval in seconds, by default 30 seconds",
1783
+ access: "STATE_SET",
1784
+ }),
1785
+ m.binary({
1786
+ name: "smart_sleep",
1787
+ valueOn: ["ON", 1],
1788
+ valueOff: ["OFF", 0],
1789
+ cluster: "genPowerCfg",
1790
+ attribute: { ID: 0x0216, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1791
+ description: "Enable Smart Sleep, short wakeup every 7 seconds",
1792
+ access: "STATE_SET",
1793
+ }),
1794
+ m.numeric({
1795
+ name: "uptime",
1796
+ unit: "Hours",
1797
+ cluster: "genTime",
1798
+ attribute: "localTime",
1799
+ description: "Uptime",
1800
+ scale: 3600,
1801
+ precision: 1,
1802
+ access: "STATE",
1803
+ }),
1804
+ m.enumLookup({
1805
+ name: "resolution",
1806
+ lookup: { "9 bit": 9, "10 bit": 10, "11 bit": 11, "12 bit": 12 },
1807
+ cluster: "msTemperatureMeasurement",
1808
+ attribute: { ID: 0x0520, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
1809
+ description: "Set Bit resolution DS18B20",
1810
+ access: "STATE_SET",
1811
+ }),
1812
+ m.binary({
1813
+ name: "config_report_enable",
1814
+ valueOn: ["ON", 1],
1815
+ valueOff: ["OFF", 0],
1816
+ cluster: "genPowerCfg",
1817
+ attribute: { ID: 0x0275, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1818
+ description: "Enable reporting based on reporting configuration",
1819
+ access: "STATE_SET",
1820
+ }),
1821
+ m.binary({
1822
+ name: "comparison_previous_data",
1823
+ valueOn: ["ON", 1],
1824
+ valueOff: ["OFF", 0],
1825
+ cluster: "genPowerCfg",
1826
+ attribute: { ID: 0x0205, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1827
+ description: "Enable сontrol of comparison with previous data",
1828
+ access: "STATE_SET",
1829
+ }),
1830
+ m.binary({
1831
+ name: "enable_temperature",
1832
+ valueOn: ["ON", 1],
1833
+ valueOff: ["OFF", 0],
1834
+ cluster: "msTemperatureMeasurement",
1835
+ attribute: { ID: 0x0220, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1836
+ description: "Enable Temperature Control",
1837
+ }),
1838
+ m.binary({
1839
+ name: "invert_logic_temperature",
1840
+ valueOn: ["ON", 1],
1841
+ valueOff: ["OFF", 0],
1842
+ cluster: "msTemperatureMeasurement",
1843
+ attribute: { ID: 0x0225, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
1844
+ description: "Invert Logic Temperature Control",
1845
+ }),
1846
+ m.numeric({
1847
+ name: "high_temperature",
1848
+ unit: "°C",
1849
+ valueMin: -50,
1850
+ valueMax: 120,
1851
+ cluster: "msTemperatureMeasurement",
1852
+ attribute: { ID: 0x0221, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
1853
+ description: "Setting High Temperature Border",
1854
+ }),
1855
+ m.numeric({
1856
+ name: "low_temperature",
1857
+ unit: "°C",
1858
+ valueMin: -50,
1859
+ valueMax: 120,
1860
+ cluster: "msTemperatureMeasurement",
1861
+ attribute: { ID: 0x0222, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
1862
+ description: "Setting Low Temperature Border",
1863
+ }),
1864
+ ],
1865
+ },
1603
1866
  {
1604
1867
  zigbeeModel: ["EFEKTA_PST_V1_LR"],
1605
1868
  model: "EFEKTA_PST_V1_LR",