@willieee802/zigbee-herdsman-converters 19.44.3 → 19.45.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 (591) hide show
  1. package/CHANGELOG.md +1101 -0
  2. package/dist/converters/actions.d.ts.map +1 -1
  3. package/dist/converters/actions.js +2 -0
  4. package/dist/converters/actions.js.map +1 -1
  5. package/dist/converters/fromZigbee.d.ts +1 -150
  6. package/dist/converters/fromZigbee.d.ts.map +1 -1
  7. package/dist/converters/fromZigbee.js +183 -3044
  8. package/dist/converters/fromZigbee.js.map +1 -1
  9. package/dist/converters/toZigbee.d.ts +0 -121
  10. package/dist/converters/toZigbee.d.ts.map +1 -1
  11. package/dist/converters/toZigbee.js +289 -2386
  12. package/dist/converters/toZigbee.js.map +1 -1
  13. package/dist/devices/ITCommander.d.ts.map +1 -1
  14. package/dist/devices/ITCommander.js +2 -1
  15. package/dist/devices/ITCommander.js.map +1 -1
  16. package/dist/devices/acova.d.ts.map +1 -1
  17. package/dist/devices/acova.js +69 -2
  18. package/dist/devices/acova.js.map +1 -1
  19. package/dist/devices/adeo.d.ts.map +1 -1
  20. package/dist/devices/adeo.js +35 -3
  21. package/dist/devices/adeo.js.map +1 -1
  22. package/dist/devices/adurosmart.js +1 -1
  23. package/dist/devices/adurosmart.js.map +1 -1
  24. package/dist/devices/amina.d.ts.map +1 -1
  25. package/dist/devices/amina.js +47 -10
  26. package/dist/devices/amina.js.map +1 -1
  27. package/dist/devices/aurora_lighting.d.ts.map +1 -1
  28. package/dist/devices/aurora_lighting.js +15 -0
  29. package/dist/devices/aurora_lighting.js.map +1 -1
  30. package/dist/devices/automaton.d.ts.map +1 -1
  31. package/dist/devices/automaton.js +1 -0
  32. package/dist/devices/automaton.js.map +1 -1
  33. package/dist/devices/avatto.d.ts.map +1 -1
  34. package/dist/devices/avatto.js +29 -24
  35. package/dist/devices/avatto.js.map +1 -1
  36. package/dist/devices/awox.d.ts.map +1 -1
  37. package/dist/devices/awox.js +41 -3
  38. package/dist/devices/awox.js.map +1 -1
  39. package/dist/devices/bacchus.d.ts.map +1 -1
  40. package/dist/devices/bacchus.js +75 -0
  41. package/dist/devices/bacchus.js.map +1 -1
  42. package/dist/devices/bitron.d.ts.map +1 -1
  43. package/dist/devices/bitron.js +29 -2
  44. package/dist/devices/bitron.js.map +1 -1
  45. package/dist/devices/bosch.d.ts.map +1 -1
  46. package/dist/devices/bosch.js +70 -50
  47. package/dist/devices/bosch.js.map +1 -1
  48. package/dist/devices/bticino.d.ts.map +1 -1
  49. package/dist/devices/bticino.js +11 -1
  50. package/dist/devices/bticino.js.map +1 -1
  51. package/dist/devices/byun.d.ts.map +1 -1
  52. package/dist/devices/byun.js +40 -3
  53. package/dist/devices/byun.js.map +1 -1
  54. package/dist/devices/candeo.d.ts.map +1 -1
  55. package/dist/devices/candeo.js +262 -9
  56. package/dist/devices/candeo.js.map +1 -1
  57. package/dist/devices/centralite.d.ts +9 -0
  58. package/dist/devices/centralite.d.ts.map +1 -1
  59. package/dist/devices/centralite.js +44 -5
  60. package/dist/devices/centralite.js.map +1 -1
  61. package/dist/devices/{aubess.d.ts → cigol.d.ts} +1 -1
  62. package/dist/devices/cigol.d.ts.map +1 -0
  63. package/dist/devices/cigol.js +260 -0
  64. package/dist/devices/cigol.js.map +1 -0
  65. package/dist/devices/cleverio.js +2 -2
  66. package/dist/devices/cleverio.js.map +1 -1
  67. package/dist/devices/climax.d.ts.map +1 -1
  68. package/dist/devices/climax.js +15 -1
  69. package/dist/devices/climax.js.map +1 -1
  70. package/dist/devices/ctm.d.ts.map +1 -1
  71. package/dist/devices/ctm.js +845 -496
  72. package/dist/devices/ctm.js.map +1 -1
  73. package/dist/devices/custom_devices_diy.d.ts +183 -1
  74. package/dist/devices/custom_devices_diy.d.ts.map +1 -1
  75. package/dist/devices/custom_devices_diy.js +390 -33
  76. package/dist/devices/custom_devices_diy.js.map +1 -1
  77. package/dist/devices/daewoo.d.ts +3 -0
  78. package/dist/devices/daewoo.d.ts.map +1 -0
  79. package/dist/devices/daewoo.js +198 -0
  80. package/dist/devices/daewoo.js.map +1 -0
  81. package/dist/devices/danfoss.d.ts.map +1 -1
  82. package/dist/devices/danfoss.js +1270 -296
  83. package/dist/devices/danfoss.js.map +1 -1
  84. package/dist/devices/databyte.d.ts.map +1 -1
  85. package/dist/devices/databyte.js +47 -3
  86. package/dist/devices/databyte.js.map +1 -1
  87. package/dist/devices/datek.d.ts.map +1 -1
  88. package/dist/devices/datek.js +202 -41
  89. package/dist/devices/datek.js.map +1 -1
  90. package/dist/devices/dawon_dns.d.ts.map +1 -1
  91. package/dist/devices/dawon_dns.js +14 -1
  92. package/dist/devices/dawon_dns.js.map +1 -1
  93. package/dist/devices/develco.d.ts.map +1 -1
  94. package/dist/devices/develco.js +145 -64
  95. package/dist/devices/develco.js.map +1 -1
  96. package/dist/devices/diyruz.d.ts.map +1 -1
  97. package/dist/devices/diyruz.js +444 -20
  98. package/dist/devices/diyruz.js.map +1 -1
  99. package/dist/devices/domraem.d.ts.map +1 -1
  100. package/dist/devices/domraem.js +7 -0
  101. package/dist/devices/domraem.js.map +1 -1
  102. package/dist/devices/easyaccess.d.ts.map +1 -1
  103. package/dist/devices/easyaccess.js +22 -2
  104. package/dist/devices/easyaccess.js.map +1 -1
  105. package/dist/devices/easyiot.d.ts.map +1 -1
  106. package/dist/devices/easyiot.js +767 -5
  107. package/dist/devices/easyiot.js.map +1 -1
  108. package/dist/devices/echostar.d.ts.map +1 -1
  109. package/dist/devices/echostar.js +25 -1
  110. package/dist/devices/echostar.js.map +1 -1
  111. package/dist/devices/ecodim.d.ts.map +1 -1
  112. package/dist/devices/ecodim.js +8 -0
  113. package/dist/devices/ecodim.js.map +1 -1
  114. package/dist/devices/ecolink.d.ts.map +1 -1
  115. package/dist/devices/ecolink.js +12 -0
  116. package/dist/devices/ecolink.js.map +1 -1
  117. package/dist/devices/efekta.d.ts.map +1 -1
  118. package/dist/devices/efekta.js +1615 -60
  119. package/dist/devices/efekta.js.map +1 -1
  120. package/dist/devices/eglo.d.ts.map +1 -1
  121. package/dist/devices/eglo.js +203 -17
  122. package/dist/devices/eglo.js.map +1 -1
  123. package/dist/devices/elko.d.ts.map +1 -1
  124. package/dist/devices/elko.js +20 -22
  125. package/dist/devices/elko.js.map +1 -1
  126. package/dist/devices/engo.d.ts.map +1 -1
  127. package/dist/devices/engo.js +201 -0
  128. package/dist/devices/engo.js.map +1 -1
  129. package/dist/devices/enocean.d.ts.map +1 -1
  130. package/dist/devices/enocean.js +132 -4
  131. package/dist/devices/enocean.js.map +1 -1
  132. package/dist/devices/ensystec.d.ts +3 -0
  133. package/dist/devices/ensystec.d.ts.map +1 -0
  134. package/dist/devices/ensystec.js +1200 -0
  135. package/dist/devices/ensystec.js.map +1 -0
  136. package/dist/devices/eurotronic.d.ts +78 -1
  137. package/dist/devices/eurotronic.d.ts.map +1 -1
  138. package/dist/devices/eurotronic.js +244 -40
  139. package/dist/devices/eurotronic.js.map +1 -1
  140. package/dist/devices/ewelink.d.ts.map +1 -1
  141. package/dist/devices/ewelink.js +154 -2
  142. package/dist/devices/ewelink.js.map +1 -1
  143. package/dist/devices/fantem.js +1 -1
  144. package/dist/devices/fantem.js.map +1 -1
  145. package/dist/devices/fireangel.d.ts.map +1 -1
  146. package/dist/devices/fireangel.js +12 -1
  147. package/dist/devices/fireangel.js.map +1 -1
  148. package/dist/devices/frankever.d.ts.map +1 -1
  149. package/dist/devices/frankever.js +96 -0
  150. package/dist/devices/frankever.js.map +1 -1
  151. package/dist/devices/frient.d.ts.map +1 -1
  152. package/dist/devices/frient.js +15 -0
  153. package/dist/devices/frient.js.map +1 -1
  154. package/dist/devices/girier.js +1 -1
  155. package/dist/devices/girier.js.map +1 -1
  156. package/dist/devices/gledopto.js +1 -1
  157. package/dist/devices/gledopto.js.map +1 -1
  158. package/dist/devices/gmmts.d.ts.map +1 -1
  159. package/dist/devices/gmmts.js +59 -55
  160. package/dist/devices/gmmts.js.map +1 -1
  161. package/dist/devices/halo_smart_labs.d.ts +3 -0
  162. package/dist/devices/halo_smart_labs.d.ts.map +1 -0
  163. package/dist/devices/halo_smart_labs.js +918 -0
  164. package/dist/devices/halo_smart_labs.js.map +1 -0
  165. package/dist/devices/handshake_finland.d.ts +3 -0
  166. package/dist/devices/handshake_finland.d.ts.map +1 -0
  167. package/dist/devices/handshake_finland.js +15 -0
  168. package/dist/devices/handshake_finland.js.map +1 -0
  169. package/dist/devices/heiman.d.ts.map +1 -1
  170. package/dist/devices/heiman.js +1361 -147
  171. package/dist/devices/heiman.js.map +1 -1
  172. package/dist/devices/heimgard_technologies.d.ts.map +1 -1
  173. package/dist/devices/heimgard_technologies.js +13 -0
  174. package/dist/devices/heimgard_technologies.js.map +1 -1
  175. package/dist/devices/hive.d.ts.map +1 -1
  176. package/dist/devices/hive.js +11 -0
  177. package/dist/devices/hive.js.map +1 -1
  178. package/dist/devices/ikea.d.ts.map +1 -1
  179. package/dist/devices/ikea.js +185 -135
  180. package/dist/devices/ikea.js.map +1 -1
  181. package/dist/devices/iluminize.d.ts.map +1 -1
  182. package/dist/devices/iluminize.js +8 -7
  183. package/dist/devices/iluminize.js.map +1 -1
  184. package/dist/devices/immax.d.ts.map +1 -1
  185. package/dist/devices/immax.js +3 -1
  186. package/dist/devices/immax.js.map +1 -1
  187. package/dist/devices/index.d.ts.map +1 -1
  188. package/dist/devices/index.js +20 -2
  189. package/dist/devices/index.js.map +1 -1
  190. package/dist/devices/innr.d.ts.map +1 -1
  191. package/dist/devices/innr.js +34 -2
  192. package/dist/devices/innr.js.map +1 -1
  193. package/dist/devices/inovelli.d.ts.map +1 -1
  194. package/dist/devices/inovelli.js +41 -2348
  195. package/dist/devices/inovelli.js.map +1 -1
  196. package/dist/devices/iris.d.ts.map +1 -1
  197. package/dist/devices/iris.js +13 -1
  198. package/dist/devices/iris.js.map +1 -1
  199. package/dist/devices/javis.d.ts.map +1 -1
  200. package/dist/devices/javis.js +39 -1
  201. package/dist/devices/javis.js.map +1 -1
  202. package/dist/devices/jxuan.d.ts.map +1 -1
  203. package/dist/devices/jxuan.js +37 -2
  204. package/dist/devices/jxuan.js.map +1 -1
  205. package/dist/devices/kami.d.ts.map +1 -1
  206. package/dist/devices/kami.js +21 -2
  207. package/dist/devices/kami.js.map +1 -1
  208. package/dist/devices/keen_home.d.ts.map +1 -1
  209. package/dist/devices/keen_home.js +13 -3
  210. package/dist/devices/keen_home.js.map +1 -1
  211. package/dist/devices/klikaanklikuit.d.ts.map +1 -1
  212. package/dist/devices/klikaanklikuit.js +7 -0
  213. package/dist/devices/klikaanklikuit.js.map +1 -1
  214. package/dist/devices/kmpcil.d.ts.map +1 -1
  215. package/dist/devices/kmpcil.js +44 -5
  216. package/dist/devices/kmpcil.js.map +1 -1
  217. package/dist/devices/konke.d.ts.map +1 -1
  218. package/dist/devices/konke.js +10 -1
  219. package/dist/devices/konke.js.map +1 -1
  220. package/dist/devices/lds.d.ts.map +1 -1
  221. package/dist/devices/lds.js +7 -0
  222. package/dist/devices/lds.js.map +1 -1
  223. package/dist/devices/led_trading.d.ts.map +1 -1
  224. package/dist/devices/led_trading.js +13 -13
  225. package/dist/devices/led_trading.js.map +1 -1
  226. package/dist/devices/leedarson.d.ts.map +1 -1
  227. package/dist/devices/leedarson.js +140 -1
  228. package/dist/devices/leedarson.js.map +1 -1
  229. package/dist/devices/legrand.d.ts.map +1 -1
  230. package/dist/devices/legrand.js +73 -42
  231. package/dist/devices/legrand.js.map +1 -1
  232. package/dist/devices/lellki.d.ts.map +1 -1
  233. package/dist/devices/lellki.js +3 -1
  234. package/dist/devices/lellki.js.map +1 -1
  235. package/dist/devices/letv.d.ts.map +1 -1
  236. package/dist/devices/letv.js +16 -2
  237. package/dist/devices/letv.js.map +1 -1
  238. package/dist/devices/lidl.d.ts.map +1 -1
  239. package/dist/devices/lidl.js +26 -6
  240. package/dist/devices/lidl.js.map +1 -1
  241. package/dist/devices/lincukoo.d.ts.map +1 -1
  242. package/dist/devices/lincukoo.js +92 -31
  243. package/dist/devices/lincukoo.js.map +1 -1
  244. package/dist/devices/linkind.d.ts.map +1 -1
  245. package/dist/devices/linkind.js +14 -1
  246. package/dist/devices/linkind.js.map +1 -1
  247. package/dist/devices/linptech.d.ts.map +1 -1
  248. package/dist/devices/linptech.js +3 -1
  249. package/dist/devices/linptech.js.map +1 -1
  250. package/dist/devices/livingwise.d.ts.map +1 -1
  251. package/dist/devices/livingwise.js +2 -1
  252. package/dist/devices/livingwise.js.map +1 -1
  253. package/dist/devices/livolo.d.ts.map +1 -1
  254. package/dist/devices/livolo.js +612 -20
  255. package/dist/devices/livolo.js.map +1 -1
  256. package/dist/devices/lixee.d.ts.map +1 -1
  257. package/dist/devices/lixee.js +46 -44
  258. package/dist/devices/lixee.js.map +1 -1
  259. package/dist/devices/lonsonho.d.ts.map +1 -1
  260. package/dist/devices/lonsonho.js +18 -11
  261. package/dist/devices/lonsonho.js.map +1 -1
  262. package/dist/devices/lumi.d.ts.map +1 -1
  263. package/dist/devices/lumi.js +877 -155
  264. package/dist/devices/lumi.js.map +1 -1
  265. package/dist/devices/lytko.d.ts.map +1 -1
  266. package/dist/devices/lytko.js +205 -556
  267. package/dist/devices/lytko.js.map +1 -1
  268. package/dist/devices/makegood.d.ts.map +1 -1
  269. package/dist/devices/makegood.js +5 -1
  270. package/dist/devices/makegood.js.map +1 -1
  271. package/dist/devices/mazda.js +7 -7
  272. package/dist/devices/mazda.js.map +1 -1
  273. package/dist/devices/meazon.d.ts.map +1 -1
  274. package/dist/devices/meazon.js +82 -20
  275. package/dist/devices/meazon.js.map +1 -1
  276. package/dist/devices/megaman.d.ts +4 -0
  277. package/dist/devices/megaman.d.ts.map +1 -0
  278. package/dist/devices/megaman.js +48 -0
  279. package/dist/devices/megaman.js.map +1 -0
  280. package/dist/devices/mercator.d.ts.map +1 -1
  281. package/dist/devices/mercator.js +20 -5
  282. package/dist/devices/mercator.js.map +1 -1
  283. package/dist/devices/miboxer.d.ts.map +1 -1
  284. package/dist/devices/miboxer.js +3 -1
  285. package/dist/devices/miboxer.js.map +1 -1
  286. package/dist/devices/mill.d.ts.map +1 -1
  287. package/dist/devices/mill.js +33 -7
  288. package/dist/devices/mill.js.map +1 -1
  289. package/dist/devices/moes.d.ts.map +1 -1
  290. package/dist/devices/moes.js +89 -15
  291. package/dist/devices/moes.js.map +1 -1
  292. package/dist/devices/msh.d.ts +3 -0
  293. package/dist/devices/msh.d.ts.map +1 -0
  294. package/dist/devices/msh.js +93 -0
  295. package/dist/devices/msh.js.map +1 -0
  296. package/dist/devices/muller_licht.d.ts.map +1 -1
  297. package/dist/devices/muller_licht.js +11 -0
  298. package/dist/devices/muller_licht.js.map +1 -1
  299. package/dist/devices/multir.d.ts.map +1 -1
  300. package/dist/devices/multir.js +12 -1
  301. package/dist/devices/multir.js.map +1 -1
  302. package/dist/devices/multiterm.js +2 -2
  303. package/dist/devices/multiterm.js.map +1 -1
  304. package/dist/devices/namron.d.ts.map +1 -1
  305. package/dist/devices/namron.js +488 -128
  306. package/dist/devices/namron.js.map +1 -1
  307. package/dist/devices/neo.d.ts.map +1 -1
  308. package/dist/devices/neo.js +151 -192
  309. package/dist/devices/neo.js.map +1 -1
  310. package/dist/devices/netica.d.ts +3 -0
  311. package/dist/devices/netica.d.ts.map +1 -0
  312. package/dist/devices/netica.js +153 -0
  313. package/dist/devices/netica.js.map +1 -0
  314. package/dist/devices/niko.d.ts.map +1 -1
  315. package/dist/devices/niko.js +10 -8
  316. package/dist/devices/niko.js.map +1 -1
  317. package/dist/devices/nodon.d.ts.map +1 -1
  318. package/dist/devices/nodon.js +6 -4
  319. package/dist/devices/nodon.js.map +1 -1
  320. package/dist/devices/nous.d.ts.map +1 -1
  321. package/dist/devices/nous.js +160 -61
  322. package/dist/devices/nous.js.map +1 -1
  323. package/dist/devices/nue_3a.d.ts.map +1 -1
  324. package/dist/devices/nue_3a.js +2 -0
  325. package/dist/devices/nue_3a.js.map +1 -1
  326. package/dist/devices/onesti.d.ts +11 -1
  327. package/dist/devices/onesti.d.ts.map +1 -1
  328. package/dist/devices/onesti.js +30 -6
  329. package/dist/devices/onesti.js.map +1 -1
  330. package/dist/devices/onokom.d.ts.map +1 -1
  331. package/dist/devices/onokom.js +1152 -2309
  332. package/dist/devices/onokom.js.map +1 -1
  333. package/dist/devices/orvibo.d.ts +17 -1
  334. package/dist/devices/orvibo.d.ts.map +1 -1
  335. package/dist/devices/orvibo.js +71 -4
  336. package/dist/devices/orvibo.js.map +1 -1
  337. package/dist/devices/owon.d.ts.map +1 -1
  338. package/dist/devices/owon.js +382 -62
  339. package/dist/devices/owon.js.map +1 -1
  340. package/dist/devices/paul_neuhaus.d.ts.map +1 -1
  341. package/dist/devices/paul_neuhaus.js +9 -0
  342. package/dist/devices/paul_neuhaus.js.map +1 -1
  343. package/dist/devices/paulmann.js +2 -2
  344. package/dist/devices/paulmann.js.map +1 -1
  345. package/dist/devices/perenio.d.ts.map +1 -1
  346. package/dist/devices/perenio.js +57 -39
  347. package/dist/devices/perenio.js.map +1 -1
  348. package/dist/devices/philips.d.ts.map +1 -1
  349. package/dist/devices/philips.js +194 -53
  350. package/dist/devices/philips.js.map +1 -1
  351. package/dist/devices/plaid.d.ts.map +1 -1
  352. package/dist/devices/plaid.js +18 -1
  353. package/dist/devices/plaid.js.map +1 -1
  354. package/dist/devices/plugwise.d.ts.map +1 -1
  355. package/dist/devices/plugwise.js +307 -26
  356. package/dist/devices/plugwise.js.map +1 -1
  357. package/dist/devices/profalux.d.ts.map +1 -1
  358. package/dist/devices/profalux.js +25 -1
  359. package/dist/devices/profalux.js.map +1 -1
  360. package/dist/devices/pushok.d.ts.map +1 -1
  361. package/dist/devices/pushok.js +44 -0
  362. package/dist/devices/pushok.js.map +1 -1
  363. package/dist/devices/qa.d.ts.map +1 -1
  364. package/dist/devices/qa.js +80 -32
  365. package/dist/devices/qa.js.map +1 -1
  366. package/dist/devices/repenic_ltd.d.ts +3 -0
  367. package/dist/devices/repenic_ltd.d.ts.map +1 -0
  368. package/dist/devices/repenic_ltd.js +97 -0
  369. package/dist/devices/repenic_ltd.js.map +1 -0
  370. package/dist/devices/robb.d.ts.map +1 -1
  371. package/dist/devices/robb.js +13 -1
  372. package/dist/devices/robb.js.map +1 -1
  373. package/dist/devices/rtx.js +1 -1
  374. package/dist/devices/rtx.js.map +1 -1
  375. package/dist/devices/salus_controls.d.ts.map +1 -1
  376. package/dist/devices/salus_controls.js +44 -17
  377. package/dist/devices/salus_controls.js.map +1 -1
  378. package/dist/devices/samotech.js +2 -2
  379. package/dist/devices/samotech.js.map +1 -1
  380. package/dist/devices/sber.d.ts.map +1 -1
  381. package/dist/devices/sber.js +435 -26
  382. package/dist/devices/sber.js.map +1 -1
  383. package/dist/devices/schneider_electric.d.ts.map +1 -1
  384. package/dist/devices/schneider_electric.js +808 -252
  385. package/dist/devices/schneider_electric.js.map +1 -1
  386. package/dist/devices/securifi.d.ts.map +1 -1
  387. package/dist/devices/securifi.js +24 -1
  388. package/dist/devices/securifi.js.map +1 -1
  389. package/dist/devices/sengled.d.ts.map +1 -1
  390. package/dist/devices/sengled.js +5 -4
  391. package/dist/devices/sengled.js.map +1 -1
  392. package/dist/devices/shada.d.ts +3 -0
  393. package/dist/devices/shada.d.ts.map +1 -0
  394. package/dist/devices/{aubess.js → shada.js} +7 -20
  395. package/dist/devices/shada.js.map +1 -0
  396. package/dist/devices/shelly.d.ts.map +1 -1
  397. package/dist/devices/shelly.js +646 -61
  398. package/dist/devices/shelly.js.map +1 -1
  399. package/dist/devices/shinasystem.d.ts.map +1 -1
  400. package/dist/devices/shinasystem.js +75 -16
  401. package/dist/devices/shinasystem.js.map +1 -1
  402. package/dist/devices/siglis.d.ts.map +1 -1
  403. package/dist/devices/siglis.js +26 -0
  404. package/dist/devices/siglis.js.map +1 -1
  405. package/dist/devices/sinope.d.ts.map +1 -1
  406. package/dist/devices/sinope.js +163 -83
  407. package/dist/devices/sinope.js.map +1 -1
  408. package/dist/devices/slacky_diy.d.ts.map +1 -1
  409. package/dist/devices/slacky_diy.js +3007 -69
  410. package/dist/devices/slacky_diy.js.map +1 -1
  411. package/dist/devices/smarli.d.ts.map +1 -1
  412. package/dist/devices/smarli.js +4 -5
  413. package/dist/devices/smarli.js.map +1 -1
  414. package/dist/devices/smartthings.d.ts +25 -0
  415. package/dist/devices/smartthings.d.ts.map +1 -1
  416. package/dist/devices/smartthings.js +62 -11
  417. package/dist/devices/smartthings.js.map +1 -1
  418. package/dist/devices/somfy.d.ts.map +1 -1
  419. package/dist/devices/somfy.js +14 -1
  420. package/dist/devices/somfy.js.map +1 -1
  421. package/dist/devices/sonoff.d.ts +42 -1
  422. package/dist/devices/sonoff.d.ts.map +1 -1
  423. package/dist/devices/sonoff.js +5161 -2007
  424. package/dist/devices/sonoff.js.map +1 -1
  425. package/dist/devices/sprut.d.ts.map +1 -1
  426. package/dist/devices/sprut.js +5 -4
  427. package/dist/devices/sprut.js.map +1 -1
  428. package/dist/devices/stello.d.ts.map +1 -1
  429. package/dist/devices/stello.js +6 -24
  430. package/dist/devices/stello.js.map +1 -1
  431. package/dist/devices/stelpro.d.ts +51 -1
  432. package/dist/devices/stelpro.d.ts.map +1 -1
  433. package/dist/devices/stelpro.js +86 -23
  434. package/dist/devices/stelpro.js.map +1 -1
  435. package/dist/devices/sunricher.d.ts.map +1 -1
  436. package/dist/devices/sunricher.js +215 -29
  437. package/dist/devices/sunricher.js.map +1 -1
  438. package/dist/devices/tech.d.ts.map +1 -1
  439. package/dist/devices/tech.js +35 -35
  440. package/dist/devices/tech.js.map +1 -1
  441. package/dist/devices/terncy.d.ts.map +1 -1
  442. package/dist/devices/terncy.js +398 -2
  443. package/dist/devices/terncy.js.map +1 -1
  444. package/dist/devices/third_reality.d.ts +42 -1
  445. package/dist/devices/third_reality.d.ts.map +1 -1
  446. package/dist/devices/third_reality.js +521 -110
  447. package/dist/devices/third_reality.js.map +1 -1
  448. package/dist/devices/tuya.d.ts.map +1 -1
  449. package/dist/devices/tuya.js +3143 -815
  450. package/dist/devices/tuya.js.map +1 -1
  451. package/dist/devices/ubisys.d.ts.map +1 -1
  452. package/dist/devices/ubisys.js +11 -8
  453. package/dist/devices/ubisys.js.map +1 -1
  454. package/dist/devices/vesternet.d.ts.map +1 -1
  455. package/dist/devices/vesternet.js +7 -0
  456. package/dist/devices/vesternet.js.map +1 -1
  457. package/dist/devices/viessmann.d.ts.map +1 -1
  458. package/dist/devices/viessmann.js +107 -4
  459. package/dist/devices/viessmann.js.map +1 -1
  460. package/dist/devices/vsmart.d.ts.map +1 -1
  461. package/dist/devices/vsmart.js +11 -0
  462. package/dist/devices/vsmart.js.map +1 -1
  463. package/dist/devices/weiser.d.ts.map +1 -1
  464. package/dist/devices/weiser.js +6 -0
  465. package/dist/devices/weiser.js.map +1 -1
  466. package/dist/devices/wirenboard.d.ts.map +1 -1
  467. package/dist/devices/wirenboard.js +124 -21
  468. package/dist/devices/wirenboard.js.map +1 -1
  469. package/dist/devices/wmun.d.ts.map +1 -1
  470. package/dist/devices/wmun.js +3 -2
  471. package/dist/devices/wmun.js.map +1 -1
  472. package/dist/devices/woolley.d.ts.map +1 -1
  473. package/dist/devices/woolley.js +6 -9
  474. package/dist/devices/woolley.js.map +1 -1
  475. package/dist/devices/woox.js +2 -2
  476. package/dist/devices/woox.js.map +1 -1
  477. package/dist/devices/xyzroe.d.ts.map +1 -1
  478. package/dist/devices/xyzroe.js +16 -4
  479. package/dist/devices/xyzroe.js.map +1 -1
  480. package/dist/devices/yale.d.ts.map +1 -1
  481. package/dist/devices/yale.js +138 -40
  482. package/dist/devices/yale.js.map +1 -1
  483. package/dist/devices/yandex.d.ts.map +1 -1
  484. package/dist/devices/yandex.js +93 -11
  485. package/dist/devices/yandex.js.map +1 -1
  486. package/dist/devices/yokis.d.ts.map +1 -1
  487. package/dist/devices/yokis.js +122 -85
  488. package/dist/devices/yokis.js.map +1 -1
  489. package/dist/devices/zbeacon.d.ts.map +1 -1
  490. package/dist/devices/zbeacon.js +0 -7
  491. package/dist/devices/zbeacon.js.map +1 -1
  492. package/dist/devices/zemismart.d.ts.map +1 -1
  493. package/dist/devices/zemismart.js +148 -11
  494. package/dist/devices/zemismart.js.map +1 -1
  495. package/dist/devices/zigbeetlc.js +1 -1
  496. package/dist/devices/zigbeetlc.js.map +1 -1
  497. package/dist/index.d.ts +1 -1
  498. package/dist/index.d.ts.map +1 -1
  499. package/dist/index.js +40 -35
  500. package/dist/index.js.map +1 -1
  501. package/dist/lib/bosch.d.ts.map +1 -1
  502. package/dist/lib/bosch.js +212 -42
  503. package/dist/lib/bosch.js.map +1 -1
  504. package/dist/lib/constants.d.ts +99 -17
  505. package/dist/lib/constants.d.ts.map +1 -1
  506. package/dist/lib/constants.js +15 -2
  507. package/dist/lib/constants.js.map +1 -1
  508. package/dist/lib/develco.d.ts +11 -0
  509. package/dist/lib/develco.d.ts.map +1 -1
  510. package/dist/lib/develco.js +78 -9
  511. package/dist/lib/develco.js.map +1 -1
  512. package/dist/lib/exposes.d.ts +11 -10
  513. package/dist/lib/exposes.d.ts.map +1 -1
  514. package/dist/lib/exposes.js +7 -48
  515. package/dist/lib/exposes.js.map +1 -1
  516. package/dist/lib/heiman.d.ts.map +1 -1
  517. package/dist/lib/heiman.js +34 -14
  518. package/dist/lib/heiman.js.map +1 -1
  519. package/dist/lib/ikea.d.ts +17 -0
  520. package/dist/lib/ikea.d.ts.map +1 -1
  521. package/dist/lib/ikea.js +46 -20
  522. package/dist/lib/ikea.js.map +1 -1
  523. package/dist/lib/inovelli.d.ts +86 -0
  524. package/dist/lib/inovelli.d.ts.map +1 -0
  525. package/dist/lib/inovelli.js +2580 -0
  526. package/dist/lib/inovelli.js.map +1 -0
  527. package/dist/lib/ledvance.d.ts +4 -4
  528. package/dist/lib/ledvance.d.ts.map +1 -1
  529. package/dist/lib/ledvance.js +23 -7
  530. package/dist/lib/ledvance.js.map +1 -1
  531. package/dist/lib/legacy.d.ts +21 -2
  532. package/dist/lib/legacy.d.ts.map +1 -1
  533. package/dist/lib/legacy.js +29 -2
  534. package/dist/lib/legacy.js.map +1 -1
  535. package/dist/lib/legrand.d.ts +65 -6
  536. package/dist/lib/legrand.d.ts.map +1 -1
  537. package/dist/lib/legrand.js +188 -9
  538. package/dist/lib/legrand.js.map +1 -1
  539. package/dist/lib/light.d.ts +1 -1
  540. package/dist/lib/light.d.ts.map +1 -1
  541. package/dist/lib/light.js +2 -2
  542. package/dist/lib/light.js.map +1 -1
  543. package/dist/lib/lumi.d.ts +88 -44
  544. package/dist/lib/lumi.d.ts.map +1 -1
  545. package/dist/lib/lumi.js +1813 -59
  546. package/dist/lib/lumi.js.map +1 -1
  547. package/dist/lib/modernExtend.d.ts +19 -14
  548. package/dist/lib/modernExtend.d.ts.map +1 -1
  549. package/dist/lib/modernExtend.js +37 -35
  550. package/dist/lib/modernExtend.js.map +1 -1
  551. package/dist/lib/namron.d.ts +131 -28
  552. package/dist/lib/namron.d.ts.map +1 -1
  553. package/dist/lib/namron.js +723 -42
  554. package/dist/lib/namron.js.map +1 -1
  555. package/dist/lib/nodon.d.ts.map +1 -1
  556. package/dist/lib/nodon.js +3 -1
  557. package/dist/lib/nodon.js.map +1 -1
  558. package/dist/lib/philips.d.ts +106 -2
  559. package/dist/lib/philips.d.ts.map +1 -1
  560. package/dist/lib/philips.js +945 -44
  561. package/dist/lib/philips.js.map +1 -1
  562. package/dist/lib/sonoff.d.ts +77 -10
  563. package/dist/lib/sonoff.d.ts.map +1 -1
  564. package/dist/lib/sonoff.js +165 -34
  565. package/dist/lib/sonoff.js.map +1 -1
  566. package/dist/lib/sunricher.d.ts +1 -1
  567. package/dist/lib/sunricher.d.ts.map +1 -1
  568. package/dist/lib/sunricher.js +6 -8
  569. package/dist/lib/sunricher.js.map +1 -1
  570. package/dist/lib/tuya.d.ts +558 -13
  571. package/dist/lib/tuya.d.ts.map +1 -1
  572. package/dist/lib/tuya.js +1518 -10
  573. package/dist/lib/tuya.js.map +1 -1
  574. package/dist/lib/types.d.ts +9 -6
  575. package/dist/lib/types.d.ts.map +1 -1
  576. package/dist/lib/ubisys.d.ts +1 -1
  577. package/dist/lib/ubisys.d.ts.map +1 -1
  578. package/dist/lib/ubisys.js +60 -5
  579. package/dist/lib/ubisys.js.map +1 -1
  580. package/dist/lib/utils.d.ts +5 -8
  581. package/dist/lib/utils.d.ts.map +1 -1
  582. package/dist/lib/utils.js +30 -17
  583. package/dist/lib/utils.js.map +1 -1
  584. package/dist/lib/zosung.d.ts +69 -6
  585. package/dist/lib/zosung.d.ts.map +1 -1
  586. package/dist/lib/zosung.js +113 -1
  587. package/dist/lib/zosung.js.map +1 -1
  588. package/dist/models-index.json +1 -1
  589. package/package.json +2 -2
  590. package/dist/devices/aubess.d.ts.map +0 -1
  591. package/dist/devices/aubess.js.map +0 -1
