@willieee802/zigbee-herdsman-converters 19.44.0 → 19.44.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 (1609) hide show
  1. package/dist/converters/actions.d.ts +36 -0
  2. package/dist/converters/actions.d.ts.map +1 -0
  3. package/dist/converters/actions.js +137 -0
  4. package/dist/converters/actions.js.map +1 -0
  5. package/dist/converters/fromZigbee.d.ts +293 -0
  6. package/dist/converters/fromZigbee.d.ts.map +1 -0
  7. package/dist/converters/fromZigbee.js +5192 -0
  8. package/dist/converters/fromZigbee.js.map +1 -0
  9. package/dist/converters/toZigbee.d.ts +235 -0
  10. package/dist/converters/toZigbee.d.ts.map +1 -0
  11. package/dist/converters/toZigbee.js +4577 -0
  12. package/dist/converters/toZigbee.js.map +1 -0
  13. package/dist/devices/ITCommander.d.ts +3 -0
  14. package/dist/devices/ITCommander.d.ts.map +1 -0
  15. package/dist/devices/ITCommander.js +73 -0
  16. package/dist/devices/ITCommander.js.map +1 -0
  17. package/dist/devices/acova.d.ts +3 -0
  18. package/dist/devices/acova.d.ts.map +1 -0
  19. package/dist/devices/acova.js +124 -0
  20. package/dist/devices/acova.js.map +1 -0
  21. package/dist/devices/acuity_brands_lighting.d.ts +3 -0
  22. package/dist/devices/acuity_brands_lighting.d.ts.map +1 -0
  23. package/dist/devices/acuity_brands_lighting.js +61 -0
  24. package/dist/devices/acuity_brands_lighting.js.map +1 -0
  25. package/dist/devices/adeo.d.ts +3 -0
  26. package/dist/devices/adeo.d.ts.map +1 -0
  27. package/dist/devices/adeo.js +518 -0
  28. package/dist/devices/adeo.js.map +1 -0
  29. package/dist/devices/adurosmart.d.ts +3 -0
  30. package/dist/devices/adurosmart.d.ts.map +1 -0
  31. package/dist/devices/adurosmart.js +235 -0
  32. package/dist/devices/adurosmart.js.map +1 -0
  33. package/dist/devices/aeotec.d.ts +3 -0
  34. package/dist/devices/aeotec.d.ts.map +1 -0
  35. package/dist/devices/aeotec.js +95 -0
  36. package/dist/devices/aeotec.js.map +1 -0
  37. package/dist/devices/airam.d.ts +3 -0
  38. package/dist/devices/airam.d.ts.map +1 -0
  39. package/dist/devices/airam.js +102 -0
  40. package/dist/devices/airam.js.map +1 -0
  41. package/dist/devices/airzone_aidoo.d.ts +3 -0
  42. package/dist/devices/airzone_aidoo.d.ts.map +1 -0
  43. package/dist/devices/airzone_aidoo.js +77 -0
  44. package/dist/devices/airzone_aidoo.js.map +1 -0
  45. package/dist/devices/ajax_online.d.ts +3 -0
  46. package/dist/devices/ajax_online.d.ts.map +1 -0
  47. package/dist/devices/ajax_online.js +83 -0
  48. package/dist/devices/ajax_online.js.map +1 -0
  49. package/dist/devices/akuvox.d.ts +3 -0
  50. package/dist/devices/akuvox.d.ts.map +1 -0
  51. package/dist/devices/akuvox.js +65 -0
  52. package/dist/devices/akuvox.js.map +1 -0
  53. package/dist/devices/alchemy.d.ts +3 -0
  54. package/dist/devices/alchemy.d.ts.map +1 -0
  55. package/dist/devices/alchemy.js +54 -0
  56. package/dist/devices/alchemy.js.map +1 -0
  57. package/dist/devices/aldi.d.ts +3 -0
  58. package/dist/devices/aldi.d.ts.map +1 -0
  59. package/dist/devices/aldi.js +54 -0
  60. package/dist/devices/aldi.js.map +1 -0
  61. package/dist/devices/alecto.d.ts +3 -0
  62. package/dist/devices/alecto.d.ts.map +1 -0
  63. package/dist/devices/alecto.js +91 -0
  64. package/dist/devices/alecto.js.map +1 -0
  65. package/dist/devices/amina.d.ts +3 -0
  66. package/dist/devices/amina.d.ts.map +1 -0
  67. package/dist/devices/amina.js +360 -0
  68. package/dist/devices/amina.js.map +1 -0
  69. package/dist/devices/anchor.d.ts +3 -0
  70. package/dist/devices/anchor.d.ts.map +1 -0
  71. package/dist/devices/anchor.js +47 -0
  72. package/dist/devices/anchor.js.map +1 -0
  73. package/dist/devices/atlantic.d.ts +3 -0
  74. package/dist/devices/atlantic.d.ts.map +1 -0
  75. package/dist/devices/atlantic.js +147 -0
  76. package/dist/devices/atlantic.js.map +1 -0
  77. package/dist/devices/atsmart.d.ts +3 -0
  78. package/dist/devices/atsmart.d.ts.map +1 -0
  79. package/dist/devices/atsmart.js +47 -0
  80. package/dist/devices/atsmart.js.map +1 -0
  81. package/dist/devices/aubess.d.ts +3 -0
  82. package/dist/devices/aubess.d.ts.map +1 -0
  83. package/dist/devices/aubess.js +60 -0
  84. package/dist/devices/aubess.js.map +1 -0
  85. package/dist/devices/aurora_lighting.d.ts +3 -0
  86. package/dist/devices/aurora_lighting.d.ts.map +1 -0
  87. package/dist/devices/aurora_lighting.js +347 -0
  88. package/dist/devices/aurora_lighting.js.map +1 -0
  89. package/dist/devices/automaton.d.ts +3 -0
  90. package/dist/devices/automaton.d.ts.map +1 -0
  91. package/dist/devices/automaton.js +64 -0
  92. package/dist/devices/automaton.js.map +1 -0
  93. package/dist/devices/avatto.d.ts +3 -0
  94. package/dist/devices/avatto.d.ts.map +1 -0
  95. package/dist/devices/avatto.js +635 -0
  96. package/dist/devices/avatto.js.map +1 -0
  97. package/dist/devices/awox.d.ts +3 -0
  98. package/dist/devices/awox.d.ts.map +1 -0
  99. package/dist/devices/awox.js +352 -0
  100. package/dist/devices/awox.js.map +1 -0
  101. package/dist/devices/axis.d.ts +3 -0
  102. package/dist/devices/axis.d.ts.map +1 -0
  103. package/dist/devices/axis.js +59 -0
  104. package/dist/devices/axis.js.map +1 -0
  105. package/dist/devices/bacchus.d.ts +3 -0
  106. package/dist/devices/bacchus.d.ts.map +1 -0
  107. package/dist/devices/bacchus.js +902 -0
  108. package/dist/devices/bacchus.js.map +1 -0
  109. package/dist/devices/bankamp.d.ts +3 -0
  110. package/dist/devices/bankamp.d.ts.map +1 -0
  111. package/dist/devices/bankamp.js +47 -0
  112. package/dist/devices/bankamp.js.map +1 -0
  113. package/dist/devices/bega.d.ts +3 -0
  114. package/dist/devices/bega.d.ts.map +1 -0
  115. package/dist/devices/bega.js +68 -0
  116. package/dist/devices/bega.js.map +1 -0
  117. package/dist/devices/belkin.d.ts +3 -0
  118. package/dist/devices/belkin.d.ts.map +1 -0
  119. package/dist/devices/belkin.js +47 -0
  120. package/dist/devices/belkin.js.map +1 -0
  121. package/dist/devices/bitron.d.ts +3 -0
  122. package/dist/devices/bitron.d.ts.map +1 -0
  123. package/dist/devices/bitron.js +357 -0
  124. package/dist/devices/bitron.js.map +1 -0
  125. package/dist/devices/bituo_technik.d.ts +3 -0
  126. package/dist/devices/bituo_technik.d.ts.map +1 -0
  127. package/dist/devices/bituo_technik.js +487 -0
  128. package/dist/devices/bituo_technik.js.map +1 -0
  129. package/dist/devices/blaupunkt.d.ts +3 -0
  130. package/dist/devices/blaupunkt.d.ts.map +1 -0
  131. package/dist/devices/blaupunkt.js +64 -0
  132. package/dist/devices/blaupunkt.js.map +1 -0
  133. package/dist/devices/blitzwolf.d.ts +3 -0
  134. package/dist/devices/blitzwolf.d.ts.map +1 -0
  135. package/dist/devices/blitzwolf.js +77 -0
  136. package/dist/devices/blitzwolf.js.map +1 -0
  137. package/dist/devices/bosch.d.ts +3 -0
  138. package/dist/devices/bosch.d.ts.map +1 -0
  139. package/dist/devices/bosch.js +1381 -0
  140. package/dist/devices/bosch.js.map +1 -0
  141. package/dist/devices/bouffalo_lab.d.ts +3 -0
  142. package/dist/devices/bouffalo_lab.d.ts.map +1 -0
  143. package/dist/devices/bouffalo_lab.js +47 -0
  144. package/dist/devices/bouffalo_lab.js.map +1 -0
  145. package/dist/devices/box.d.ts +3 -0
  146. package/dist/devices/box.d.ts.map +1 -0
  147. package/dist/devices/box.js +370 -0
  148. package/dist/devices/box.js.map +1 -0
  149. package/dist/devices/brimate.d.ts +3 -0
  150. package/dist/devices/brimate.d.ts.map +1 -0
  151. package/dist/devices/brimate.js +51 -0
  152. package/dist/devices/brimate.js.map +1 -0
  153. package/dist/devices/brun_holding.d.ts +3 -0
  154. package/dist/devices/brun_holding.d.ts.map +1 -0
  155. package/dist/devices/brun_holding.js +59 -0
  156. package/dist/devices/brun_holding.js.map +1 -0
  157. package/dist/devices/bseed.d.ts +3 -0
  158. package/dist/devices/bseed.d.ts.map +1 -0
  159. package/dist/devices/bseed.js +53 -0
  160. package/dist/devices/bseed.js.map +1 -0
  161. package/dist/devices/bticino.d.ts +3 -0
  162. package/dist/devices/bticino.d.ts.map +1 -0
  163. package/dist/devices/bticino.js +111 -0
  164. package/dist/devices/bticino.js.map +1 -0
  165. package/dist/devices/bubendorff.d.ts +3 -0
  166. package/dist/devices/bubendorff.d.ts.map +1 -0
  167. package/dist/devices/bubendorff.js +47 -0
  168. package/dist/devices/bubendorff.js.map +1 -0
  169. package/dist/devices/busch_jaeger.d.ts +3 -0
  170. package/dist/devices/busch_jaeger.d.ts.map +1 -0
  171. package/dist/devices/busch_jaeger.js +163 -0
  172. package/dist/devices/busch_jaeger.js.map +1 -0
  173. package/dist/devices/byun.d.ts +3 -0
  174. package/dist/devices/byun.d.ts.map +1 -0
  175. package/dist/devices/byun.js +60 -0
  176. package/dist/devices/byun.js.map +1 -0
  177. package/dist/devices/calex.d.ts +3 -0
  178. package/dist/devices/calex.d.ts.map +1 -0
  179. package/dist/devices/calex.js +87 -0
  180. package/dist/devices/calex.js.map +1 -0
  181. package/dist/devices/candeo.d.ts +3 -0
  182. package/dist/devices/candeo.d.ts.map +1 -0
  183. package/dist/devices/candeo.js +887 -0
  184. package/dist/devices/candeo.js.map +1 -0
  185. package/dist/devices/casaia.d.ts +3 -0
  186. package/dist/devices/casaia.d.ts.map +1 -0
  187. package/dist/devices/casaia.js +95 -0
  188. package/dist/devices/casaia.js.map +1 -0
  189. package/dist/devices/cel.d.ts +3 -0
  190. package/dist/devices/cel.d.ts.map +1 -0
  191. package/dist/devices/cel.js +49 -0
  192. package/dist/devices/cel.js.map +1 -0
  193. package/dist/devices/centralite.d.ts +28 -0
  194. package/dist/devices/centralite.d.ts.map +1 -0
  195. package/dist/devices/centralite.js +440 -0
  196. package/dist/devices/centralite.js.map +1 -0
  197. package/dist/devices/chacon.d.ts +3 -0
  198. package/dist/devices/chacon.d.ts.map +1 -0
  199. package/dist/devices/chacon.js +57 -0
  200. package/dist/devices/chacon.js.map +1 -0
  201. package/dist/devices/cleode.d.ts +3 -0
  202. package/dist/devices/cleode.d.ts.map +1 -0
  203. package/dist/devices/cleode.js +47 -0
  204. package/dist/devices/cleode.js.map +1 -0
  205. package/dist/devices/cleverio.d.ts +3 -0
  206. package/dist/devices/cleverio.d.ts.map +1 -0
  207. package/dist/devices/cleverio.js +74 -0
  208. package/dist/devices/cleverio.js.map +1 -0
  209. package/dist/devices/climax.d.ts +3 -0
  210. package/dist/devices/climax.d.ts.map +1 -0
  211. package/dist/devices/climax.js +184 -0
  212. package/dist/devices/climax.js.map +1 -0
  213. package/dist/devices/commercial_electric.d.ts +3 -0
  214. package/dist/devices/commercial_electric.d.ts.map +1 -0
  215. package/dist/devices/commercial_electric.js +47 -0
  216. package/dist/devices/commercial_electric.js.map +1 -0
  217. package/dist/devices/cree.d.ts +3 -0
  218. package/dist/devices/cree.d.ts.map +1 -0
  219. package/dist/devices/cree.js +47 -0
  220. package/dist/devices/cree.js.map +1 -0
  221. package/dist/devices/ctm.d.ts +3 -0
  222. package/dist/devices/ctm.d.ts.map +1 -0
  223. package/dist/devices/ctm.js +1411 -0
  224. package/dist/devices/ctm.js.map +1 -0
  225. package/dist/devices/current_products_corp.d.ts +3 -0
  226. package/dist/devices/current_products_corp.d.ts.map +1 -0
  227. package/dist/devices/current_products_corp.js +60 -0
  228. package/dist/devices/current_products_corp.js.map +1 -0
  229. package/dist/devices/custom_devices_diy.d.ts +3 -0
  230. package/dist/devices/custom_devices_diy.d.ts.map +1 -0
  231. package/dist/devices/custom_devices_diy.js +1302 -0
  232. package/dist/devices/custom_devices_diy.js.map +1 -0
  233. package/dist/devices/cwd.d.ts +3 -0
  234. package/dist/devices/cwd.d.ts.map +1 -0
  235. package/dist/devices/cwd.js +47 -0
  236. package/dist/devices/cwd.js.map +1 -0
  237. package/dist/devices/cy_lighting.d.ts +3 -0
  238. package/dist/devices/cy_lighting.d.ts.map +1 -0
  239. package/dist/devices/cy_lighting.js +47 -0
  240. package/dist/devices/cy_lighting.js.map +1 -0
  241. package/dist/devices/danalock.d.ts +3 -0
  242. package/dist/devices/danalock.d.ts.map +1 -0
  243. package/dist/devices/danalock.js +61 -0
  244. package/dist/devices/danalock.js.map +1 -0
  245. package/dist/devices/danfoss.d.ts +3 -0
  246. package/dist/devices/danfoss.d.ts.map +1 -0
  247. package/dist/devices/danfoss.js +793 -0
  248. package/dist/devices/danfoss.js.map +1 -0
  249. package/dist/devices/databyte.d.ts +3 -0
  250. package/dist/devices/databyte.d.ts.map +1 -0
  251. package/dist/devices/databyte.js +90 -0
  252. package/dist/devices/databyte.js.map +1 -0
  253. package/dist/devices/datek.d.ts +3 -0
  254. package/dist/devices/datek.d.ts.map +1 -0
  255. package/dist/devices/datek.js +303 -0
  256. package/dist/devices/datek.js.map +1 -0
  257. package/dist/devices/dawon_dns.d.ts +3 -0
  258. package/dist/devices/dawon_dns.d.ts.map +1 -0
  259. package/dist/devices/dawon_dns.js +314 -0
  260. package/dist/devices/dawon_dns.js.map +1 -0
  261. package/dist/devices/develco.d.ts +3 -0
  262. package/dist/devices/develco.d.ts.map +1 -0
  263. package/dist/devices/develco.js +1113 -0
  264. package/dist/devices/develco.js.map +1 -0
  265. package/dist/devices/digi.d.ts +3 -0
  266. package/dist/devices/digi.d.ts.map +1 -0
  267. package/dist/devices/digi.js +24 -0
  268. package/dist/devices/digi.js.map +1 -0
  269. package/dist/devices/direct_signs.d.ts +3 -0
  270. package/dist/devices/direct_signs.d.ts.map +1 -0
  271. package/dist/devices/direct_signs.js +47 -0
  272. package/dist/devices/direct_signs.js.map +1 -0
  273. package/dist/devices/diyruz.d.ts +3 -0
  274. package/dist/devices/diyruz.d.ts.map +1 -0
  275. package/dist/devices/diyruz.js +397 -0
  276. package/dist/devices/diyruz.js.map +1 -0
  277. package/dist/devices/dlink.d.ts +3 -0
  278. package/dist/devices/dlink.d.ts.map +1 -0
  279. package/dist/devices/dlink.js +72 -0
  280. package/dist/devices/dlink.js.map +1 -0
  281. package/dist/devices/dnake.d.ts +3 -0
  282. package/dist/devices/dnake.d.ts.map +1 -0
  283. package/dist/devices/dnake.js +47 -0
  284. package/dist/devices/dnake.js.map +1 -0
  285. package/dist/devices/domraem.d.ts +3 -0
  286. package/dist/devices/domraem.d.ts.map +1 -0
  287. package/dist/devices/domraem.js +75 -0
  288. package/dist/devices/domraem.js.map +1 -0
  289. package/dist/devices/dowsing_reynolds.d.ts +3 -0
  290. package/dist/devices/dowsing_reynolds.d.ts.map +1 -0
  291. package/dist/devices/dowsing_reynolds.js +47 -0
  292. package/dist/devices/dowsing_reynolds.js.map +1 -0
  293. package/dist/devices/dqsmart.d.ts +3 -0
  294. package/dist/devices/dqsmart.d.ts.map +1 -0
  295. package/dist/devices/dqsmart.js +50 -0
  296. package/dist/devices/dqsmart.js.map +1 -0
  297. package/dist/devices/dresden_elektronik.d.ts +3 -0
  298. package/dist/devices/dresden_elektronik.d.ts.map +1 -0
  299. package/dist/devices/dresden_elektronik.js +167 -0
  300. package/dist/devices/dresden_elektronik.js.map +1 -0
  301. package/dist/devices/easyaccess.d.ts +3 -0
  302. package/dist/devices/easyaccess.d.ts.map +1 -0
  303. package/dist/devices/easyaccess.js +67 -0
  304. package/dist/devices/easyaccess.js.map +1 -0
  305. package/dist/devices/easyiot.d.ts +3 -0
  306. package/dist/devices/easyiot.d.ts.map +1 -0
  307. package/dist/devices/easyiot.js +359 -0
  308. package/dist/devices/easyiot.js.map +1 -0
  309. package/dist/devices/eatonhalo_led.d.ts +3 -0
  310. package/dist/devices/eatonhalo_led.d.ts.map +1 -0
  311. package/dist/devices/eatonhalo_led.js +47 -0
  312. package/dist/devices/eatonhalo_led.js.map +1 -0
  313. package/dist/devices/echostar.d.ts +3 -0
  314. package/dist/devices/echostar.d.ts.map +1 -0
  315. package/dist/devices/echostar.js +61 -0
  316. package/dist/devices/echostar.js.map +1 -0
  317. package/dist/devices/ecodim.d.ts +3 -0
  318. package/dist/devices/ecodim.d.ts.map +1 -0
  319. package/dist/devices/ecodim.js +274 -0
  320. package/dist/devices/ecodim.js.map +1 -0
  321. package/dist/devices/ecolink.d.ts +3 -0
  322. package/dist/devices/ecolink.d.ts.map +1 -0
  323. package/dist/devices/ecolink.js +57 -0
  324. package/dist/devices/ecolink.js.map +1 -0
  325. package/dist/devices/ecosmart.d.ts +3 -0
  326. package/dist/devices/ecosmart.d.ts.map +1 -0
  327. package/dist/devices/ecosmart.js +115 -0
  328. package/dist/devices/ecosmart.js.map +1 -0
  329. package/dist/devices/ecozy.d.ts +3 -0
  330. package/dist/devices/ecozy.d.ts.map +1 -0
  331. package/dist/devices/ecozy.js +85 -0
  332. package/dist/devices/ecozy.js.map +1 -0
  333. package/dist/devices/edp.d.ts +3 -0
  334. package/dist/devices/edp.d.ts.map +1 -0
  335. package/dist/devices/edp.js +70 -0
  336. package/dist/devices/edp.js.map +1 -0
  337. package/dist/devices/efekta.d.ts +3 -0
  338. package/dist/devices/efekta.d.ts.map +1 -0
  339. package/dist/devices/efekta.js +8230 -0
  340. package/dist/devices/efekta.js.map +1 -0
  341. package/dist/devices/eglo.d.ts +3 -0
  342. package/dist/devices/eglo.d.ts.map +1 -0
  343. package/dist/devices/eglo.js +142 -0
  344. package/dist/devices/eglo.js.map +1 -0
  345. package/dist/devices/elko.d.ts +27 -0
  346. package/dist/devices/elko.d.ts.map +1 -0
  347. package/dist/devices/elko.js +306 -0
  348. package/dist/devices/elko.js.map +1 -0
  349. package/dist/devices/enbrighten.d.ts +3 -0
  350. package/dist/devices/enbrighten.d.ts.map +1 -0
  351. package/dist/devices/enbrighten.js +152 -0
  352. package/dist/devices/enbrighten.js.map +1 -0
  353. package/dist/devices/engo.d.ts +3 -0
  354. package/dist/devices/engo.d.ts.map +1 -0
  355. package/dist/devices/engo.js +1041 -0
  356. package/dist/devices/engo.js.map +1 -0
  357. package/dist/devices/enkin.d.ts +3 -0
  358. package/dist/devices/enkin.d.ts.map +1 -0
  359. package/dist/devices/enkin.js +14 -0
  360. package/dist/devices/enkin.js.map +1 -0
  361. package/dist/devices/enocean.d.ts +3 -0
  362. package/dist/devices/enocean.d.ts.map +1 -0
  363. package/dist/devices/enocean.js +150 -0
  364. package/dist/devices/enocean.js.map +1 -0
  365. package/dist/devices/envilar.d.ts +3 -0
  366. package/dist/devices/envilar.d.ts.map +1 -0
  367. package/dist/devices/envilar.js +131 -0
  368. package/dist/devices/envilar.js.map +1 -0
  369. package/dist/devices/espressif.d.ts +3 -0
  370. package/dist/devices/espressif.d.ts.map +1 -0
  371. package/dist/devices/espressif.js +61 -0
  372. package/dist/devices/espressif.js.map +1 -0
  373. package/dist/devices/essentialb.d.ts +3 -0
  374. package/dist/devices/essentialb.d.ts.map +1 -0
  375. package/dist/devices/essentialb.js +133 -0
  376. package/dist/devices/essentialb.js.map +1 -0
  377. package/dist/devices/essentials.d.ts +3 -0
  378. package/dist/devices/essentials.d.ts.map +1 -0
  379. package/dist/devices/essentials.js +150 -0
  380. package/dist/devices/essentials.js.map +1 -0
  381. package/dist/devices/eucontrols.d.ts +3 -0
  382. package/dist/devices/eucontrols.d.ts.map +1 -0
  383. package/dist/devices/eucontrols.js +47 -0
  384. package/dist/devices/eucontrols.js.map +1 -0
  385. package/dist/devices/eurotronic.d.ts +3 -0
  386. package/dist/devices/eurotronic.d.ts.map +1 -0
  387. package/dist/devices/eurotronic.js +278 -0
  388. package/dist/devices/eurotronic.js.map +1 -0
  389. package/dist/devices/evanell.d.ts +3 -0
  390. package/dist/devices/evanell.d.ts.map +1 -0
  391. package/dist/devices/evanell.js +66 -0
  392. package/dist/devices/evanell.js.map +1 -0
  393. package/dist/devices/evn.d.ts +3 -0
  394. package/dist/devices/evn.d.ts.map +1 -0
  395. package/dist/devices/evn.js +97 -0
  396. package/dist/devices/evn.js.map +1 -0
  397. package/dist/devices/evology.d.ts +3 -0
  398. package/dist/devices/evology.d.ts.map +1 -0
  399. package/dist/devices/evology.js +60 -0
  400. package/dist/devices/evology.js.map +1 -0
  401. package/dist/devices/evvr.d.ts +3 -0
  402. package/dist/devices/evvr.d.ts.map +1 -0
  403. package/dist/devices/evvr.js +47 -0
  404. package/dist/devices/evvr.js.map +1 -0
  405. package/dist/devices/ewelink.d.ts +3 -0
  406. package/dist/devices/ewelink.d.ts.map +1 -0
  407. package/dist/devices/ewelink.js +326 -0
  408. package/dist/devices/ewelink.js.map +1 -0
  409. package/dist/devices/ezex.d.ts +3 -0
  410. package/dist/devices/ezex.d.ts.map +1 -0
  411. package/dist/devices/ezex.js +47 -0
  412. package/dist/devices/ezex.js.map +1 -0
  413. package/dist/devices/ezviz.d.ts +3 -0
  414. package/dist/devices/ezviz.d.ts.map +1 -0
  415. package/dist/devices/ezviz.js +47 -0
  416. package/dist/devices/ezviz.js.map +1 -0
  417. package/dist/devices/fantem.d.ts +3 -0
  418. package/dist/devices/fantem.d.ts.map +1 -0
  419. package/dist/devices/fantem.js +112 -0
  420. package/dist/devices/fantem.js.map +1 -0
  421. package/dist/devices/feibit.d.ts +3 -0
  422. package/dist/devices/feibit.d.ts.map +1 -0
  423. package/dist/devices/feibit.js +335 -0
  424. package/dist/devices/feibit.js.map +1 -0
  425. package/dist/devices/fireangel.d.ts +3 -0
  426. package/dist/devices/fireangel.d.ts.map +1 -0
  427. package/dist/devices/fireangel.js +96 -0
  428. package/dist/devices/fireangel.js.map +1 -0
  429. package/dist/devices/frankever.d.ts +3 -0
  430. package/dist/devices/frankever.d.ts.map +1 -0
  431. package/dist/devices/frankever.js +67 -0
  432. package/dist/devices/frankever.js.map +1 -0
  433. package/dist/devices/frient.d.ts +3 -0
  434. package/dist/devices/frient.d.ts.map +1 -0
  435. package/dist/devices/frient.js +84 -0
  436. package/dist/devices/frient.js.map +1 -0
  437. package/dist/devices/futurehome.d.ts +3 -0
  438. package/dist/devices/futurehome.d.ts.map +1 -0
  439. package/dist/devices/futurehome.js +137 -0
  440. package/dist/devices/futurehome.js.map +1 -0
  441. package/dist/devices/ge.d.ts +3 -0
  442. package/dist/devices/ge.d.ts.map +1 -0
  443. package/dist/devices/ge.js +130 -0
  444. package/dist/devices/ge.js.map +1 -0
  445. package/dist/devices/gewiss.d.ts +3 -0
  446. package/dist/devices/gewiss.d.ts.map +1 -0
  447. package/dist/devices/gewiss.js +148 -0
  448. package/dist/devices/gewiss.js.map +1 -0
  449. package/dist/devices/gidealed.d.ts +3 -0
  450. package/dist/devices/gidealed.d.ts.map +1 -0
  451. package/dist/devices/gidealed.js +47 -0
  452. package/dist/devices/gidealed.js.map +1 -0
  453. package/dist/devices/giderwel.d.ts +3 -0
  454. package/dist/devices/giderwel.d.ts.map +1 -0
  455. package/dist/devices/giderwel.js +47 -0
  456. package/dist/devices/giderwel.js.map +1 -0
  457. package/dist/devices/giex.d.ts +3 -0
  458. package/dist/devices/giex.d.ts.map +1 -0
  459. package/dist/devices/giex.js +114 -0
  460. package/dist/devices/giex.js.map +1 -0
  461. package/dist/devices/girier.d.ts +3 -0
  462. package/dist/devices/girier.d.ts.map +1 -0
  463. package/dist/devices/girier.js +51 -0
  464. package/dist/devices/girier.js.map +1 -0
  465. package/dist/devices/gledopto.d.ts +3 -0
  466. package/dist/devices/gledopto.d.ts.map +1 -0
  467. package/dist/devices/gledopto.js +1395 -0
  468. package/dist/devices/gledopto.js.map +1 -0
  469. package/dist/devices/gmmts.d.ts +3 -0
  470. package/dist/devices/gmmts.d.ts.map +1 -0
  471. package/dist/devices/gmmts.js +2267 -0
  472. package/dist/devices/gmmts.js.map +1 -0
  473. package/dist/devices/gmy.d.ts +3 -0
  474. package/dist/devices/gmy.d.ts.map +1 -0
  475. package/dist/devices/gmy.js +47 -0
  476. package/dist/devices/gmy.js.map +1 -0
  477. package/dist/devices/gs.d.ts +3 -0
  478. package/dist/devices/gs.d.ts.map +1 -0
  479. package/dist/devices/gs.js +121 -0
  480. package/dist/devices/gs.js.map +1 -0
  481. package/dist/devices/gumax.d.ts +3 -0
  482. package/dist/devices/gumax.d.ts.map +1 -0
  483. package/dist/devices/gumax.js +47 -0
  484. package/dist/devices/gumax.js.map +1 -0
  485. package/dist/devices/halemeier.d.ts +3 -0
  486. package/dist/devices/halemeier.d.ts.map +1 -0
  487. package/dist/devices/halemeier.js +142 -0
  488. package/dist/devices/halemeier.js.map +1 -0
  489. package/dist/devices/hampton_bay.d.ts +3 -0
  490. package/dist/devices/hampton_bay.d.ts.map +1 -0
  491. package/dist/devices/hampton_bay.js +68 -0
  492. package/dist/devices/hampton_bay.js.map +1 -0
  493. package/dist/devices/heatit.d.ts +3 -0
  494. package/dist/devices/heatit.d.ts.map +1 -0
  495. package/dist/devices/heatit.js +47 -0
  496. package/dist/devices/heatit.js.map +1 -0
  497. package/dist/devices/heiman.d.ts +3 -0
  498. package/dist/devices/heiman.d.ts.map +1 -0
  499. package/dist/devices/heiman.js +2092 -0
  500. package/dist/devices/heiman.js.map +1 -0
  501. package/dist/devices/heimgard_technologies.d.ts +3 -0
  502. package/dist/devices/heimgard_technologies.d.ts.map +1 -0
  503. package/dist/devices/heimgard_technologies.js +189 -0
  504. package/dist/devices/heimgard_technologies.js.map +1 -0
  505. package/dist/devices/hej.d.ts +3 -0
  506. package/dist/devices/hej.d.ts.map +1 -0
  507. package/dist/devices/hej.js +126 -0
  508. package/dist/devices/hej.js.map +1 -0
  509. package/dist/devices/hfh.d.ts +3 -0
  510. package/dist/devices/hfh.d.ts.map +1 -0
  511. package/dist/devices/hfh.js +47 -0
  512. package/dist/devices/hfh.js.map +1 -0
  513. package/dist/devices/hilux.d.ts +3 -0
  514. package/dist/devices/hilux.d.ts.map +1 -0
  515. package/dist/devices/hilux.js +54 -0
  516. package/dist/devices/hilux.js.map +1 -0
  517. package/dist/devices/hive.d.ts +3 -0
  518. package/dist/devices/hive.d.ts.map +1 -0
  519. package/dist/devices/hive.js +798 -0
  520. package/dist/devices/hive.js.map +1 -0
  521. package/dist/devices/hoftronic.d.ts +3 -0
  522. package/dist/devices/hoftronic.d.ts.map +1 -0
  523. package/dist/devices/hoftronic.js +56 -0
  524. package/dist/devices/hoftronic.js.map +1 -0
  525. package/dist/devices/homeseer.d.ts +3 -0
  526. package/dist/devices/homeseer.d.ts.map +1 -0
  527. package/dist/devices/homeseer.js +53 -0
  528. package/dist/devices/homeseer.js.map +1 -0
  529. package/dist/devices/hommyn.d.ts +3 -0
  530. package/dist/devices/hommyn.d.ts.map +1 -0
  531. package/dist/devices/hommyn.js +60 -0
  532. package/dist/devices/hommyn.js.map +1 -0
  533. package/dist/devices/honyar.d.ts +3 -0
  534. package/dist/devices/honyar.d.ts.map +1 -0
  535. package/dist/devices/honyar.js +167 -0
  536. package/dist/devices/honyar.js.map +1 -0
  537. package/dist/devices/hornbach.d.ts +3 -0
  538. package/dist/devices/hornbach.d.ts.map +1 -0
  539. package/dist/devices/hornbach.js +138 -0
  540. package/dist/devices/hornbach.js.map +1 -0
  541. package/dist/devices/hzc_electric.d.ts +3 -0
  542. package/dist/devices/hzc_electric.d.ts.map +1 -0
  543. package/dist/devices/hzc_electric.js +102 -0
  544. package/dist/devices/hzc_electric.js.map +1 -0
  545. package/dist/devices/icasa.d.ts +3 -0
  546. package/dist/devices/icasa.d.ts.map +1 -0
  547. package/dist/devices/icasa.js +174 -0
  548. package/dist/devices/icasa.js.map +1 -0
  549. package/dist/devices/idinio.d.ts +3 -0
  550. package/dist/devices/idinio.d.ts.map +1 -0
  551. package/dist/devices/idinio.js +47 -0
  552. package/dist/devices/idinio.js.map +1 -0
  553. package/dist/devices/ihorn.d.ts +3 -0
  554. package/dist/devices/ihorn.d.ts.map +1 -0
  555. package/dist/devices/ihorn.js +105 -0
  556. package/dist/devices/ihorn.js.map +1 -0
  557. package/dist/devices/ikea.d.ts +3 -0
  558. package/dist/devices/ikea.d.ts.map +1 -0
  559. package/dist/devices/ikea.js +1241 -0
  560. package/dist/devices/ikea.js.map +1 -0
  561. package/dist/devices/ilightsin.d.ts +3 -0
  562. package/dist/devices/ilightsin.d.ts.map +1 -0
  563. package/dist/devices/ilightsin.js +59 -0
  564. package/dist/devices/ilightsin.js.map +1 -0
  565. package/dist/devices/iluminize.d.ts +3 -0
  566. package/dist/devices/iluminize.d.ts.map +1 -0
  567. package/dist/devices/iluminize.js +385 -0
  568. package/dist/devices/iluminize.js.map +1 -0
  569. package/dist/devices/ilux.d.ts +3 -0
  570. package/dist/devices/ilux.d.ts.map +1 -0
  571. package/dist/devices/ilux.js +47 -0
  572. package/dist/devices/ilux.js.map +1 -0
  573. package/dist/devices/imhotepcreation.d.ts +3 -0
  574. package/dist/devices/imhotepcreation.d.ts.map +1 -0
  575. package/dist/devices/imhotepcreation.js +240 -0
  576. package/dist/devices/imhotepcreation.js.map +1 -0
  577. package/dist/devices/immax.d.ts +3 -0
  578. package/dist/devices/immax.d.ts.map +1 -0
  579. package/dist/devices/immax.js +471 -0
  580. package/dist/devices/immax.js.map +1 -0
  581. package/dist/devices/imou.d.ts +3 -0
  582. package/dist/devices/imou.d.ts.map +1 -0
  583. package/dist/devices/imou.js +109 -0
  584. package/dist/devices/imou.js.map +1 -0
  585. package/dist/devices/index.d.ts +4 -0
  586. package/dist/devices/index.d.ts.map +1 -0
  587. package/dist/devices/index.js +738 -0
  588. package/dist/devices/index.js.map +1 -0
  589. package/dist/devices/innr.d.ts +3 -0
  590. package/dist/devices/innr.d.ts.map +1 -0
  591. package/dist/devices/innr.js +1033 -0
  592. package/dist/devices/innr.js.map +1 -0
  593. package/dist/devices/inovelli.d.ts +3 -0
  594. package/dist/devices/inovelli.d.ts.map +1 -0
  595. package/dist/devices/inovelli.js +2474 -0
  596. package/dist/devices/inovelli.js.map +1 -0
  597. package/dist/devices/insta.d.ts +3 -0
  598. package/dist/devices/insta.d.ts.map +1 -0
  599. package/dist/devices/insta.js +182 -0
  600. package/dist/devices/insta.js.map +1 -0
  601. package/dist/devices/intuis.d.ts +3 -0
  602. package/dist/devices/intuis.d.ts.map +1 -0
  603. package/dist/devices/intuis.js +95 -0
  604. package/dist/devices/intuis.js.map +1 -0
  605. package/dist/devices/iolloi.d.ts +3 -0
  606. package/dist/devices/iolloi.d.ts.map +1 -0
  607. package/dist/devices/iolloi.js +48 -0
  608. package/dist/devices/iolloi.js.map +1 -0
  609. package/dist/devices/iotperfect.d.ts +3 -0
  610. package/dist/devices/iotperfect.d.ts.map +1 -0
  611. package/dist/devices/iotperfect.js +60 -0
  612. package/dist/devices/iotperfect.js.map +1 -0
  613. package/dist/devices/iris.d.ts +3 -0
  614. package/dist/devices/iris.d.ts.map +1 -0
  615. package/dist/devices/iris.js +208 -0
  616. package/dist/devices/iris.js.map +1 -0
  617. package/dist/devices/istar.d.ts +3 -0
  618. package/dist/devices/istar.d.ts.map +1 -0
  619. package/dist/devices/istar.js +61 -0
  620. package/dist/devices/istar.js.map +1 -0
  621. package/dist/devices/jasco.d.ts +3 -0
  622. package/dist/devices/jasco.d.ts.map +1 -0
  623. package/dist/devices/jasco.js +63 -0
  624. package/dist/devices/jasco.js.map +1 -0
  625. package/dist/devices/javis.d.ts +3 -0
  626. package/dist/devices/javis.d.ts.map +1 -0
  627. package/dist/devices/javis.js +77 -0
  628. package/dist/devices/javis.js.map +1 -0
  629. package/dist/devices/jethome.d.ts +3 -0
  630. package/dist/devices/jethome.d.ts.map +1 -0
  631. package/dist/devices/jethome.js +120 -0
  632. package/dist/devices/jethome.js.map +1 -0
  633. package/dist/devices/jiawen.d.ts +3 -0
  634. package/dist/devices/jiawen.d.ts.map +1 -0
  635. package/dist/devices/jiawen.js +54 -0
  636. package/dist/devices/jiawen.js.map +1 -0
  637. package/dist/devices/jumitech.d.ts +3 -0
  638. package/dist/devices/jumitech.d.ts.map +1 -0
  639. package/dist/devices/jumitech.js +47 -0
  640. package/dist/devices/jumitech.js.map +1 -0
  641. package/dist/devices/jxuan.d.ts +3 -0
  642. package/dist/devices/jxuan.d.ts.map +1 -0
  643. package/dist/devices/jxuan.js +85 -0
  644. package/dist/devices/jxuan.js.map +1 -0
  645. package/dist/devices/kami.d.ts +3 -0
  646. package/dist/devices/kami.d.ts.map +1 -0
  647. package/dist/devices/kami.js +51 -0
  648. package/dist/devices/kami.js.map +1 -0
  649. package/dist/devices/keen_home.d.ts +3 -0
  650. package/dist/devices/keen_home.d.ts.map +1 -0
  651. package/dist/devices/keen_home.js +155 -0
  652. package/dist/devices/keen_home.js.map +1 -0
  653. package/dist/devices/klikaanklikuit.d.ts +3 -0
  654. package/dist/devices/klikaanklikuit.d.ts.map +1 -0
  655. package/dist/devices/klikaanklikuit.js +54 -0
  656. package/dist/devices/klikaanklikuit.js.map +1 -0
  657. package/dist/devices/kmpcil.d.ts +3 -0
  658. package/dist/devices/kmpcil.d.ts.map +1 -0
  659. package/dist/devices/kmpcil.js +212 -0
  660. package/dist/devices/kmpcil.js.map +1 -0
  661. package/dist/devices/konke.d.ts +3 -0
  662. package/dist/devices/konke.d.ts.map +1 -0
  663. package/dist/devices/konke.js +207 -0
  664. package/dist/devices/konke.js.map +1 -0
  665. package/dist/devices/ksentry.d.ts +3 -0
  666. package/dist/devices/ksentry.d.ts.map +1 -0
  667. package/dist/devices/ksentry.js +47 -0
  668. package/dist/devices/ksentry.js.map +1 -0
  669. package/dist/devices/kurvia.d.ts +3 -0
  670. package/dist/devices/kurvia.d.ts.map +1 -0
  671. package/dist/devices/kurvia.js +49 -0
  672. package/dist/devices/kurvia.js.map +1 -0
  673. package/dist/devices/kwikset.d.ts +3 -0
  674. package/dist/devices/kwikset.d.ts.map +1 -0
  675. package/dist/devices/kwikset.js +153 -0
  676. package/dist/devices/kwikset.js.map +1 -0
  677. package/dist/devices/lanesto.d.ts +3 -0
  678. package/dist/devices/lanesto.d.ts.map +1 -0
  679. package/dist/devices/lanesto.js +47 -0
  680. package/dist/devices/lanesto.js.map +1 -0
  681. package/dist/devices/lds.d.ts +3 -0
  682. package/dist/devices/lds.d.ts.map +1 -0
  683. package/dist/devices/lds.js +54 -0
  684. package/dist/devices/lds.js.map +1 -0
  685. package/dist/devices/led_trading.d.ts +3 -0
  686. package/dist/devices/led_trading.d.ts.map +1 -0
  687. package/dist/devices/led_trading.js +108 -0
  688. package/dist/devices/led_trading.js.map +1 -0
  689. package/dist/devices/ledvance.d.ts +3 -0
  690. package/dist/devices/ledvance.d.ts.map +1 -0
  691. package/dist/devices/ledvance.js +407 -0
  692. package/dist/devices/ledvance.js.map +1 -0
  693. package/dist/devices/leedarson.d.ts +3 -0
  694. package/dist/devices/leedarson.d.ts.map +1 -0
  695. package/dist/devices/leedarson.js +180 -0
  696. package/dist/devices/leedarson.js.map +1 -0
  697. package/dist/devices/legrand.d.ts +3 -0
  698. package/dist/devices/legrand.d.ts.map +1 -0
  699. package/dist/devices/legrand.js +809 -0
  700. package/dist/devices/legrand.js.map +1 -0
  701. package/dist/devices/lellki.d.ts +3 -0
  702. package/dist/devices/lellki.d.ts.map +1 -0
  703. package/dist/devices/lellki.js +162 -0
  704. package/dist/devices/lellki.js.map +1 -0
  705. package/dist/devices/letsled.d.ts +3 -0
  706. package/dist/devices/letsled.d.ts.map +1 -0
  707. package/dist/devices/letsled.js +47 -0
  708. package/dist/devices/letsled.js.map +1 -0
  709. package/dist/devices/letv.d.ts +3 -0
  710. package/dist/devices/letv.d.ts.map +1 -0
  711. package/dist/devices/letv.js +86 -0
  712. package/dist/devices/letv.js.map +1 -0
  713. package/dist/devices/leviton.d.ts +3 -0
  714. package/dist/devices/leviton.d.ts.map +1 -0
  715. package/dist/devices/leviton.js +160 -0
  716. package/dist/devices/leviton.js.map +1 -0
  717. package/dist/devices/lg.d.ts +3 -0
  718. package/dist/devices/lg.d.ts.map +1 -0
  719. package/dist/devices/lg.js +61 -0
  720. package/dist/devices/lg.js.map +1 -0
  721. package/dist/devices/lidl.d.ts +3 -0
  722. package/dist/devices/lidl.d.ts.map +1 -0
  723. package/dist/devices/lidl.js +669 -0
  724. package/dist/devices/lidl.js.map +1 -0
  725. package/dist/devices/lifecontrol.d.ts +3 -0
  726. package/dist/devices/lifecontrol.d.ts.map +1 -0
  727. package/dist/devices/lifecontrol.js +141 -0
  728. package/dist/devices/lifecontrol.js.map +1 -0
  729. package/dist/devices/lightsolutions.d.ts +3 -0
  730. package/dist/devices/lightsolutions.d.ts.map +1 -0
  731. package/dist/devices/lightsolutions.js +90 -0
  732. package/dist/devices/lightsolutions.js.map +1 -0
  733. package/dist/devices/lincukoo.d.ts +3 -0
  734. package/dist/devices/lincukoo.d.ts.map +1 -0
  735. package/dist/devices/lincukoo.js +788 -0
  736. package/dist/devices/lincukoo.js.map +1 -0
  737. package/dist/devices/linkind.d.ts +3 -0
  738. package/dist/devices/linkind.d.ts.map +1 -0
  739. package/dist/devices/linkind.js +251 -0
  740. package/dist/devices/linkind.js.map +1 -0
  741. package/dist/devices/linptech.d.ts +3 -0
  742. package/dist/devices/linptech.d.ts.map +1 -0
  743. package/dist/devices/linptech.js +157 -0
  744. package/dist/devices/linptech.js.map +1 -0
  745. package/dist/devices/livingwise.d.ts +3 -0
  746. package/dist/devices/livingwise.d.ts.map +1 -0
  747. package/dist/devices/livingwise.js +115 -0
  748. package/dist/devices/livingwise.js.map +1 -0
  749. package/dist/devices/livolo.d.ts +3 -0
  750. package/dist/devices/livolo.d.ts.map +1 -0
  751. package/dist/devices/livolo.js +263 -0
  752. package/dist/devices/livolo.js.map +1 -0
  753. package/dist/devices/lixee.d.ts +3 -0
  754. package/dist/devices/lixee.d.ts.map +1 -0
  755. package/dist/devices/lixee.js +2038 -0
  756. package/dist/devices/lixee.js.map +1 -0
  757. package/dist/devices/lonsonho.d.ts +3 -0
  758. package/dist/devices/lonsonho.d.ts.map +1 -0
  759. package/dist/devices/lonsonho.js +310 -0
  760. package/dist/devices/lonsonho.js.map +1 -0
  761. package/dist/devices/ls.d.ts +3 -0
  762. package/dist/devices/ls.d.ts.map +1 -0
  763. package/dist/devices/ls.js +152 -0
  764. package/dist/devices/ls.js.map +1 -0
  765. package/dist/devices/lubeez.d.ts +3 -0
  766. package/dist/devices/lubeez.d.ts.map +1 -0
  767. package/dist/devices/lubeez.js +47 -0
  768. package/dist/devices/lubeez.js.map +1 -0
  769. package/dist/devices/lumi.d.ts +3 -0
  770. package/dist/devices/lumi.d.ts.map +1 -0
  771. package/dist/devices/lumi.js +5345 -0
  772. package/dist/devices/lumi.js.map +1 -0
  773. package/dist/devices/lupus.d.ts +3 -0
  774. package/dist/devices/lupus.d.ts.map +1 -0
  775. package/dist/devices/lupus.js +94 -0
  776. package/dist/devices/lupus.js.map +1 -0
  777. package/dist/devices/lutron.d.ts +3 -0
  778. package/dist/devices/lutron.d.ts.map +1 -0
  779. package/dist/devices/lutron.js +81 -0
  780. package/dist/devices/lutron.js.map +1 -0
  781. package/dist/devices/lux.d.ts +3 -0
  782. package/dist/devices/lux.d.ts.map +1 -0
  783. package/dist/devices/lux.js +87 -0
  784. package/dist/devices/lux.js.map +1 -0
  785. package/dist/devices/lytko.d.ts +3 -0
  786. package/dist/devices/lytko.d.ts.map +1 -0
  787. package/dist/devices/lytko.js +1809 -0
  788. package/dist/devices/lytko.js.map +1 -0
  789. package/dist/devices/m_elec.d.ts +3 -0
  790. package/dist/devices/m_elec.d.ts.map +1 -0
  791. package/dist/devices/m_elec.js +68 -0
  792. package/dist/devices/m_elec.js.map +1 -0
  793. package/dist/devices/makegood.d.ts +3 -0
  794. package/dist/devices/makegood.d.ts.map +1 -0
  795. package/dist/devices/makegood.js +117 -0
  796. package/dist/devices/makegood.js.map +1 -0
  797. package/dist/devices/matcall_bv.d.ts +3 -0
  798. package/dist/devices/matcall_bv.d.ts.map +1 -0
  799. package/dist/devices/matcall_bv.js +54 -0
  800. package/dist/devices/matcall_bv.js.map +1 -0
  801. package/dist/devices/mazda.d.ts +3 -0
  802. package/dist/devices/mazda.d.ts.map +1 -0
  803. package/dist/devices/mazda.js +146 -0
  804. package/dist/devices/mazda.js.map +1 -0
  805. package/dist/devices/meazon.d.ts +3 -0
  806. package/dist/devices/meazon.d.ts.map +1 -0
  807. package/dist/devices/meazon.js +95 -0
  808. package/dist/devices/meazon.js.map +1 -0
  809. package/dist/devices/mercator.d.ts +3 -0
  810. package/dist/devices/mercator.d.ts.map +1 -0
  811. package/dist/devices/mercator.js +242 -0
  812. package/dist/devices/mercator.js.map +1 -0
  813. package/dist/devices/miboxer.d.ts +3 -0
  814. package/dist/devices/miboxer.d.ts.map +1 -0
  815. package/dist/devices/miboxer.js +304 -0
  816. package/dist/devices/miboxer.js.map +1 -0
  817. package/dist/devices/micromatic.d.ts +3 -0
  818. package/dist/devices/micromatic.d.ts.map +1 -0
  819. package/dist/devices/micromatic.js +47 -0
  820. package/dist/devices/micromatic.js.map +1 -0
  821. package/dist/devices/mill.d.ts +3 -0
  822. package/dist/devices/mill.d.ts.map +1 -0
  823. package/dist/devices/mill.js +52 -0
  824. package/dist/devices/mill.js.map +1 -0
  825. package/dist/devices/mindy.d.ts +3 -0
  826. package/dist/devices/mindy.d.ts.map +1 -0
  827. package/dist/devices/mindy.js +379 -0
  828. package/dist/devices/mindy.js.map +1 -0
  829. package/dist/devices/modular.d.ts +3 -0
  830. package/dist/devices/modular.d.ts.map +1 -0
  831. package/dist/devices/modular.js +47 -0
  832. package/dist/devices/modular.js.map +1 -0
  833. package/dist/devices/moes.d.ts +3 -0
  834. package/dist/devices/moes.d.ts.map +1 -0
  835. package/dist/devices/moes.js +2368 -0
  836. package/dist/devices/moes.js.map +1 -0
  837. package/dist/devices/muller_licht.d.ts +3 -0
  838. package/dist/devices/muller_licht.d.ts.map +1 -0
  839. package/dist/devices/muller_licht.js +366 -0
  840. package/dist/devices/muller_licht.js.map +1 -0
  841. package/dist/devices/multir.d.ts +3 -0
  842. package/dist/devices/multir.d.ts.map +1 -0
  843. package/dist/devices/multir.js +152 -0
  844. package/dist/devices/multir.js.map +1 -0
  845. package/dist/devices/multiterm.d.ts +3 -0
  846. package/dist/devices/multiterm.d.ts.map +1 -0
  847. package/dist/devices/multiterm.js +119 -0
  848. package/dist/devices/multiterm.js.map +1 -0
  849. package/dist/devices/namron.d.ts +3 -0
  850. package/dist/devices/namron.d.ts.map +1 -0
  851. package/dist/devices/namron.js +2004 -0
  852. package/dist/devices/namron.js.map +1 -0
  853. package/dist/devices/nanoleaf.d.ts +3 -0
  854. package/dist/devices/nanoleaf.d.ts.map +1 -0
  855. package/dist/devices/nanoleaf.js +47 -0
  856. package/dist/devices/nanoleaf.js.map +1 -0
  857. package/dist/devices/nedis.d.ts +3 -0
  858. package/dist/devices/nedis.d.ts.map +1 -0
  859. package/dist/devices/nedis.js +87 -0
  860. package/dist/devices/nedis.js.map +1 -0
  861. package/dist/devices/neo.d.ts +3 -0
  862. package/dist/devices/neo.d.ts.map +1 -0
  863. package/dist/devices/neo.js +526 -0
  864. package/dist/devices/neo.js.map +1 -0
  865. package/dist/devices/net2grid.d.ts +3 -0
  866. package/dist/devices/net2grid.d.ts.map +1 -0
  867. package/dist/devices/net2grid.js +64 -0
  868. package/dist/devices/net2grid.js.map +1 -0
  869. package/dist/devices/netvox.d.ts +3 -0
  870. package/dist/devices/netvox.d.ts.map +1 -0
  871. package/dist/devices/netvox.js +71 -0
  872. package/dist/devices/netvox.js.map +1 -0
  873. package/dist/devices/nexelec.d.ts +3 -0
  874. package/dist/devices/nexelec.d.ts.map +1 -0
  875. package/dist/devices/nexelec.js +47 -0
  876. package/dist/devices/nexelec.js.map +1 -0
  877. package/dist/devices/niko.d.ts +3 -0
  878. package/dist/devices/niko.d.ts.map +1 -0
  879. package/dist/devices/niko.js +769 -0
  880. package/dist/devices/niko.js.map +1 -0
  881. package/dist/devices/ninja_blocks.d.ts +3 -0
  882. package/dist/devices/ninja_blocks.d.ts.map +1 -0
  883. package/dist/devices/ninja_blocks.js +60 -0
  884. package/dist/devices/ninja_blocks.js.map +1 -0
  885. package/dist/devices/niviss.d.ts +3 -0
  886. package/dist/devices/niviss.d.ts.map +1 -0
  887. package/dist/devices/niviss.js +47 -0
  888. package/dist/devices/niviss.js.map +1 -0
  889. package/dist/devices/nobo.d.ts +3 -0
  890. package/dist/devices/nobo.d.ts.map +1 -0
  891. package/dist/devices/nobo.js +88 -0
  892. package/dist/devices/nobo.js.map +1 -0
  893. package/dist/devices/nodon.d.ts +3 -0
  894. package/dist/devices/nodon.d.ts.map +1 -0
  895. package/dist/devices/nodon.js +483 -0
  896. package/dist/devices/nodon.js.map +1 -0
  897. package/dist/devices/nordtronic.d.ts +3 -0
  898. package/dist/devices/nordtronic.d.ts.map +1 -0
  899. package/dist/devices/nordtronic.js +95 -0
  900. package/dist/devices/nordtronic.js.map +1 -0
  901. package/dist/devices/nous.d.ts +3 -0
  902. package/dist/devices/nous.d.ts.map +1 -0
  903. package/dist/devices/nous.js +367 -0
  904. package/dist/devices/nous.js.map +1 -0
  905. package/dist/devices/novo.d.ts +3 -0
  906. package/dist/devices/novo.d.ts.map +1 -0
  907. package/dist/devices/novo.js +53 -0
  908. package/dist/devices/novo.js.map +1 -0
  909. package/dist/devices/nue_3a.d.ts +3 -0
  910. package/dist/devices/nue_3a.d.ts.map +1 -0
  911. package/dist/devices/nue_3a.js +359 -0
  912. package/dist/devices/nue_3a.js.map +1 -0
  913. package/dist/devices/nyce.d.ts +3 -0
  914. package/dist/devices/nyce.d.ts.map +1 -0
  915. package/dist/devices/nyce.js +124 -0
  916. package/dist/devices/nyce.js.map +1 -0
  917. package/dist/devices/onenuo.d.ts +3 -0
  918. package/dist/devices/onenuo.d.ts.map +1 -0
  919. package/dist/devices/onenuo.js +83 -0
  920. package/dist/devices/onenuo.js.map +1 -0
  921. package/dist/devices/onesti.d.ts +3 -0
  922. package/dist/devices/onesti.d.ts.map +1 -0
  923. package/dist/devices/onesti.js +265 -0
  924. package/dist/devices/onesti.js.map +1 -0
  925. package/dist/devices/onokom.d.ts +3 -0
  926. package/dist/devices/onokom.d.ts.map +1 -0
  927. package/dist/devices/onokom.js +2715 -0
  928. package/dist/devices/onokom.js.map +1 -0
  929. package/dist/devices/openlumi.d.ts +3 -0
  930. package/dist/devices/openlumi.d.ts.map +1 -0
  931. package/dist/devices/openlumi.js +47 -0
  932. package/dist/devices/openlumi.js.map +1 -0
  933. package/dist/devices/orvibo.d.ts +12 -0
  934. package/dist/devices/orvibo.d.ts.map +1 -0
  935. package/dist/devices/orvibo.js +715 -0
  936. package/dist/devices/orvibo.js.map +1 -0
  937. package/dist/devices/orztech.d.ts +3 -0
  938. package/dist/devices/orztech.d.ts.map +1 -0
  939. package/dist/devices/orztech.js +195 -0
  940. package/dist/devices/orztech.js.map +1 -0
  941. package/dist/devices/osram.d.ts +3 -0
  942. package/dist/devices/osram.d.ts.map +1 -0
  943. package/dist/devices/osram.js +513 -0
  944. package/dist/devices/osram.js.map +1 -0
  945. package/dist/devices/oujiabao.d.ts +3 -0
  946. package/dist/devices/oujiabao.d.ts.map +1 -0
  947. package/dist/devices/oujiabao.js +51 -0
  948. package/dist/devices/oujiabao.js.map +1 -0
  949. package/dist/devices/owon.d.ts +3 -0
  950. package/dist/devices/owon.d.ts.map +1 -0
  951. package/dist/devices/owon.js +888 -0
  952. package/dist/devices/owon.js.map +1 -0
  953. package/dist/devices/ozsmartthings.d.ts +3 -0
  954. package/dist/devices/ozsmartthings.d.ts.map +1 -0
  955. package/dist/devices/ozsmartthings.js +47 -0
  956. package/dist/devices/ozsmartthings.js.map +1 -0
  957. package/dist/devices/paul_neuhaus.d.ts +3 -0
  958. package/dist/devices/paul_neuhaus.d.ts.map +1 -0
  959. package/dist/devices/paul_neuhaus.js +190 -0
  960. package/dist/devices/paul_neuhaus.js.map +1 -0
  961. package/dist/devices/paulmann.d.ts +3 -0
  962. package/dist/devices/paulmann.d.ts.map +1 -0
  963. package/dist/devices/paulmann.js +426 -0
  964. package/dist/devices/paulmann.js.map +1 -0
  965. package/dist/devices/peq.d.ts +3 -0
  966. package/dist/devices/peq.d.ts.map +1 -0
  967. package/dist/devices/peq.js +60 -0
  968. package/dist/devices/peq.js.map +1 -0
  969. package/dist/devices/perenio.d.ts +3 -0
  970. package/dist/devices/perenio.d.ts.map +1 -0
  971. package/dist/devices/perenio.js +461 -0
  972. package/dist/devices/perenio.js.map +1 -0
  973. package/dist/devices/philio.d.ts +3 -0
  974. package/dist/devices/philio.d.ts.map +1 -0
  975. package/dist/devices/philio.js +48 -0
  976. package/dist/devices/philio.js.map +1 -0
  977. package/dist/devices/philips.d.ts +3 -0
  978. package/dist/devices/philips.d.ts.map +1 -0
  979. package/dist/devices/philips.js +4948 -0
  980. package/dist/devices/philips.js.map +1 -0
  981. package/dist/devices/plaid.d.ts +3 -0
  982. package/dist/devices/plaid.d.ts.map +1 -0
  983. package/dist/devices/plaid.js +61 -0
  984. package/dist/devices/plaid.js.map +1 -0
  985. package/dist/devices/plugwise.d.ts +3 -0
  986. package/dist/devices/plugwise.d.ts.map +1 -0
  987. package/dist/devices/plugwise.js +217 -0
  988. package/dist/devices/plugwise.js.map +1 -0
  989. package/dist/devices/profalux.d.ts +3 -0
  990. package/dist/devices/profalux.d.ts.map +1 -0
  991. package/dist/devices/profalux.js +215 -0
  992. package/dist/devices/profalux.js.map +1 -0
  993. package/dist/devices/prolight.d.ts +3 -0
  994. package/dist/devices/prolight.d.ts.map +1 -0
  995. package/dist/devices/prolight.js +111 -0
  996. package/dist/devices/prolight.js.map +1 -0
  997. package/dist/devices/purmo.d.ts +3 -0
  998. package/dist/devices/purmo.d.ts.map +1 -0
  999. package/dist/devices/purmo.js +91 -0
  1000. package/dist/devices/purmo.js.map +1 -0
  1001. package/dist/devices/pushok.d.ts +3 -0
  1002. package/dist/devices/pushok.d.ts.map +1 -0
  1003. package/dist/devices/pushok.js +736 -0
  1004. package/dist/devices/pushok.js.map +1 -0
  1005. package/dist/devices/qa.d.ts +3 -0
  1006. package/dist/devices/qa.d.ts.map +1 -0
  1007. package/dist/devices/qa.js +445 -0
  1008. package/dist/devices/qa.js.map +1 -0
  1009. package/dist/devices/qmotion.d.ts +3 -0
  1010. package/dist/devices/qmotion.d.ts.map +1 -0
  1011. package/dist/devices/qmotion.js +69 -0
  1012. package/dist/devices/qmotion.js.map +1 -0
  1013. package/dist/devices/qoto.d.ts +3 -0
  1014. package/dist/devices/qoto.d.ts.map +1 -0
  1015. package/dist/devices/qoto.js +83 -0
  1016. package/dist/devices/qoto.js.map +1 -0
  1017. package/dist/devices/quirky.d.ts +8 -0
  1018. package/dist/devices/quirky.d.ts.map +1 -0
  1019. package/dist/devices/quirky.js +47 -0
  1020. package/dist/devices/quirky.js.map +1 -0
  1021. package/dist/devices/quotra.d.ts +3 -0
  1022. package/dist/devices/quotra.d.ts.map +1 -0
  1023. package/dist/devices/quotra.js +54 -0
  1024. package/dist/devices/quotra.js.map +1 -0
  1025. package/dist/devices/rademacher.d.ts +3 -0
  1026. package/dist/devices/rademacher.d.ts.map +1 -0
  1027. package/dist/devices/rademacher.js +61 -0
  1028. package/dist/devices/rademacher.js.map +1 -0
  1029. package/dist/devices/radium.d.ts +3 -0
  1030. package/dist/devices/radium.d.ts.map +1 -0
  1031. package/dist/devices/radium.js +47 -0
  1032. package/dist/devices/radium.js.map +1 -0
  1033. package/dist/devices/raex.d.ts +3 -0
  1034. package/dist/devices/raex.d.ts.map +1 -0
  1035. package/dist/devices/raex.js +47 -0
  1036. package/dist/devices/raex.js.map +1 -0
  1037. package/dist/devices/rgb_genie.d.ts +3 -0
  1038. package/dist/devices/rgb_genie.d.ts.map +1 -0
  1039. package/dist/devices/rgb_genie.js +277 -0
  1040. package/dist/devices/rgb_genie.js.map +1 -0
  1041. package/dist/devices/robb.d.ts +3 -0
  1042. package/dist/devices/robb.d.ts.map +1 -0
  1043. package/dist/devices/robb.js +492 -0
  1044. package/dist/devices/robb.js.map +1 -0
  1045. package/dist/devices/roome.d.ts +3 -0
  1046. package/dist/devices/roome.d.ts.map +1 -0
  1047. package/dist/devices/roome.js +51 -0
  1048. package/dist/devices/roome.js.map +1 -0
  1049. package/dist/devices/rtx.d.ts +3 -0
  1050. package/dist/devices/rtx.d.ts.map +1 -0
  1051. package/dist/devices/rtx.js +143 -0
  1052. package/dist/devices/rtx.js.map +1 -0
  1053. package/dist/devices/salus_controls.d.ts +3 -0
  1054. package/dist/devices/salus_controls.d.ts.map +1 -0
  1055. package/dist/devices/salus_controls.js +222 -0
  1056. package/dist/devices/salus_controls.js.map +1 -0
  1057. package/dist/devices/samotech.d.ts +3 -0
  1058. package/dist/devices/samotech.d.ts.map +1 -0
  1059. package/dist/devices/samotech.js +123 -0
  1060. package/dist/devices/samotech.js.map +1 -0
  1061. package/dist/devices/saswell.d.ts +3 -0
  1062. package/dist/devices/saswell.d.ts.map +1 -0
  1063. package/dist/devices/saswell.js +120 -0
  1064. package/dist/devices/saswell.js.map +1 -0
  1065. package/dist/devices/sber.d.ts +3 -0
  1066. package/dist/devices/sber.d.ts.map +1 -0
  1067. package/dist/devices/sber.js +1921 -0
  1068. package/dist/devices/sber.js.map +1 -0
  1069. package/dist/devices/scanproducts.d.ts +3 -0
  1070. package/dist/devices/scanproducts.d.ts.map +1 -0
  1071. package/dist/devices/scanproducts.js +54 -0
  1072. package/dist/devices/scanproducts.js.map +1 -0
  1073. package/dist/devices/schlage.d.ts +3 -0
  1074. package/dist/devices/schlage.d.ts.map +1 -0
  1075. package/dist/devices/schlage.js +60 -0
  1076. package/dist/devices/schlage.js.map +1 -0
  1077. package/dist/devices/schneider_electric.d.ts +10 -0
  1078. package/dist/devices/schneider_electric.d.ts.map +1 -0
  1079. package/dist/devices/schneider_electric.js +2801 -0
  1080. package/dist/devices/schneider_electric.js.map +1 -0
  1081. package/dist/devices/schwaiger.d.ts +3 -0
  1082. package/dist/devices/schwaiger.d.ts.map +1 -0
  1083. package/dist/devices/schwaiger.js +105 -0
  1084. package/dist/devices/schwaiger.js.map +1 -0
  1085. package/dist/devices/seastar_intelligence.d.ts +3 -0
  1086. package/dist/devices/seastar_intelligence.d.ts.map +1 -0
  1087. package/dist/devices/seastar_intelligence.js +52 -0
  1088. package/dist/devices/seastar_intelligence.js.map +1 -0
  1089. package/dist/devices/securifi.d.ts +3 -0
  1090. package/dist/devices/securifi.d.ts.map +1 -0
  1091. package/dist/devices/securifi.js +79 -0
  1092. package/dist/devices/securifi.js.map +1 -0
  1093. package/dist/devices/sengled.d.ts +6 -0
  1094. package/dist/devices/sengled.d.ts.map +1 -0
  1095. package/dist/devices/sengled.js +395 -0
  1096. package/dist/devices/sengled.js.map +1 -0
  1097. package/dist/devices/senoro.d.ts +3 -0
  1098. package/dist/devices/senoro.d.ts.map +1 -0
  1099. package/dist/devices/senoro.js +64 -0
  1100. package/dist/devices/senoro.js.map +1 -0
  1101. package/dist/devices/sercomm.d.ts +3 -0
  1102. package/dist/devices/sercomm.d.ts.map +1 -0
  1103. package/dist/devices/sercomm.js +193 -0
  1104. package/dist/devices/sercomm.js.map +1 -0
  1105. package/dist/devices/shade_control.d.ts +3 -0
  1106. package/dist/devices/shade_control.d.ts.map +1 -0
  1107. package/dist/devices/shade_control.js +61 -0
  1108. package/dist/devices/shade_control.js.map +1 -0
  1109. package/dist/devices/shelly.d.ts +3 -0
  1110. package/dist/devices/shelly.d.ts.map +1 -0
  1111. package/dist/devices/shelly.js +1304 -0
  1112. package/dist/devices/shelly.js.map +1 -0
  1113. package/dist/devices/shenzhen_homa.d.ts +3 -0
  1114. package/dist/devices/shenzhen_homa.d.ts.map +1 -0
  1115. package/dist/devices/shenzhen_homa.js +143 -0
  1116. package/dist/devices/shenzhen_homa.js.map +1 -0
  1117. package/dist/devices/shinasystem.d.ts +3 -0
  1118. package/dist/devices/shinasystem.d.ts.map +1 -0
  1119. package/dist/devices/shinasystem.js +1322 -0
  1120. package/dist/devices/shinasystem.js.map +1 -0
  1121. package/dist/devices/shyugj.d.ts +3 -0
  1122. package/dist/devices/shyugj.d.ts.map +1 -0
  1123. package/dist/devices/shyugj.js +53 -0
  1124. package/dist/devices/shyugj.js.map +1 -0
  1125. package/dist/devices/siglis.d.ts +3 -0
  1126. package/dist/devices/siglis.d.ts.map +1 -0
  1127. package/dist/devices/siglis.js +440 -0
  1128. package/dist/devices/siglis.js.map +1 -0
  1129. package/dist/devices/sikom.d.ts +3 -0
  1130. package/dist/devices/sikom.d.ts.map +1 -0
  1131. package/dist/devices/sikom.js +64 -0
  1132. package/dist/devices/sikom.js.map +1 -0
  1133. package/dist/devices/silicon_labs.d.ts +3 -0
  1134. package/dist/devices/silicon_labs.d.ts.map +1 -0
  1135. package/dist/devices/silicon_labs.js +47 -0
  1136. package/dist/devices/silicon_labs.js.map +1 -0
  1137. package/dist/devices/simon.d.ts +3 -0
  1138. package/dist/devices/simon.d.ts.map +1 -0
  1139. package/dist/devices/simon.js +54 -0
  1140. package/dist/devices/simon.js.map +1 -0
  1141. package/dist/devices/simpla_home.d.ts +3 -0
  1142. package/dist/devices/simpla_home.d.ts.map +1 -0
  1143. package/dist/devices/simpla_home.js +97 -0
  1144. package/dist/devices/simpla_home.js.map +1 -0
  1145. package/dist/devices/sinope.d.ts +3 -0
  1146. package/dist/devices/sinope.d.ts.map +1 -0
  1147. package/dist/devices/sinope.js +2015 -0
  1148. package/dist/devices/sinope.js.map +1 -0
  1149. package/dist/devices/siterwell.d.ts +3 -0
  1150. package/dist/devices/siterwell.d.ts.map +1 -0
  1151. package/dist/devices/siterwell.js +107 -0
  1152. package/dist/devices/siterwell.js.map +1 -0
  1153. package/dist/devices/skydance.d.ts +3 -0
  1154. package/dist/devices/skydance.d.ts.map +1 -0
  1155. package/dist/devices/skydance.js +138 -0
  1156. package/dist/devices/skydance.js.map +1 -0
  1157. package/dist/devices/slacky_diy.d.ts +3 -0
  1158. package/dist/devices/slacky_diy.d.ts.map +1 -0
  1159. package/dist/devices/slacky_diy.js +3694 -0
  1160. package/dist/devices/slacky_diy.js.map +1 -0
  1161. package/dist/devices/slv.d.ts +3 -0
  1162. package/dist/devices/slv.d.ts.map +1 -0
  1163. package/dist/devices/slv.js +77 -0
  1164. package/dist/devices/slv.js.map +1 -0
  1165. package/dist/devices/smarli.d.ts +3 -0
  1166. package/dist/devices/smarli.d.ts.map +1 -0
  1167. package/dist/devices/smarli.js +99 -0
  1168. package/dist/devices/smarli.js.map +1 -0
  1169. package/dist/devices/smart9.d.ts +3 -0
  1170. package/dist/devices/smart9.d.ts.map +1 -0
  1171. package/dist/devices/smart9.js +58 -0
  1172. package/dist/devices/smart9.js.map +1 -0
  1173. package/dist/devices/smart_home_pty.d.ts +3 -0
  1174. package/dist/devices/smart_home_pty.d.ts.map +1 -0
  1175. package/dist/devices/smart_home_pty.js +54 -0
  1176. package/dist/devices/smart_home_pty.js.map +1 -0
  1177. package/dist/devices/smartenit.d.ts +3 -0
  1178. package/dist/devices/smartenit.d.ts.map +1 -0
  1179. package/dist/devices/smartenit.js +77 -0
  1180. package/dist/devices/smartenit.js.map +1 -0
  1181. package/dist/devices/smartthings.d.ts +26 -0
  1182. package/dist/devices/smartthings.d.ts.map +1 -0
  1183. package/dist/devices/smartthings.js +571 -0
  1184. package/dist/devices/smartthings.js.map +1 -0
  1185. package/dist/devices/smartwings.d.ts +3 -0
  1186. package/dist/devices/smartwings.d.ts.map +1 -0
  1187. package/dist/devices/smartwings.js +60 -0
  1188. package/dist/devices/smartwings.js.map +1 -0
  1189. package/dist/devices/smlight.d.ts +3 -0
  1190. package/dist/devices/smlight.d.ts.map +1 -0
  1191. package/dist/devices/smlight.js +73 -0
  1192. package/dist/devices/smlight.js.map +1 -0
  1193. package/dist/devices/soanalarm.d.ts +3 -0
  1194. package/dist/devices/soanalarm.d.ts.map +1 -0
  1195. package/dist/devices/soanalarm.js +58 -0
  1196. package/dist/devices/soanalarm.js.map +1 -0
  1197. package/dist/devices/sohan_electric.d.ts +3 -0
  1198. package/dist/devices/sohan_electric.d.ts.map +1 -0
  1199. package/dist/devices/sohan_electric.js +49 -0
  1200. package/dist/devices/sohan_electric.js.map +1 -0
  1201. package/dist/devices/solaredge.d.ts +3 -0
  1202. package/dist/devices/solaredge.d.ts.map +1 -0
  1203. package/dist/devices/solaredge.js +47 -0
  1204. package/dist/devices/solaredge.js.map +1 -0
  1205. package/dist/devices/soma.d.ts +3 -0
  1206. package/dist/devices/soma.d.ts.map +1 -0
  1207. package/dist/devices/soma.js +47 -0
  1208. package/dist/devices/soma.js.map +1 -0
  1209. package/dist/devices/somfy.d.ts +3 -0
  1210. package/dist/devices/somfy.d.ts.map +1 -0
  1211. package/dist/devices/somfy.js +173 -0
  1212. package/dist/devices/somfy.js.map +1 -0
  1213. package/dist/devices/somgoms.d.ts +3 -0
  1214. package/dist/devices/somgoms.d.ts.map +1 -0
  1215. package/dist/devices/somgoms.js +80 -0
  1216. package/dist/devices/somgoms.js.map +1 -0
  1217. package/dist/devices/sonoff.d.ts +42 -0
  1218. package/dist/devices/sonoff.d.ts.map +1 -0
  1219. package/dist/devices/sonoff.js +4921 -0
  1220. package/dist/devices/sonoff.js.map +1 -0
  1221. package/dist/devices/sowilo.d.ts +3 -0
  1222. package/dist/devices/sowilo.d.ts.map +1 -0
  1223. package/dist/devices/sowilo.js +47 -0
  1224. package/dist/devices/sowilo.js.map +1 -0
  1225. package/dist/devices/spacetronik.d.ts +3 -0
  1226. package/dist/devices/spacetronik.d.ts.map +1 -0
  1227. package/dist/devices/spacetronik.js +53 -0
  1228. package/dist/devices/spacetronik.js.map +1 -0
  1229. package/dist/devices/spotmau.d.ts +3 -0
  1230. package/dist/devices/spotmau.d.ts.map +1 -0
  1231. package/dist/devices/spotmau.js +74 -0
  1232. package/dist/devices/spotmau.js.map +1 -0
  1233. package/dist/devices/sprut.d.ts +3 -0
  1234. package/dist/devices/sprut.d.ts.map +1 -0
  1235. package/dist/devices/sprut.js +328 -0
  1236. package/dist/devices/sprut.js.map +1 -0
  1237. package/dist/devices/stello.d.ts +3 -0
  1238. package/dist/devices/stello.d.ts.map +1 -0
  1239. package/dist/devices/stello.js +142 -0
  1240. package/dist/devices/stello.js.map +1 -0
  1241. package/dist/devices/stelpro.d.ts +3 -0
  1242. package/dist/devices/stelpro.d.ts.map +1 -0
  1243. package/dist/devices/stelpro.js +376 -0
  1244. package/dist/devices/stelpro.js.map +1 -0
  1245. package/dist/devices/sunricher.d.ts +30 -0
  1246. package/dist/devices/sunricher.d.ts.map +1 -0
  1247. package/dist/devices/sunricher.js +2337 -0
  1248. package/dist/devices/sunricher.js.map +1 -0
  1249. package/dist/devices/superled.d.ts +3 -0
  1250. package/dist/devices/superled.d.ts.map +1 -0
  1251. package/dist/devices/superled.js +47 -0
  1252. package/dist/devices/superled.js.map +1 -0
  1253. package/dist/devices/swann.d.ts +3 -0
  1254. package/dist/devices/swann.d.ts.map +1 -0
  1255. package/dist/devices/swann.js +69 -0
  1256. package/dist/devices/swann.js.map +1 -0
  1257. package/dist/devices/sylvania.d.ts +3 -0
  1258. package/dist/devices/sylvania.d.ts.map +1 -0
  1259. package/dist/devices/sylvania.js +223 -0
  1260. package/dist/devices/sylvania.js.map +1 -0
  1261. package/dist/devices/tapestry.d.ts +3 -0
  1262. package/dist/devices/tapestry.d.ts.map +1 -0
  1263. package/dist/devices/tapestry.js +52 -0
  1264. package/dist/devices/tapestry.js.map +1 -0
  1265. package/dist/devices/task_lighting.d.ts +3 -0
  1266. package/dist/devices/task_lighting.d.ts.map +1 -0
  1267. package/dist/devices/task_lighting.js +47 -0
  1268. package/dist/devices/task_lighting.js.map +1 -0
  1269. package/dist/devices/tci.d.ts +3 -0
  1270. package/dist/devices/tci.d.ts.map +1 -0
  1271. package/dist/devices/tci.js +68 -0
  1272. package/dist/devices/tci.js.map +1 -0
  1273. package/dist/devices/tcl.d.ts +3 -0
  1274. package/dist/devices/tcl.d.ts.map +1 -0
  1275. package/dist/devices/tcl.js +47 -0
  1276. package/dist/devices/tcl.js.map +1 -0
  1277. package/dist/devices/tech.d.ts +3 -0
  1278. package/dist/devices/tech.d.ts.map +1 -0
  1279. package/dist/devices/tech.js +213 -0
  1280. package/dist/devices/tech.js.map +1 -0
  1281. package/dist/devices/technicolor.d.ts +3 -0
  1282. package/dist/devices/technicolor.d.ts.map +1 -0
  1283. package/dist/devices/technicolor.js +85 -0
  1284. package/dist/devices/technicolor.js.map +1 -0
  1285. package/dist/devices/terncy.d.ts +3 -0
  1286. package/dist/devices/terncy.d.ts.map +1 -0
  1287. package/dist/devices/terncy.js +192 -0
  1288. package/dist/devices/terncy.js.map +1 -0
  1289. package/dist/devices/the_light_group.d.ts +3 -0
  1290. package/dist/devices/the_light_group.d.ts.map +1 -0
  1291. package/dist/devices/the_light_group.js +145 -0
  1292. package/dist/devices/the_light_group.js.map +1 -0
  1293. package/dist/devices/third_reality.d.ts +3 -0
  1294. package/dist/devices/third_reality.d.ts.map +1 -0
  1295. package/dist/devices/third_reality.js +1067 -0
  1296. package/dist/devices/third_reality.js.map +1 -0
  1297. package/dist/devices/tis_control.d.ts +3 -0
  1298. package/dist/devices/tis_control.d.ts.map +1 -0
  1299. package/dist/devices/tis_control.js +47 -0
  1300. package/dist/devices/tis_control.js.map +1 -0
  1301. package/dist/devices/titan_products.d.ts +3 -0
  1302. package/dist/devices/titan_products.d.ts.map +1 -0
  1303. package/dist/devices/titan_products.js +58 -0
  1304. package/dist/devices/titan_products.js.map +1 -0
  1305. package/dist/devices/tlwglobal.d.ts +3 -0
  1306. package/dist/devices/tlwglobal.d.ts.map +1 -0
  1307. package/dist/devices/tlwglobal.js +64 -0
  1308. package/dist/devices/tlwglobal.js.map +1 -0
  1309. package/dist/devices/tnce.d.ts +3 -0
  1310. package/dist/devices/tnce.d.ts.map +1 -0
  1311. package/dist/devices/tnce.js +54 -0
  1312. package/dist/devices/tnce.js.map +1 -0
  1313. package/dist/devices/tplink.d.ts +3 -0
  1314. package/dist/devices/tplink.d.ts.map +1 -0
  1315. package/dist/devices/tplink.js +77 -0
  1316. package/dist/devices/tplink.js.map +1 -0
  1317. package/dist/devices/trust.d.ts +3 -0
  1318. package/dist/devices/trust.d.ts.map +1 -0
  1319. package/dist/devices/trust.js +180 -0
  1320. package/dist/devices/trust.js.map +1 -0
  1321. package/dist/devices/tubeszb.d.ts +3 -0
  1322. package/dist/devices/tubeszb.d.ts.map +1 -0
  1323. package/dist/devices/tubeszb.js +56 -0
  1324. package/dist/devices/tubeszb.js.map +1 -0
  1325. package/dist/devices/tuya.d.ts +3 -0
  1326. package/dist/devices/tuya.d.ts.map +1 -0
  1327. package/dist/devices/tuya.js +24771 -0
  1328. package/dist/devices/tuya.js.map +1 -0
  1329. package/dist/devices/ubisys.d.ts +3 -0
  1330. package/dist/devices/ubisys.d.ts.map +1 -0
  1331. package/dist/devices/ubisys.js +1295 -0
  1332. package/dist/devices/ubisys.js.map +1 -0
  1333. package/dist/devices/uhome.d.ts +3 -0
  1334. package/dist/devices/uhome.d.ts.map +1 -0
  1335. package/dist/devices/uhome.js +60 -0
  1336. package/dist/devices/uhome.js.map +1 -0
  1337. package/dist/devices/universal_electronics_inc.d.ts +3 -0
  1338. package/dist/devices/universal_electronics_inc.d.ts.map +1 -0
  1339. package/dist/devices/universal_electronics_inc.js +156 -0
  1340. package/dist/devices/universal_electronics_inc.js.map +1 -0
  1341. package/dist/devices/vav.d.ts +3 -0
  1342. package/dist/devices/vav.d.ts.map +1 -0
  1343. package/dist/devices/vav.js +57 -0
  1344. package/dist/devices/vav.js.map +1 -0
  1345. package/dist/devices/vbled.d.ts +3 -0
  1346. package/dist/devices/vbled.d.ts.map +1 -0
  1347. package/dist/devices/vbled.js +47 -0
  1348. package/dist/devices/vbled.js.map +1 -0
  1349. package/dist/devices/vesternet.d.ts +3 -0
  1350. package/dist/devices/vesternet.d.ts.map +1 -0
  1351. package/dist/devices/vesternet.js +355 -0
  1352. package/dist/devices/vesternet.js.map +1 -0
  1353. package/dist/devices/viessmann.d.ts +3 -0
  1354. package/dist/devices/viessmann.d.ts.map +1 -0
  1355. package/dist/devices/viessmann.js +120 -0
  1356. package/dist/devices/viessmann.js.map +1 -0
  1357. package/dist/devices/villeroy_boch.d.ts +3 -0
  1358. package/dist/devices/villeroy_boch.d.ts.map +1 -0
  1359. package/dist/devices/villeroy_boch.js +54 -0
  1360. package/dist/devices/villeroy_boch.js.map +1 -0
  1361. package/dist/devices/vimar.d.ts +3 -0
  1362. package/dist/devices/vimar.d.ts.map +1 -0
  1363. package/dist/devices/vimar.js +140 -0
  1364. package/dist/devices/vimar.js.map +1 -0
  1365. package/dist/devices/visonic.d.ts +3 -0
  1366. package/dist/devices/visonic.d.ts.map +1 -0
  1367. package/dist/devices/visonic.js +134 -0
  1368. package/dist/devices/visonic.js.map +1 -0
  1369. package/dist/devices/vrey.d.ts +3 -0
  1370. package/dist/devices/vrey.d.ts.map +1 -0
  1371. package/dist/devices/vrey.js +48 -0
  1372. package/dist/devices/vrey.js.map +1 -0
  1373. package/dist/devices/vsmart.d.ts +3 -0
  1374. package/dist/devices/vsmart.d.ts.map +1 -0
  1375. package/dist/devices/vsmart.js +442 -0
  1376. package/dist/devices/vsmart.js.map +1 -0
  1377. package/dist/devices/wally.d.ts +3 -0
  1378. package/dist/devices/wally.d.ts.map +1 -0
  1379. package/dist/devices/wally.js +60 -0
  1380. package/dist/devices/wally.js.map +1 -0
  1381. package/dist/devices/waxman.d.ts +3 -0
  1382. package/dist/devices/waxman.d.ts.map +1 -0
  1383. package/dist/devices/waxman.js +83 -0
  1384. package/dist/devices/waxman.js.map +1 -0
  1385. package/dist/devices/weiser.d.ts +3 -0
  1386. package/dist/devices/weiser.d.ts.map +1 -0
  1387. package/dist/devices/weiser.js +54 -0
  1388. package/dist/devices/weiser.js.map +1 -0
  1389. package/dist/devices/weten.d.ts +3 -0
  1390. package/dist/devices/weten.d.ts.map +1 -0
  1391. package/dist/devices/weten.js +83 -0
  1392. package/dist/devices/weten.js.map +1 -0
  1393. package/dist/devices/wirenboard.d.ts +3 -0
  1394. package/dist/devices/wirenboard.d.ts.map +1 -0
  1395. package/dist/devices/wirenboard.js +715 -0
  1396. package/dist/devices/wirenboard.js.map +1 -0
  1397. package/dist/devices/wisdom.d.ts +3 -0
  1398. package/dist/devices/wisdom.d.ts.map +1 -0
  1399. package/dist/devices/wisdom.js +47 -0
  1400. package/dist/devices/wisdom.js.map +1 -0
  1401. package/dist/devices/wmun.d.ts +3 -0
  1402. package/dist/devices/wmun.d.ts.map +1 -0
  1403. package/dist/devices/wmun.js +61 -0
  1404. package/dist/devices/wmun.js.map +1 -0
  1405. package/dist/devices/woolley.d.ts +3 -0
  1406. package/dist/devices/woolley.d.ts.map +1 -0
  1407. package/dist/devices/woolley.js +96 -0
  1408. package/dist/devices/woolley.js.map +1 -0
  1409. package/dist/devices/woox.d.ts +3 -0
  1410. package/dist/devices/woox.d.ts.map +1 -0
  1411. package/dist/devices/woox.js +194 -0
  1412. package/dist/devices/woox.js.map +1 -0
  1413. package/dist/devices/wyze.d.ts +3 -0
  1414. package/dist/devices/wyze.d.ts.map +1 -0
  1415. package/dist/devices/wyze.js +59 -0
  1416. package/dist/devices/wyze.js.map +1 -0
  1417. package/dist/devices/xal.d.ts +3 -0
  1418. package/dist/devices/xal.d.ts.map +1 -0
  1419. package/dist/devices/xal.js +61 -0
  1420. package/dist/devices/xal.js.map +1 -0
  1421. package/dist/devices/xenon.d.ts +4 -0
  1422. package/dist/devices/xenon.d.ts.map +1 -0
  1423. package/dist/devices/xenon.js +65 -0
  1424. package/dist/devices/xenon.js.map +1 -0
  1425. package/dist/devices/xinghuoyuan.d.ts +3 -0
  1426. package/dist/devices/xinghuoyuan.d.ts.map +1 -0
  1427. package/dist/devices/xinghuoyuan.js +47 -0
  1428. package/dist/devices/xinghuoyuan.js.map +1 -0
  1429. package/dist/devices/xyzroe.d.ts +3 -0
  1430. package/dist/devices/xyzroe.d.ts.map +1 -0
  1431. package/dist/devices/xyzroe.js +511 -0
  1432. package/dist/devices/xyzroe.js.map +1 -0
  1433. package/dist/devices/yale.d.ts +3 -0
  1434. package/dist/devices/yale.d.ts.map +1 -0
  1435. package/dist/devices/yale.js +686 -0
  1436. package/dist/devices/yale.js.map +1 -0
  1437. package/dist/devices/yandex.d.ts +3 -0
  1438. package/dist/devices/yandex.d.ts.map +1 -0
  1439. package/dist/devices/yandex.js +677 -0
  1440. package/dist/devices/yandex.js.map +1 -0
  1441. package/dist/devices/ynoa.d.ts +3 -0
  1442. package/dist/devices/ynoa.d.ts.map +1 -0
  1443. package/dist/devices/ynoa.js +116 -0
  1444. package/dist/devices/ynoa.js.map +1 -0
  1445. package/dist/devices/yokis.d.ts +3 -0
  1446. package/dist/devices/yokis.d.ts.map +1 -0
  1447. package/dist/devices/yokis.js +2972 -0
  1448. package/dist/devices/yokis.js.map +1 -0
  1449. package/dist/devices/yookee.d.ts +3 -0
  1450. package/dist/devices/yookee.d.ts.map +1 -0
  1451. package/dist/devices/yookee.js +59 -0
  1452. package/dist/devices/yookee.js.map +1 -0
  1453. package/dist/devices/ysrsai.d.ts +3 -0
  1454. package/dist/devices/ysrsai.d.ts.map +1 -0
  1455. package/dist/devices/ysrsai.js +68 -0
  1456. package/dist/devices/ysrsai.js.map +1 -0
  1457. package/dist/devices/zbeacon.d.ts +3 -0
  1458. package/dist/devices/zbeacon.d.ts.map +1 -0
  1459. package/dist/devices/zbeacon.js +54 -0
  1460. package/dist/devices/zbeacon.js.map +1 -0
  1461. package/dist/devices/zemismart.d.ts +3 -0
  1462. package/dist/devices/zemismart.d.ts.map +1 -0
  1463. package/dist/devices/zemismart.js +1061 -0
  1464. package/dist/devices/zemismart.js.map +1 -0
  1465. package/dist/devices/zen.d.ts +3 -0
  1466. package/dist/devices/zen.d.ts.map +1 -0
  1467. package/dist/devices/zen.js +93 -0
  1468. package/dist/devices/zen.js.map +1 -0
  1469. package/dist/devices/zigbeetlc.d.ts +3 -0
  1470. package/dist/devices/zigbeetlc.d.ts.map +1 -0
  1471. package/dist/devices/zigbeetlc.js +374 -0
  1472. package/dist/devices/zigbeetlc.js.map +1 -0
  1473. package/dist/devices/zipato.d.ts +3 -0
  1474. package/dist/devices/zipato.d.ts.map +1 -0
  1475. package/dist/devices/zipato.js +47 -0
  1476. package/dist/devices/zipato.js.map +1 -0
  1477. package/dist/devices/zunzunbee.d.ts +3 -0
  1478. package/dist/devices/zunzunbee.d.ts.map +1 -0
  1479. package/dist/devices/zunzunbee.js +97 -0
  1480. package/dist/devices/zunzunbee.js.map +1 -0
  1481. package/dist/index.d.ts +19 -0
  1482. package/dist/index.d.ts.map +1 -0
  1483. package/dist/index.js.map +1 -0
  1484. package/dist/indexer.d.ts +5 -0
  1485. package/dist/indexer.d.ts.map +1 -0
  1486. package/dist/indexer.js +135 -0
  1487. package/dist/indexer.js.map +1 -0
  1488. package/dist/lib/adurosmart.d.ts +15 -0
  1489. package/dist/lib/adurosmart.d.ts.map +1 -0
  1490. package/dist/lib/adurosmart.js +669 -0
  1491. package/dist/lib/adurosmart.js.map +1 -0
  1492. package/dist/lib/bosch.d.ts +353 -0
  1493. package/dist/lib/bosch.d.ts.map +1 -0
  1494. package/dist/lib/bosch.js +3163 -0
  1495. package/dist/lib/bosch.js.map +1 -0
  1496. package/dist/lib/color.d.ts +272 -0
  1497. package/dist/lib/color.d.ts.map +1 -0
  1498. package/dist/lib/color.js +766 -0
  1499. package/dist/lib/color.js.map +1 -0
  1500. package/dist/lib/constants.d.ts +78 -0
  1501. package/dist/lib/constants.d.ts.map +1 -0
  1502. package/dist/lib/constants.js +317 -0
  1503. package/dist/lib/constants.js.map +1 -0
  1504. package/dist/lib/develco.d.ts +50 -0
  1505. package/dist/lib/develco.d.ts.map +1 -0
  1506. package/dist/lib/develco.js +433 -0
  1507. package/dist/lib/develco.js.map +1 -0
  1508. package/dist/lib/ewelink.d.ts +30 -0
  1509. package/dist/lib/ewelink.d.ts.map +1 -0
  1510. package/dist/lib/ewelink.js +722 -0
  1511. package/dist/lib/ewelink.js.map +1 -0
  1512. package/dist/lib/exposes.d.ts +376 -0
  1513. package/dist/lib/exposes.d.ts.map +1 -0
  1514. package/dist/lib/exposes.js +1136 -0
  1515. package/dist/lib/exposes.js.map +1 -0
  1516. package/dist/lib/generateDefinition.d.ts +10 -0
  1517. package/dist/lib/generateDefinition.d.ts.map +1 -0
  1518. package/dist/lib/generateDefinition.js +773 -0
  1519. package/dist/lib/generateDefinition.js.map +1 -0
  1520. package/dist/lib/heiman.d.ts +92 -0
  1521. package/dist/lib/heiman.d.ts.map +1 -0
  1522. package/dist/lib/heiman.js +211 -0
  1523. package/dist/lib/heiman.js.map +1 -0
  1524. package/dist/lib/ikea.d.ts +106 -0
  1525. package/dist/lib/ikea.d.ts.map +1 -0
  1526. package/dist/lib/ikea.js +984 -0
  1527. package/dist/lib/ikea.js.map +1 -0
  1528. package/dist/lib/kelvinToXy.d.ts +8 -0
  1529. package/dist/lib/kelvinToXy.d.ts.map +1 -0
  1530. package/dist/lib/kelvinToXy.js +1913 -0
  1531. package/dist/lib/kelvinToXy.js.map +1 -0
  1532. package/dist/lib/ledvance.d.ts +20 -0
  1533. package/dist/lib/ledvance.d.ts.map +1 -0
  1534. package/dist/lib/ledvance.js +100 -0
  1535. package/dist/lib/ledvance.js.map +1 -0
  1536. package/dist/lib/legacy.d.ts +5197 -0
  1537. package/dist/lib/legacy.d.ts.map +1 -0
  1538. package/dist/lib/legacy.js +6865 -0
  1539. package/dist/lib/legacy.js.map +1 -0
  1540. package/dist/lib/legrand.d.ts +132 -0
  1541. package/dist/lib/legrand.d.ts.map +1 -0
  1542. package/dist/lib/legrand.js +404 -0
  1543. package/dist/lib/legrand.js.map +1 -0
  1544. package/dist/lib/light.d.ts +9 -0
  1545. package/dist/lib/light.d.ts.map +1 -0
  1546. package/dist/lib/light.js +144 -0
  1547. package/dist/lib/light.js.map +1 -0
  1548. package/dist/lib/logger.d.ts +4 -0
  1549. package/dist/lib/logger.d.ts.map +1 -0
  1550. package/dist/lib/logger.js +14 -0
  1551. package/dist/lib/logger.js.map +1 -0
  1552. package/dist/lib/lumi.d.ts +1093 -0
  1553. package/dist/lib/lumi.d.ts.map +1 -0
  1554. package/dist/lib/lumi.js +6479 -0
  1555. package/dist/lib/lumi.js.map +1 -0
  1556. package/dist/lib/modernExtend.d.ts +436 -0
  1557. package/dist/lib/modernExtend.d.ts.map +1 -0
  1558. package/dist/lib/modernExtend.js +2702 -0
  1559. package/dist/lib/modernExtend.js.map +1 -0
  1560. package/dist/lib/namron.d.ts +56 -0
  1561. package/dist/lib/namron.d.ts.map +1 -0
  1562. package/dist/lib/namron.js +433 -0
  1563. package/dist/lib/namron.js.map +1 -0
  1564. package/dist/lib/nodon.d.ts +3 -0
  1565. package/dist/lib/nodon.d.ts.map +1 -0
  1566. package/dist/lib/nodon.js +130 -0
  1567. package/dist/lib/nodon.js.map +1 -0
  1568. package/dist/lib/philips.d.ts +321 -0
  1569. package/dist/lib/philips.d.ts.map +1 -0
  1570. package/dist/lib/philips.js +876 -0
  1571. package/dist/lib/philips.js.map +1 -0
  1572. package/dist/lib/reporting.d.ts +57 -0
  1573. package/dist/lib/reporting.d.ts.map +1 -0
  1574. package/dist/lib/reporting.js +294 -0
  1575. package/dist/lib/reporting.js.map +1 -0
  1576. package/dist/lib/sonoff.d.ts +30 -0
  1577. package/dist/lib/sonoff.d.ts.map +1 -0
  1578. package/dist/lib/sonoff.js +91 -0
  1579. package/dist/lib/sonoff.js.map +1 -0
  1580. package/dist/lib/store.d.ts +7 -0
  1581. package/dist/lib/store.d.ts.map +1 -0
  1582. package/dist/lib/store.js +59 -0
  1583. package/dist/lib/store.js.map +1 -0
  1584. package/dist/lib/sunricher.d.ts +29 -0
  1585. package/dist/lib/sunricher.d.ts.map +1 -0
  1586. package/dist/lib/sunricher.js +838 -0
  1587. package/dist/lib/sunricher.js.map +1 -0
  1588. package/dist/lib/tuya.d.ts +998 -0
  1589. package/dist/lib/tuya.d.ts.map +1 -0
  1590. package/dist/lib/tuya.js +3043 -0
  1591. package/dist/lib/tuya.js.map +1 -0
  1592. package/dist/lib/types.d.ts +429 -0
  1593. package/dist/lib/types.d.ts.map +1 -0
  1594. package/dist/lib/types.js +3 -0
  1595. package/dist/lib/types.js.map +1 -0
  1596. package/dist/lib/ubisys.d.ts +107 -0
  1597. package/dist/lib/ubisys.d.ts.map +1 -0
  1598. package/dist/lib/ubisys.js +576 -0
  1599. package/dist/lib/ubisys.js.map +1 -0
  1600. package/dist/lib/utils.d.ts +95 -0
  1601. package/dist/lib/utils.d.ts.map +1 -0
  1602. package/dist/lib/utils.js +736 -0
  1603. package/dist/lib/utils.js.map +1 -0
  1604. package/dist/lib/zosung.d.ts +52 -0
  1605. package/dist/lib/zosung.d.ts.map +1 -0
  1606. package/dist/lib/zosung.js +264 -0
  1607. package/dist/lib/zosung.js.map +1 -0
  1608. package/dist/models-index.json +1 -0
  1609. package/package.json +2 -8