@@ -0,0 +1,1200 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.definitions = void 0;
37
+ const zigbee_herdsman_1 = require("@willieee802/zigbee-herdsman");
38
+ const exposes = __importStar(require("../lib/exposes"));
39
+ const m = __importStar(require("../lib/modernExtend"));
40
+ const globalStore = __importStar(require("../lib/store"));
41
+ const utils = __importStar(require("../lib/utils"));
42
+ const utils_1 = require("../lib/utils");
43
+ //import {logger} from "../lib/logger";
44
+ //const NS = "zhc:ensystec";
45
+ const e = exposes.presets;
46
+ const ea = exposes.access;
47
+ function elpcResetAlarm() {
48
+ const exposes = [e.enum("alarm_reset", ea.SET, ["reset"]).withDescription("Reset alarm")];
49
+ const toZigbee = [
50
+ {
51
+ key: ["alarm_reset"],
52
+ convertSet: async (entity, key, value, meta) => {
53
+ utils.assertString(value, key);
54
+ utils.validateValue(value, ["reset"]);
55
+ await entity.command("EnsystecLeakProtect", 0x00, {}, utils.getOptions(meta.mapped, entity));
56
+ return { state: { [key]: value } };
57
+ },
58
+ },
59
+ ];
60
+ return { exposes, fromZigbee: [], toZigbee, isModernExtend: true };
61
+ }
62
+ function elpcForceOpen(args = {}) {
63
+ const { endpointName = undefined } = args;
64
+ const cluster = "genOnOff";
65
+ const name = "force_open";
66
+ let expose = e.enum(name, ea.SET, ["Force open"]).withDescription("Force open electric valves");
67
+ if (endpointName)
68
+ expose = expose.withEndpoint(endpointName);
69
+ const toZigbee = [
70
+ {
71
+ key: [name],
72
+ convertSet: async (entity, key, value, meta) => {
73
+ if (endpointName) {
74
+ const ep = utils.toNumber(endpointName);
75
+ const endpoint = meta.device.getEndpoint(ep);
76
+ await endpoint.command(cluster, 0x01, {}, utils.getOptions(meta.mapped, entity));
77
+ }
78
+ else {
79
+ const endpoints = (0, utils_1.getEndpointsWithCluster)(meta.device, cluster, "input");
80
+ for (const endpoint of endpoints) {
81
+ await endpoint.command(cluster, 0x01, {}, utils.getOptions(meta.mapped, entity));
82
+ break;
83
+ }
84
+ }
85
+ },
86
+ },
87
+ ];
88
+ return { exposes: [expose], fromZigbee: [], toZigbee, isModernExtend: true };
89
+ }
90
+ function elpcExposesSeMetering(name, description, access, unit, valueMin, valueMax, endpoint) {
91
+ let expose = e.numeric(name, access).withDescription(description);
92
+ if (endpoint !== undefined)
93
+ expose = expose.withEndpoint(endpoint);
94
+ if (unit !== undefined)
95
+ expose = expose.withUnit(unit);
96
+ if (valueMin !== undefined)
97
+ expose = expose.withValueMin(valueMin);
98
+ if (valueMax !== undefined)
99
+ expose = expose.withValueMax(valueMax);
100
+ return expose;
101
+ }
102
+ function elpcCurrentSummDelivered(args = {}) {
103
+ const { endpointNames = undefined } = args;
104
+ const endpoints = endpointNames;
105
+ const max_endpoints = 10;
106
+ const name_energy = [
107
+ "input_1_water_meter",
108
+ "input_2_water_meter",
109
+ "input_3_water_meter",
110
+ "input_4_water_meter",
111
+ "input_5_water_meter",
112
+ "input_6_water_meter",
113
+ "input_7_water_meter",
114
+ "input_8_water_meter",
115
+ "input_9_water_meter",
116
+ "input_10_water_meter",
117
+ ];
118
+ const name_divisor = [
119
+ "input_1_divisor",
120
+ "input_2_divisor",
121
+ "input_3_divisor",
122
+ "input_4_divisor",
123
+ "input_5_divisor",
124
+ "input_6_divisor",
125
+ "input_7_divisor",
126
+ "input_8_divisor",
127
+ "input_9_divisor",
128
+ "input_10_divisor",
129
+ ];
130
+ const name_multiplier = [
131
+ "input_1_multiplier",
132
+ "input_2_multiplier",
133
+ "input_3_multiplier",
134
+ "input_4_multiplier",
135
+ "input_5_multiplier",
136
+ "input_6_multiplier",
137
+ "input_7_multiplier",
138
+ "input_8_multiplier",
139
+ "input_9_multiplier",
140
+ "input_10_multiplier",
141
+ ];
142
+ const description_energy = [
143
+ "Water meter on input 1",
144
+ "Water meter on input 2",
145
+ "Water meter on input 3",
146
+ "Water meter on input 4",
147
+ "Water meter on input 5",
148
+ "Water meter on input 6",
149
+ "Water meter on input 7",
150
+ "Water meter on input 8",
151
+ "Water meter on input 9",
152
+ "Water meter on input 10",
153
+ ];
154
+ const description_divisor = [
155
+ "Divisor of water meter 1",
156
+ "Divisor of water meter 2",
157
+ "Divisor of water meter 3",
158
+ "Divisor of water meter 4",
159
+ "Divisor of water meter 5",
160
+ "Divisor of water meter 6",
161
+ "Divisor of water meter 7",
162
+ "Divisor of water meter 8",
163
+ "Divisor of water meter 9",
164
+ "Divisor of water meter 10",
165
+ ];
166
+ const description_multiplier = [
167
+ "Multiplier of water meter 1",
168
+ "Multiplier of water meter 2",
169
+ "Multiplier of water meter 3",
170
+ "Multiplier of water meter 4",
171
+ "Multiplier of water meter 5",
172
+ "Multiplier of water meter 6",
173
+ "Multiplier of water meter 7",
174
+ "Multiplier of water meter 8",
175
+ "Multiplier of water meter 9",
176
+ "Multiplier of water meter 10",
177
+ ];
178
+ const configure = [];
179
+ const exposes = [];
180
+ if (!endpoints) {
181
+ exposes.push(elpcExposesSeMetering(name_energy[0], description_energy[0], ea.ALL, "m3", 0, 281474976710655));
182
+ exposes.push(elpcExposesSeMetering(name_divisor[0], description_divisor[0], ea.ALL, undefined, 1, 16777215));
183
+ exposes.push(elpcExposesSeMetering(name_multiplier[0], description_multiplier[0], ea.ALL, undefined, 1, 16777215));
184
+ configure.push(m.setupConfigureForReading("seMetering", ["multiplier", "divisor", "currentSummDelivered"]));
185
+ configure.push(m.setupConfigureForBinding("seMetering", "input"));
186
+ configure.push(m.setupConfigureForReporting("seMetering", "currentSummDelivered", { config: { min: 5, max: 3600, change: 1 }, access: ea.GET }));
187
+ }
188
+ else {
189
+ let count = 0;
190
+ for (const endpoint of endpoints) {
191
+ exposes.push(elpcExposesSeMetering(name_energy[count], description_energy[count], ea.ALL, "m3", 0, 281474976710655, endpoint));
192
+ exposes.push(elpcExposesSeMetering(name_divisor[count], description_divisor[count], ea.ALL, undefined, 1, 16777215, endpoint));
193
+ exposes.push(elpcExposesSeMetering(name_multiplier[count], description_multiplier[count], ea.ALL, undefined, 1, 16777215, endpoint));
194
+ count++;
195
+ if (count >= max_endpoints)
196
+ break;
197
+ }
198
+ configure.push(m.setupConfigureForReading("seMetering", ["multiplier", "divisor", "currentSummDelivered"], endpointNames));
199
+ configure.push(m.setupConfigureForBinding("seMetering", "input", endpointNames));
200
+ configure.push(m.setupConfigureForReporting("seMetering", "currentSummDelivered", {
201
+ config: { min: 5, max: 3600, change: 1 },
202
+ access: ea.GET,
203
+ endpointNames,
204
+ }));
205
+ }
206
+ const toZigbee = [
207
+ {
208
+ key: [
209
+ name_divisor[0],
210
+ name_divisor[1],
211
+ name_divisor[2],
212
+ name_divisor[3],
213
+ name_divisor[4],
214
+ name_divisor[5],
215
+ name_divisor[6],
216
+ name_divisor[7],
217
+ name_divisor[8],
218
+ name_divisor[9],
219
+ ],
220
+ convertGet: async (entity, key, meta) => {
221
+ await entity.read("seMetering", ["divisor"]);
222
+ },
223
+ convertSet: async (entity, key, value, meta) => {
224
+ utils.assertNumber(value);
225
+ const divisor = Number(Math.round(value));
226
+ await entity.write("seMetering", { divisor });
227
+ utils.assertEndpoint(entity);
228
+ globalStore.putValue(utils.enforceEndpoint(entity, key, meta), "Divisor", divisor);
229
+ await entity.read("seMetering", ["currentSummDelivered"]);
230
+ return { readAfterWriteTime: 250, state: { [key]: value } };
231
+ },
232
+ },
233
+ {
234
+ key: [
235
+ name_multiplier[0],
236
+ name_multiplier[1],
237
+ name_multiplier[2],
238
+ name_multiplier[3],
239
+ name_multiplier[4],
240
+ name_multiplier[5],
241
+ name_multiplier[6],
242
+ name_multiplier[7],
243
+ name_multiplier[8],
244
+ name_multiplier[9],
245
+ ],
246
+ convertGet: async (entity, key, meta) => {
247
+ await entity.read("seMetering", ["multiplier"]);
248
+ },
249
+ convertSet: async (entity, key, value, meta) => {
250
+ utils.assertNumber(value);
251
+ const multiplier = Number(Math.round(value));
252
+ await entity.write("seMetering", { multiplier });
253
+ utils.assertEndpoint(entity);
254
+ globalStore.putValue(utils.enforceEndpoint(entity, key, meta), "Multiplier", multiplier);
255
+ await entity.read("seMetering", ["currentSummDelivered"]);
256
+ return { readAfterWriteTime: 250, state: { [key]: value } };
257
+ },
258
+ },
259
+ {
260
+ key: [
261
+ name_energy[0],
262
+ name_energy[1],
263
+ name_energy[2],
264
+ name_energy[3],
265
+ name_energy[4],
266
+ name_energy[5],
267
+ name_energy[6],
268
+ name_energy[7],
269
+ name_energy[8],
270
+ name_energy[9],
271
+ ],
272
+ convertGet: async (entity, key, meta) => {
273
+ await entity.read("seMetering", ["currentSummDelivered"]);
274
+ },
275
+ convertSet: async (entity, key, value, meta) => {
276
+ utils.assertNumber(value);
277
+ const currentSummDelivered = Number(Math.round(value));
278
+ await entity.write("seMetering", { currentSummDelivered });
279
+ },
280
+ },
281
+ ];
282
+ const fromZigbee = [
283
+ {
284
+ cluster: "seMetering",
285
+ type: ["attributeReport", "readResponse"],
286
+ convert: (model, msg, publish, options, meta) => {
287
+ const result = {};
288
+ if (msg.data.divisor !== undefined) {
289
+ if (endpoints) {
290
+ const ep = utils.getEndpointName(msg, model, meta);
291
+ for (let i = 0; i < endpoints.length; i++) {
292
+ if (i === max_endpoints)
293
+ break;
294
+ if (ep === endpoints[i]) {
295
+ result[(0, utils_1.postfixWithEndpointName)(name_divisor[i], msg, model, meta)] = msg.data.divisor;
296
+ break;
297
+ }
298
+ }
299
+ }
300
+ else {
301
+ result[name_divisor[0]] = msg.data.divisor;
302
+ }
303
+ globalStore.putValue(msg.endpoint, "Divisor", msg.data.divisor);
304
+ }
305
+ return result;
306
+ },
307
+ },
308
+ {
309
+ cluster: "seMetering",
310
+ type: ["attributeReport", "readResponse"],
311
+ convert: (model, msg, publish, options, meta) => {
312
+ const result = {};
313
+ if (msg.data.multiplier !== undefined) {
314
+ if (endpoints) {
315
+ const ep = utils.getEndpointName(msg, model, meta);
316
+ for (let i = 0; i < endpoints.length; i++) {
317
+ if (i === max_endpoints)
318
+ break;
319
+ if (ep === endpoints[i]) {
320
+ result[(0, utils_1.postfixWithEndpointName)(name_multiplier[i], msg, model, meta)] = msg.data.multiplier;
321
+ break;
322
+ }
323
+ }
324
+ }
325
+ else {
326
+ result[name_multiplier[0]] = msg.data.multiplier;
327
+ }
328
+ globalStore.putValue(msg.endpoint, "Multiplier", msg.data.multiplier);
329
+ }
330
+ return result;
331
+ },
332
+ },
333
+ {
334
+ cluster: "seMetering",
335
+ type: ["attributeReport", "readResponse"],
336
+ convert: (model, msg, publish, options, meta) => {
337
+ const result = {};
338
+ if (msg.data.currentSummDelivered !== undefined) {
339
+ let divisor = globalStore.getValue(msg.endpoint, "Divisor");
340
+ let multiplier = globalStore.getValue(msg.endpoint, "Multiplier");
341
+ if (divisor === undefined) {
342
+ divisor = 1;
343
+ }
344
+ if (multiplier === undefined) {
345
+ multiplier = 1;
346
+ }
347
+ if (endpoints) {
348
+ const ep = utils.getEndpointName(msg, model, meta);
349
+ for (let i = 0; i < endpoints.length; i++) {
350
+ if (i === max_endpoints)
351
+ break;
352
+ if (ep === endpoints[i]) {
353
+ result[(0, utils_1.postfixWithEndpointName)(name_energy[i], msg, model, meta)] =
354
+ (msg.data.currentSummDelivered * multiplier) / divisor;
355
+ break;
356
+ }
357
+ }
358
+ }
359
+ else {
360
+ result[name_energy[0]] = (msg.data.currentSummDelivered * multiplier) / divisor;
361
+ }
362
+ }
363
+ return result;
364
+ },
365
+ },
366
+ ];
367
+ return { exposes, fromZigbee, toZigbee, configure, isModernExtend: true };
368
+ }
369
+ exports.definitions = [
370
+ {
371
+ zigbeeModel: ["Ensystec.ELPC"],
372
+ model: "Ensystec-Leak-Protect-Zigbee",
373
+ vendor: "Ensystec",
374
+ description: "Leak protect controller with Zigbee module",
375
+ extend: [
376
+ m.deviceEndpoints({
377
+ endpoints: {
378
+ "1": 1,
379
+ "2": 2,
380
+ "3": 3,
381
+ "4": 4,
382
+ "5": 5,
383
+ "6": 6,
384
+ "7": 7,
385
+ "8": 8,
386
+ "9": 9,
387
+ "10": 10,
388
+ "11": 11,
389
+ "12": 12,
390
+ "13": 13,
391
+ "14": 14,
392
+ "15": 15,
393
+ "16": 16,
394
+ "17": 17,
395
+ "18": 18,
396
+ "19": 19,
397
+ "20": 20,
398
+ "21": 21,
399
+ "22": 22,
400
+ "23": 23,
401
+ "24": 24,
402
+ "25": 25,
403
+ "26": 26,
404
+ },
405
+ }),
406
+ m.deviceAddCustomCluster("EnsystecLeakProtect", {
407
+ name: "EnsystecLeakProtect",
408
+ ID: 0x6604,
409
+ manufacturerCode: 0x6666,
410
+ attributes: {
411
+ onLine: {
412
+ name: "onLine",
413
+ ID: 0x6601,
414
+ type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN,
415
+ max: 0xff,
416
+ },
417
+ leakDetect: {
418
+ name: "leakDetect",
419
+ ID: 0x6602,
420
+ type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN,
421
+ max: 0xff,
422
+ },
423
+ inputConfig: {
424
+ name: "inputConfig",
425
+ ID: 0x6607,
426
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
427
+ write: true,
428
+ max: 0xff,
429
+ },
430
+ batteryLow: {
431
+ name: "batteryLow",
432
+ ID: 0x6612,
433
+ type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN,
434
+ max: 0xff,
435
+ },
436
+ },
437
+ commands: {
438
+ resetAlarm: {
439
+ name: "resetAlarm",
440
+ ID: 0x00,
441
+ parameters: [],
442
+ },
443
+ },
444
+ commandsResponse: {},
445
+ }),
446
+ m.deviceAddCustomCluster("genOnOff", {
447
+ name: "genOnOff",
448
+ ID: 0x0006,
449
+ attributes: {
450
+ positionPercent: {
451
+ name: "positionPercent",
452
+ ID: 0x6600,
453
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
454
+ manufacturerCode: 0x6666,
455
+ max: 0xff,
456
+ },
457
+ electricValveConnection: {
458
+ name: "electricValveConnection",
459
+ ID: 0x6601,
460
+ type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN,
461
+ manufacturerCode: 0x6666,
462
+ max: 0xff,
463
+ },
464
+ },
465
+ commands: {},
466
+ commandsResponse: {},
467
+ }),
468
+ m.deviceAddCustomCluster("seMetering", {
469
+ name: "seMetering",
470
+ ID: 0x0702,
471
+ attributes: {
472
+ currentSummDelivered: {
473
+ name: "currentSummDelivered",
474
+ ID: 0x0000,
475
+ type: zigbee_herdsman_1.Zcl.DataType.UINT48,
476
+ write: true,
477
+ max: 0xffffffffffff,
478
+ },
479
+ multiplier: {
480
+ name: "multiplier",
481
+ ID: 0x0301,
482
+ type: zigbee_herdsman_1.Zcl.DataType.UINT24,
483
+ write: true,
484
+ max: 0xffffff,
485
+ },
486
+ divisor: {
487
+ name: "divisor",
488
+ ID: 0x0302,
489
+ type: zigbee_herdsman_1.Zcl.DataType.UINT24,
490
+ write: true,
491
+ max: 0xffffff,
492
+ },
493
+ },
494
+ commands: {},
495
+ commandsResponse: {},
496
+ }),
497
+ m.onOff({ powerOnBehavior: false, endpointNames: ["1"], description: "Power on/off" }),
498
+ m.iasZoneAlarm({
499
+ zoneType: "water_leak",
500
+ zoneAttributes: ["alarm_1"],
501
+ }),
502
+ m.binary({
503
+ name: "battery_low",
504
+ endpointName: "1",
505
+ cluster: "EnsystecLeakProtect",
506
+ attribute: "batteryLow",
507
+ valueOn: ["Low", 1],
508
+ valueOff: ["Normal", 0],
509
+ reporting: { min: 0, max: 65000, change: 0 },
510
+ description: "Low battery",
511
+ access: "STATE_GET",
512
+ }),
513
+ m.enumLookup({
514
+ name: "power",
515
+ lookup: { unknown: 0, "mains (single phase)": 1, "mains (3 phase)": 2, battery: 3 },
516
+ cluster: "genBasic",
517
+ attribute: "powerSource",
518
+ access: "STATE_GET",
519
+ reporting: { min: 0, max: 65000, change: 0 },
520
+ description: "Power indicator",
521
+ }),
522
+ elpcResetAlarm(),
523
+ elpcForceOpen({ endpointName: "6" }),
524
+ elpcCurrentSummDelivered({ endpointNames: ["7", "8", "9", "10", "11", "12", "13", "14", "15", "16"] }),
525
+ m.onOff({ powerOnBehavior: false, endpointNames: ["2"], description: "Open/close control of electric valve(-s) on OUT1" }),
526
+ m.numeric({
527
+ name: "position_percent",
528
+ endpointNames: ["2"],
529
+ access: "STATE_GET",
530
+ unit: "%",
531
+ cluster: "genOnOff",
532
+ attribute: "positionPercent",
533
+ description: "Electric valve(-s) position on OUT1",
534
+ }),
535
+ m.binary({
536
+ name: "electric_valve_connection_out1",
537
+ cluster: "genOnOff",
538
+ endpointName: "2",
539
+ attribute: "electricValveConnection",
540
+ access: "STATE_GET",
541
+ valueOn: ["Connected", 1],
542
+ valueOff: ["Not connected", 0],
543
+ description: "Electric valve(-s) connected to OUT1",
544
+ }),
545
+ m.onOff({ powerOnBehavior: false, endpointNames: ["3"], description: "Open/close control of electric valves on OUT2" }),
546
+ m.numeric({
547
+ name: "position_percent",
548
+ access: "STATE_GET",
549
+ endpointNames: ["3"],
550
+ unit: "%",
551
+ cluster: "genOnOff",
552
+ attribute: "positionPercent",
553
+ description: "Electric valve(-s) position on OUT2",
554
+ }),
555
+ m.binary({
556
+ name: "electric_valve_connection_out2",
557
+ cluster: "genOnOff",
558
+ endpointName: "3",
559
+ attribute: "electricValveConnection",
560
+ access: "STATE_GET",
561
+ valueOn: ["Connected", 1],
562
+ valueOff: ["Not connected", 0],
563
+ description: "Electric valve(-s) connected to OUT2",
564
+ }),
565
+ m.enumLookup({
566
+ name: "input_1_config",
567
+ endpointName: "7",
568
+ cluster: "EnsystecLeakProtect",
569
+ attribute: "inputConfig",
570
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
571
+ reporting: false,
572
+ description: "Input 1 configuration",
573
+ }),
574
+ m.enumLookup({
575
+ name: "input_2_config",
576
+ endpointName: "8",
577
+ cluster: "EnsystecLeakProtect",
578
+ attribute: "inputConfig",
579
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
580
+ reporting: false,
581
+ description: "Input 2 configuration",
582
+ }),
583
+ m.enumLookup({
584
+ name: "input_3_config",
585
+ endpointName: "9",
586
+ cluster: "EnsystecLeakProtect",
587
+ attribute: "inputConfig",
588
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
589
+ reporting: false,
590
+ description: "Input 3 configuration",
591
+ }),
592
+ m.enumLookup({
593
+ name: "input_4_config",
594
+ endpointName: "10",
595
+ cluster: "EnsystecLeakProtect",
596
+ attribute: "inputConfig",
597
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
598
+ reporting: false,
599
+ description: "Input 4 configuration",
600
+ }),
601
+ m.enumLookup({
602
+ name: "input_5_config",
603
+ endpointName: "11",
604
+ cluster: "EnsystecLeakProtect",
605
+ attribute: "inputConfig",
606
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
607
+ reporting: false,
608
+ description: "Input 5 configuration",
609
+ }),
610
+ m.enumLookup({
611
+ name: "input_6_config",
612
+ endpointName: "12",
613
+ cluster: "EnsystecLeakProtect",
614
+ attribute: "inputConfig",
615
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
616
+ reporting: false,
617
+ description: "Input 6 configuration",
618
+ }),
619
+ m.enumLookup({
620
+ name: "input_7_config",
621
+ endpointName: "13",
622
+ cluster: "EnsystecLeakProtect",
623
+ attribute: "inputConfig",
624
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
625
+ reporting: false,
626
+ description: "Input 7 configuration",
627
+ }),
628
+ m.enumLookup({
629
+ name: "input_8_config",
630
+ endpointName: "14",
631
+ cluster: "EnsystecLeakProtect",
632
+ attribute: "inputConfig",
633
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
634
+ reporting: false,
635
+ description: "Input 8 configuration",
636
+ }),
637
+ m.enumLookup({
638
+ name: "input_9_config",
639
+ endpointName: "15",
640
+ cluster: "EnsystecLeakProtect",
641
+ attribute: "inputConfig",
642
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
643
+ reporting: false,
644
+ description: "Input 9 configuration",
645
+ }),
646
+ m.enumLookup({
647
+ name: "input_10_config",
648
+ endpointName: "16",
649
+ cluster: "EnsystecLeakProtect",
650
+ attribute: "inputConfig",
651
+ lookup: { deactivated: 0, sensor: 1, meter: 2 },
652
+ reporting: false,
653
+ description: "Input 10 configuration",
654
+ }),
655
+ m.binary({
656
+ name: "input_1_leak_detect",
657
+ endpointName: "7",
658
+ cluster: "EnsystecLeakProtect",
659
+ attribute: "leakDetect",
660
+ valueOn: ["Leak", 1],
661
+ valueOff: ["Dry", 0],
662
+ reporting: { min: 0, max: 65000, change: 0 },
663
+ access: "STATE_GET",
664
+ description: "Leak detection on input 1",
665
+ }),
666
+ m.binary({
667
+ name: "input_2_leak_detect",
668
+ endpointName: "8",
669
+ cluster: "EnsystecLeakProtect",
670
+ attribute: "leakDetect",
671
+ valueOn: ["Leak", 1],
672
+ valueOff: ["Dry", 0],
673
+ reporting: { min: 0, max: 65000, change: 0 },
674
+ access: "STATE_GET",
675
+ description: "Leak detection on input 2",
676
+ }),
677
+ m.binary({
678
+ name: "input_3_leak_detect",
679
+ endpointName: "9",
680
+ cluster: "EnsystecLeakProtect",
681
+ attribute: "leakDetect",
682
+ valueOn: ["Leak", 1],
683
+ valueOff: ["Dry", 0],
684
+ reporting: { min: 0, max: 65000, change: 0 },
685
+ access: "STATE_GET",
686
+ description: "Leak detection on input 3",
687
+ }),
688
+ m.binary({
689
+ name: "input_4_leak_detect",
690
+ endpointName: "10",
691
+ cluster: "EnsystecLeakProtect",
692
+ attribute: "leakDetect",
693
+ valueOn: ["Leak", 1],
694
+ valueOff: ["Dry", 0],
695
+ reporting: { min: 0, max: 65000, change: 0 },
696
+ access: "STATE_GET",
697
+ description: "Leak detection on input 4",
698
+ }),
699
+ m.binary({
700
+ name: "input_5_leak_detect",
701
+ endpointName: "11",
702
+ cluster: "EnsystecLeakProtect",
703
+ attribute: "leakDetect",
704
+ valueOn: ["Leak", 1],
705
+ valueOff: ["Dry", 0],
706
+ reporting: { min: 0, max: 65000, change: 0 },
707
+ access: "STATE_GET",
708
+ description: "Leak detection on input 5",
709
+ }),
710
+ m.binary({
711
+ name: "input_6_leak_detect",
712
+ endpointName: "12",
713
+ cluster: "EnsystecLeakProtect",
714
+ attribute: "leakDetect",
715
+ valueOn: ["Leak", 1],
716
+ valueOff: ["Dry", 0],
717
+ reporting: { min: 0, max: 65000, change: 0 },
718
+ access: "STATE_GET",
719
+ description: "Leak detection on input 6",
720
+ }),
721
+ m.binary({
722
+ name: "input_7_leak_detect",
723
+ endpointName: "13",
724
+ cluster: "EnsystecLeakProtect",
725
+ attribute: "leakDetect",
726
+ valueOn: ["Leak", 1],
727
+ valueOff: ["Dry", 0],
728
+ reporting: { min: 0, max: 65000, change: 0 },
729
+ access: "STATE_GET",
730
+ description: "Leak detection on input 7",
731
+ }),
732
+ m.binary({
733
+ name: "input_8_leak_detect",
734
+ endpointName: "14",
735
+ cluster: "EnsystecLeakProtect",
736
+ attribute: "leakDetect",
737
+ valueOn: ["Leak", 1],
738
+ valueOff: ["Dry", 0],
739
+ reporting: { min: 0, max: 65000, change: 0 },
740
+ access: "STATE_GET",
741
+ description: "Leak detection on input 8",
742
+ }),
743
+ m.binary({
744
+ name: "input_9_leak_detect",
745
+ endpointName: "15",
746
+ cluster: "EnsystecLeakProtect",
747
+ attribute: "leakDetect",
748
+ valueOn: ["Leak", 1],
749
+ valueOff: ["Dry", 0],
750
+ reporting: { min: 0, max: 65000, change: 0 },
751
+ access: "STATE_GET",
752
+ description: "Leak detection on input 9",
753
+ }),
754
+ m.binary({
755
+ name: "input_10_leak_detect",
756
+ endpointName: "16",
757
+ cluster: "EnsystecLeakProtect",
758
+ attribute: "leakDetect",
759
+ valueOn: ["Leak", 1],
760
+ valueOff: ["Dry", 0],
761
+ reporting: { min: 0, max: 65000, change: 0 },
762
+ access: "STATE_GET",
763
+ description: "Leak detection on input 10",
764
+ }),
765
+ m.binary({
766
+ name: "input_1_wire_break_control",
767
+ endpointName: "7",
768
+ cluster: "EnsystecLeakProtect",
769
+ attribute: "onLine",
770
+ valueOn: ["online", 1],
771
+ valueOff: ["offline", 0],
772
+ reporting: { min: 0, max: 65000, change: 0 },
773
+ access: "STATE_GET",
774
+ description: "Wire break control on input 1",
775
+ }),
776
+ m.binary({
777
+ name: "input_2_wire_break_control",
778
+ endpointName: "8",
779
+ cluster: "EnsystecLeakProtect",
780
+ attribute: "onLine",
781
+ valueOn: ["online", 1],
782
+ valueOff: ["offline", 0],
783
+ reporting: { min: 0, max: 65000, change: 0 },
784
+ access: "STATE_GET",
785
+ description: "Wire break control on input 2",
786
+ }),
787
+ m.binary({
788
+ name: "input_3_wire_break_control",
789
+ endpointName: "9",
790
+ cluster: "EnsystecLeakProtect",
791
+ attribute: "onLine",
792
+ valueOn: ["online", 1],
793
+ valueOff: ["offline", 0],
794
+ reporting: { min: 0, max: 65000, change: 0 },
795
+ access: "STATE_GET",
796
+ description: "Wire break control on input 3",
797
+ }),
798
+ m.binary({
799
+ name: "input_4_wire_break_control",
800
+ endpointName: "10",
801
+ cluster: "EnsystecLeakProtect",
802
+ attribute: "onLine",
803
+ valueOn: ["online", 1],
804
+ valueOff: ["offline", 0],
805
+ reporting: { min: 0, max: 65000, change: 0 },
806
+ access: "STATE_GET",
807
+ description: "Wire break control on input 4",
808
+ }),
809
+ m.binary({
810
+ name: "input_5_wire_break_control",
811
+ endpointName: "11",
812
+ cluster: "EnsystecLeakProtect",
813
+ attribute: "onLine",
814
+ valueOn: ["online", 1],
815
+ valueOff: ["offline", 0],
816
+ reporting: { min: 0, max: 65000, change: 0 },
817
+ access: "STATE_GET",
818
+ description: "Wire break control on input 5",
819
+ }),
820
+ m.binary({
821
+ name: "input_6_wire_break_control",
822
+ endpointName: "12",
823
+ cluster: "EnsystecLeakProtect",
824
+ attribute: "onLine",
825
+ valueOn: ["online", 1],
826
+ valueOff: ["offline", 0],
827
+ reporting: { min: 0, max: 65000, change: 0 },
828
+ access: "STATE_GET",
829
+ description: "Wire break control on input 6",
830
+ }),
831
+ m.binary({
832
+ name: "input_7_wire_break_control",
833
+ endpointName: "13",
834
+ cluster: "EnsystecLeakProtect",
835
+ attribute: "onLine",
836
+ valueOn: ["online", 1],
837
+ valueOff: ["offline", 0],
838
+ reporting: { min: 0, max: 65000, change: 0 },
839
+ access: "STATE_GET",
840
+ description: "Wire break control on input 7",
841
+ }),
842
+ m.binary({
843
+ name: "input_8_wire_break_control",
844
+ endpointName: "14",
845
+ cluster: "EnsystecLeakProtect",
846
+ attribute: "onLine",
847
+ valueOn: ["online", 1],
848
+ valueOff: ["offline", 0],
849
+ reporting: { min: 0, max: 65000, change: 0 },
850
+ access: "STATE_GET",
851
+ description: "Wire break control on input 8",
852
+ }),
853
+ m.binary({
854
+ name: "input_9_wire_break_control",
855
+ endpointName: "15",
856
+ cluster: "EnsystecLeakProtect",
857
+ attribute: "onLine",
858
+ valueOn: ["online", 1],
859
+ valueOff: ["offline", 0],
860
+ reporting: { min: 0, max: 65000, change: 0 },
861
+ access: "STATE_GET",
862
+ description: "Wire break control on input 9",
863
+ }),
864
+ m.binary({
865
+ name: "input_10_wire_break_control",
866
+ endpointName: "16",
867
+ cluster: "EnsystecLeakProtect",
868
+ attribute: "onLine",
869
+ valueOn: ["online", 1],
870
+ valueOff: ["offline", 0],
871
+ reporting: { min: 0, max: 65000, change: 0 },
872
+ access: "STATE_GET",
873
+ description: "Wire break control on input 10",
874
+ }),
875
+ m.binary({
876
+ name: "channel_1_connection_control",
877
+ endpointName: "17",
878
+ cluster: "EnsystecLeakProtect",
879
+ attribute: "onLine",
880
+ valueOn: ["online", 1],
881
+ valueOff: ["offline", 0],
882
+ access: "STATE_GET",
883
+ description: "Connection control on wireless channel 1",
884
+ }),
885
+ m.binary({
886
+ name: "channel_2_connection_control",
887
+ endpointName: "18",
888
+ cluster: "EnsystecLeakProtect",
889
+ attribute: "onLine",
890
+ valueOn: ["online", 1],
891
+ valueOff: ["offline", 0],
892
+ access: "STATE_GET",
893
+ description: "Connection control on wireless channel 2",
894
+ }),
895
+ m.binary({
896
+ name: "channel_3_connection_control",
897
+ endpointName: "19",
898
+ cluster: "EnsystecLeakProtect",
899
+ attribute: "onLine",
900
+ valueOn: ["online", 1],
901
+ valueOff: ["offline", 0],
902
+ access: "STATE_GET",
903
+ description: "Connection control on wireless channel 3",
904
+ }),
905
+ m.binary({
906
+ name: "channel_4_connection_control",
907
+ endpointName: "20",
908
+ cluster: "EnsystecLeakProtect",
909
+ attribute: "onLine",
910
+ valueOn: ["online", 1],
911
+ valueOff: ["offline", 0],
912
+ access: "STATE_GET",
913
+ description: "Connection control on wireless channel 4",
914
+ }),
915
+ m.binary({
916
+ name: "channel_5_connection_control",
917
+ endpointName: "21",
918
+ cluster: "EnsystecLeakProtect",
919
+ attribute: "onLine",
920
+ valueOn: ["online", 1],
921
+ valueOff: ["offline", 0],
922
+ access: "STATE_GET",
923
+ description: "Connection control on wireless channel 5",
924
+ }),
925
+ m.binary({
926
+ name: "channel_6_connection_control",
927
+ endpointName: "22",
928
+ cluster: "EnsystecLeakProtect",
929
+ attribute: "onLine",
930
+ valueOn: ["online", 1],
931
+ valueOff: ["offline", 0],
932
+ access: "STATE_GET",
933
+ description: "Connection control on wireless channel 6",
934
+ }),
935
+ m.binary({
936
+ name: "channel_7_connection_control",
937
+ endpointName: "23",
938
+ cluster: "EnsystecLeakProtect",
939
+ attribute: "onLine",
940
+ valueOn: ["online", 1],
941
+ valueOff: ["offline", 0],
942
+ access: "STATE_GET",
943
+ description: "Connection control on wireless channel 7",
944
+ }),
945
+ m.binary({
946
+ name: "channel_8_connection_control",
947
+ endpointName: "24",
948
+ cluster: "EnsystecLeakProtect",
949
+ attribute: "onLine",
950
+ valueOn: ["online", 1],
951
+ valueOff: ["offline", 0],
952
+ access: "STATE_GET",
953
+ description: "Connection control on wireless channel 8",
954
+ }),
955
+ m.binary({
956
+ name: "channel_9_connection_control",
957
+ endpointName: "25",
958
+ cluster: "EnsystecLeakProtect",
959
+ attribute: "onLine",
960
+ valueOn: ["online", 1],
961
+ valueOff: ["offline", 0],
962
+ access: "STATE_GET",
963
+ description: "Connection control on wireless channel 9",
964
+ }),
965
+ m.binary({
966
+ name: "channel_10_connection_control",
967
+ endpointName: "26",
968
+ cluster: "EnsystecLeakProtect",
969
+ attribute: "onLine",
970
+ valueOn: ["online", 1],
971
+ valueOff: ["offline", 0],
972
+ access: "STATE_GET",
973
+ description: "Connection control on wireless channel 10",
974
+ }),
975
+ m.binary({
976
+ name: "channel_1_leak_detect",
977
+ endpointName: "17",
978
+ cluster: "EnsystecLeakProtect",
979
+ attribute: "leakDetect",
980
+ valueOn: ["Leak", 1],
981
+ valueOff: ["Dry", 0],
982
+ reporting: { min: 0, max: 65000, change: 0 },
983
+ access: "STATE_GET",
984
+ description: "Leak detection on wireless channel 1",
985
+ }),
986
+ m.binary({
987
+ name: "channel_2_leak_detect",
988
+ endpointName: "18",
989
+ cluster: "EnsystecLeakProtect",
990
+ attribute: "leakDetect",
991
+ valueOn: ["Leak", 1],
992
+ valueOff: ["Dry", 0],
993
+ reporting: { min: 0, max: 65000, change: 0 },
994
+ access: "STATE_GET",
995
+ description: "Leak detection on wireless channel 2",
996
+ }),
997
+ m.binary({
998
+ name: "channel_3_leak_detect",
999
+ endpointName: "19",
1000
+ cluster: "EnsystecLeakProtect",
1001
+ attribute: "leakDetect",
1002
+ valueOn: ["Leak", 1],
1003
+ valueOff: ["Dry", 0],
1004
+ reporting: { min: 0, max: 65000, change: 0 },
1005
+ access: "STATE_GET",
1006
+ description: "Leak detection on wireless channel 3",
1007
+ }),
1008
+ m.binary({
1009
+ name: "channel_4_leak_detect",
1010
+ endpointName: "20",
1011
+ cluster: "EnsystecLeakProtect",
1012
+ attribute: "leakDetect",
1013
+ valueOn: ["Leak", 1],
1014
+ valueOff: ["Dry", 0],
1015
+ reporting: { min: 0, max: 65000, change: 0 },
1016
+ access: "STATE_GET",
1017
+ description: "Leak detection on wireless channel 4",
1018
+ }),
1019
+ m.binary({
1020
+ name: "channel_5_leak_detect",
1021
+ endpointName: "21",
1022
+ cluster: "EnsystecLeakProtect",
1023
+ attribute: "leakDetect",
1024
+ valueOn: ["Leak", 1],
1025
+ valueOff: ["Dry", 0],
1026
+ reporting: { min: 0, max: 65000, change: 0 },
1027
+ access: "STATE_GET",
1028
+ description: "Leak detection on wireless channel 5",
1029
+ }),
1030
+ m.binary({
1031
+ name: "channel_6_leak_detect",
1032
+ endpointName: "22",
1033
+ cluster: "EnsystecLeakProtect",
1034
+ attribute: "leakDetect",
1035
+ valueOn: ["Leak", 1],
1036
+ valueOff: ["Dry", 0],
1037
+ reporting: { min: 0, max: 65000, change: 0 },
1038
+ access: "STATE_GET",
1039
+ description: "Leak detection on wireless channel 6",
1040
+ }),
1041
+ m.binary({
1042
+ name: "channel_7_leak_detect",
1043
+ endpointName: "23",
1044
+ cluster: "EnsystecLeakProtect",
1045
+ attribute: "leakDetect",
1046
+ valueOn: ["Leak", 1],
1047
+ valueOff: ["Dry", 0],
1048
+ reporting: { min: 0, max: 65000, change: 0 },
1049
+ access: "STATE_GET",
1050
+ description: "Leak detection on wireless channel 7",
1051
+ }),
1052
+ m.binary({
1053
+ name: "channel_8_leak_detect",
1054
+ endpointName: "24",
1055
+ cluster: "EnsystecLeakProtect",
1056
+ attribute: "leakDetect",
1057
+ valueOn: ["Leak", 1],
1058
+ valueOff: ["Dry", 0],
1059
+ reporting: { min: 0, max: 65000, change: 0 },
1060
+ access: "STATE_GET",
1061
+ description: "Leak detection on wireless channel 8",
1062
+ }),
1063
+ m.binary({
1064
+ name: "channel_9_leak_detect",
1065
+ endpointName: "25",
1066
+ cluster: "EnsystecLeakProtect",
1067
+ attribute: "leakDetect",
1068
+ valueOn: ["Leak", 1],
1069
+ valueOff: ["Dry", 0],
1070
+ reporting: { min: 0, max: 65000, change: 0 },
1071
+ access: "STATE_GET",
1072
+ description: "Leak detection on wireless channel 9",
1073
+ }),
1074
+ m.binary({
1075
+ name: "channel_10_leak_detect",
1076
+ endpointName: "26",
1077
+ cluster: "EnsystecLeakProtect",
1078
+ attribute: "leakDetect",
1079
+ valueOn: ["Leak", 1],
1080
+ valueOff: ["Dry", 0],
1081
+ reporting: { min: 0, max: 65000, change: 0 },
1082
+ access: "STATE_GET",
1083
+ description: "Leak detection on wireless channel 10",
1084
+ }),
1085
+ m.binary({
1086
+ name: "channel_1_battery_low",
1087
+ endpointName: "17",
1088
+ cluster: "EnsystecLeakProtect",
1089
+ attribute: "batteryLow",
1090
+ valueOn: ["Low", 1],
1091
+ valueOff: ["Normal", 0],
1092
+ reporting: { min: 0, max: 65000, change: 0 },
1093
+ access: "STATE_GET",
1094
+ description: "Battery level of wireless sensor on channel 1",
1095
+ }),
1096
+ m.binary({
1097
+ name: "channel_2_battery_low",
1098
+ endpointName: "18",
1099
+ cluster: "EnsystecLeakProtect",
1100
+ attribute: "batteryLow",
1101
+ valueOn: ["Low", 1],
1102
+ valueOff: ["Normal", 0],
1103
+ reporting: { min: 0, max: 65000, change: 0 },
1104
+ access: "STATE_GET",
1105
+ description: "Battery level of wireless sensor on channel 2",
1106
+ }),
1107
+ m.binary({
1108
+ name: "channel_3_battery_low",
1109
+ endpointName: "19",
1110
+ cluster: "EnsystecLeakProtect",
1111
+ attribute: "batteryLow",
1112
+ valueOn: ["Low", 1],
1113
+ valueOff: ["Normal", 0],
1114
+ reporting: { min: 0, max: 65000, change: 0 },
1115
+ access: "STATE_GET",
1116
+ description: "Battery level of wireless sensor on channel 3",
1117
+ }),
1118
+ m.binary({
1119
+ name: "channel_4_battery_low",
1120
+ endpointName: "20",
1121
+ cluster: "EnsystecLeakProtect",
1122
+ attribute: "batteryLow",
1123
+ valueOn: ["Low", 1],
1124
+ valueOff: ["Normal", 0],
1125
+ reporting: { min: 0, max: 65000, change: 0 },
1126
+ access: "STATE_GET",
1127
+ description: "Battery level of wireless sensor on channel 4",
1128
+ }),
1129
+ m.binary({
1130
+ name: "channel_5_battery_low",
1131
+ endpointName: "21",
1132
+ cluster: "EnsystecLeakProtect",
1133
+ attribute: "batteryLow",
1134
+ valueOn: ["Low", 1],
1135
+ valueOff: ["Normal", 0],
1136
+ reporting: { min: 0, max: 65000, change: 0 },
1137
+ access: "STATE_GET",
1138
+ description: "Battery level of wireless sensor on channel 5",
1139
+ }),
1140
+ m.binary({
1141
+ name: "channel_6_battery_low",
1142
+ endpointName: "22",
1143
+ cluster: "EnsystecLeakProtect",
1144
+ attribute: "batteryLow",
1145
+ valueOn: ["Low", 1],
1146
+ valueOff: ["Normal", 0],
1147
+ reporting: { min: 0, max: 65000, change: 0 },
1148
+ access: "STATE_GET",
1149
+ description: "Battery level of wireless sensor on channel 6",
1150
+ }),
1151
+ m.binary({
1152
+ name: "channel_7_battery_low",
1153
+ endpointName: "23",
1154
+ cluster: "EnsystecLeakProtect",
1155
+ attribute: "batteryLow",
1156
+ valueOn: ["Low", 1],
1157
+ valueOff: ["Normal", 0],
1158
+ reporting: { min: 0, max: 65000, change: 0 },
1159
+ access: "STATE_GET",
1160
+ description: "Battery level of wireless sensor on channel 7",
1161
+ }),
1162
+ m.binary({
1163
+ name: "channel_8_battery_low",
1164
+ endpointName: "24",
1165
+ cluster: "EnsystecLeakProtect",
1166
+ attribute: "batteryLow",
1167
+ valueOn: ["Low", 1],
1168
+ valueOff: ["Normal", 0],
1169
+ reporting: { min: 0, max: 65000, change: 0 },
1170
+ access: "STATE_GET",
1171
+ description: "Battery level of wireless sensor on channel 8",
1172
+ }),
1173
+ m.binary({
1174
+ name: "channel_9_battery_low",
1175
+ endpointName: "25",
1176
+ cluster: "EnsystecLeakProtect",
1177
+ attribute: "batteryLow",
1178
+ valueOn: ["Low", 1],
1179
+ valueOff: ["Normal", 0],
1180
+ reporting: { min: 0, max: 65000, change: 0 },
1181
+ access: "STATE_GET",
1182
+ description: "Battery level of wireless sensor on channel 9",
1183
+ }),
1184
+ m.binary({
1185
+ name: "channel_10_battery_low",
1186
+ endpointName: "26",
1187
+ cluster: "EnsystecLeakProtect",
1188
+ attribute: "batteryLow",
1189
+ valueOn: ["Low", 1],
1190
+ valueOff: ["Normal", 0],
1191
+ reporting: { min: 0, max: 65000, change: 0 },
1192
+ access: "STATE_GET",
1193
+ description: "Battery level of wireless sensor on channel 10",
1194
+ }),
1195
+ ],
1196
+ meta: {},
1197
+ ota: true,
1198
+ },
1199
+ ];
1200
+ //# sourceMappingURL=ensystec.js.map