@@ -0,0 +1,3163 @@
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.boschThermostatExtend = exports.boschSmartPlugExtend = exports.boschSmokeAlarmExtend = exports.boschWaterAlarmExtend = exports.boschBsenExtend = exports.boschDoorWindowContactExtend = exports.boschBsirExtend = exports.boschBmctExtend = exports.boschGeneralSensorDeviceExtend = exports.boschGeneralEnergyDeviceExtend = exports.boschGeneralExtend = exports.manufacturerOptions = void 0;
37
+ const zigbee_herdsman_1 = require("@willieee802/zigbee-herdsman");
38
+ const model_1 = require("@willieee802/zigbee-herdsman/dist/controller/model");
39
+ const fz = __importStar(require("../converters/fromZigbee"));
40
+ const tz = __importStar(require("../converters/toZigbee"));
41
+ const exposes = __importStar(require("../lib/exposes"));
42
+ const m = __importStar(require("../lib/modernExtend"));
43
+ const constants_1 = require("./constants");
44
+ const logger_1 = require("./logger");
45
+ const reporting_1 = require("./reporting");
46
+ const globalStore = __importStar(require("./store"));
47
+ const utils = __importStar(require("./utils"));
48
+ const utils_1 = require("./utils");
49
+ const e = exposes.presets;
50
+ const ea = exposes.access;
51
+ const NS = "zhc:bosch";
52
+ exports.manufacturerOptions = {
53
+ manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.ROBERT_BOSCH_GMBH,
54
+ sendPolicy: "immediate",
55
+ };
56
+ //region Generally used Bosch functionality
57
+ exports.boschGeneralExtend = {
58
+ /** Some devices now use a different name for some custom clusters than
59
+ * originally used. This can lead to issues like those described in
60
+ * https://github.com/Koenkk/zigbee2mqtt/issues/28806. To prevent that
61
+ * we have to make sure that all attributes of the renamed cluster are
62
+ * available when using "getEndpoint().getClusterAttributeValue()". */
63
+ handleRenamedCustomCluster: (oldClusterName, newClusterName) => {
64
+ const onEvent = [
65
+ async (event) => {
66
+ if (event.type !== "start") {
67
+ return;
68
+ }
69
+ const device = event.data.device;
70
+ const renameAlreadyApplied = device.meta.renamedClusters?.includes(oldClusterName);
71
+ if (!renameAlreadyApplied) {
72
+ logger_1.logger.debug(`Try to apply cluster rename from ${oldClusterName} to ${newClusterName} for device ${device.ieeeAddr}. Current meta state: ${JSON.stringify(device.meta)}`, NS);
73
+ const newClusterDefinition = device.customClusters[newClusterName];
74
+ const endpointsWithNewCluster = device.endpoints.filter((endpoint) => endpoint.clusters[newClusterName] !== undefined);
75
+ for (const endpointToRead in endpointsWithNewCluster) {
76
+ const endpoint = endpointsWithNewCluster[endpointToRead];
77
+ logger_1.logger.debug(`Attempt to read all attributes for cluster ${newClusterName} from endpoint ${endpoint.ID}`, NS);
78
+ for (const attributeToRead in newClusterDefinition.attributes) {
79
+ const attributeValueExistsInDatabase = endpoint.getClusterAttributeValue(newClusterName, newClusterDefinition.attributes[attributeToRead].ID) !== undefined;
80
+ if (!attributeValueExistsInDatabase) {
81
+ logger_1.logger.debug(`Attempt to read undefined attribute ${attributeToRead} in cluster ${newClusterName} from endpoint ${endpoint.ID}`, NS);
82
+ try {
83
+ await endpoint.read(newClusterDefinition.ID, [newClusterDefinition.attributes[attributeToRead].ID]);
84
+ }
85
+ catch (exception) {
86
+ logger_1.logger.debug(`Error during read attempt for attribute ${attributeToRead}. Probably unsupported attribute on this device or endpoint. Skipping... ${exception}`, NS);
87
+ }
88
+ }
89
+ else {
90
+ logger_1.logger.debug(`Value for attribute ${attributeToRead} in cluster ${newClusterName} from endpoint ${endpoint.ID} already in database. Skipping...`, NS);
91
+ }
92
+ }
93
+ }
94
+ logger_1.logger.debug(`All attributes are read, now calling deviceExposeChanged() for device ${device.ieeeAddr}`, NS);
95
+ event.data.deviceExposesChanged();
96
+ device.meta.renamedClusters =
97
+ device.meta.renamedClusters === undefined ? [oldClusterName] : [...device.meta.renamedClusters, oldClusterName];
98
+ logger_1.logger.debug(`Cluster rename from ${oldClusterName} to ${newClusterName} for device ${device.ieeeAddr} successfully applied. New meta state: ${JSON.stringify(device.meta)}`, NS);
99
+ }
100
+ },
101
+ ];
102
+ return {
103
+ onEvent,
104
+ isModernExtend: true,
105
+ };
106
+ },
107
+ /** Some Bosch devices ask the coordinator for their ZCL version
108
+ * during deviceAnnouncement. Without answer, these devices regularly
109
+ * re-join the network. To avoid that, we have to make sure that a readRequest
110
+ * for the zclVersion is always being answered. The answered zclVersion is
111
+ * taken from the Bosch Smart Home Controller II.
112
+ *
113
+ * Exception: BTH-RM and BTH-RM230Z ask the coordinator at regular
114
+ * intervals for their zclVersion (maybe availability check like Z2M does?)
115
+ * and *not* during interview! To avoid code-duplication, we handle that
116
+ * case here as well. */
117
+ handleZclVersionReadRequest: () => {
118
+ const onEvent = [
119
+ (event) => {
120
+ if (event.type !== "start") {
121
+ return;
122
+ }
123
+ event.data.device.customReadResponse = (frame, endpoint) => {
124
+ const isZclVersionRequest = frame.isCluster("genBasic") && frame.payload.find((i) => i.attrId === 0);
125
+ if (!isZclVersionRequest) {
126
+ return false;
127
+ }
128
+ const payload = {
129
+ zclVersion: 1,
130
+ };
131
+ endpoint.readResponse(frame.cluster.name, frame.header.transactionSequenceNumber, payload).catch((e) => {
132
+ logger_1.logger.warning(`Custom zclVersion response failed for '${event.data.device.ieeeAddr}': ${e}`, NS);
133
+ });
134
+ return true;
135
+ };
136
+ },
137
+ ];
138
+ return {
139
+ onEvent,
140
+ isModernExtend: true,
141
+ };
142
+ },
143
+ batteryWithPercentageAndLowStatus: (args) => m.battery({
144
+ percentage: true,
145
+ percentageReportingConfig: false,
146
+ lowStatus: true,
147
+ lowStatusReportingConfig: { min: "MIN", max: "MAX", change: null },
148
+ ...args,
149
+ }),
150
+ };
151
+ exports.boschGeneralEnergyDeviceExtend = {
152
+ customMeteringCluster: () => m.deviceAddCustomCluster("seMetering", {
153
+ ID: zigbee_herdsman_1.Zcl.Clusters.seMetering.ID,
154
+ attributes: {},
155
+ commands: {
156
+ resetEnergyMeters: {
157
+ ID: 0x80,
158
+ parameters: [],
159
+ },
160
+ },
161
+ commandsResponse: {},
162
+ }),
163
+ resetEnergyMeters: () => {
164
+ const exposes = [
165
+ e
166
+ .enum("reset_energy_meters", ea.SET, ["reset"])
167
+ .withDescription("Triggers the reset of all energy meters on the device to 0 kWh")
168
+ .withCategory("config"),
169
+ ];
170
+ const toZigbee = [
171
+ {
172
+ key: ["reset_energy_meters"],
173
+ convertSet: async (entity, key, value, meta) => {
174
+ await entity.command("seMetering", "resetEnergyMeters", {}, exports.manufacturerOptions);
175
+ },
176
+ },
177
+ ];
178
+ return {
179
+ exposes,
180
+ toZigbee,
181
+ isModernExtend: true,
182
+ };
183
+ },
184
+ autoOff: (args) => {
185
+ const { endpoint } = args ?? {};
186
+ const offOnLookup = {
187
+ OFF: 0x00,
188
+ ON: 0x01,
189
+ };
190
+ const expose = (device, options) => {
191
+ if (utils.isDummyDevice(device)) {
192
+ return [];
193
+ }
194
+ if (device.modelID === "RBSH-MMR-ZB-EU") {
195
+ const pulsedModeEnabled = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "pulseLength") !== 0;
196
+ if (pulsedModeEnabled) {
197
+ return [];
198
+ }
199
+ }
200
+ const autoOffEnabledExpose = e
201
+ .binary("auto_off_enabled", ea.ALL, utils.getFromLookupByValue(0x01, offOnLookup), utils.getFromLookupByValue(0x00, offOnLookup))
202
+ .withLabel("Enable auto-off")
203
+ .withDescription("Enable/disable the automatic turn-off feature")
204
+ .withCategory("config");
205
+ const autoOffTimeExpose = e
206
+ .numeric("auto_off_time", ea.ALL)
207
+ .withLabel("Auto-off time")
208
+ .withDescription("Turn off the output after the specified amount of time. Only in action when the automatic turn-off is enabled.")
209
+ .withUnit("min")
210
+ .withValueMin(0)
211
+ .withValueMax(720)
212
+ .withValueStep(0.5)
213
+ .withCategory("config");
214
+ if (endpoint !== undefined) {
215
+ autoOffEnabledExpose.withEndpoint(endpoint.toString());
216
+ autoOffTimeExpose.withEndpoint(endpoint.toString());
217
+ }
218
+ return [autoOffEnabledExpose, autoOffTimeExpose];
219
+ };
220
+ const fromZigbee = [
221
+ {
222
+ cluster: "boschEnergyDevice",
223
+ type: ["attributeReport", "readResponse"],
224
+ convert: (model, msg, publish, options, meta) => {
225
+ const result = {};
226
+ const data = msg.data;
227
+ if (data.autoOffEnabled !== undefined) {
228
+ const property = utils.postfixWithEndpointName("auto_off_enabled", msg, model, meta);
229
+ result[property] = utils.getFromLookupByValue(data.autoOffEnabled, offOnLookup);
230
+ }
231
+ if (data.autoOffTime !== undefined) {
232
+ const property = utils.postfixWithEndpointName("auto_off_time", msg, model, meta);
233
+ result[property] = data.autoOffTime / 60;
234
+ }
235
+ return result;
236
+ },
237
+ },
238
+ ];
239
+ const toZigbee = [
240
+ {
241
+ key: ["auto_off_enabled", "auto_off_time"],
242
+ convertSet: async (entity, key, value, meta) => {
243
+ if (key === "auto_off_enabled") {
244
+ const selectedState = utils.getFromLookup(value, offOnLookup);
245
+ await entity.write("boschEnergyDevice", {
246
+ autoOffEnabled: utils.toNumber(selectedState),
247
+ });
248
+ return { state: { auto_off_enabled: value } };
249
+ }
250
+ if (key === "auto_off_time") {
251
+ await entity.write("boschEnergyDevice", {
252
+ autoOffTime: (0, utils_1.toNumber)(value) * 60,
253
+ });
254
+ return { state: { auto_off_time: value } };
255
+ }
256
+ },
257
+ convertGet: async (entity, key, meta) => {
258
+ if (key === "auto_off_enabled") {
259
+ await entity.read("boschEnergyDevice", ["autoOffEnabled"]);
260
+ }
261
+ if (key === "auto_off_time") {
262
+ await entity.read("boschEnergyDevice", ["autoOffTime"]);
263
+ }
264
+ },
265
+ },
266
+ ];
267
+ const configure = [
268
+ m.setupConfigureForBinding("boschEnergyDevice", "input", endpoint ? [endpoint.toString()] : null),
269
+ m.setupConfigureForReading("boschEnergyDevice", ["autoOffEnabled", "autoOffTime"], endpoint ? [endpoint.toString()] : null),
270
+ ];
271
+ return {
272
+ exposes: [expose],
273
+ fromZigbee,
274
+ toZigbee,
275
+ configure,
276
+ isModernExtend: true,
277
+ };
278
+ },
279
+ };
280
+ //endregion
281
+ //region Generally used Bosch functionality on sensor devices
282
+ exports.boschGeneralSensorDeviceExtend = {
283
+ testMode: (args) => {
284
+ const { testModeDescription, sensitivityLevelToUse, variableTimeoutSupported = false, defaultTimeout = 0, zoneStatusBit = 8 } = args;
285
+ const testModeLookup = {
286
+ ON: true,
287
+ OFF: false,
288
+ };
289
+ const enableTestMode = async (endpoint, sensitivityLevelToUse, timeoutInSeconds) => {
290
+ await endpoint.command("ssIasZone", "initTestMode", {
291
+ testModeDuration: timeoutInSeconds,
292
+ currentZoneSensitivityLevel: sensitivityLevelToUse,
293
+ });
294
+ };
295
+ const disableTestMode = async (endpoint) => {
296
+ await endpoint.command("ssIasZone", "initNormalOpMode", {});
297
+ };
298
+ const exposes = [
299
+ e
300
+ .binary("test_mode", ea.ALL, utils.getFromLookupByValue(true, testModeLookup), utils.getFromLookupByValue(false, testModeLookup))
301
+ .withDescription(testModeDescription)
302
+ .withCategory("config"),
303
+ ];
304
+ if (variableTimeoutSupported) {
305
+ exposes.push(e
306
+ .numeric("test_mode_timeout", ea.ALL)
307
+ .withDescription(`Determines how long the test mode should be activated. The default length is ${defaultTimeout} seconds.`)
308
+ .withValueMin(1)
309
+ .withValueMax(255)
310
+ .withUnit("seconds")
311
+ .withCategory("config"));
312
+ }
313
+ const fromZigbee = [
314
+ {
315
+ cluster: "ssIasZone",
316
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
317
+ convert: (model, msg, publish, options, meta) => {
318
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
319
+ if (zoneStatus === undefined) {
320
+ return;
321
+ }
322
+ const result = {};
323
+ const testModeEnabled = (zoneStatus & (1 << zoneStatusBit)) > 0;
324
+ result.test_mode = utils.getFromLookupByValue(testModeEnabled, testModeLookup);
325
+ return result;
326
+ },
327
+ },
328
+ ];
329
+ const toZigbee = [
330
+ {
331
+ key: ["test_mode", "test_mode_timeout"],
332
+ convertSet: async (entity, key, value, meta) => {
333
+ if (key === "test_mode") {
334
+ if (value === utils.getFromLookupByValue(true, testModeLookup)) {
335
+ let timeoutInSeconds;
336
+ const currentTimeout = meta.state.test_mode_timeout;
337
+ if (currentTimeout == null) {
338
+ timeoutInSeconds = defaultTimeout;
339
+ meta.publish({ test_mode_timeout: timeoutInSeconds });
340
+ }
341
+ else {
342
+ timeoutInSeconds = utils.toNumber(currentTimeout);
343
+ }
344
+ await enableTestMode(entity, sensitivityLevelToUse, timeoutInSeconds);
345
+ }
346
+ else {
347
+ await disableTestMode(entity);
348
+ }
349
+ }
350
+ if (key === "test_mode_timeout") {
351
+ return { state: { test_mode_timeout: value } };
352
+ }
353
+ },
354
+ convertGet: async (entity, key, meta) => {
355
+ if (key === "test_mode") {
356
+ await entity.read("ssIasZone", ["zoneStatus"]);
357
+ }
358
+ if (key === "test_mode_timeout" && meta.state.test_mode_timeout == null) {
359
+ meta.publish({ test_mode_timeout: defaultTimeout });
360
+ }
361
+ },
362
+ },
363
+ ];
364
+ const configure = [m.setupConfigureForBinding("ssIasZone", "input"), m.setupConfigureForReading("ssIasZone", ["zoneStatus"])];
365
+ return {
366
+ exposes,
367
+ fromZigbee,
368
+ toZigbee,
369
+ configure,
370
+ isModernExtend: true,
371
+ };
372
+ },
373
+ };
374
+ exports.boschBmctExtend = {
375
+ switchMode: (args) => {
376
+ const { endpoint, deviceModeLookup, switchModeLookup, switchTypeLookup } = args;
377
+ const expose = (device, options) => {
378
+ if (utils.isDummyDevice(device)) {
379
+ return [];
380
+ }
381
+ const switchTypeKey = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "switchType") ?? 0x00;
382
+ const selectedSwitchType = utils.getFromLookupByValue(switchTypeKey, switchTypeLookup);
383
+ if (selectedSwitchType === "none") {
384
+ return [];
385
+ }
386
+ let supportedSwitchModes = Object.keys(switchModeLookup);
387
+ if (device.modelID === "RBSH-MMS-ZB-EU") {
388
+ const deviceModeKey = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "deviceMode");
389
+ const deviceMode = utils.getFromLookupByValue(deviceModeKey, deviceModeLookup);
390
+ if (deviceMode === "light") {
391
+ if (selectedSwitchType.includes("rocker_switch")) {
392
+ supportedSwitchModes = supportedSwitchModes.filter((switchMode) => switchMode === "coupled" || switchMode === "decoupled");
393
+ }
394
+ }
395
+ if (deviceMode === "shutter") {
396
+ if (selectedSwitchType.includes("button")) {
397
+ supportedSwitchModes = supportedSwitchModes.filter((switchMode) => switchMode === "coupled" || switchMode === "only_long_press_decoupled");
398
+ }
399
+ else if (selectedSwitchType.includes("rocker_switch")) {
400
+ supportedSwitchModes = supportedSwitchModes.filter((switchMode) => switchMode === "coupled");
401
+ }
402
+ }
403
+ }
404
+ const switchModeExpose = e
405
+ .enum("switch_mode", ea.ALL, supportedSwitchModes)
406
+ .withDescription("Decouple the switch from the corresponding output to use it for other purposes. Please keep in mind that the available options may depend on the used switch type.")
407
+ .withCategory("config");
408
+ if (endpoint !== undefined) {
409
+ switchModeExpose.withEndpoint(endpoint.toString());
410
+ }
411
+ return [switchModeExpose];
412
+ };
413
+ const fromZigbee = [
414
+ {
415
+ cluster: "boschEnergyDevice",
416
+ type: ["attributeReport", "readResponse"],
417
+ convert: (model, msg, publish, options, meta) => {
418
+ const result = {};
419
+ const data = msg.data;
420
+ if (data.switchMode !== undefined) {
421
+ const property = utils.postfixWithEndpointName("switch_mode", msg, model, meta);
422
+ result[property] = utils.getFromLookupByValue(data.switchMode, switchModeLookup);
423
+ }
424
+ return result;
425
+ },
426
+ },
427
+ ];
428
+ const toZigbee = [
429
+ {
430
+ key: ["switch_mode"],
431
+ convertSet: async (entity, key, value, meta) => {
432
+ if (key === "switch_mode") {
433
+ const index = utils.getFromLookup(value, switchModeLookup);
434
+ await entity.write("boschEnergyDevice", { switchMode: index });
435
+ return { state: { switch_mode: value } };
436
+ }
437
+ },
438
+ convertGet: async (entity, key, meta) => {
439
+ if (key === "switch_mode") {
440
+ await entity.read("boschEnergyDevice", ["switchMode"]);
441
+ }
442
+ },
443
+ },
444
+ ];
445
+ const configure = [
446
+ async (device, coordinatorEndpoint, definition) => {
447
+ const desiredEndpoint = device.getEndpoint(endpoint ?? 1);
448
+ await desiredEndpoint.read("boschEnergyDevice", ["switchMode"]);
449
+ },
450
+ ];
451
+ return {
452
+ exposes: [expose],
453
+ fromZigbee,
454
+ toZigbee,
455
+ configure,
456
+ isModernExtend: true,
457
+ };
458
+ },
459
+ childLock: (args) => {
460
+ const { endpoint } = args ?? {};
461
+ const childLockLookup = {
462
+ UNLOCKED: 0x00,
463
+ LOCKED: 0x01,
464
+ };
465
+ const expose = (device, options) => {
466
+ if (utils.isDummyDevice(device)) {
467
+ return [];
468
+ }
469
+ const currentSwitchType = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "switchType") ?? 0x00;
470
+ if (currentSwitchType === 0) {
471
+ return [];
472
+ }
473
+ const childLockExpose = e
474
+ .binary("child_lock", ea.ALL, utils.getFromLookupByValue(0x01, childLockLookup), utils.getFromLookupByValue(0x00, childLockLookup))
475
+ .withDescription("Enables/disables physical input on the switch")
476
+ .withCategory("config");
477
+ if (endpoint !== undefined) {
478
+ childLockExpose.withEndpoint(endpoint.toString());
479
+ }
480
+ return [childLockExpose];
481
+ };
482
+ const fromZigbee = [
483
+ {
484
+ cluster: "boschEnergyDevice",
485
+ type: ["attributeReport", "readResponse"],
486
+ convert: (model, msg, publish, options, meta) => {
487
+ const result = {};
488
+ const data = msg.data;
489
+ if (data.childLock !== undefined) {
490
+ const property = utils.postfixWithEndpointName("child_lock", msg, model, meta);
491
+ result[property] = data.childLock;
492
+ }
493
+ return result;
494
+ },
495
+ },
496
+ ];
497
+ const toZigbee = [
498
+ {
499
+ key: ["child_lock"],
500
+ convertSet: async (entity, key, value, meta) => {
501
+ if (key === "child_lock") {
502
+ const selectedMode = utils.getFromLookup(value, childLockLookup);
503
+ await entity.write("boschEnergyDevice", { childLock: selectedMode });
504
+ return { state: { child_lock: value } };
505
+ }
506
+ },
507
+ convertGet: async (entity, key, meta) => {
508
+ if (key === "child_lock") {
509
+ await entity.read("boschEnergyDevice", ["childLock"]);
510
+ }
511
+ },
512
+ },
513
+ ];
514
+ const configure = [
515
+ async (device, coordinatorEndpoint, definition) => {
516
+ const desiredEndpoint = device.getEndpoint(endpoint ?? 1);
517
+ await desiredEndpoint.read("boschEnergyDevice", ["childLock"]);
518
+ },
519
+ ];
520
+ return {
521
+ exposes: [expose],
522
+ fromZigbee,
523
+ toZigbee,
524
+ configure,
525
+ isModernExtend: true,
526
+ };
527
+ },
528
+ actuatorType: () => m.enumLookup({
529
+ name: "actuator_type",
530
+ cluster: "boschEnergyDevice",
531
+ attribute: "actuatorType",
532
+ description: "Select the appropriate actuator type so that the connected device can be controlled correctly.",
533
+ lookup: {
534
+ normally_closed: 0x00,
535
+ normally_open: 0x01,
536
+ },
537
+ entityCategory: "config",
538
+ }),
539
+ dimmerType: () => m.enumLookup({
540
+ name: "dimmer_type",
541
+ cluster: "boschEnergyDevice",
542
+ attribute: "dimmerType",
543
+ description: "Select the appropriate dimmer type for your lamps. Make sure that you are only using dimmable lamps.",
544
+ lookup: {
545
+ leading_edge_phase_cut: 0x00,
546
+ trailing_edge_phase_cut: 0x01,
547
+ },
548
+ entityCategory: "config",
549
+ }),
550
+ brightnessRange: () => {
551
+ const expose = (device, options) => {
552
+ if (utils.isDummyDevice(device)) {
553
+ return [];
554
+ }
555
+ const minimumBrightnessExpose = e
556
+ .numeric("minimum_brightness", ea.ALL)
557
+ .withLabel("Raise minimum brightness")
558
+ .withDescription("This raises the minimum brightness level of the connected light")
559
+ .withValueMin(0)
560
+ .withValueMax(255)
561
+ .withCategory("config");
562
+ const maximumBrightnessExpose = e
563
+ .numeric("maximum_brightness", ea.ALL)
564
+ .withLabel("Lower maximum brightness")
565
+ .withDescription("This lowers the maximum brightness level of the connected light")
566
+ .withValueMin(0)
567
+ .withValueMax(255)
568
+ .withCategory("config");
569
+ return [minimumBrightnessExpose, maximumBrightnessExpose];
570
+ };
571
+ const fromZigbee = [
572
+ {
573
+ cluster: "boschEnergyDevice",
574
+ type: ["attributeReport", "readResponse"],
575
+ convert: (model, msg, publish, options, meta) => {
576
+ const result = {};
577
+ const data = msg.data;
578
+ if (data.minimumBrightness !== undefined) {
579
+ result.minimum_brightness = data.minimumBrightness;
580
+ }
581
+ if (data.maximumBrightness !== undefined) {
582
+ result.maximum_brightness = data.maximumBrightness;
583
+ }
584
+ return result;
585
+ },
586
+ },
587
+ ];
588
+ const toZigbee = [
589
+ {
590
+ key: ["minimum_brightness", "maximum_brightness"],
591
+ convertSet: async (entity, key, value, meta) => {
592
+ if (key === "minimum_brightness") {
593
+ const newMinimumBrightness = (0, utils_1.toNumber)(value);
594
+ const currentState = await entity.read("boschEnergyDevice", ["maximumBrightness"]);
595
+ if (newMinimumBrightness >= currentState.maximumBrightness) {
596
+ throw new Error("The minimum brightness must be lower than the maximum brightness!");
597
+ }
598
+ await entity.write("boschEnergyDevice", {
599
+ minimumBrightness: newMinimumBrightness,
600
+ });
601
+ return { state: { minimum_brightness: value } };
602
+ }
603
+ if (key === "maximum_brightness") {
604
+ const newMaximumBrightness = (0, utils_1.toNumber)(value);
605
+ const currentState = await entity.read("boschEnergyDevice", ["minimumBrightness"]);
606
+ if (newMaximumBrightness <= currentState.minimumBrightness) {
607
+ throw new Error("The maximum brightness must be higher than the minimum brightness!");
608
+ }
609
+ await entity.write("boschEnergyDevice", {
610
+ maximumBrightness: newMaximumBrightness,
611
+ });
612
+ return { state: { maximum_brightness: value } };
613
+ }
614
+ },
615
+ convertGet: async (entity, key, meta) => {
616
+ if (key === "minimum_brightness") {
617
+ await entity.read("boschEnergyDevice", ["minimumBrightness"]);
618
+ }
619
+ if (key === "maximum_brightness") {
620
+ await entity.read("boschEnergyDevice", ["maximumBrightness"]);
621
+ }
622
+ },
623
+ },
624
+ ];
625
+ const configure = [
626
+ async (device, coordinatorEndpoint, definition) => {
627
+ const endpoint = device.getEndpoint(1);
628
+ await endpoint.read("boschEnergyDevice", ["minimumBrightness", "maximumBrightness"]);
629
+ },
630
+ ];
631
+ return {
632
+ exposes: [expose],
633
+ fromZigbee,
634
+ toZigbee,
635
+ configure,
636
+ isModernExtend: true,
637
+ };
638
+ },
639
+ rzDeviceModes: (args) => {
640
+ const { deviceModesLookup } = args;
641
+ const expose = (device, options) => {
642
+ if (utils.isDummyDevice(device)) {
643
+ return [];
644
+ }
645
+ const deviceModeExpose = e
646
+ .enum("device_mode", ea.SET, Object.keys(deviceModesLookup))
647
+ .withLabel("Device mode")
648
+ .withDescription("Set the desired mode of the relay")
649
+ .withCategory("config");
650
+ return [deviceModeExpose];
651
+ };
652
+ const toZigbee = [
653
+ {
654
+ key: ["device_mode"],
655
+ convertSet: async (entity, key, value, meta) => {
656
+ if (key === "device_mode") {
657
+ const deviceModeChanged = meta.state.device_mode !== value;
658
+ if (deviceModeChanged) {
659
+ const newPulseLength = value === utils.getFromLookupByValue(0x00, deviceModesLookup) ? 0 : 10;
660
+ const endpoint = meta.device.getEndpoint(1);
661
+ if (newPulseLength > 0) {
662
+ await endpoint.write("boschEnergyDevice", {
663
+ switchType: 0x05,
664
+ switchMode: 0x00,
665
+ childLock: 0x00,
666
+ autoOffEnabled: 0x00,
667
+ autoOffTime: 0,
668
+ });
669
+ await endpoint.read("boschEnergyDevice", [
670
+ "switchType",
671
+ "switchMode",
672
+ "childLock",
673
+ "autoOffEnabled",
674
+ "autoOffTime",
675
+ ]);
676
+ }
677
+ else {
678
+ await endpoint.write("boschEnergyDevice", {
679
+ switchType: 0x00,
680
+ switchMode: 0x00,
681
+ childLock: 0x00,
682
+ });
683
+ await endpoint.read("boschEnergyDevice", [
684
+ "switchType",
685
+ "switchMode",
686
+ "childLock",
687
+ ]);
688
+ }
689
+ await endpoint.write("boschEnergyDevice", {
690
+ pulseLength: newPulseLength,
691
+ });
692
+ await endpoint.read("boschEnergyDevice", ["pulseLength"]);
693
+ }
694
+ return { state: { device_mode: value } };
695
+ }
696
+ },
697
+ },
698
+ ];
699
+ return {
700
+ exposes: [expose],
701
+ toZigbee,
702
+ isModernExtend: true,
703
+ };
704
+ },
705
+ pulseLength: (args) => {
706
+ const { updateDeviceMode, deviceModesLookup } = args;
707
+ const expose = (device, options) => {
708
+ if (utils.isDummyDevice(device)) {
709
+ return [];
710
+ }
711
+ if (device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "pulseLength") === 0) {
712
+ return [];
713
+ }
714
+ const pulseLengthExpose = e
715
+ .numeric("pulse_length", ea.ALL)
716
+ .withLabel("Pulse length")
717
+ .withDescription("Set the desired pulse length for the relay in seconds.")
718
+ .withUnit("s")
719
+ .withValueStep(0.1)
720
+ .withValueMin(0.5)
721
+ .withValueMax(20)
722
+ .withCategory("config");
723
+ return [pulseLengthExpose];
724
+ };
725
+ const fromZigbee = [
726
+ {
727
+ cluster: "boschEnergyDevice",
728
+ type: ["attributeReport", "readResponse"],
729
+ convert: (model, msg, publish, options, meta) => {
730
+ const result = {};
731
+ const data = msg.data;
732
+ if (data.pulseLength !== undefined) {
733
+ const currentPulseLength = data.pulseLength / 10;
734
+ const oldPulseLength = meta.device.meta.pulseLength ?? 0;
735
+ const pulsedModeActivated = currentPulseLength > 0 && oldPulseLength === 0;
736
+ const pulsedModeDeactivated = currentPulseLength === 0 && oldPulseLength > 0;
737
+ if (pulsedModeActivated || pulsedModeDeactivated) {
738
+ meta.device.meta.pulseLength = currentPulseLength;
739
+ meta.deviceExposesChanged();
740
+ }
741
+ if (updateDeviceMode) {
742
+ result.device_mode =
743
+ currentPulseLength === 0
744
+ ? utils.getFromLookupByValue(0x00, deviceModesLookup)
745
+ : utils.getFromLookupByValue(0x01, deviceModesLookup);
746
+ }
747
+ result.pulse_length = currentPulseLength;
748
+ }
749
+ return result;
750
+ },
751
+ },
752
+ ];
753
+ const toZigbee = [
754
+ {
755
+ key: ["pulse_length"],
756
+ convertSet: async (entity, key, value, meta) => {
757
+ if (key === "pulse_length") {
758
+ const selectedPulseLength = (0, utils_1.toNumber)(value) * 10;
759
+ await entity.write("boschEnergyDevice", {
760
+ pulseLength: selectedPulseLength,
761
+ });
762
+ return { state: { pulse_length: value } };
763
+ }
764
+ },
765
+ convertGet: async (entity, key, meta) => {
766
+ if (key === "pulse_length") {
767
+ await entity.read("boschEnergyDevice", ["pulseLength"]);
768
+ }
769
+ },
770
+ },
771
+ ];
772
+ const configure = [
773
+ async (device, coordinatorEndpoint, definition) => {
774
+ const endpoint = device.getEndpoint(1);
775
+ await endpoint.read("boschEnergyDevice", ["pulseLength"]);
776
+ },
777
+ ];
778
+ return {
779
+ exposes: [expose],
780
+ fromZigbee,
781
+ toZigbee,
782
+ configure,
783
+ isModernExtend: true,
784
+ };
785
+ },
786
+ switchType: (args) => {
787
+ const { switchTypeLookup } = args;
788
+ const expose = (device, options) => {
789
+ if (utils.isDummyDevice(device)) {
790
+ return [];
791
+ }
792
+ let supportedSwitchTypes = Object.keys(switchTypeLookup);
793
+ if (device.modelID === "RBSH-MMR-ZB-EU") {
794
+ const pulseModeActive = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "pulseLength") > 0;
795
+ if (pulseModeActive) {
796
+ supportedSwitchTypes = Object.keys(switchTypeLookup).filter((switchType) => switchType !== utils.getFromLookup("rocker_switch", switchTypeLookup));
797
+ }
798
+ }
799
+ const switchTypeExpose = e
800
+ .enum("switch_type", ea.ALL, supportedSwitchTypes)
801
+ .withLabel("Connected switch type")
802
+ .withDescription("Select which switch type is connected to the module. Please keep in mind that the available options may depend on the selected device mode.")
803
+ .withCategory("config");
804
+ return [switchTypeExpose];
805
+ };
806
+ const fromZigbee = [
807
+ {
808
+ cluster: "boschEnergyDevice",
809
+ type: ["attributeReport", "readResponse"],
810
+ convert: (model, msg, publish, options, meta) => {
811
+ const result = {};
812
+ const data = msg.data;
813
+ if (data.switchType !== undefined) {
814
+ const switchType = data.switchType;
815
+ result.switch_type = utils.getFromLookupByValue(switchType, switchTypeLookup);
816
+ if (switchType !== meta.device.meta.switchType) {
817
+ meta.device.meta.switchType = switchType;
818
+ meta.deviceExposesChanged();
819
+ }
820
+ }
821
+ return result;
822
+ },
823
+ },
824
+ ];
825
+ const toZigbee = [
826
+ {
827
+ key: ["switch_type"],
828
+ convertSet: async (entity, key, value, meta) => {
829
+ if (key === "switch_type") {
830
+ const selectedSwitchType = utils.getFromLookup(value, switchTypeLookup);
831
+ if (meta.device.meta.switchType !== selectedSwitchType) {
832
+ const endpoints = meta.device.endpoints.filter((e) => e.supportsInputCluster("boschEnergyDevice"));
833
+ for (const endpoint of endpoints) {
834
+ await endpoint.write("boschEnergyDevice", {
835
+ switchMode: 0x00,
836
+ childLock: 0x00,
837
+ });
838
+ await endpoint.read("boschEnergyDevice", ["switchMode", "childLock"]);
839
+ }
840
+ }
841
+ await entity.write("boschEnergyDevice", {
842
+ switchType: selectedSwitchType,
843
+ });
844
+ await entity.read("boschEnergyDevice", ["switchType"]);
845
+ return { state: { switch_type: value } };
846
+ }
847
+ },
848
+ convertGet: async (entity, key, meta) => {
849
+ if (key === "switch_type") {
850
+ await entity.read("boschEnergyDevice", ["switchType"]);
851
+ }
852
+ },
853
+ },
854
+ ];
855
+ const configure = [
856
+ async (device, coordinatorEndpoint, definition) => {
857
+ const endpoint = device.getEndpoint(1);
858
+ await endpoint.read("boschEnergyDevice", ["switchType"]);
859
+ },
860
+ ];
861
+ return {
862
+ exposes: [expose],
863
+ fromZigbee,
864
+ toZigbee,
865
+ configure,
866
+ isModernExtend: true,
867
+ };
868
+ },
869
+ reportSwitchAction: (args) => {
870
+ const { switchTypeLookup, hasDualSwitchInputs } = args;
871
+ const expose = (device, options) => {
872
+ const exposeList = [];
873
+ if (utils.isDummyDevice(device)) {
874
+ return exposeList;
875
+ }
876
+ const switchTypeKey = device.getEndpoint(1).getClusterAttributeValue("boschEnergyDevice", "switchType") ?? 0x00;
877
+ const selectedSwitchType = utils.getFromLookupByValue(switchTypeKey, switchTypeLookup);
878
+ let supportedActionTypes;
879
+ if (selectedSwitchType.includes("button")) {
880
+ if (hasDualSwitchInputs) {
881
+ supportedActionTypes = [
882
+ "press_released_left",
883
+ "press_released_right",
884
+ "hold_left",
885
+ "hold_right",
886
+ "hold_released_left",
887
+ "hold_released_right",
888
+ ];
889
+ }
890
+ else {
891
+ supportedActionTypes = ["press_released", "hold", "hold_released"];
892
+ }
893
+ exposeList.push(e.action(supportedActionTypes), e.action_duration());
894
+ }
895
+ else if (selectedSwitchType.includes("rocker_switch")) {
896
+ if (hasDualSwitchInputs) {
897
+ supportedActionTypes = ["opened_left", "opened_right", "closed_left", "closed_right"];
898
+ }
899
+ else {
900
+ supportedActionTypes = ["opened", "closed"];
901
+ }
902
+ exposeList.push(e.action(supportedActionTypes));
903
+ }
904
+ return exposeList;
905
+ };
906
+ const fromZigbee = [
907
+ {
908
+ cluster: "boschEnergyDevice",
909
+ type: ["raw"],
910
+ convert: (model, msg, publish, options, meta) => {
911
+ const command = msg.data[4];
912
+ if (command !== 0x03 && command !== 0x04) {
913
+ return;
914
+ }
915
+ let state;
916
+ const status = msg.data[5];
917
+ const duration = msg.data[6] / 10;
918
+ switch (status) {
919
+ case 0:
920
+ state = "press_released";
921
+ break;
922
+ case 1:
923
+ state = duration !== 0 ? "hold" : "hold_released";
924
+ break;
925
+ case 2:
926
+ state = "closed";
927
+ break;
928
+ case 3:
929
+ state = "opened";
930
+ break;
931
+ }
932
+ let action;
933
+ if (hasDualSwitchInputs) {
934
+ const triggeredSide = command === 0x03 ? "left" : "right";
935
+ action = `${state}_${triggeredSide}`;
936
+ }
937
+ else {
938
+ action = state;
939
+ }
940
+ return { action: action, action_duration: duration };
941
+ },
942
+ },
943
+ ];
944
+ return {
945
+ exposes: [expose],
946
+ fromZigbee,
947
+ isModernExtend: true,
948
+ };
949
+ },
950
+ slzExtends: () => {
951
+ const stateDeviceMode = {
952
+ light: 0x04,
953
+ shutter: 0x01,
954
+ disabled: 0x00,
955
+ };
956
+ const stateMotor = {
957
+ stopped: 0x00,
958
+ opening: 0x01,
959
+ closing: 0x02,
960
+ unknownOne: 0x03,
961
+ unknownTwo: 0x04,
962
+ };
963
+ const stateSwitchType = {
964
+ button: 0x01,
965
+ button_key_change: 0x02,
966
+ rocker_switch: 0x03,
967
+ rocker_switch_key_change: 0x04,
968
+ none: 0x00,
969
+ };
970
+ const stateSwitchMode = {
971
+ coupled: 0x00,
972
+ decoupled: 0x01,
973
+ only_short_press_decoupled: 0x02,
974
+ only_long_press_decoupled: 0x03,
975
+ };
976
+ const stateOffOn = {
977
+ OFF: 0x00,
978
+ ON: 0x01,
979
+ };
980
+ const fromZigbee = [
981
+ fz.on_off_force_multiendpoint,
982
+ fz.power_on_behavior,
983
+ fz.cover_position_tilt,
984
+ {
985
+ cluster: "boschEnergyDevice",
986
+ type: ["attributeReport", "readResponse"],
987
+ convert: (model, msg, publish, options, meta) => {
988
+ const result = {};
989
+ const data = msg.data;
990
+ if (data.deviceMode !== undefined) {
991
+ result.device_mode = Object.keys(stateDeviceMode).find((key) => stateDeviceMode[key] === msg.data.deviceMode);
992
+ const deviceMode = msg.data.deviceMode;
993
+ if (deviceMode !== meta.device.meta.deviceMode) {
994
+ meta.device.meta.deviceMode = deviceMode;
995
+ meta.deviceExposesChanged();
996
+ }
997
+ }
998
+ if (data.switchType !== undefined) {
999
+ const switchType = msg.data.switchType;
1000
+ result.switch_type = Object.keys(stateSwitchType).find((key) => stateSwitchType[key] === switchType);
1001
+ if (switchType !== meta.device.meta.switchType) {
1002
+ meta.device.meta.switchType = switchType;
1003
+ meta.deviceExposesChanged();
1004
+ }
1005
+ }
1006
+ if (data.switchMode !== undefined) {
1007
+ const property = utils.postfixWithEndpointName("switch_mode", msg, model, meta);
1008
+ result[property] = Object.keys(stateSwitchMode).find((key) => stateSwitchMode[key] === msg.data.switchMode);
1009
+ }
1010
+ if (data.calibrationOpeningTime !== undefined) {
1011
+ result.calibration_opening_time = msg.data.calibrationOpeningTime / 10;
1012
+ }
1013
+ if (data.calibrationClosingTime !== undefined) {
1014
+ result.calibration_closing_time = msg.data.calibrationClosingTime / 10;
1015
+ }
1016
+ if (data.calibrationButtonHoldTime !== undefined) {
1017
+ result.calibration_button_hold_time = msg.data.calibrationButtonHoldTime / 10;
1018
+ }
1019
+ if (data.calibrationMotorStartDelay !== undefined) {
1020
+ result.calibration_motor_start_delay = msg.data.calibrationMotorStartDelay / 10;
1021
+ }
1022
+ if (data.childLock !== undefined) {
1023
+ const property = utils.postfixWithEndpointName("child_lock", msg, model, meta);
1024
+ result[property] = msg.data.childLock === 1 ? "ON" : "OFF";
1025
+ }
1026
+ if (data.motorState !== undefined) {
1027
+ result.motor_state = Object.keys(stateMotor).find((key) => stateMotor[key] === msg.data.motorState);
1028
+ }
1029
+ if (data.autoOffEnabled !== undefined) {
1030
+ const property = utils.postfixWithEndpointName("auto_off_enabled", msg, model, meta);
1031
+ result[property] = msg.data.autoOffEnabled === 1 ? "ON" : "OFF";
1032
+ }
1033
+ if (data.autoOffTime !== undefined) {
1034
+ const property = utils.postfixWithEndpointName("auto_off_time", msg, model, meta);
1035
+ result[property] = msg.data.autoOffTime / 60;
1036
+ }
1037
+ return result;
1038
+ },
1039
+ },
1040
+ ];
1041
+ const toZigbee = [
1042
+ tz.power_on_behavior,
1043
+ tz.cover_position_tilt,
1044
+ {
1045
+ key: [
1046
+ "device_mode",
1047
+ "switch_type",
1048
+ "switch_mode",
1049
+ "child_lock",
1050
+ "state",
1051
+ "on_time",
1052
+ "off_wait_time",
1053
+ "auto_off_enabled",
1054
+ "auto_off_time",
1055
+ ],
1056
+ convertSet: async (entity, key, value, meta) => {
1057
+ if (key === "state") {
1058
+ if ("ID" in entity && entity instanceof model_1.Endpoint && entity.ID === 1) {
1059
+ await tz.cover_state.convertSet(entity, key, value, meta);
1060
+ }
1061
+ else {
1062
+ await tz.on_off.convertSet(entity, key, value, meta);
1063
+ }
1064
+ }
1065
+ if (key === "on_time" || key === "on_wait_time") {
1066
+ if ("ID" in entity && entity instanceof model_1.Endpoint && entity.ID !== 1) {
1067
+ await tz.on_off.convertSet(entity, key, value, meta);
1068
+ }
1069
+ }
1070
+ if (key === "device_mode") {
1071
+ const index = utils.getFromLookup(value, stateDeviceMode);
1072
+ await entity.write("boschEnergyDevice", { deviceMode: index });
1073
+ await entity.read("boschEnergyDevice", ["deviceMode"]);
1074
+ return { state: { device_mode: value } };
1075
+ }
1076
+ if (key === "switch_type") {
1077
+ const applyDefaultForSwitchModeAndChildLock = async (endpoint) => {
1078
+ const switchModeDefault = utils.getFromLookup("coupled", stateSwitchMode);
1079
+ const childLockDefault = utils.getFromLookup("OFF", stateOffOn);
1080
+ await endpoint.write("boschEnergyDevice", {
1081
+ switchMode: switchModeDefault,
1082
+ childLock: childLockDefault,
1083
+ });
1084
+ await endpoint.read("boschEnergyDevice", ["switchMode", "childLock"]);
1085
+ };
1086
+ const switchType = utils.getFromLookup(value, stateSwitchType);
1087
+ await entity.write("boschEnergyDevice", { switchType: switchType });
1088
+ await entity.read("boschEnergyDevice", ["switchType"]);
1089
+ await applyDefaultForSwitchModeAndChildLock(entity);
1090
+ const leftEndpoint = meta.device.getEndpoint(2);
1091
+ await applyDefaultForSwitchModeAndChildLock(leftEndpoint);
1092
+ const rightEndpoint = meta.device.getEndpoint(3);
1093
+ await applyDefaultForSwitchModeAndChildLock(rightEndpoint);
1094
+ return { state: { switch_type: value } };
1095
+ }
1096
+ if (key === "switch_mode") {
1097
+ const index = utils.getFromLookup(value, stateSwitchMode);
1098
+ await entity.write("boschEnergyDevice", { switchMode: index });
1099
+ return { state: { switch_mode: value } };
1100
+ }
1101
+ if (key === "child_lock") {
1102
+ const index = utils.getFromLookup(value, stateOffOn);
1103
+ await entity.write("boschEnergyDevice", { childLock: index });
1104
+ return { state: { child_lock: value } };
1105
+ }
1106
+ if (key === "auto_off_enabled") {
1107
+ const index = utils.getFromLookup(value, stateOffOn);
1108
+ await entity.write("boschEnergyDevice", { autoOffEnabled: index });
1109
+ return { state: { auto_off_enabled: value } };
1110
+ }
1111
+ if (key === "auto_off_time" && typeof value === "number") {
1112
+ await entity.write("boschEnergyDevice", { autoOffTime: value * 60 });
1113
+ return { state: { auto_off_time: value } };
1114
+ }
1115
+ },
1116
+ convertGet: async (entity, key, meta) => {
1117
+ switch (key) {
1118
+ case "state":
1119
+ case "on_time":
1120
+ case "off_wait_time":
1121
+ if ("ID" in entity && entity instanceof model_1.Endpoint && entity.ID !== 1) {
1122
+ await entity.read("genOnOff", ["onOff"]);
1123
+ }
1124
+ break;
1125
+ case "device_mode":
1126
+ await entity.read("boschEnergyDevice", ["deviceMode"]);
1127
+ break;
1128
+ case "switch_type":
1129
+ await entity.read("boschEnergyDevice", ["switchType"]);
1130
+ break;
1131
+ case "switch_mode":
1132
+ await entity.read("boschEnergyDevice", ["switchMode"]);
1133
+ break;
1134
+ case "child_lock":
1135
+ await entity.read("boschEnergyDevice", ["childLock"]);
1136
+ break;
1137
+ case "auto_off_enabled":
1138
+ await entity.read("boschEnergyDevice", ["autoOffEnabled"]);
1139
+ break;
1140
+ case "auto_off_time":
1141
+ await entity.read("boschEnergyDevice", ["autoOffTime"]);
1142
+ break;
1143
+ default:
1144
+ throw new Error(`Unhandled key boschExtend.bmct.toZigbee.convertGet ${key}`);
1145
+ }
1146
+ },
1147
+ },
1148
+ {
1149
+ key: ["calibration_closing_time", "calibration_opening_time", "calibration_button_hold_time", "calibration_motor_start_delay"],
1150
+ convertSet: async (entity, key, value, meta) => {
1151
+ if (key === "calibration_opening_time") {
1152
+ const number = utils.toNumber(value, "calibration_opening_time");
1153
+ const index = number * 10;
1154
+ await entity.write("boschEnergyDevice", { calibrationOpeningTime: index });
1155
+ return { state: { calibration_opening_time: number } };
1156
+ }
1157
+ if (key === "calibration_closing_time") {
1158
+ const number = utils.toNumber(value, "calibration_closing_time");
1159
+ const index = number * 10;
1160
+ await entity.write("boschEnergyDevice", { calibrationClosingTime: index });
1161
+ return { state: { calibration_closing_time: number } };
1162
+ }
1163
+ if (key === "calibration_button_hold_time") {
1164
+ const number = utils.toNumber(value, "calibration_button_hold_time");
1165
+ const index = number * 10;
1166
+ await entity.write("boschEnergyDevice", {
1167
+ calibrationButtonHoldTime: index,
1168
+ });
1169
+ return { state: { calibration_button_hold_time: number } };
1170
+ }
1171
+ if (key === "calibration_motor_start_delay") {
1172
+ const number = utils.toNumber(value, "calibration_motor_start_delay");
1173
+ const index = number * 10;
1174
+ await entity.write("boschEnergyDevice", {
1175
+ calibrationMotorStartDelay: index,
1176
+ });
1177
+ return { state: { calibration_motor_start_delay: number } };
1178
+ }
1179
+ },
1180
+ convertGet: async (entity, key, meta) => {
1181
+ switch (key) {
1182
+ case "calibration_opening_time":
1183
+ await entity.read("boschEnergyDevice", ["calibrationOpeningTime"]);
1184
+ break;
1185
+ case "calibration_closing_time":
1186
+ await entity.read("boschEnergyDevice", ["calibrationClosingTime"]);
1187
+ break;
1188
+ case "calibration_button_hold_time":
1189
+ await entity.read("boschEnergyDevice", ["calibrationButtonHoldTime"]);
1190
+ break;
1191
+ case "calibration_motor_start_delay":
1192
+ await entity.read("boschEnergyDevice", ["calibrationMotorStartDelay"]);
1193
+ break;
1194
+ default:
1195
+ throw new Error(`Unhandled key boschExtend.bmct.toZigbee.convertGet ${key}`);
1196
+ }
1197
+ },
1198
+ },
1199
+ ];
1200
+ return {
1201
+ fromZigbee,
1202
+ toZigbee,
1203
+ isModernExtend: true,
1204
+ };
1205
+ },
1206
+ };
1207
+ exports.boschBsirExtend = {
1208
+ customPowerCfgCluster: () => m.deviceAddCustomCluster("genPowerCfg", {
1209
+ ID: zigbee_herdsman_1.Zcl.Clusters.genPowerCfg.ID,
1210
+ attributes: {
1211
+ solarPanelVoltage: {
1212
+ ID: 0xa000,
1213
+ type: zigbee_herdsman_1.Zcl.DataType.UINT16,
1214
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1215
+ write: true,
1216
+ max: 0xffff,
1217
+ },
1218
+ unknownAttribute: {
1219
+ ID: 0xa001,
1220
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1221
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1222
+ write: true,
1223
+ max: 0xff,
1224
+ },
1225
+ primaryPowerSource: {
1226
+ ID: 0xa002,
1227
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1228
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1229
+ write: true,
1230
+ max: 0xff,
1231
+ },
1232
+ },
1233
+ commands: {},
1234
+ commandsResponse: {},
1235
+ }),
1236
+ customIasZoneCluster: () => m.deviceAddCustomCluster("ssIasZone", {
1237
+ ID: zigbee_herdsman_1.Zcl.Clusters.ssIasZone.ID,
1238
+ attributes: {
1239
+ currentPowerSource: {
1240
+ ID: 0xa001,
1241
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1242
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1243
+ write: true,
1244
+ max: 0xff,
1245
+ },
1246
+ },
1247
+ commands: {
1248
+ acknowledgeStatusChange: {
1249
+ ID: 0xf3,
1250
+ parameters: [{ name: "data", type: zigbee_herdsman_1.Zcl.DataType.UINT8, max: 0xff }],
1251
+ },
1252
+ },
1253
+ commandsResponse: {},
1254
+ }),
1255
+ customIasWdCluster: () => m.deviceAddCustomCluster("ssIasWd", {
1256
+ ID: zigbee_herdsman_1.Zcl.Clusters.ssIasWd.ID,
1257
+ attributes: {
1258
+ sirenDuration: { ID: 0xa000, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1259
+ alarmMode: { ID: 0xa001, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1260
+ sirenVolume: { ID: 0xa002, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1261
+ sirenDelay: { ID: 0xa003, type: zigbee_herdsman_1.Zcl.DataType.UINT16, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xffff },
1262
+ lightDelay: { ID: 0xa004, type: zigbee_herdsman_1.Zcl.DataType.UINT16, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xffff },
1263
+ lightDuration: { ID: 0xa005, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1264
+ deviceState: { ID: 0xa006, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1265
+ },
1266
+ commands: {
1267
+ alarmControl: {
1268
+ ID: 0xf0,
1269
+ parameters: [{ name: "data", type: zigbee_herdsman_1.Zcl.DataType.UINT8, max: 0xff }],
1270
+ },
1271
+ },
1272
+ commandsResponse: {},
1273
+ }),
1274
+ alarmControl: () => {
1275
+ const exposes = [
1276
+ e
1277
+ .enum("trigger_alarm", ea.SET, ["trigger"])
1278
+ .withLabel("Trigger alarm")
1279
+ .withDescription("Trigger an alarm on the device")
1280
+ .withCategory("config"),
1281
+ e
1282
+ .enum("stop_alarm", ea.SET, ["stop"])
1283
+ .withLabel("Stop alarm")
1284
+ .withDescription("Stop an active alarm on the device. Please keep in mind that the alarm stops automatically after the configured duration for the light and siren is expired.")
1285
+ .withCategory("config"),
1286
+ ];
1287
+ const toZigbee = [
1288
+ {
1289
+ key: ["trigger_alarm", "stop_alarm"],
1290
+ convertSet: async (entity, key, value, meta) => {
1291
+ if (key === "trigger_alarm") {
1292
+ await entity.command("ssIasWd", "alarmControl", { data: 0x07 }, exports.manufacturerOptions);
1293
+ }
1294
+ if (key === "stop_alarm") {
1295
+ await entity.command("ssIasWd", "alarmControl", { data: 0x00 }, exports.manufacturerOptions);
1296
+ }
1297
+ },
1298
+ },
1299
+ ];
1300
+ const configure = [
1301
+ async (device, coordinatorEndpoint, definition) => {
1302
+ const endpoint = device.getEndpoint(1);
1303
+ await endpoint.bind("ssIasWd", coordinatorEndpoint);
1304
+ },
1305
+ ];
1306
+ return {
1307
+ exposes,
1308
+ toZigbee,
1309
+ configure,
1310
+ isModernExtend: true,
1311
+ };
1312
+ },
1313
+ deviceState: () => m.enumLookup({
1314
+ name: "device_state",
1315
+ cluster: "ssIasWd",
1316
+ attribute: "deviceState",
1317
+ description: "Current state of the siren and light. Please keep in mind that these activate after the specified delay time (except when using an external alarm trigger).",
1318
+ lookup: {
1319
+ siren_active_from_external_trigger: 0x05,
1320
+ light_active_from_external_trigger: 0x06,
1321
+ siren_and_light_active_from_external_trigger: 0x07,
1322
+ siren_active: 0x09,
1323
+ light_active: 0x0a,
1324
+ siren_and_light_active: 0x0b,
1325
+ idle: 0x00,
1326
+ },
1327
+ access: "STATE_GET",
1328
+ }),
1329
+ lightDelay: () => m.numeric({
1330
+ name: "light_delay",
1331
+ cluster: "ssIasWd",
1332
+ attribute: "lightDelay",
1333
+ description: "Delay of the light activation after an alarm is being triggered",
1334
+ valueMin: 0,
1335
+ valueMax: 180,
1336
+ valueStep: 1,
1337
+ unit: "sec",
1338
+ entityCategory: "config",
1339
+ }),
1340
+ sirenDelay: () => m.numeric({
1341
+ name: "siren_delay",
1342
+ cluster: "ssIasWd",
1343
+ attribute: "sirenDelay",
1344
+ description: "Delay of the siren activation after an alarm is being triggered",
1345
+ valueMin: 0,
1346
+ valueMax: 180,
1347
+ valueStep: 1,
1348
+ unit: "sec",
1349
+ entityCategory: "config",
1350
+ }),
1351
+ sirenDuration: () => m.numeric({
1352
+ name: "siren_duration",
1353
+ cluster: "ssIasWd",
1354
+ attribute: "sirenDuration",
1355
+ description: "Duration of the alarm siren",
1356
+ valueMin: 1,
1357
+ valueMax: 15,
1358
+ valueStep: 1,
1359
+ unit: "min",
1360
+ entityCategory: "config",
1361
+ }),
1362
+ lightDuration: () => m.numeric({
1363
+ name: "light_duration",
1364
+ cluster: "ssIasWd",
1365
+ attribute: "lightDuration",
1366
+ description: "Duration of the alarm light",
1367
+ valueMin: 1,
1368
+ valueMax: 15,
1369
+ valueStep: 1,
1370
+ unit: "min",
1371
+ entityCategory: "config",
1372
+ }),
1373
+ sirenVolume: () => m.enumLookup({
1374
+ name: "siren_volume",
1375
+ cluster: "ssIasWd",
1376
+ attribute: "sirenVolume",
1377
+ description: "Volume of the siren",
1378
+ lookup: {
1379
+ reduced: 0x01,
1380
+ medium: 0x02,
1381
+ loud: 0x03,
1382
+ },
1383
+ entityCategory: "config",
1384
+ }),
1385
+ alarmMode: () => m.enumLookup({
1386
+ name: "alarm_mode",
1387
+ cluster: "ssIasWd",
1388
+ attribute: "alarmMode",
1389
+ description: "Select if you only want a visual warning, an acoustic warning or both",
1390
+ lookup: {
1391
+ only_light: 0x00,
1392
+ only_siren: 0x01,
1393
+ siren_and_light: 0x02,
1394
+ },
1395
+ entityCategory: "config",
1396
+ }),
1397
+ primaryPowerSource: () => m.enumLookup({
1398
+ name: "primary_power_source",
1399
+ cluster: "genPowerCfg",
1400
+ attribute: "primaryPowerSource",
1401
+ description: "Select which power source you want to use. Note: The battery is always being used as backup source.",
1402
+ lookup: {
1403
+ solar_panel: 0x00,
1404
+ ac_power_supply: 0x01,
1405
+ dc_power_supply: 0x02,
1406
+ },
1407
+ reporting: { min: "MIN", max: "MAX", change: 1 },
1408
+ entityCategory: "config",
1409
+ }),
1410
+ iasZoneStatus: () => {
1411
+ const powerOutageLookup = {
1412
+ outage_detected: true,
1413
+ power_ok: false,
1414
+ };
1415
+ const exposes = [
1416
+ e
1417
+ .binary("external_trigger", ea.STATE, true, false)
1418
+ .withLabel("External trigger state")
1419
+ .withDescription("Indicates whether an external alarm via the 'TRIGGER_IN' connectors on the back of the device is being received. Please keep in mind that the device automatically activates/deactivates an alarm in that case."),
1420
+ e
1421
+ .binary("tamper", ea.STATE, true, false)
1422
+ .withLabel("Tamper state")
1423
+ .withDescription("Indicates whether the device is tampered")
1424
+ .withCategory("diagnostic"),
1425
+ e
1426
+ .binary("power_outage", ea.STATE, utils.getFromLookupByValue(true, powerOutageLookup), utils.getFromLookupByValue(false, powerOutageLookup))
1427
+ .withLabel("Power outage state")
1428
+ .withDescription("Indicates the configured primary power source experiences a power outage. This only works when using ac or dc power.")
1429
+ .withCategory("diagnostic"),
1430
+ ];
1431
+ const fromZigbee = [
1432
+ {
1433
+ cluster: "ssIasZone",
1434
+ type: ["commandStatusChangeNotification"],
1435
+ convert: (model, msg, publish, options, meta) => {
1436
+ if (utils.hasAlreadyProcessedMessage(msg, model)) {
1437
+ return;
1438
+ }
1439
+ const zoneStatus = msg.data.zonestatus;
1440
+ const alarmOneStatus = (zoneStatus & 1) > 0;
1441
+ const tamperStatus = (zoneStatus & (1 << 2)) > 0;
1442
+ const alarmTwoStatus = (zoneStatus & (1 << 1)) > 0;
1443
+ if (tamperStatus) {
1444
+ meta.device
1445
+ .getEndpoint(1)
1446
+ .command("ssIasZone", "acknowledgeStatusChange", { data: 0x02 }, exports.manufacturerOptions)
1447
+ .catch((e) => {
1448
+ logger_1.logger.warning(`Acknowledgement of tamper status on device '${meta.device.ieeeAddr}' failed: ${e}`, NS);
1449
+ });
1450
+ }
1451
+ if (alarmTwoStatus) {
1452
+ meta.device
1453
+ .getEndpoint(1)
1454
+ .command("ssIasZone", "acknowledgeStatusChange", { data: 0x04 }, exports.manufacturerOptions)
1455
+ .catch((e) => {
1456
+ logger_1.logger.warning(`Acknowledgement of alarm 2 status on device '${meta.device.ieeeAddr}' failed: ${e}`, NS);
1457
+ });
1458
+ }
1459
+ return {
1460
+ external_trigger: alarmOneStatus,
1461
+ tamper: tamperStatus,
1462
+ power_outage: utils.getFromLookupByValue(alarmTwoStatus, powerOutageLookup),
1463
+ };
1464
+ },
1465
+ },
1466
+ ];
1467
+ const configure = [
1468
+ async (device, coordinatorEndpoint, definition) => {
1469
+ const endpoint = device.getEndpoint(1);
1470
+ await endpoint.read("ssIasZone", ["zoneStatus"]);
1471
+ },
1472
+ ];
1473
+ return {
1474
+ exposes,
1475
+ fromZigbee,
1476
+ configure,
1477
+ isModernExtend: true,
1478
+ };
1479
+ },
1480
+ currentPowerSource: () => m.enumLookup({
1481
+ name: "current_power_source",
1482
+ cluster: "ssIasZone",
1483
+ attribute: "currentPowerSource",
1484
+ description: "Currently used power source for device operation",
1485
+ lookup: {
1486
+ battery: 0x00,
1487
+ solar_panel: 0x01,
1488
+ ac_power: 0x02,
1489
+ dc_power: 0x03,
1490
+ },
1491
+ reporting: { min: "MIN", max: "MAX", change: 1 },
1492
+ access: "STATE_GET",
1493
+ entityCategory: "diagnostic",
1494
+ }),
1495
+ solarPanelVoltage: () => {
1496
+ const exposes = [
1497
+ e
1498
+ .numeric("solar_panel_voltage", ea.STATE)
1499
+ .withDescription("Current voltage level received from the integrated solar panel")
1500
+ .withUnit("volt")
1501
+ .withCategory("diagnostic"),
1502
+ ];
1503
+ const fromZigbee = [
1504
+ {
1505
+ cluster: "genPowerCfg",
1506
+ type: ["attributeReport", "readResponse"],
1507
+ convert: (model, msg, publish, options, meta) => {
1508
+ if (utils.hasAlreadyProcessedMessage(msg, model)) {
1509
+ return;
1510
+ }
1511
+ const data = msg.data;
1512
+ const containsSolarPanelVoltage = data.solarPanelVoltage !== undefined;
1513
+ if (containsSolarPanelVoltage) {
1514
+ const currentSolarPanelVoltage = data.solarPanelVoltage / 10;
1515
+ return { solar_panel_voltage: currentSolarPanelVoltage };
1516
+ }
1517
+ },
1518
+ },
1519
+ ];
1520
+ const configure = [
1521
+ async (device, coordinatorEndpoint, definition) => {
1522
+ const endpoint = device.getEndpoint(1);
1523
+ const solarPanelVoltageReportingPayload = (0, reporting_1.payload)("solarPanelVoltage", constants_1.repInterval.MINUTES_5, constants_1.repInterval.MAX, 1);
1524
+ await endpoint.configureReporting("genPowerCfg", solarPanelVoltageReportingPayload);
1525
+ },
1526
+ ];
1527
+ return { exposes, fromZigbee, configure, isModernExtend: true };
1528
+ },
1529
+ };
1530
+ exports.boschDoorWindowContactExtend = {
1531
+ doorWindowContactCluster: () => m.deviceAddCustomCluster("boschDoorWindowContactCluster", {
1532
+ ID: 0xfcad,
1533
+ attributes: {
1534
+ breakFunctionEnabled: {
1535
+ ID: 0x0000,
1536
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1537
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1538
+ write: true,
1539
+ max: 0xff,
1540
+ },
1541
+ breakFunctionState: {
1542
+ ID: 0x0001,
1543
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1544
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1545
+ write: true,
1546
+ max: 0xff,
1547
+ },
1548
+ breakFunctionTimeout: {
1549
+ ID: 0x0002,
1550
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1551
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1552
+ write: true,
1553
+ max: 0xff,
1554
+ },
1555
+ vibrationDetectionEnabled: {
1556
+ ID: 0x0004,
1557
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1558
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1559
+ write: true,
1560
+ max: 0xff,
1561
+ },
1562
+ vibrationDetectionSensitivity: {
1563
+ ID: 0x0005,
1564
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
1565
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
1566
+ write: true,
1567
+ max: 0xff,
1568
+ },
1569
+ unknownOne: { ID: 0x0007, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1570
+ unknownTwo: { ID: 0x0008, type: zigbee_herdsman_1.Zcl.DataType.UINT16, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xffff },
1571
+ unknownThree: { ID: 0x0009, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1572
+ unknownFour: { ID: 0x000a, type: zigbee_herdsman_1.Zcl.DataType.UINT8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
1573
+ },
1574
+ commands: {},
1575
+ commandsResponse: {},
1576
+ }),
1577
+ reportContactState: () => m.iasZoneAlarm({
1578
+ zoneType: "contact",
1579
+ zoneAttributes: ["alarm_1"],
1580
+ description: "Indicates whether the device detected an open or closed door/window",
1581
+ }),
1582
+ reportButtonActions: (args) => {
1583
+ const { doublePressSupported } = args ?? { doublePressSupported: false };
1584
+ let buttonActionsLookup = {
1585
+ long_press: 0x02,
1586
+ single_press: 0x01,
1587
+ none: 0x00,
1588
+ };
1589
+ if (doublePressSupported) {
1590
+ buttonActionsLookup = { ...{ double_press: 0x08 }, ...buttonActionsLookup };
1591
+ }
1592
+ const exposes = [
1593
+ e
1594
+ .enum("action", ea.STATE, Object.keys(buttonActionsLookup))
1595
+ .withDescription("Indicates button presses on the device")
1596
+ .withCategory("diagnostic"),
1597
+ ];
1598
+ const fromZigbee = [
1599
+ {
1600
+ cluster: "ssIasZone",
1601
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
1602
+ convert: (model, msg, publish, options, meta) => {
1603
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
1604
+ if (zoneStatus !== undefined) {
1605
+ const buttonPayload = zoneStatus >> 11;
1606
+ const buttonState = utils.getFromLookupByValue(buttonPayload, buttonActionsLookup);
1607
+ const result = {
1608
+ action: buttonState,
1609
+ };
1610
+ return result;
1611
+ }
1612
+ },
1613
+ },
1614
+ ];
1615
+ const configure = [m.setupConfigureForBinding("ssIasZone", "input"), m.setupConfigureForReading("ssIasZone", ["zoneStatus"])];
1616
+ return {
1617
+ exposes,
1618
+ fromZigbee,
1619
+ configure,
1620
+ isModernExtend: true,
1621
+ };
1622
+ },
1623
+ breakFunctionality: () => {
1624
+ const breakFunctionEnabledLookup = {
1625
+ ON: 0x01,
1626
+ OFF: 0x00,
1627
+ };
1628
+ const breakFunctionStatusLookup = {
1629
+ break_active: 0x01,
1630
+ idle: 0x00,
1631
+ };
1632
+ const exposes = [
1633
+ e
1634
+ .binary("break_function_enabled", ea.ALL, utils.getFromLookupByValue(0x01, breakFunctionEnabledLookup), utils.getFromLookupByValue(0x00, breakFunctionEnabledLookup))
1635
+ .withLabel("Break function")
1636
+ .withDescription("Activate the break function by pressing the operating button on the door/window contact twice. This means that the device temporarily stops reading the sensors.")
1637
+ .withCategory("config"),
1638
+ e
1639
+ .numeric("break_function_timeout", ea.ALL)
1640
+ .withLabel("Automatic time limit for breaks")
1641
+ .withDescription("Here you can define how long the break function is activated for the door/window contact. Once the time limit has expired, the break ends automatically. The LED on the device will flash orange as long as the break is activated when this setting is being used.")
1642
+ .withValueMin(1)
1643
+ .withValueMax(15)
1644
+ .withUnit("minutes")
1645
+ .withPreset("disable", null, "Disable automatic time limit")
1646
+ .withCategory("config"),
1647
+ e
1648
+ .enum("break_function_state", ea.STATE_GET, Object.keys(breakFunctionStatusLookup))
1649
+ .withLabel("Break function state")
1650
+ .withDescription("Indicates whether the device is in break mode or not"),
1651
+ ];
1652
+ const fromZigbee = [
1653
+ {
1654
+ cluster: "boschDoorWindowContactCluster",
1655
+ type: ["attributeReport", "readResponse"],
1656
+ convert: (model, msg, publish, options, meta) => {
1657
+ const result = {};
1658
+ const data = msg.data;
1659
+ if (data.breakFunctionEnabled !== undefined) {
1660
+ result.break_function_enabled = utils.getFromLookupByValue(data.breakFunctionEnabled, breakFunctionEnabledLookup);
1661
+ }
1662
+ if (data.breakFunctionTimeout !== undefined) {
1663
+ result.break_function_timeout = data.breakFunctionTimeout === 0xff ? null : data.breakFunctionTimeout;
1664
+ }
1665
+ if (data.breakFunctionState !== undefined) {
1666
+ result.break_function_state = utils.getFromLookupByValue(data.breakFunctionState, breakFunctionStatusLookup);
1667
+ }
1668
+ return result;
1669
+ },
1670
+ },
1671
+ ];
1672
+ const toZigbee = [
1673
+ {
1674
+ key: ["break_function_enabled", "break_function_timeout", "break_function_state"],
1675
+ convertSet: async (entity, key, value, meta) => {
1676
+ if (key === "break_function_enabled") {
1677
+ await entity.write("boschDoorWindowContactCluster", {
1678
+ breakFunctionEnabled: utils.getFromLookup(value, breakFunctionEnabledLookup),
1679
+ });
1680
+ return { state: { break_function_enabled: value } };
1681
+ }
1682
+ if (key === "break_function_timeout") {
1683
+ const index = value === null ? 0xff : utils.toNumber(value);
1684
+ await entity.write("boschDoorWindowContactCluster", {
1685
+ breakFunctionTimeout: index,
1686
+ });
1687
+ return { state: { break_function_timeout: value } };
1688
+ }
1689
+ },
1690
+ convertGet: async (entity, key, meta) => {
1691
+ if (key === "break_function_enabled") {
1692
+ await entity.read("boschDoorWindowContactCluster", [
1693
+ "breakFunctionEnabled",
1694
+ ]);
1695
+ }
1696
+ if (key === "break_function_timeout") {
1697
+ await entity.read("boschDoorWindowContactCluster", [
1698
+ "breakFunctionTimeout",
1699
+ ]);
1700
+ }
1701
+ if (key === "break_function_state") {
1702
+ await entity.read("boschDoorWindowContactCluster", [
1703
+ "breakFunctionState",
1704
+ ]);
1705
+ }
1706
+ },
1707
+ },
1708
+ ];
1709
+ const configure = [
1710
+ m.setupConfigureForReading("boschDoorWindowContactCluster", [
1711
+ "breakFunctionEnabled",
1712
+ "breakFunctionTimeout",
1713
+ "breakFunctionState",
1714
+ ]),
1715
+ ];
1716
+ return {
1717
+ exposes,
1718
+ fromZigbee,
1719
+ toZigbee,
1720
+ configure,
1721
+ isModernExtend: true,
1722
+ };
1723
+ },
1724
+ vibrationDetection: () => {
1725
+ const vibrationDetectionEnabledLookup = {
1726
+ ON: 0x01,
1727
+ OFF: 0x00,
1728
+ };
1729
+ const vibrationDetectionSensitivityLookup = {
1730
+ very_high: 0x05,
1731
+ high: 0x04,
1732
+ medium: 0x03,
1733
+ moderate: 0x02,
1734
+ low: 0x01,
1735
+ };
1736
+ const exposes = [
1737
+ e
1738
+ .binary("vibration_detection_enabled", ea.ALL, utils.getFromLookupByValue(0x01, vibrationDetectionEnabledLookup), utils.getFromLookupByValue(0x00, vibrationDetectionEnabledLookup))
1739
+ .withLabel("Vibration detection")
1740
+ .withDescription("Activate the vibration detection to detect vibrations at the window or door via the integrated sensor as well")
1741
+ .withCategory("config"),
1742
+ e
1743
+ .enum("vibration_detection_sensitivity", ea.ALL, Object.keys(vibrationDetectionSensitivityLookup))
1744
+ .withLabel("Vibration detection sensitivity")
1745
+ .withDescription("Set the sensitivity of the vibration detection sensor")
1746
+ .withCategory("config"),
1747
+ e.binary("vibration", ea.STATE_GET, true, false).withDescription("Indicates whether the device detected vibration"),
1748
+ ];
1749
+ const fromZigbee = [
1750
+ {
1751
+ cluster: "boschDoorWindowContactCluster",
1752
+ type: ["attributeReport", "readResponse"],
1753
+ convert: (model, msg, publish, options, meta) => {
1754
+ const result = {};
1755
+ const data = msg.data;
1756
+ if (data.vibrationDetectionEnabled !== undefined) {
1757
+ result.vibration_detection_enabled = utils.getFromLookupByValue(data.vibrationDetectionEnabled, vibrationDetectionEnabledLookup);
1758
+ }
1759
+ if (data.vibrationDetectionSensitivity !== undefined) {
1760
+ result.vibration_detection_sensitivity = utils.getFromLookupByValue(data.vibrationDetectionSensitivity, vibrationDetectionSensitivityLookup);
1761
+ }
1762
+ return result;
1763
+ },
1764
+ },
1765
+ {
1766
+ cluster: "ssIasZone",
1767
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
1768
+ convert: (model, msg, publish, options, meta) => {
1769
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
1770
+ if (zoneStatus !== undefined) {
1771
+ const alarm2Payload = (zoneStatus & (1 << 1)) > 0;
1772
+ return {
1773
+ vibration: alarm2Payload,
1774
+ };
1775
+ }
1776
+ },
1777
+ },
1778
+ ];
1779
+ const toZigbee = [
1780
+ {
1781
+ key: ["vibration_detection_enabled", "vibration_detection_sensitivity", "vibration"],
1782
+ convertSet: async (entity, key, value, meta) => {
1783
+ if (key === "vibration_detection_enabled") {
1784
+ await entity.write("boschDoorWindowContactCluster", {
1785
+ vibrationDetectionEnabled: utils.getFromLookup(value, vibrationDetectionEnabledLookup),
1786
+ });
1787
+ return { state: { vibration_detection_enabled: value } };
1788
+ }
1789
+ if (key === "vibration_detection_sensitivity") {
1790
+ await entity.write("boschDoorWindowContactCluster", {
1791
+ vibrationDetectionSensitivity: utils.getFromLookup(value, vibrationDetectionSensitivityLookup),
1792
+ });
1793
+ return { state: { vibration_detection_sensitivity: value } };
1794
+ }
1795
+ },
1796
+ convertGet: async (entity, key, meta) => {
1797
+ if (key === "vibration_detection_enabled") {
1798
+ await entity.read("boschDoorWindowContactCluster", [
1799
+ "vibrationDetectionEnabled",
1800
+ ]);
1801
+ }
1802
+ if (key === "vibration_detection_sensitivity") {
1803
+ await entity.read("boschDoorWindowContactCluster", [
1804
+ "vibrationDetectionSensitivity",
1805
+ ]);
1806
+ }
1807
+ if (key === "vibration") {
1808
+ await entity.read("ssIasZone", ["zoneStatus"]);
1809
+ }
1810
+ },
1811
+ },
1812
+ ];
1813
+ const configure = [
1814
+ m.setupConfigureForBinding("ssIasZone", "input"),
1815
+ m.setupConfigureForReading("ssIasZone", ["zoneStatus"]),
1816
+ async (device, coordinatorEndpoint, definition) => {
1817
+ const endpoint = device.getEndpoint(1);
1818
+ // The write request is made when using the proprietary
1819
+ // Bosch Smart Home Controller II as of 19-09-2025. Looks like
1820
+ // the default value was too high, and they didn't want to
1821
+ // push a firmware update. We mimic it here to avoid complaints.
1822
+ if (device.meta.newDefaultSensitivityApplied === undefined) {
1823
+ await endpoint.write("boschDoorWindowContactCluster", {
1824
+ vibrationDetectionSensitivity: vibrationDetectionSensitivityLookup.medium,
1825
+ });
1826
+ device.meta.newDefaultSensitivityApplied = true;
1827
+ }
1828
+ // The write request is made when using the proprietary
1829
+ // Bosch Smart Home Controller II as of 19-09-2025. I have
1830
+ // no idea what it does, but we mimic it here in case it
1831
+ // fixes any issues.
1832
+ await endpoint.write("boschDoorWindowContactCluster", {
1833
+ unknownOne: 0x00,
1834
+ });
1835
+ },
1836
+ m.setupConfigureForReading("boschDoorWindowContactCluster", [
1837
+ "vibrationDetectionEnabled",
1838
+ "vibrationDetectionSensitivity",
1839
+ ]),
1840
+ ];
1841
+ return {
1842
+ exposes,
1843
+ fromZigbee,
1844
+ toZigbee,
1845
+ configure,
1846
+ isModernExtend: true,
1847
+ };
1848
+ },
1849
+ };
1850
+ //endregion
1851
+ //region Bosch BSEN-M device (Motion detector)
1852
+ exports.boschBsenExtend = {
1853
+ battery: () => m.battery({
1854
+ percentage: false,
1855
+ percentageReporting: false,
1856
+ voltage: true,
1857
+ voltageReporting: true,
1858
+ voltageToPercentage: { min: 2500, max: 3000 },
1859
+ lowStatus: true,
1860
+ lowStatusReportingConfig: { min: "MIN", max: "MAX", change: null },
1861
+ }),
1862
+ testMode: () => exports.boschGeneralSensorDeviceExtend.testMode({
1863
+ testModeDescription: "Activates the test mode. In this mode, the device blinks on every detected motion " +
1864
+ "without any wait time in between to verify the installation. Please keep in mind " +
1865
+ "that it can take up to 45 seconds for the test mode to be activated.",
1866
+ sensitivityLevelToUse: 0x80,
1867
+ }),
1868
+ illuminance: () => m.illuminance({ reporting: { min: "1_SECOND", max: 600, change: 3522 } }),
1869
+ // The temperature sensor isn't used at all by Bosch on the BSEN-M.
1870
+ // Therefore, I decided to be a bit conservative with the reporting
1871
+ // intervals to not drain the battery too much.
1872
+ temperature: () => m.temperature({ reporting: { min: "5_MINUTES", max: "MAX", change: 100 } }),
1873
+ tamperAndOccupancyAlarm: () => {
1874
+ const exposes = [
1875
+ e
1876
+ .binary("tamper", ea.STATE, true, false)
1877
+ .withLabel("Tamper state")
1878
+ .withDescription("Indicates whether the device is tampered")
1879
+ .withCategory("diagnostic"),
1880
+ e
1881
+ .binary("occupancy", ea.STATE, true, false)
1882
+ .withLabel("Occupancy state")
1883
+ .withDescription("Indicates whether the device detected any motion in the surroundings"),
1884
+ ];
1885
+ const fromZigbee = [
1886
+ {
1887
+ cluster: "ssIasZone",
1888
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
1889
+ convert: (model, msg, publish, options, meta) => {
1890
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
1891
+ if (zoneStatus === undefined) {
1892
+ return;
1893
+ }
1894
+ let payload = {};
1895
+ const tamperStatus = (zoneStatus & (1 << 2)) > 0;
1896
+ payload = { tamper: tamperStatus, ...payload };
1897
+ const occupancyLockActive = meta.device.meta.occupancyLockTimeout ? meta.device.meta.occupancyLockTimeout > Date.now() : false;
1898
+ if (!occupancyLockActive) {
1899
+ const alarmOneStatus = (zoneStatus & 1) > 0;
1900
+ payload = { occupancy: alarmOneStatus, ...payload };
1901
+ const isChangeMessage = msg.type === "commandStatusChangeNotification";
1902
+ const newOccupancyStatusDetected = alarmOneStatus === true;
1903
+ if (isChangeMessage && newOccupancyStatusDetected) {
1904
+ // After a detection, the device turns off the motion detection for 3 minutes.
1905
+ // Unfortunately, the alarm is already turned off after 4 seconds for reasons
1906
+ // only known to Bosch. Therefore, we have to manually defer the turn-off by
1907
+ // 4 seconds + 3 minutes to avoid any confusion.
1908
+ const timeoutDelay = 184 * 1000;
1909
+ setTimeout(() => publish({ occupancy: false }), timeoutDelay);
1910
+ meta.device.meta.occupancyLockTimeout = Date.now() + timeoutDelay;
1911
+ }
1912
+ }
1913
+ return payload;
1914
+ },
1915
+ },
1916
+ ];
1917
+ const configure = [m.setupConfigureForBinding("ssIasZone", "input"), m.setupConfigureForReading("ssIasZone", ["zoneStatus"])];
1918
+ const onEvent = [
1919
+ async (event) => {
1920
+ if (event.type !== "start") {
1921
+ return;
1922
+ }
1923
+ const occupancyLockTimeout = event.data.device.meta.occupancyLockTimeout;
1924
+ if (occupancyLockTimeout === undefined) {
1925
+ return;
1926
+ }
1927
+ const currentTime = Date.now();
1928
+ const endpoint = event.data.device.getEndpoint(1);
1929
+ if (occupancyLockTimeout > currentTime) {
1930
+ const timeoutDelay = occupancyLockTimeout - currentTime;
1931
+ setTimeout(() => {
1932
+ endpoint.read("ssIasZone", ["zoneStatus"]).catch((exception) => {
1933
+ logger_1.logger.warning(`Error during reading the zoneStatus on device '${event.data.device.ieeeAddr}': ${exception}`, NS);
1934
+ });
1935
+ }, timeoutDelay);
1936
+ }
1937
+ else {
1938
+ await endpoint.read("ssIasZone", ["zoneStatus"]);
1939
+ }
1940
+ },
1941
+ ];
1942
+ return {
1943
+ exposes,
1944
+ fromZigbee,
1945
+ configure,
1946
+ onEvent,
1947
+ isModernExtend: true,
1948
+ };
1949
+ },
1950
+ sensitivityLevel: () => {
1951
+ const sensitivityLevelLookup = {
1952
+ pet_immunity: 0xb8,
1953
+ sneak_by_guard: 0xb0,
1954
+ unknown: 0x00,
1955
+ };
1956
+ const exposes = [
1957
+ e
1958
+ .enum("sensitivity_level", ea.STATE_GET, Object.keys(sensitivityLevelLookup))
1959
+ .withDescription("Specifies the selected sensitivity level on the back of the device (either 'pet immunity' or 'sneak-by guard').")
1960
+ .withCategory("diagnostic"),
1961
+ ];
1962
+ const fromZigbee = [
1963
+ {
1964
+ cluster: "ssIasZone",
1965
+ type: ["attributeReport", "readResponse"],
1966
+ convert: (model, msg, publish, options, meta) => {
1967
+ const result = {};
1968
+ const data = msg.data;
1969
+ if (data.currentZoneSensitivityLevel !== undefined) {
1970
+ result.sensitivity_level = utils.getFromLookupByValue(data.currentZoneSensitivityLevel, sensitivityLevelLookup, "unknown");
1971
+ }
1972
+ return result;
1973
+ },
1974
+ },
1975
+ ];
1976
+ const toZigbee = [
1977
+ {
1978
+ key: ["sensitivity_level"],
1979
+ convertGet: async (entity, key, meta) => {
1980
+ await entity.read("ssIasZone", ["currentZoneSensitivityLevel"]);
1981
+ },
1982
+ },
1983
+ ];
1984
+ const configure = [
1985
+ m.setupConfigureForBinding("ssIasZone", "input"),
1986
+ m.setupConfigureForReading("ssIasZone", ["numZoneSensitivityLevelsSupported", "currentZoneSensitivityLevel"]),
1987
+ async (device, coordinatorEndpoint, definition) => {
1988
+ const endpoint = device.getEndpoint(1);
1989
+ // The write request is made when using the proprietary
1990
+ // Bosch Smart Home Controller II as of 15-09-2025. Looks like
1991
+ // the default value was too low, and they didn't want to
1992
+ // push a firmware update. We mimic it here to avoid complaints.
1993
+ await endpoint.write("ssIasZone", { currentZoneSensitivityLevel: 176 });
1994
+ },
1995
+ ];
1996
+ return {
1997
+ exposes,
1998
+ fromZigbee,
1999
+ toZigbee,
2000
+ configure,
2001
+ isModernExtend: true,
2002
+ };
2003
+ },
2004
+ changedCheckinInterval: () => {
2005
+ const configure = [
2006
+ m.setupConfigureForReading("genPollCtrl", ["checkinInterval", "longPollInterval", "shortPollInterval"]),
2007
+ async (device, coordinatorEndpoint, definition) => {
2008
+ const endpoint = device.getEndpoint(1);
2009
+ // The write request is made when using the proprietary
2010
+ // Bosch Smart Home Controller II as of 15-09-2025.
2011
+ // The reason is unclear to me, but we mimic it here
2012
+ // to avoid possible complaints in case it fixed any issues.
2013
+ await endpoint.write("genPollCtrl", { checkinInterval: 2160 });
2014
+ },
2015
+ ];
2016
+ return {
2017
+ configure,
2018
+ isModernExtend: true,
2019
+ };
2020
+ },
2021
+ };
2022
+ exports.boschWaterAlarmExtend = {
2023
+ waterAlarmCluster: () => m.deviceAddCustomCluster("boschWaterAlarm", {
2024
+ ID: 0xfcac,
2025
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2026
+ attributes: {
2027
+ alarmOnMotion: { ID: 0x0003, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN, write: true },
2028
+ },
2029
+ commands: {
2030
+ muteAlarmControl: { ID: 0x00, parameters: [{ name: "data", type: zigbee_herdsman_1.Zcl.DataType.UINT8, max: 0xff }] },
2031
+ muteAlarmControlResponse: { ID: 0x01, parameters: [{ name: "data", type: zigbee_herdsman_1.Zcl.DataType.ENUM8, max: 0xff }] },
2032
+ },
2033
+ commandsResponse: {},
2034
+ }),
2035
+ changedSensitivityLevel: () => {
2036
+ const configure = [
2037
+ m.setupConfigureForBinding("ssIasZone", "input"),
2038
+ m.setupConfigureForReading("ssIasZone", ["numZoneSensitivityLevelsSupported", "currentZoneSensitivityLevel"]),
2039
+ async (device, coordinatorEndpoint, definition) => {
2040
+ const endpoint = device.getEndpoint(1);
2041
+ // The write request is made when using the proprietary
2042
+ // Bosch Smart Home Controller II as of 16-10-2025. Looks like
2043
+ // the default value was too high, and they didn't want to
2044
+ // push a firmware update. We mimic it here to avoid complaints.
2045
+ await endpoint.write("ssIasZone", { currentZoneSensitivityLevel: 5 });
2046
+ },
2047
+ ];
2048
+ return {
2049
+ configure,
2050
+ isModernExtend: true,
2051
+ };
2052
+ },
2053
+ waterAndTamperAlarm: () => m.iasZoneAlarm({
2054
+ zoneType: "water_leak",
2055
+ zoneAttributes: ["alarm_1", "tamper"],
2056
+ }),
2057
+ muteAlarmControl: () => {
2058
+ const muteAlarmControlLookup = {
2059
+ UNMUTED: false,
2060
+ MUTED: true,
2061
+ };
2062
+ const muteAlarmControlResponseLookup = {
2063
+ muted: 0x00,
2064
+ error: 0x01,
2065
+ no_change: 0x02,
2066
+ unmuted: 0x03,
2067
+ };
2068
+ const exposes = [
2069
+ e
2070
+ .binary("water_leak_alarm_control", ea.ALL, utils.getFromLookupByValue(true, muteAlarmControlLookup), utils.getFromLookupByValue(false, muteAlarmControlLookup))
2071
+ .withLabel("Mute water leak alarm")
2072
+ .withDescription("In case of an water leak, you can mute and unmute the audible alarm here"),
2073
+ ];
2074
+ const toZigbee = [
2075
+ {
2076
+ key: ["water_leak_alarm_control"],
2077
+ convertSet: async (entity, key, value, meta) => {
2078
+ if (value === utils.getFromLookupByValue(false, muteAlarmControlLookup)) {
2079
+ await entity.command("boschWaterAlarm", "muteAlarmControl", { data: 0x00 }, exports.manufacturerOptions);
2080
+ }
2081
+ else {
2082
+ await entity.command("boschWaterAlarm", "muteAlarmControl", { data: 0x01 }, exports.manufacturerOptions);
2083
+ }
2084
+ },
2085
+ convertGet: async (entity, key, meta) => {
2086
+ await entity.read("ssIasZone", ["zoneStatus"]);
2087
+ },
2088
+ },
2089
+ ];
2090
+ const fromZigbee = [
2091
+ {
2092
+ cluster: "boschWaterAlarm",
2093
+ type: ["raw"],
2094
+ convert: (model, msg, publish, options, meta) => {
2095
+ const command = msg.data[4];
2096
+ if (command !== 0x01) {
2097
+ return;
2098
+ }
2099
+ const muteAlarmControlResponse = msg.data[5];
2100
+ switch (muteAlarmControlResponse) {
2101
+ case muteAlarmControlResponseLookup.muted:
2102
+ logger_1.logger.debug(`Alarm on device '${meta.device.ieeeAddr}' was muted`, NS);
2103
+ break;
2104
+ case muteAlarmControlResponseLookup.error:
2105
+ logger_1.logger.error(`Alarm on device '${meta.device.ieeeAddr}' could not be muted right now (e.g., no active alarm)!`, NS);
2106
+ break;
2107
+ case muteAlarmControlResponseLookup.no_change:
2108
+ logger_1.logger.debug(`Alarm on device '${meta.device.ieeeAddr}' is already in requested state`, NS);
2109
+ break;
2110
+ case muteAlarmControlResponseLookup.unmuted:
2111
+ logger_1.logger.debug(`Alarm on device '${meta.device.ieeeAddr}' was unmuted`, NS);
2112
+ break;
2113
+ }
2114
+ },
2115
+ },
2116
+ {
2117
+ cluster: "ssIasZone",
2118
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
2119
+ convert: (model, msg, publish, options, meta) => {
2120
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
2121
+ if (zoneStatus === undefined) {
2122
+ return;
2123
+ }
2124
+ const result = {};
2125
+ const alarmMuted = (zoneStatus & (1 << 1)) > 0;
2126
+ result.water_leak_alarm_control = utils.getFromLookupByValue(alarmMuted, muteAlarmControlLookup);
2127
+ return result;
2128
+ },
2129
+ },
2130
+ ];
2131
+ const configure = [m.setupConfigureForBinding("ssIasZone", "input"), m.setupConfigureForReading("ssIasZone", ["zoneStatus"])];
2132
+ return {
2133
+ exposes,
2134
+ toZigbee,
2135
+ fromZigbee,
2136
+ configure,
2137
+ isModernExtend: true,
2138
+ };
2139
+ },
2140
+ alarmOnMotion: () => m.binary({
2141
+ name: "alarm_on_motion",
2142
+ cluster: "boschWaterAlarm",
2143
+ attribute: "alarmOnMotion",
2144
+ description: "If your water alarm is moved, an acoustic signal sounds",
2145
+ valueOn: ["ON", 0x01],
2146
+ valueOff: ["OFF", 0x00],
2147
+ entityCategory: "config",
2148
+ }),
2149
+ testMode: () => exports.boschGeneralSensorDeviceExtend.testMode({
2150
+ testModeDescription: "Activates the test mode. In this mode, the device acts like it would when " +
2151
+ "detecting any water to verify the installation. Please keep in mind " +
2152
+ "that it can take up to 10 seconds for the test mode to be activated.",
2153
+ sensitivityLevelToUse: 0x00,
2154
+ variableTimeoutSupported: true,
2155
+ defaultTimeout: 3,
2156
+ }),
2157
+ };
2158
+ exports.boschSmokeAlarmExtend = {
2159
+ customIasZoneCluster: () => m.deviceAddCustomCluster("ssIasZone", {
2160
+ ID: zigbee_herdsman_1.Zcl.Clusters.ssIasZone.ID,
2161
+ attributes: {
2162
+ unknownAttribute1: {
2163
+ ID: 0x8f01,
2164
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
2165
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2166
+ write: true,
2167
+ max: 0xff,
2168
+ },
2169
+ unknownAttribute2: {
2170
+ ID: 0x8f06,
2171
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
2172
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2173
+ write: true,
2174
+ max: 0xff,
2175
+ },
2176
+ },
2177
+ commands: {
2178
+ alarmControl: {
2179
+ ID: 0x80,
2180
+ parameters: [
2181
+ { name: "alarmMode", type: zigbee_herdsman_1.Zcl.DataType.ENUM8, max: 0xff },
2182
+ { name: "alarmTimeout", type: zigbee_herdsman_1.Zcl.DataType.UINT8, max: 0xff },
2183
+ ],
2184
+ },
2185
+ },
2186
+ commandsResponse: {},
2187
+ }),
2188
+ /** In previous implementations, the user was able to change the
2189
+ * sensitivity level of the smoke detector. That is not supported
2190
+ * when using the Bosch Smart Home Controller II. As the previous
2191
+ * creator assumed that Bosch follows the ZCL specification for
2192
+ * the sensitivity level (which isn't the case), this may result
2193
+ * in an unintentionally lowered sensitivity level. Therefore,
2194
+ * we set the manufacturer's default value here once to reverse
2195
+ * any previous modifications for safety reasons, as we talk
2196
+ * about a device that should save lives... */
2197
+ enforceDefaultSensitivityLevel: () => {
2198
+ const onEvent = [
2199
+ async (event) => {
2200
+ if (event.type !== "start") {
2201
+ return;
2202
+ }
2203
+ const device = event.data.device;
2204
+ if (device.meta.enforceDefaultSensitivityLevelApplied !== true) {
2205
+ const endpoint = device.getEndpoint(1);
2206
+ await endpoint.write("ssIasZone", { currentZoneSensitivityLevel: 0x00 });
2207
+ device.meta.enforceDefaultSensitivityLevelApplied = true;
2208
+ }
2209
+ },
2210
+ ];
2211
+ return {
2212
+ onEvent,
2213
+ isModernExtend: true,
2214
+ };
2215
+ },
2216
+ smokeAlarmAndButtonPushes: () => m.iasZoneAlarm({
2217
+ zoneType: "smoke",
2218
+ zoneAttributes: ["alarm_1"],
2219
+ manufacturerZoneAttributes: [
2220
+ {
2221
+ bit: 11,
2222
+ name: "smoke_alarm_silenced",
2223
+ valueOn: true,
2224
+ valueOff: false,
2225
+ description: "Indicates whether an smoke alarm was silenced on the device itself for 10 minutes. " +
2226
+ "Please keep in mind that the smoke detection is being disabled during that " +
2227
+ "time period as well.",
2228
+ entityCategory: "diagnostic",
2229
+ },
2230
+ {
2231
+ bit: 8,
2232
+ name: "button_pushed",
2233
+ valueOn: true,
2234
+ valueOff: false,
2235
+ description: "Indicates whether the button on the device is being pushed for at least " +
2236
+ "3 seconds (e.g., to trigger a test alarm or silence a smoke alarm)",
2237
+ entityCategory: "diagnostic",
2238
+ },
2239
+ ],
2240
+ }),
2241
+ alarmControl: () => {
2242
+ const alarmModeLookup = {
2243
+ manual_smoke_alarm: 0x00,
2244
+ manual_burglar_alarm: 0x01,
2245
+ };
2246
+ const onOffLookup = {
2247
+ OFF: false,
2248
+ ON: true,
2249
+ };
2250
+ const defaultBroadcastAlarms = true;
2251
+ function setDefaultBroadcastAlarms(meta) {
2252
+ const newBroadcastStatus = utils.getFromLookupByValue(defaultBroadcastAlarms, onOffLookup);
2253
+ meta.publish({ broadcast_alarms: newBroadcastStatus });
2254
+ }
2255
+ async function sendAlarmControlMessage(endpoint, broadcastAlarm, alarmMode, timeoutInSeconds) {
2256
+ if (broadcastAlarm === true) {
2257
+ // Bosch sends broadcast messages two times with 4 seconds in between to
2258
+ // ensure all sleepy devices receive them. We mimic the same pattern here.
2259
+ for (let index = 0; index < 2; index++) {
2260
+ await endpoint.zclCommandBroadcast(255, zigbee_herdsman_1.ZSpec.BroadcastAddress.SLEEPY, "ssIasZone", "alarmControl", { alarmMode: alarmMode, alarmTimeout: timeoutInSeconds }, exports.manufacturerOptions);
2261
+ await (0, utils_1.sleep)(4000);
2262
+ }
2263
+ }
2264
+ else {
2265
+ await endpoint.command("ssIasZone", "alarmControl", { alarmMode: alarmMode, alarmTimeout: timeoutInSeconds }, exports.manufacturerOptions);
2266
+ }
2267
+ }
2268
+ const exposes = [
2269
+ e
2270
+ .binary("manual_smoke_alarm", ea.ALL, utils.getFromLookupByValue(true, onOffLookup), utils.getFromLookupByValue(false, onOffLookup))
2271
+ .withDescription("Indicates whether the smoke alarm siren is being manually activated on the device"),
2272
+ e
2273
+ .binary("manual_burglar_alarm", ea.ALL, utils.getFromLookupByValue(true, onOffLookup), utils.getFromLookupByValue(false, onOffLookup))
2274
+ .withDescription("Indicates whether the burglar alarm siren is being manually activated on the device"),
2275
+ e
2276
+ .binary("broadcast_alarms", ea.ALL, utils.getFromLookupByValue(true, onOffLookup), utils.getFromLookupByValue(false, onOffLookup))
2277
+ .withLabel("Broadcast alarms")
2278
+ .withDescription("Broadcast manual alarm state changes to all BSD-2 devices on the network. Please keep in mind " +
2279
+ "that a detected smoke alarm is not being transmitted automatically to other devices. " +
2280
+ "To achieve that, you must set up an automation, e.g., in Home Assistant.")
2281
+ .withCategory("config"),
2282
+ ];
2283
+ const fromZigbee = [
2284
+ {
2285
+ cluster: "ssIasZone",
2286
+ type: ["commandStatusChangeNotification", "attributeReport", "readResponse"],
2287
+ convert: (model, msg, publish, options, meta) => {
2288
+ const zoneStatus = "zonestatus" in msg.data ? msg.data.zonestatus : msg.data.zoneStatus;
2289
+ if (zoneStatus === undefined) {
2290
+ return;
2291
+ }
2292
+ const result = {};
2293
+ const smokeAlarmEnabled = (zoneStatus & (1 << 1)) > 0;
2294
+ result.manual_smoke_alarm = utils.getFromLookupByValue(smokeAlarmEnabled, onOffLookup);
2295
+ const burglarAlarmEnabled = (zoneStatus & (1 << 7)) > 0;
2296
+ result.manual_burglar_alarm = utils.getFromLookupByValue(burglarAlarmEnabled, onOffLookup);
2297
+ return result;
2298
+ },
2299
+ },
2300
+ ];
2301
+ const toZigbee = [
2302
+ {
2303
+ key: ["manual_smoke_alarm", "manual_burglar_alarm", "broadcast_alarms"],
2304
+ convertSet: async (entity, key, value, meta) => {
2305
+ if (key === "manual_smoke_alarm" || key === "manual_burglar_alarm") {
2306
+ let broadcastAlarm;
2307
+ try {
2308
+ broadcastAlarm = utils.getFromLookup(meta.state.broadcast_alarms, onOffLookup);
2309
+ }
2310
+ catch {
2311
+ setDefaultBroadcastAlarms(meta);
2312
+ broadcastAlarm = defaultBroadcastAlarms;
2313
+ }
2314
+ const alarmMode = utils.getFromLookup(key, alarmModeLookup);
2315
+ const enableAlarm = utils.getFromLookup(value, onOffLookup);
2316
+ const timeoutInSeconds = enableAlarm ? 0xf0 : 0;
2317
+ utils.assertEndpoint(entity);
2318
+ await sendAlarmControlMessage(entity, broadcastAlarm, alarmMode, timeoutInSeconds);
2319
+ clearTimeout(globalStore.getValue("boschSmokeAlarm", "alarmTimer"));
2320
+ if (enableAlarm) {
2321
+ const alarmTimer = setTimeout(async () => await sendAlarmControlMessage(entity, broadcastAlarm, alarmMode, timeoutInSeconds), (timeoutInSeconds - 60) * 1000);
2322
+ globalStore.putValue("boschSmokeAlarm", "alarmTimer", alarmTimer);
2323
+ }
2324
+ }
2325
+ if (key === "broadcast_alarms") {
2326
+ return { state: { broadcast_alarms: value } };
2327
+ }
2328
+ },
2329
+ convertGet: async (entity, key, meta) => {
2330
+ if (key === "manual_smoke_alarm" || key === "manual_burglar_alarm") {
2331
+ await entity.read("ssIasZone", ["zoneStatus"]);
2332
+ }
2333
+ if (key === "broadcast_alarms" && meta.state[key] === undefined) {
2334
+ setDefaultBroadcastAlarms(meta);
2335
+ }
2336
+ },
2337
+ },
2338
+ ];
2339
+ return {
2340
+ exposes,
2341
+ fromZigbee,
2342
+ toZigbee,
2343
+ isModernExtend: true,
2344
+ };
2345
+ },
2346
+ testMode: () => exports.boschGeneralSensorDeviceExtend.testMode({
2347
+ testModeDescription: "Check the function of the smoke alarm. Pay attention to the alarm sound " +
2348
+ "and the flashing of the alarm LED. Please keep in mind that it can take " +
2349
+ "up to 10 seconds for the test mode to be activated.",
2350
+ sensitivityLevelToUse: 0x00,
2351
+ variableTimeoutSupported: true,
2352
+ defaultTimeout: 5,
2353
+ zoneStatusBit: 10,
2354
+ }),
2355
+ battery: () => exports.boschGeneralExtend.batteryWithPercentageAndLowStatus({ percentageReportingConfig: { min: "MIN", max: "MAX", change: 1 } }),
2356
+ };
2357
+ exports.boschSmartPlugExtend = {
2358
+ smartPlugCluster: () => m.deviceAddCustomCluster("boschEnergyDevice", {
2359
+ ID: 0xfca0,
2360
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2361
+ attributes: {
2362
+ autoOffEnabled: { ID: 0x0006, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN, write: true },
2363
+ autoOffTime: { ID: 0x0007, type: zigbee_herdsman_1.Zcl.DataType.UINT16, write: true, max: 0xffff },
2364
+ ledBrightness: { ID: 0x002c, type: zigbee_herdsman_1.Zcl.DataType.UINT8, write: true, max: 0xff },
2365
+ energySavingModeEnabled: { ID: 0x002d, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN, write: true },
2366
+ energySavingModeThreshold: { ID: 0x002e, type: zigbee_herdsman_1.Zcl.DataType.UINT16, write: true, max: 0xffff },
2367
+ energySavingModeTimer: { ID: 0x002f, type: zigbee_herdsman_1.Zcl.DataType.UINT32, write: true, max: 0xffffffff },
2368
+ },
2369
+ commands: {},
2370
+ commandsResponse: {},
2371
+ }),
2372
+ onOff: () => m.onOff({ powerOnBehavior: true, configureReporting: true }),
2373
+ ledBrightness: () => m.numeric({
2374
+ name: "led_brightness",
2375
+ cluster: "boschEnergyDevice",
2376
+ attribute: "ledBrightness",
2377
+ label: "LED brightness",
2378
+ description: "Here you can adjust the LED brightness",
2379
+ valueMin: 0,
2380
+ valueMax: 100,
2381
+ valueStep: 1,
2382
+ unit: "%",
2383
+ entityCategory: "config",
2384
+ }),
2385
+ energySavingMode: () => {
2386
+ const energySavingModeEnabledLookup = {
2387
+ ON: 0x01,
2388
+ OFF: 0x00,
2389
+ };
2390
+ const exposes = [
2391
+ e
2392
+ .binary("energy_saving_mode_enabled", ea.ALL, utils.getFromLookupByValue(0x01, energySavingModeEnabledLookup), utils.getFromLookupByValue(0x00, energySavingModeEnabledLookup))
2393
+ .withLabel("Enable energy-saving mode")
2394
+ .withDescription("Here you can enable/disable the energy-saving mode")
2395
+ .withCategory("config"),
2396
+ e
2397
+ .numeric("energy_saving_mode_threshold", ea.ALL)
2398
+ .withLabel("Energy-saving threshold")
2399
+ .withDescription("Here you can set the threshold for the energy-saving mode. If the consumption falls below the set value (and the timer has been met), the smart plug will be turned off.")
2400
+ .withUnit("watt")
2401
+ .withValueMin(1)
2402
+ .withValueMax(50)
2403
+ .withValueStep(1)
2404
+ .withCategory("config"),
2405
+ e
2406
+ .numeric("energy_saving_mode_timer", ea.ALL)
2407
+ .withLabel("Energy-saving timer")
2408
+ .withDescription("Here you can set the time the threshold has to be met before the smart plug is turned off")
2409
+ .withUnit("seconds")
2410
+ .withValueMin(1)
2411
+ .withValueMax(1800)
2412
+ .withValueStep(1)
2413
+ .withCategory("config"),
2414
+ ];
2415
+ const fromZigbee = [
2416
+ {
2417
+ cluster: "boschEnergyDevice",
2418
+ type: ["attributeReport", "readResponse"],
2419
+ convert: (model, msg, publish, options, meta) => {
2420
+ const result = {};
2421
+ const data = msg.data;
2422
+ if (data.energySavingModeEnabled !== undefined) {
2423
+ result.energy_saving_mode_enabled = utils.getFromLookupByValue(data.energySavingModeEnabled, energySavingModeEnabledLookup);
2424
+ }
2425
+ if (data.energySavingModeThreshold !== undefined) {
2426
+ result.energy_saving_mode_threshold = utils.toNumber(data.energySavingModeThreshold) / 10;
2427
+ }
2428
+ if (data.energySavingModeTimer !== undefined) {
2429
+ result.energy_saving_mode_timer = utils.toNumber(data.energySavingModeTimer);
2430
+ }
2431
+ return result;
2432
+ },
2433
+ },
2434
+ ];
2435
+ const toZigbee = [
2436
+ {
2437
+ key: ["energy_saving_mode_enabled", "energy_saving_mode_threshold", "energy_saving_mode_timer"],
2438
+ convertSet: async (entity, key, value, meta) => {
2439
+ if (key === "energy_saving_mode_enabled") {
2440
+ await entity.write("boschEnergyDevice", {
2441
+ energySavingModeEnabled: utils.getFromLookup(value, energySavingModeEnabledLookup),
2442
+ });
2443
+ return { state: { energy_saving_mode_enabled: value } };
2444
+ }
2445
+ if (key === "energy_saving_mode_threshold") {
2446
+ await entity.write("boschEnergyDevice", {
2447
+ energySavingModeThreshold: utils.toNumber(value) * 10,
2448
+ });
2449
+ return { state: { energy_saving_mode_threshold: value } };
2450
+ }
2451
+ if (key === "energy_saving_mode_timer") {
2452
+ await entity.write("boschEnergyDevice", {
2453
+ energySavingModeTimer: utils.toNumber(value),
2454
+ });
2455
+ return { state: { energy_saving_mode_timer: value } };
2456
+ }
2457
+ },
2458
+ convertGet: async (entity, key, meta) => {
2459
+ if (key === "energy_saving_mode_enabled") {
2460
+ await entity.read("boschEnergyDevice", ["energySavingModeEnabled"]);
2461
+ }
2462
+ if (key === "energy_saving_mode_threshold") {
2463
+ await entity.read("boschEnergyDevice", ["energySavingModeThreshold"]);
2464
+ }
2465
+ if (key === "energy_saving_mode_timer") {
2466
+ await entity.read("boschEnergyDevice", ["energySavingModeTimer"]);
2467
+ }
2468
+ },
2469
+ },
2470
+ ];
2471
+ const configure = [
2472
+ m.setupConfigureForBinding("boschEnergyDevice", "input"),
2473
+ m.setupConfigureForReading("boschEnergyDevice", [
2474
+ "energySavingModeEnabled",
2475
+ "energySavingModeThreshold",
2476
+ "energySavingModeTimer",
2477
+ ]),
2478
+ ];
2479
+ return {
2480
+ exposes,
2481
+ fromZigbee,
2482
+ toZigbee,
2483
+ configure,
2484
+ isModernExtend: true,
2485
+ };
2486
+ },
2487
+ electricityMeter: (args) => m.electricityMeter({
2488
+ voltage: false,
2489
+ current: false,
2490
+ power: { change: 1 },
2491
+ energy: { change: 1 },
2492
+ ...args,
2493
+ }),
2494
+ };
2495
+ const boschThermostatLookup = {
2496
+ systemModes: {
2497
+ heat: 0x04,
2498
+ cool: 0x03,
2499
+ off: 0x00,
2500
+ },
2501
+ raRunningStates: ["idle", "heat"],
2502
+ heaterType: {
2503
+ underfloor_heating: 0x00,
2504
+ radiator: 0x02,
2505
+ central_heating: 0x01,
2506
+ manual_control: 0x03,
2507
+ },
2508
+ };
2509
+ exports.boschThermostatExtend = {
2510
+ customThermostatCluster: () => m.deviceAddCustomCluster("hvacThermostat", {
2511
+ ID: zigbee_herdsman_1.Zcl.Clusters.hvacThermostat.ID,
2512
+ attributes: {
2513
+ operatingMode: { ID: 0x4007, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2514
+ heatingDemand: { ID: 0x4020, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2515
+ valveAdaptStatus: {
2516
+ ID: 0x4022,
2517
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2518
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2519
+ write: true,
2520
+ max: 0xff,
2521
+ },
2522
+ unknownAttribute0: {
2523
+ ID: 0x4025,
2524
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2525
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2526
+ write: true,
2527
+ max: 0xff,
2528
+ },
2529
+ remoteTemperature: {
2530
+ ID: 0x4040,
2531
+ type: zigbee_herdsman_1.Zcl.DataType.INT16,
2532
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2533
+ write: true,
2534
+ min: -32768,
2535
+ },
2536
+ unknownAttribute1: {
2537
+ ID: 0x4041,
2538
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2539
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2540
+ write: true,
2541
+ max: 0xff,
2542
+ },
2543
+ windowOpenMode: {
2544
+ ID: 0x4042,
2545
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2546
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2547
+ write: true,
2548
+ max: 0xff,
2549
+ },
2550
+ boostHeating: { ID: 0x4043, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2551
+ cableSensorTemperature: {
2552
+ ID: 0x4052,
2553
+ type: zigbee_herdsman_1.Zcl.DataType.INT16,
2554
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2555
+ write: true,
2556
+ min: -32768,
2557
+ },
2558
+ valveType: { ID: 0x4060, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2559
+ unknownAttribute2: {
2560
+ ID: 0x4061,
2561
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2562
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2563
+ write: true,
2564
+ max: 0xff,
2565
+ },
2566
+ cableSensorMode: {
2567
+ ID: 0x4062,
2568
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2569
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2570
+ write: true,
2571
+ max: 0xff,
2572
+ },
2573
+ heaterType: { ID: 0x4063, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2574
+ errorState: { ID: 0x5000, type: zigbee_herdsman_1.Zcl.DataType.BITMAP8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true },
2575
+ automaticValveAdapt: {
2576
+ ID: 0x5010,
2577
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2578
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2579
+ write: true,
2580
+ max: 0xff,
2581
+ },
2582
+ },
2583
+ commands: {
2584
+ calibrateValve: { ID: 0x41, parameters: [] },
2585
+ },
2586
+ commandsResponse: {},
2587
+ }),
2588
+ customUserInterfaceCfgCluster: () => m.deviceAddCustomCluster("hvacUserInterfaceCfg", {
2589
+ ID: zigbee_herdsman_1.Zcl.Clusters.hvacUserInterfaceCfg.ID,
2590
+ attributes: {
2591
+ displayOrientation: {
2592
+ ID: 0x400b,
2593
+ type: zigbee_herdsman_1.Zcl.DataType.UINT8,
2594
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2595
+ write: true,
2596
+ max: 0xff,
2597
+ },
2598
+ activityLed: { ID: 0x4033, type: zigbee_herdsman_1.Zcl.DataType.ENUM8, manufacturerCode: exports.manufacturerOptions.manufacturerCode, write: true, max: 0xff },
2599
+ displayedTemperature: {
2600
+ ID: 0x4039,
2601
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2602
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2603
+ write: true,
2604
+ max: 0xff,
2605
+ },
2606
+ displaySwitchOnDuration: {
2607
+ ID: 0x403a,
2608
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2609
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2610
+ write: true,
2611
+ max: 0xff,
2612
+ },
2613
+ displayBrightness: {
2614
+ ID: 0x403b,
2615
+ type: zigbee_herdsman_1.Zcl.DataType.ENUM8,
2616
+ manufacturerCode: exports.manufacturerOptions.manufacturerCode,
2617
+ write: true,
2618
+ max: 0xff,
2619
+ },
2620
+ },
2621
+ commands: {},
2622
+ commandsResponse: {},
2623
+ }),
2624
+ relayState: () => m.onOff({ description: "The state of the relay controlling the connected heating/cooling device", powerOnBehavior: false }),
2625
+ cableSensorMode: () => m.enumLookup({
2626
+ name: "cable_sensor_mode",
2627
+ cluster: "hvacThermostat",
2628
+ attribute: "cableSensorMode",
2629
+ description: 'Select a configuration for the sensor connection. If you select "with_regulation", ' +
2630
+ "the measured temperature on the cable sensor is used by the heating/cooling algorithm " +
2631
+ "instead of the local temperature.",
2632
+ lookup: { not_used: 0x00, cable_sensor_without_regulation: 0xb0, cable_sensor_with_regulation: 0xb1 },
2633
+ reporting: false,
2634
+ entityCategory: "config",
2635
+ }),
2636
+ cableSensorTemperature: () => m.numeric({
2637
+ name: "cable_sensor_temperature",
2638
+ cluster: "hvacThermostat",
2639
+ attribute: "cableSensorTemperature",
2640
+ description: "Measured temperature value on the cable sensor (if enabled)",
2641
+ unit: "°C",
2642
+ scale: 100,
2643
+ reporting: { min: 30, max: "MAX", change: 20 },
2644
+ access: "STATE_GET",
2645
+ }),
2646
+ heaterType: () => m.enumLookup({
2647
+ name: "heater_type",
2648
+ cluster: "hvacThermostat",
2649
+ attribute: "heaterType",
2650
+ description: "Select the connected heater type or 'manual_control' if you like to activate the relay manually when necessary",
2651
+ lookup: boschThermostatLookup.heaterType,
2652
+ reporting: false,
2653
+ entityCategory: "config",
2654
+ }),
2655
+ valveType: () => m.enumLookup({
2656
+ name: "valve_type",
2657
+ cluster: "hvacThermostat",
2658
+ attribute: "valveType",
2659
+ description: "Select the connected valve type",
2660
+ lookup: { normally_closed: 0x00, normally_open: 0x01 },
2661
+ reporting: false,
2662
+ entityCategory: "config",
2663
+ }),
2664
+ humidity: () => m.humidity({ reporting: { min: "1_MINUTE", max: "1_HOUR", change: 100 } }),
2665
+ operatingMode: (args) => m.enumLookup({
2666
+ name: "operating_mode",
2667
+ cluster: "hvacThermostat",
2668
+ attribute: "operatingMode",
2669
+ description: "Bosch-specific operating mode",
2670
+ lookup: { schedule: 0x00, manual: 0x01, pause: 0x05 },
2671
+ reporting: args?.enableReporting ? { min: "MIN", max: "MAX", change: null } : false,
2672
+ entityCategory: "config",
2673
+ }),
2674
+ windowOpenMode: (args) => m.binary({
2675
+ name: "window_detection",
2676
+ cluster: "hvacThermostat",
2677
+ attribute: "windowOpenMode",
2678
+ description: "Activates the window open mode, where the thermostat disables any heating/cooling " +
2679
+ "to prevent unnecessary energy consumption. Please keep in mind that the device " +
2680
+ "itself does not detect any open windows!",
2681
+ valueOn: ["ON", 0x01],
2682
+ valueOff: ["OFF", 0x00],
2683
+ reporting: args?.enableReporting ? { min: "MIN", max: "MAX", change: null } : false,
2684
+ }),
2685
+ childLock: () => m.binary({
2686
+ name: "child_lock",
2687
+ cluster: "hvacUserInterfaceCfg",
2688
+ attribute: "keypadLockout",
2689
+ description: "Enables/disables physical input on the thermostat",
2690
+ valueOn: ["LOCK", 0x01],
2691
+ valueOff: ["UNLOCK", 0x00],
2692
+ reporting: { min: "MIN", max: "MAX", change: null },
2693
+ }),
2694
+ displayBrightness: () => m.numeric({
2695
+ name: "display_brightness",
2696
+ cluster: "hvacUserInterfaceCfg",
2697
+ attribute: "displayBrightness",
2698
+ description: "Sets brightness of the display",
2699
+ valueMin: 0,
2700
+ valueMax: 100,
2701
+ valueStep: 10,
2702
+ unit: "%",
2703
+ scale: 0.1,
2704
+ reporting: false,
2705
+ entityCategory: "config",
2706
+ }),
2707
+ displaySwitchOnDuration: () => m.numeric({
2708
+ name: "display_switch_on_duration",
2709
+ cluster: "hvacUserInterfaceCfg",
2710
+ attribute: "displaySwitchOnDuration",
2711
+ label: "Display switch-on duration",
2712
+ description: "Sets the time before the display is automatically switched off",
2713
+ valueMin: 5,
2714
+ valueMax: 30,
2715
+ unit: "s",
2716
+ reporting: false,
2717
+ entityCategory: "config",
2718
+ }),
2719
+ displayOrientation: () => m.enumLookup({
2720
+ name: "display_orientation",
2721
+ cluster: "hvacUserInterfaceCfg",
2722
+ attribute: "displayOrientation",
2723
+ description: "You can rotate the display content by 180° here. This is recommended if your thermostat is fitted vertically, for instance.",
2724
+ lookup: { standard_arrangement: 0x00, rotated_by_180_degrees: 0x01 },
2725
+ reporting: false,
2726
+ entityCategory: "config",
2727
+ }),
2728
+ displayedTemperature: () => m.enumLookup({
2729
+ name: "displayed_temperature",
2730
+ cluster: "hvacUserInterfaceCfg",
2731
+ attribute: "displayedTemperature",
2732
+ description: "Select which temperature should be displayed on your radiator thermostat display",
2733
+ lookup: { set_temperature: 0x00, measured_temperature: 0x01 },
2734
+ reporting: false,
2735
+ entityCategory: "config",
2736
+ }),
2737
+ activityLedState: () => m.enumLookup({
2738
+ name: "activity_led",
2739
+ cluster: "hvacUserInterfaceCfg",
2740
+ attribute: "activityLed",
2741
+ label: "Activity LED state",
2742
+ description: "Determines the state of the little dot on the display next to the heating/cooling symbol",
2743
+ lookup: { off: 0x00, auto: 0x01, on: 0x02 },
2744
+ reporting: false,
2745
+ entityCategory: "config",
2746
+ }),
2747
+ remoteTemperature: () => m.numeric({
2748
+ name: "remote_temperature",
2749
+ cluster: "hvacThermostat",
2750
+ attribute: "remoteTemperature",
2751
+ description: "Input for remote temperature sensor. Required at least every 30 minutes to prevent fallback to the internal sensor!",
2752
+ valueMin: 0.0,
2753
+ valueMax: 35.0,
2754
+ valueStep: 0.2,
2755
+ unit: "°C",
2756
+ scale: 100,
2757
+ reporting: false,
2758
+ entityCategory: "config",
2759
+ }),
2760
+ setpointChangeSource: (args) => m.enumLookup({
2761
+ name: "setpoint_change_source",
2762
+ cluster: "hvacThermostat",
2763
+ attribute: "setpointChangeSource",
2764
+ description: "Source of the current setpoint temperature",
2765
+ lookup: { manual: 0x00, schedule: 0x01, externally: 0x02 },
2766
+ access: "STATE_GET",
2767
+ reporting: args?.enableReporting ? { min: "MIN", max: "MAX", change: null } : false,
2768
+ entityCategory: "diagnostic",
2769
+ }),
2770
+ customHeatingDemand: () => m.numeric({
2771
+ name: "pi_heating_demand",
2772
+ cluster: "hvacThermostat",
2773
+ attribute: "heatingDemand",
2774
+ label: "PI heating demand",
2775
+ description: "Position of the valve (= demanded heat) where 0% is fully closed and 100% is fully open",
2776
+ unit: "%",
2777
+ valueMin: 0,
2778
+ valueMax: 100,
2779
+ access: "ALL",
2780
+ reporting: { min: "MIN", max: "MAX", change: null },
2781
+ }),
2782
+ rmBattery: () => m.battery({
2783
+ percentage: true,
2784
+ percentageReporting: false,
2785
+ voltage: true,
2786
+ voltageReporting: true,
2787
+ voltageReportingConfig: false,
2788
+ voltageToPercentage: { min: 4400, max: 6400 },
2789
+ lowStatus: true,
2790
+ lowStatusReportingConfig: { min: "MIN", max: "MAX", change: null },
2791
+ }),
2792
+ rmThermostat: () => {
2793
+ const thermostat = m.thermostat({
2794
+ localTemperature: {
2795
+ configure: { reporting: { min: "1_MINUTE", max: "1_HOUR", change: 10 } },
2796
+ },
2797
+ localTemperatureCalibration: {
2798
+ values: { min: -5, max: 5, step: 0.1 },
2799
+ configure: { reporting: false },
2800
+ },
2801
+ setpoints: {
2802
+ values: {
2803
+ occupiedHeatingSetpoint: { min: 5, max: 30, step: 0.5 },
2804
+ occupiedCoolingSetpoint: { min: 5, max: 30, step: 0.5 },
2805
+ },
2806
+ configure: { reporting: { min: "10_SECONDS", max: "MAX", change: 50 } },
2807
+ },
2808
+ systemMode: {
2809
+ values: ["off", "heat", "cool"],
2810
+ configure: { reporting: { min: "MIN", max: "MAX", change: null } },
2811
+ },
2812
+ runningState: {
2813
+ values: ["idle", "heat", "cool"],
2814
+ configure: { reporting: { min: "MIN", max: "MAX", change: null } },
2815
+ },
2816
+ ctrlSeqeOfOper: {
2817
+ values: ["cooling_only", "heating_only"],
2818
+ configure: { reporting: { min: "MIN", max: "MAX", change: null } },
2819
+ },
2820
+ });
2821
+ const exposes = thermostat.exposes;
2822
+ return {
2823
+ exposes: exposes,
2824
+ fromZigbee: thermostat.fromZigbee,
2825
+ toZigbee: thermostat.toZigbee,
2826
+ onEvent: thermostat.onEvent,
2827
+ configure: thermostat.configure,
2828
+ isModernExtend: true,
2829
+ };
2830
+ },
2831
+ raThermostat: () => {
2832
+ // Native thermostat
2833
+ const thermostat = m.thermostat({
2834
+ localTemperature: {
2835
+ values: {
2836
+ description: "Temperature used by the heating algorithm. This is the " +
2837
+ "temperature measured on the device (by default) or the " +
2838
+ "remote temperature (if set within the last 30 min).",
2839
+ },
2840
+ configure: {
2841
+ reporting: { min: "1_MINUTE", max: "1_HOUR", change: 10 },
2842
+ },
2843
+ },
2844
+ localTemperatureCalibration: {
2845
+ values: { min: -5, max: 5, step: 0.1 },
2846
+ configure: { reporting: false },
2847
+ },
2848
+ setpoints: {
2849
+ values: {
2850
+ occupiedHeatingSetpoint: { min: 5, max: 30, step: 0.5 },
2851
+ },
2852
+ configure: {
2853
+ reporting: { min: "10_SECONDS", max: "MAX", change: 50 },
2854
+ },
2855
+ },
2856
+ systemMode: {
2857
+ values: ["heat"],
2858
+ configure: {
2859
+ reporting: false,
2860
+ },
2861
+ },
2862
+ runningState: {
2863
+ values: boschThermostatLookup.raRunningStates,
2864
+ toZigbee: {
2865
+ skip: true,
2866
+ },
2867
+ configure: {
2868
+ reporting: false,
2869
+ },
2870
+ },
2871
+ piHeatingDemand: {
2872
+ values: ea.ALL,
2873
+ toZigbee: {
2874
+ skip: true,
2875
+ },
2876
+ configure: {
2877
+ skip: true,
2878
+ },
2879
+ },
2880
+ });
2881
+ const exposes = thermostat.exposes;
2882
+ const fromZigbee = thermostat.fromZigbee;
2883
+ const toZigbee = thermostat.toZigbee;
2884
+ const onEvent = thermostat.onEvent;
2885
+ let configure = thermostat.configure;
2886
+ // Add converters for custom running state
2887
+ const runningState = exports.boschThermostatExtend.customRunningState();
2888
+ fromZigbee.push(...runningState.fromZigbee);
2889
+ toZigbee.push(...runningState.toZigbee);
2890
+ // Add converters and configure for custom heating demand
2891
+ const piHeatingDemand = exports.boschThermostatExtend.customHeatingDemand();
2892
+ fromZigbee.push(...piHeatingDemand.fromZigbee);
2893
+ toZigbee.push(...piHeatingDemand.toZigbee);
2894
+ configure = [...configure, ...piHeatingDemand.configure];
2895
+ return {
2896
+ exposes,
2897
+ fromZigbee,
2898
+ toZigbee,
2899
+ configure,
2900
+ onEvent,
2901
+ isModernExtend: true,
2902
+ };
2903
+ },
2904
+ customRunningState: () => {
2905
+ const fromZigbee = [
2906
+ {
2907
+ cluster: "hvacThermostat",
2908
+ type: ["attributeReport", "readResponse"],
2909
+ convert: (model, msg, publish, options, meta) => {
2910
+ const result = {};
2911
+ const data = msg.data;
2912
+ if (data.heatingDemand !== undefined) {
2913
+ result.running_state =
2914
+ utils.toNumber(data.heatingDemand) > 0
2915
+ ? boschThermostatLookup.raRunningStates[1]
2916
+ : boschThermostatLookup.raRunningStates[0];
2917
+ }
2918
+ return result;
2919
+ },
2920
+ },
2921
+ ];
2922
+ const toZigbee = [
2923
+ {
2924
+ key: ["running_state"],
2925
+ convertGet: async (entity, key, meta) => {
2926
+ await entity.read("hvacThermostat", ["heatingDemand"]);
2927
+ },
2928
+ },
2929
+ ];
2930
+ return {
2931
+ fromZigbee,
2932
+ toZigbee,
2933
+ isModernExtend: true,
2934
+ };
2935
+ },
2936
+ boostHeating: (args) => {
2937
+ const boostHeatingLookup = {
2938
+ OFF: 0x00,
2939
+ ON: 0x01,
2940
+ };
2941
+ const exposes = [
2942
+ e
2943
+ .binary("boost_heating", ea.ALL, utils.getFromLookupByValue(0x01, boostHeatingLookup), utils.getFromLookupByValue(0x00, boostHeatingLookup))
2944
+ .withLabel("Activate boost heating")
2945
+ .withDescription("Activate boost heating (opens TRV for 5 minutes)"),
2946
+ ];
2947
+ const fromZigbee = [
2948
+ {
2949
+ cluster: "hvacThermostat",
2950
+ type: ["attributeReport", "readResponse"],
2951
+ convert: (model, msg, publish, options, meta) => {
2952
+ const result = {};
2953
+ const data = msg.data;
2954
+ if (data.boostHeating !== undefined) {
2955
+ result.boost_heating = utils.getFromLookupByValue(data.boostHeating, boostHeatingLookup);
2956
+ }
2957
+ return result;
2958
+ },
2959
+ },
2960
+ ];
2961
+ const toZigbee = [
2962
+ {
2963
+ key: ["boost_heating"],
2964
+ convertSet: async (entity, key, value, meta) => {
2965
+ const enableBoostHeating = value === utils.getFromLookupByValue(boostHeatingLookup.ON, boostHeatingLookup);
2966
+ if (enableBoostHeating) {
2967
+ const systemModeNotSetToHeat = "system_mode" in meta.state && meta.state.system_mode !== "heat";
2968
+ if (systemModeNotSetToHeat) {
2969
+ throw new Error("Boost heating is only possible when system mode is set to 'heat'!");
2970
+ }
2971
+ const heaterTypeNotSetToRadiator = "heater_type" in meta.state &&
2972
+ meta.state.heater_type !==
2973
+ utils.getFromLookupByValue(boschThermostatLookup.heaterType.radiator, boschThermostatLookup.heaterType);
2974
+ if (heaterTypeNotSetToRadiator) {
2975
+ throw new Error("Boost heating is only possible when heater type is set to 'radiator'!");
2976
+ }
2977
+ }
2978
+ await entity.write("hvacThermostat", {
2979
+ boostHeating: utils.toNumber(utils.getFromLookup(value, boostHeatingLookup)),
2980
+ });
2981
+ return { state: { boost_heating: value } };
2982
+ },
2983
+ convertGet: async (entity, key, meta) => {
2984
+ await entity.read("hvacThermostat", ["boostHeating"]);
2985
+ },
2986
+ },
2987
+ ];
2988
+ const configure = [
2989
+ m.setupConfigureForReporting("hvacThermostat", "boostHeating", {
2990
+ config: args?.enableReporting ? { min: "MIN", max: "MAX", change: null } : false,
2991
+ access: ea.ALL,
2992
+ }),
2993
+ ];
2994
+ return {
2995
+ exposes,
2996
+ fromZigbee,
2997
+ toZigbee,
2998
+ configure,
2999
+ isModernExtend: true,
3000
+ };
3001
+ },
3002
+ errorState: (args) => {
3003
+ const exposes = [
3004
+ e
3005
+ .text("error_state", ea.STATE_GET)
3006
+ .withDescription("Indicates whether the device encounters any errors or not")
3007
+ .withCategory("diagnostic"),
3008
+ ];
3009
+ const fromZigbee = [
3010
+ {
3011
+ cluster: "hvacThermostat",
3012
+ type: ["attributeReport", "readResponse"],
3013
+ convert: (model, msg, publish, options, meta) => {
3014
+ const result = {};
3015
+ const data = msg.data;
3016
+ if (data.errorState !== undefined) {
3017
+ const receivedErrorState = data.errorState;
3018
+ if (receivedErrorState === 0) {
3019
+ result.error_state = "ok";
3020
+ }
3021
+ else {
3022
+ result.error_state = "";
3023
+ const bitmapLength = (receivedErrorState >>> 0).toString(2).length;
3024
+ for (let errorNumber = 0; errorNumber < bitmapLength; errorNumber++) {
3025
+ if ((receivedErrorState >> errorNumber) & 1) {
3026
+ if (String(result.error_state).length > 0) {
3027
+ result.error_state += " - ";
3028
+ }
3029
+ result.error_state += `E${String(errorNumber + 1).padStart(2, "0")}`;
3030
+ }
3031
+ }
3032
+ }
3033
+ }
3034
+ return result;
3035
+ },
3036
+ },
3037
+ ];
3038
+ const toZigbee = [
3039
+ {
3040
+ key: ["error_state"],
3041
+ convertGet: async (entity, key, meta) => {
3042
+ await entity.read("hvacThermostat", ["errorState"]);
3043
+ },
3044
+ },
3045
+ ];
3046
+ const configure = [
3047
+ m.setupConfigureForReporting("hvacThermostat", "errorState", {
3048
+ config: args?.enableReporting ? { min: "MIN", max: "MAX", change: null } : false,
3049
+ access: ea.STATE_GET,
3050
+ }),
3051
+ ];
3052
+ return {
3053
+ exposes,
3054
+ fromZigbee,
3055
+ toZigbee,
3056
+ configure,
3057
+ isModernExtend: true,
3058
+ };
3059
+ },
3060
+ valveAdaptation: () => {
3061
+ const valveAdaptStatusLookup = {
3062
+ none: 0x00,
3063
+ ready_to_calibrate: 0x01,
3064
+ calibration_in_progress: 0x02,
3065
+ error: 0x03,
3066
+ success: 0x04,
3067
+ };
3068
+ const triggerValveAdaptation = async (state, endpoint, throwError = true) => {
3069
+ let adaptStatus;
3070
+ try {
3071
+ adaptStatus = utils.getFromLookup(state.valve_adapt_status, valveAdaptStatusLookup);
3072
+ }
3073
+ catch {
3074
+ adaptStatus = valveAdaptStatusLookup.none;
3075
+ }
3076
+ switch (adaptStatus) {
3077
+ case valveAdaptStatusLookup.ready_to_calibrate:
3078
+ case valveAdaptStatusLookup.error:
3079
+ await endpoint.command("hvacThermostat", "calibrateValve", {}, exports.manufacturerOptions);
3080
+ break;
3081
+ default:
3082
+ if (throwError) {
3083
+ throw new Error("Valve adaptation process not possible right now!");
3084
+ }
3085
+ }
3086
+ };
3087
+ const exposes = [
3088
+ e
3089
+ .enum("valve_adapt_status", ea.STATE_GET, Object.keys(valveAdaptStatusLookup))
3090
+ .withLabel("Valve adaptation status")
3091
+ .withDescription("Specifies the current status of the valve adaptation")
3092
+ .withCategory("diagnostic"),
3093
+ e
3094
+ .binary("automatic_valve_adapt", ea.STATE_GET, true, false)
3095
+ .withLabel("Automatic valve adaptation requested")
3096
+ .withDescription("Specifies if an automatic valve adaptation is being requested by the thermostat " +
3097
+ "(for example after a successful firmware upgrade). If this is the case, the " +
3098
+ "valve adaptation will be automatically started as soon as the adaptation status " +
3099
+ "is 'ready_to_calibrate' or 'error'.")
3100
+ .withCategory("diagnostic"),
3101
+ e
3102
+ .enum("valve_adapt_process", ea.SET, ["adapt"])
3103
+ .withLabel("Trigger adaptation process")
3104
+ .withDescription("Trigger the valve adaptation process. Only possible when the adaptation status is 'ready_to_calibrate' or 'error'.")
3105
+ .withCategory("config"),
3106
+ ];
3107
+ const fromZigbee = [
3108
+ {
3109
+ cluster: "hvacThermostat",
3110
+ type: ["attributeReport", "readResponse"],
3111
+ convert: async (model, msg, publish, options, meta) => {
3112
+ const result = {};
3113
+ const data = msg.data;
3114
+ if (data.valveAdaptStatus !== undefined) {
3115
+ result.valve_adapt_status = utils.getFromLookupByValue(data.valveAdaptStatus, valveAdaptStatusLookup);
3116
+ const automaticValveAdapt = meta.state.automatic_valve_adapt ?? false;
3117
+ if (automaticValveAdapt === true) {
3118
+ await triggerValveAdaptation(meta.state, msg.endpoint, false);
3119
+ }
3120
+ }
3121
+ if (data.automaticValveAdapt !== undefined) {
3122
+ result.automatic_valve_adapt = !!data.automaticValveAdapt;
3123
+ }
3124
+ return result;
3125
+ },
3126
+ },
3127
+ ];
3128
+ const toZigbee = [
3129
+ {
3130
+ key: ["valve_adapt_status", "automatic_valve_adapt", "valve_adapt_process"],
3131
+ convertSet: async (entity, key, value, meta) => {
3132
+ if (key === "valve_adapt_process") {
3133
+ await triggerValveAdaptation(meta.state, entity);
3134
+ }
3135
+ },
3136
+ convertGet: async (entity, key, meta) => {
3137
+ if (key === "valve_adapt_status") {
3138
+ await entity.read("hvacThermostat", ["valveAdaptStatus"]);
3139
+ }
3140
+ if (key === "automatic_valve_adapt") {
3141
+ await entity.read("hvacThermostat", ["automaticValveAdapt"]);
3142
+ }
3143
+ },
3144
+ },
3145
+ ];
3146
+ const configure = [
3147
+ m.setupConfigureForReporting("hvacThermostat", "valveAdaptStatus", {
3148
+ config: { min: "MIN", max: "MAX", change: null },
3149
+ access: ea.STATE_GET,
3150
+ }),
3151
+ m.setupConfigureForReading("hvacThermostat", ["automaticValveAdapt"]),
3152
+ ];
3153
+ return {
3154
+ exposes,
3155
+ fromZigbee,
3156
+ toZigbee,
3157
+ configure,
3158
+ isModernExtend: true,
3159
+ };
3160
+ },
3161
+ };
3162
+ //endregion
3163
+ //# sourceMappingURL=bosch.js.map