@zwave-js/cc 14.0.0-beta.1 → 14.0.0-beta.4

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 (922) hide show
  1. package/build/cjs/cc/AlarmSensorCC.d.ts +194 -0
  2. package/build/cjs/cc/AlarmSensorCC.js +395 -0
  3. package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
  4. package/build/cjs/cc/AssociationCC.d.ts +253 -0
  5. package/build/cjs/cc/AssociationCC.js +711 -0
  6. package/build/cjs/cc/AssociationCC.js.map +7 -0
  7. package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
  8. package/build/cjs/cc/AssociationGroupInfoCC.js +746 -0
  9. package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
  10. package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
  11. package/build/cjs/cc/BarrierOperatorCC.js +582 -0
  12. package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
  13. package/build/cjs/cc/BasicCC.d.ts +191 -0
  14. package/build/cjs/cc/BasicCC.js +384 -0
  15. package/build/cjs/cc/BasicCC.js.map +7 -0
  16. package/build/cjs/cc/BatteryCC.d.ts +406 -0
  17. package/build/cjs/cc/BatteryCC.js +508 -0
  18. package/build/cjs/cc/BatteryCC.js.map +7 -0
  19. package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
  20. package/build/cjs/cc/BinarySensorCC.js +431 -0
  21. package/build/cjs/cc/BinarySensorCC.js.map +7 -0
  22. package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
  23. package/build/cjs/cc/BinarySwitchCC.js +378 -0
  24. package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
  25. package/build/cjs/cc/CRC16CC.d.ts +29 -0
  26. package/build/cjs/cc/CRC16CC.js +133 -0
  27. package/build/cjs/cc/CRC16CC.js.map +7 -0
  28. package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
  29. package/build/cjs/cc/CentralSceneCC.js +449 -0
  30. package/build/cjs/cc/CentralSceneCC.js.map +7 -0
  31. package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
  32. package/build/cjs/cc/ClimateControlScheduleCC.js +480 -0
  33. package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
  34. package/build/cjs/cc/ClockCC.d.ts +47 -0
  35. package/build/cjs/cc/ClockCC.js +226 -0
  36. package/build/cjs/cc/ClockCC.js.map +7 -0
  37. package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
  38. package/build/cjs/cc/ColorSwitchCC.js +1117 -0
  39. package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
  40. package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
  41. package/build/cjs/cc/ConfigurationCC.js +2230 -0
  42. package/build/cjs/cc/ConfigurationCC.js.map +7 -0
  43. package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
  44. package/build/cjs/cc/DeviceResetLocallyCC.js +92 -0
  45. package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
  46. package/build/cjs/cc/DoorLockCC.d.ts +837 -0
  47. package/build/cjs/cc/DoorLockCC.js +1239 -0
  48. package/build/cjs/cc/DoorLockCC.js.map +7 -0
  49. package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
  50. package/build/cjs/cc/DoorLockLoggingCC.js +343 -0
  51. package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
  52. package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
  53. package/build/cjs/cc/EnergyProductionCC.js +240 -0
  54. package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
  55. package/build/cjs/cc/EntryControlCC.d.ts +231 -0
  56. package/build/cjs/cc/EntryControlCC.js +593 -0
  57. package/build/cjs/cc/EntryControlCC.js.map +7 -0
  58. package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
  59. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1122 -0
  60. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
  61. package/build/cjs/cc/HailCC.d.ts +6 -0
  62. package/build/cjs/cc/HailCC.js +45 -0
  63. package/build/cjs/cc/HailCC.js.map +7 -0
  64. package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
  65. package/build/cjs/cc/HumidityControlModeCC.js +323 -0
  66. package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
  67. package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
  68. package/build/cjs/cc/HumidityControlOperatingStateCC.js +164 -0
  69. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
  70. package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
  71. package/build/cjs/cc/HumidityControlSetpointCC.js +634 -0
  72. package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
  73. package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
  74. package/build/cjs/cc/InclusionControllerCC.js +160 -0
  75. package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
  76. package/build/cjs/cc/IndicatorCC.d.ts +338 -0
  77. package/build/cjs/cc/IndicatorCC.js +1234 -0
  78. package/build/cjs/cc/IndicatorCC.js.map +7 -0
  79. package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
  80. package/build/cjs/cc/IrrigationCC.js +1978 -0
  81. package/build/cjs/cc/IrrigationCC.js.map +7 -0
  82. package/build/cjs/cc/LanguageCC.d.ts +101 -0
  83. package/build/cjs/cc/LanguageCC.js +267 -0
  84. package/build/cjs/cc/LanguageCC.js.map +7 -0
  85. package/build/cjs/cc/LockCC.d.ts +73 -0
  86. package/build/cjs/cc/LockCC.js +222 -0
  87. package/build/cjs/cc/LockCC.js.map +7 -0
  88. package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
  89. package/build/cjs/cc/ManufacturerProprietaryCC.js +209 -0
  90. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
  91. package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
  92. package/build/cjs/cc/ManufacturerSpecificCC.js +334 -0
  93. package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
  94. package/build/cjs/cc/MeterCC.d.ts +318 -0
  95. package/build/cjs/cc/MeterCC.js +1235 -0
  96. package/build/cjs/cc/MeterCC.js.map +7 -0
  97. package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
  98. package/build/cjs/cc/MultiChannelAssociationCC.js +956 -0
  99. package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
  100. package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
  101. package/build/cjs/cc/MultiChannelCC.js +1050 -0
  102. package/build/cjs/cc/MultiChannelCC.js.map +7 -0
  103. package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
  104. package/build/cjs/cc/MultiCommandCC.js +159 -0
  105. package/build/cjs/cc/MultiCommandCC.js.map +7 -0
  106. package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
  107. package/build/cjs/cc/MultilevelSensorCC.js +716 -0
  108. package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
  109. package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
  110. package/build/cjs/cc/MultilevelSwitchCC.js +780 -0
  111. package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
  112. package/build/cjs/cc/NoOperationCC.d.ts +9 -0
  113. package/build/cjs/cc/NoOperationCC.js +64 -0
  114. package/build/cjs/cc/NoOperationCC.js.map +7 -0
  115. package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
  116. package/build/cjs/cc/NodeNamingCC.js +364 -0
  117. package/build/cjs/cc/NodeNamingCC.js.map +7 -0
  118. package/build/cjs/cc/NotificationCC.d.ts +479 -0
  119. package/build/cjs/cc/NotificationCC.js +1245 -0
  120. package/build/cjs/cc/NotificationCC.js.map +7 -0
  121. package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
  122. package/build/cjs/cc/PowerlevelCC.js +510 -0
  123. package/build/cjs/cc/PowerlevelCC.js.map +7 -0
  124. package/build/cjs/cc/ProtectionCC.d.ts +325 -0
  125. package/build/cjs/cc/ProtectionCC.js +667 -0
  126. package/build/cjs/cc/ProtectionCC.js.map +7 -0
  127. package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
  128. package/build/cjs/cc/SceneActivationCC.js +193 -0
  129. package/build/cjs/cc/SceneActivationCC.js.map +7 -0
  130. package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
  131. package/build/cjs/cc/SceneActuatorConfigurationCC.js +370 -0
  132. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
  133. package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
  134. package/build/cjs/cc/SceneControllerConfigurationCC.js +423 -0
  135. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
  136. package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
  137. package/build/cjs/cc/ScheduleEntryLockCC.js +1763 -0
  138. package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
  139. package/build/cjs/cc/Security2CC.d.ts +251 -0
  140. package/build/cjs/cc/Security2CC.js +1589 -0
  141. package/build/cjs/cc/Security2CC.js.map +7 -0
  142. package/build/cjs/cc/SecurityCC.d.ts +128 -0
  143. package/build/cjs/cc/SecurityCC.js +757 -0
  144. package/build/cjs/cc/SecurityCC.js.map +7 -0
  145. package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
  146. package/build/cjs/cc/SoundSwitchCC.js +661 -0
  147. package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
  148. package/build/cjs/cc/SupervisionCC.d.ts +104 -0
  149. package/build/cjs/cc/SupervisionCC.js +308 -0
  150. package/build/cjs/cc/SupervisionCC.js.map +7 -0
  151. package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
  152. package/build/cjs/cc/ThermostatFanModeCC.js +372 -0
  153. package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
  154. package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
  155. package/build/cjs/cc/ThermostatFanStateCC.js +166 -0
  156. package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
  157. package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
  158. package/build/cjs/cc/ThermostatModeCC.js +436 -0
  159. package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
  160. package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
  161. package/build/cjs/cc/ThermostatOperatingStateCC.js +162 -0
  162. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
  163. package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
  164. package/build/cjs/cc/ThermostatSetbackCC.js +262 -0
  165. package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
  166. package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
  167. package/build/cjs/cc/ThermostatSetpointCC.js +638 -0
  168. package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
  169. package/build/cjs/cc/TimeCC.d.ts +88 -0
  170. package/build/cjs/cc/TimeCC.js +473 -0
  171. package/build/cjs/cc/TimeCC.js.map +7 -0
  172. package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
  173. package/build/cjs/cc/TimeParametersCC.js +313 -0
  174. package/build/cjs/cc/TimeParametersCC.js.map +7 -0
  175. package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
  176. package/build/cjs/cc/TransportServiceCC.js +404 -0
  177. package/build/cjs/cc/TransportServiceCC.js.map +7 -0
  178. package/build/cjs/cc/UserCodeCC.d.ts +683 -0
  179. package/build/cjs/cc/UserCodeCC.js +1620 -0
  180. package/build/cjs/cc/UserCodeCC.js.map +7 -0
  181. package/build/cjs/cc/VersionCC.d.ts +469 -0
  182. package/build/cjs/cc/VersionCC.js +828 -0
  183. package/build/cjs/cc/VersionCC.js.map +7 -0
  184. package/build/cjs/cc/WakeUpCC.d.ts +150 -0
  185. package/build/cjs/cc/WakeUpCC.js +456 -0
  186. package/build/cjs/cc/WakeUpCC.js.map +7 -0
  187. package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
  188. package/build/cjs/cc/WindowCoveringCC.js +776 -0
  189. package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
  190. package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
  191. package/build/cjs/cc/ZWaveLongRangeCC.js +43 -0
  192. package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
  193. package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
  194. package/build/cjs/cc/ZWavePlusCC.js +288 -0
  195. package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
  196. package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
  197. package/build/cjs/cc/ZWaveProtocolCC.js +1071 -0
  198. package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
  199. package/build/cjs/cc/index.d.ts +132 -0
  200. package/build/cjs/cc/index.js +1180 -0
  201. package/build/cjs/cc/index.js.map +7 -0
  202. package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
  203. package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
  204. package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
  205. package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
  206. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +412 -0
  207. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
  208. package/build/cjs/index.d.ts +15 -0
  209. package/build/cjs/index.js +77 -0
  210. package/build/cjs/index.js.map +7 -0
  211. package/build/cjs/index_safe.d.ts +3 -0
  212. package/build/cjs/index_safe.js +25 -0
  213. package/build/cjs/index_safe.js.map +7 -0
  214. package/build/cjs/lib/API.d.ts +271 -0
  215. package/build/cjs/lib/API.js +413 -0
  216. package/build/cjs/lib/API.js.map +7 -0
  217. package/build/cjs/lib/CommandClass.d.ts +234 -0
  218. package/build/cjs/lib/CommandClass.js +692 -0
  219. package/build/cjs/lib/CommandClass.js.map +7 -0
  220. package/build/cjs/lib/CommandClassDecorators.d.ts +112 -0
  221. package/build/cjs/lib/CommandClassDecorators.js +182 -0
  222. package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
  223. package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
  224. package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
  225. package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
  226. package/build/cjs/lib/ICommandClassContainer.js +17 -0
  227. package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
  228. package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
  229. package/build/cjs/lib/NotificationEventPayload.js +31 -0
  230. package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
  231. package/build/cjs/lib/Security2/Extension.js +333 -0
  232. package/build/cjs/lib/Security2/Extension.js.map +7 -0
  233. package/build/cjs/lib/Security2/shared.js +69 -0
  234. package/build/cjs/lib/Security2/shared.js.map +7 -0
  235. package/build/cjs/lib/SetValueResult.js +65 -0
  236. package/build/cjs/lib/SetValueResult.js.map +7 -0
  237. package/build/cjs/lib/Values.d.ts +223 -0
  238. package/build/cjs/lib/Values.js +191 -0
  239. package/build/cjs/lib/Values.js.map +7 -0
  240. package/build/cjs/lib/_Types.js +1676 -0
  241. package/build/cjs/lib/_Types.js.map +7 -0
  242. package/build/cjs/lib/serializers.d.ts +34 -0
  243. package/build/cjs/lib/serializers.js +110 -0
  244. package/build/cjs/lib/serializers.js.map +7 -0
  245. package/build/cjs/lib/utils.d.ts +17 -0
  246. package/build/cjs/lib/utils.js +678 -0
  247. package/build/cjs/lib/utils.js.map +7 -0
  248. package/build/cjs/package.json +3 -0
  249. package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
  250. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
  251. package/build/esm/cc/AlarmSensorCC.js +392 -0
  252. package/build/esm/cc/AlarmSensorCC.js.map +1 -0
  253. package/build/esm/cc/AssociationCC.d.ts +253 -0
  254. package/build/esm/cc/AssociationCC.d.ts.map +1 -0
  255. package/build/esm/cc/AssociationCC.js +706 -0
  256. package/build/esm/cc/AssociationCC.js.map +1 -0
  257. package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
  258. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
  259. package/build/esm/cc/AssociationGroupInfoCC.js +769 -0
  260. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
  261. package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
  262. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
  263. package/build/esm/cc/BarrierOperatorCC.js +610 -0
  264. package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
  265. package/build/esm/cc/BasicCC.d.ts +191 -0
  266. package/build/esm/cc/BasicCC.d.ts.map +1 -0
  267. package/build/esm/cc/BasicCC.js +390 -0
  268. package/build/esm/cc/BasicCC.js.map +1 -0
  269. package/build/esm/cc/BatteryCC.d.ts +406 -0
  270. package/build/esm/cc/BatteryCC.d.ts.map +1 -0
  271. package/build/esm/cc/BatteryCC.js +513 -0
  272. package/build/esm/cc/BatteryCC.js.map +1 -0
  273. package/build/esm/cc/BinarySensorCC.d.ts +122 -0
  274. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
  275. package/build/esm/cc/BinarySensorCC.js +417 -0
  276. package/build/esm/cc/BinarySensorCC.js.map +1 -0
  277. package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
  278. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
  279. package/build/esm/cc/BinarySwitchCC.js +362 -0
  280. package/build/esm/cc/BinarySwitchCC.js.map +1 -0
  281. package/build/esm/cc/CRC16CC.d.ts +29 -0
  282. package/build/esm/cc/CRC16CC.d.ts.map +1 -0
  283. package/build/esm/cc/CRC16CC.js +123 -0
  284. package/build/esm/cc/CRC16CC.js.map +1 -0
  285. package/build/esm/cc/CentralSceneCC.d.ts +210 -0
  286. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
  287. package/build/esm/cc/CentralSceneCC.js +427 -0
  288. package/build/esm/cc/CentralSceneCC.js.map +1 -0
  289. package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
  290. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
  291. package/build/esm/cc/ClimateControlScheduleCC.js +466 -0
  292. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
  293. package/build/esm/cc/ClockCC.d.ts +47 -0
  294. package/build/esm/cc/ClockCC.d.ts.map +1 -0
  295. package/build/esm/cc/ClockCC.js +205 -0
  296. package/build/esm/cc/ClockCC.js.map +1 -0
  297. package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
  298. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
  299. package/build/esm/cc/ColorSwitchCC.js +1149 -0
  300. package/build/esm/cc/ColorSwitchCC.js.map +1 -0
  301. package/build/esm/cc/ConfigurationCC.d.ts +396 -0
  302. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
  303. package/build/esm/cc/ConfigurationCC.js +2454 -0
  304. package/build/esm/cc/ConfigurationCC.js.map +1 -0
  305. package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
  306. package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
  307. package/build/esm/cc/DeviceResetLocallyCC.js +73 -0
  308. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
  309. package/build/esm/cc/DoorLockCC.d.ts +837 -0
  310. package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
  311. package/build/esm/cc/DoorLockCC.js +1270 -0
  312. package/build/esm/cc/DoorLockCC.js.map +1 -0
  313. package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
  314. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
  315. package/build/esm/cc/DoorLockLoggingCC.js +316 -0
  316. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
  317. package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
  318. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
  319. package/build/esm/cc/EnergyProductionCC.js +213 -0
  320. package/build/esm/cc/EnergyProductionCC.js.map +1 -0
  321. package/build/esm/cc/EntryControlCC.d.ts +231 -0
  322. package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
  323. package/build/esm/cc/EntryControlCC.js +581 -0
  324. package/build/esm/cc/EntryControlCC.js.map +1 -0
  325. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
  326. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
  327. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1142 -0
  328. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
  329. package/build/esm/cc/HailCC.d.ts +6 -0
  330. package/build/esm/cc/HailCC.d.ts.map +1 -0
  331. package/build/esm/cc/HailCC.js +21 -0
  332. package/build/esm/cc/HailCC.js.map +1 -0
  333. package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
  334. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
  335. package/build/esm/cc/HumidityControlModeCC.js +305 -0
  336. package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
  337. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
  338. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
  339. package/build/esm/cc/HumidityControlOperatingStateCC.js +137 -0
  340. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
  341. package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
  342. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
  343. package/build/esm/cc/HumidityControlSetpointCC.js +645 -0
  344. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
  345. package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
  346. package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
  347. package/build/esm/cc/InclusionControllerCC.js +133 -0
  348. package/build/esm/cc/InclusionControllerCC.js.map +1 -0
  349. package/build/esm/cc/IndicatorCC.d.ts +338 -0
  350. package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
  351. package/build/esm/cc/IndicatorCC.js +1317 -0
  352. package/build/esm/cc/IndicatorCC.js.map +1 -0
  353. package/build/esm/cc/IrrigationCC.d.ts +1496 -0
  354. package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
  355. package/build/esm/cc/IrrigationCC.js +2038 -0
  356. package/build/esm/cc/IrrigationCC.js.map +1 -0
  357. package/build/esm/cc/LanguageCC.d.ts +101 -0
  358. package/build/esm/cc/LanguageCC.d.ts.map +1 -0
  359. package/build/esm/cc/LanguageCC.js +243 -0
  360. package/build/esm/cc/LanguageCC.js.map +1 -0
  361. package/build/esm/cc/LockCC.d.ts +73 -0
  362. package/build/esm/cc/LockCC.d.ts.map +1 -0
  363. package/build/esm/cc/LockCC.js +197 -0
  364. package/build/esm/cc/LockCC.js.map +1 -0
  365. package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
  366. package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
  367. package/build/esm/cc/ManufacturerProprietaryCC.js +201 -0
  368. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
  369. package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
  370. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
  371. package/build/esm/cc/ManufacturerSpecificCC.js +315 -0
  372. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
  373. package/build/esm/cc/MeterCC.d.ts +318 -0
  374. package/build/esm/cc/MeterCC.d.ts.map +1 -0
  375. package/build/esm/cc/MeterCC.js +1308 -0
  376. package/build/esm/cc/MeterCC.js.map +1 -0
  377. package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
  378. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
  379. package/build/esm/cc/MultiChannelAssociationCC.js +981 -0
  380. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
  381. package/build/esm/cc/MultiChannelCC.d.ts +394 -0
  382. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
  383. package/build/esm/cc/MultiChannelCC.js +1127 -0
  384. package/build/esm/cc/MultiChannelCC.js.map +1 -0
  385. package/build/esm/cc/MultiCommandCC.d.ts +27 -0
  386. package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
  387. package/build/esm/cc/MultiCommandCC.js +142 -0
  388. package/build/esm/cc/MultiCommandCC.js.map +1 -0
  389. package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
  390. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
  391. package/build/esm/cc/MultilevelSensorCC.js +753 -0
  392. package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
  393. package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
  394. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
  395. package/build/esm/cc/MultilevelSwitchCC.js +810 -0
  396. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
  397. package/build/esm/cc/NoOperationCC.d.ts +9 -0
  398. package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
  399. package/build/esm/cc/NoOperationCC.js +39 -0
  400. package/build/esm/cc/NoOperationCC.js.map +1 -0
  401. package/build/esm/cc/NodeNamingCC.d.ts +118 -0
  402. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
  403. package/build/esm/cc/NodeNamingCC.js +345 -0
  404. package/build/esm/cc/NodeNamingCC.js.map +1 -0
  405. package/build/esm/cc/NotificationCC.d.ts +479 -0
  406. package/build/esm/cc/NotificationCC.d.ts.map +1 -0
  407. package/build/esm/cc/NotificationCC.js +1350 -0
  408. package/build/esm/cc/NotificationCC.js.map +1 -0
  409. package/build/esm/cc/PowerlevelCC.d.ts +82 -0
  410. package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
  411. package/build/esm/cc/PowerlevelCC.js +485 -0
  412. package/build/esm/cc/PowerlevelCC.js.map +1 -0
  413. package/build/esm/cc/ProtectionCC.d.ts +325 -0
  414. package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
  415. package/build/esm/cc/ProtectionCC.js +669 -0
  416. package/build/esm/cc/ProtectionCC.js.map +1 -0
  417. package/build/esm/cc/SceneActivationCC.d.ts +89 -0
  418. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
  419. package/build/esm/cc/SceneActivationCC.js +166 -0
  420. package/build/esm/cc/SceneActivationCC.js.map +1 -0
  421. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
  422. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
  423. package/build/esm/cc/SceneActuatorConfigurationCC.js +374 -0
  424. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
  425. package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
  426. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
  427. package/build/esm/cc/SceneControllerConfigurationCC.js +446 -0
  428. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
  429. package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
  430. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
  431. package/build/esm/cc/ScheduleEntryLockCC.js +1826 -0
  432. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
  433. package/build/esm/cc/Security2CC.d.ts +251 -0
  434. package/build/esm/cc/Security2CC.d.ts.map +1 -0
  435. package/build/esm/cc/Security2CC.js +1814 -0
  436. package/build/esm/cc/Security2CC.js.map +1 -0
  437. package/build/esm/cc/SecurityCC.d.ts +128 -0
  438. package/build/esm/cc/SecurityCC.d.ts.map +1 -0
  439. package/build/esm/cc/SecurityCC.js +800 -0
  440. package/build/esm/cc/SecurityCC.js.map +1 -0
  441. package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
  442. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
  443. package/build/esm/cc/SoundSwitchCC.js +633 -0
  444. package/build/esm/cc/SoundSwitchCC.js.map +1 -0
  445. package/build/esm/cc/SupervisionCC.d.ts +104 -0
  446. package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
  447. package/build/esm/cc/SupervisionCC.js +319 -0
  448. package/build/esm/cc/SupervisionCC.js.map +1 -0
  449. package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
  450. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
  451. package/build/esm/cc/ThermostatFanModeCC.js +359 -0
  452. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
  453. package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
  454. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
  455. package/build/esm/cc/ThermostatFanStateCC.js +139 -0
  456. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
  457. package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
  458. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
  459. package/build/esm/cc/ThermostatModeCC.js +426 -0
  460. package/build/esm/cc/ThermostatModeCC.js.map +1 -0
  461. package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
  462. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
  463. package/build/esm/cc/ThermostatOperatingStateCC.js +135 -0
  464. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
  465. package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
  466. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
  467. package/build/esm/cc/ThermostatSetbackCC.js +244 -0
  468. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
  469. package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
  470. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
  471. package/build/esm/cc/ThermostatSetpointCC.js +655 -0
  472. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
  473. package/build/esm/cc/TimeCC.d.ts +88 -0
  474. package/build/esm/cc/TimeCC.d.ts.map +1 -0
  475. package/build/esm/cc/TimeCC.js +451 -0
  476. package/build/esm/cc/TimeCC.js.map +1 -0
  477. package/build/esm/cc/TimeParametersCC.d.ts +72 -0
  478. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
  479. package/build/esm/cc/TimeParametersCC.js +300 -0
  480. package/build/esm/cc/TimeParametersCC.js.map +1 -0
  481. package/build/esm/cc/TransportServiceCC.d.ts +107 -0
  482. package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
  483. package/build/esm/cc/TransportServiceCC.js +422 -0
  484. package/build/esm/cc/TransportServiceCC.js.map +1 -0
  485. package/build/esm/cc/UserCodeCC.d.ts +683 -0
  486. package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
  487. package/build/esm/cc/UserCodeCC.js +1695 -0
  488. package/build/esm/cc/UserCodeCC.js.map +1 -0
  489. package/build/esm/cc/VersionCC.d.ts +469 -0
  490. package/build/esm/cc/VersionCC.d.ts.map +1 -0
  491. package/build/esm/cc/VersionCC.js +862 -0
  492. package/build/esm/cc/VersionCC.js.map +1 -0
  493. package/build/esm/cc/WakeUpCC.d.ts +150 -0
  494. package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
  495. package/build/esm/cc/WakeUpCC.js +438 -0
  496. package/build/esm/cc/WakeUpCC.js.map +1 -0
  497. package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
  498. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
  499. package/build/esm/cc/WindowCoveringCC.js +780 -0
  500. package/build/esm/cc/WindowCoveringCC.js.map +1 -0
  501. package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
  502. package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
  503. package/build/esm/cc/ZWaveLongRangeCC.js +17 -0
  504. package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
  505. package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
  506. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
  507. package/build/esm/cc/ZWavePlusCC.js +267 -0
  508. package/build/esm/cc/ZWavePlusCC.js.map +1 -0
  509. package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
  510. package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
  511. package/build/esm/cc/ZWaveProtocolCC.js +1030 -0
  512. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
  513. package/build/esm/cc/index.d.ts +132 -0
  514. package/build/esm/cc/index.d.ts.map +1 -0
  515. package/build/esm/cc/index.js +71 -0
  516. package/build/esm/cc/index.js.map +1 -0
  517. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
  518. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
  519. package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
  520. package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
  521. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
  522. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
  523. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +385 -0
  524. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
  525. package/build/esm/index.d.ts +15 -0
  526. package/build/esm/index.d.ts.map +1 -0
  527. package/build/esm/index.js +14 -0
  528. package/build/esm/index.js.map +1 -0
  529. package/build/esm/index_safe.d.ts +3 -0
  530. package/build/esm/index_safe.d.ts.map +1 -0
  531. package/build/esm/index_safe.js +4 -0
  532. package/build/esm/index_safe.js.map +1 -0
  533. package/build/esm/lib/API.d.ts +271 -0
  534. package/build/esm/lib/API.d.ts.map +1 -0
  535. package/build/esm/lib/API.js +448 -0
  536. package/build/esm/lib/API.js.map +1 -0
  537. package/build/esm/lib/CommandClass.d.ts +234 -0
  538. package/build/esm/lib/CommandClass.d.ts.map +1 -0
  539. package/build/esm/lib/CommandClass.js +781 -0
  540. package/build/esm/lib/CommandClass.js.map +1 -0
  541. package/build/esm/lib/CommandClassDecorators.d.ts +112 -0
  542. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
  543. package/build/esm/lib/CommandClassDecorators.js +229 -0
  544. package/build/esm/lib/CommandClassDecorators.js.map +1 -0
  545. package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
  546. package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
  547. package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
  548. package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
  549. package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
  550. package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
  551. package/build/esm/lib/ICommandClassContainer.js +2 -0
  552. package/build/esm/lib/ICommandClassContainer.js.map +1 -0
  553. package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
  554. package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
  555. package/build/esm/lib/NotificationEventPayload.js +7 -0
  556. package/build/esm/lib/NotificationEventPayload.js.map +1 -0
  557. package/build/esm/lib/Security2/Extension.d.ts +106 -0
  558. package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
  559. package/build/esm/lib/Security2/Extension.js +296 -0
  560. package/build/esm/lib/Security2/Extension.js.map +1 -0
  561. package/build/esm/lib/Security2/shared.d.ts +37 -0
  562. package/build/esm/lib/Security2/shared.d.ts.map +1 -0
  563. package/build/esm/lib/Security2/shared.js +40 -0
  564. package/build/esm/lib/Security2/shared.js.map +1 -0
  565. package/build/esm/lib/SetValueResult.d.ts +55 -0
  566. package/build/esm/lib/SetValueResult.d.ts.map +1 -0
  567. package/build/esm/lib/SetValueResult.js +53 -0
  568. package/build/esm/lib/SetValueResult.js.map +1 -0
  569. package/build/esm/lib/Values.d.ts +223 -0
  570. package/build/esm/lib/Values.d.ts.map +1 -0
  571. package/build/esm/lib/Values.js +169 -0
  572. package/build/esm/lib/Values.js.map +1 -0
  573. package/build/esm/lib/_Types.d.ts +1461 -0
  574. package/build/esm/lib/_Types.d.ts.map +1 -0
  575. package/build/esm/lib/_Types.js +1432 -0
  576. package/build/esm/lib/_Types.js.map +1 -0
  577. package/build/esm/lib/serializers.d.ts +34 -0
  578. package/build/esm/lib/serializers.d.ts.map +1 -0
  579. package/build/esm/lib/serializers.js +98 -0
  580. package/build/esm/lib/serializers.js.map +1 -0
  581. package/build/esm/lib/utils.d.ts +17 -0
  582. package/build/esm/lib/utils.d.ts.map +1 -0
  583. package/build/esm/lib/utils.js +847 -0
  584. package/build/esm/lib/utils.js.map +1 -0
  585. package/build/esm/package.json +3 -0
  586. package/package.json +28 -23
  587. package/build/cc/AlarmSensorCC.d.ts +0 -194
  588. package/build/cc/AlarmSensorCC.d.ts.map +0 -1
  589. package/build/cc/AlarmSensorCC.js +0 -395
  590. package/build/cc/AlarmSensorCC.js.map +0 -1
  591. package/build/cc/AssociationCC.d.ts +0 -253
  592. package/build/cc/AssociationCC.d.ts.map +0 -1
  593. package/build/cc/AssociationCC.js +0 -732
  594. package/build/cc/AssociationCC.js.map +0 -1
  595. package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
  596. package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
  597. package/build/cc/AssociationGroupInfoCC.js +0 -772
  598. package/build/cc/AssociationGroupInfoCC.js.map +0 -1
  599. package/build/cc/BarrierOperatorCC.d.ts +0 -243
  600. package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
  601. package/build/cc/BarrierOperatorCC.js +0 -613
  602. package/build/cc/BarrierOperatorCC.js.map +0 -1
  603. package/build/cc/BasicCC.d.ts +0 -191
  604. package/build/cc/BasicCC.d.ts.map +0 -1
  605. package/build/cc/BasicCC.js +0 -393
  606. package/build/cc/BasicCC.js.map +0 -1
  607. package/build/cc/BatteryCC.d.ts +0 -406
  608. package/build/cc/BatteryCC.d.ts.map +0 -1
  609. package/build/cc/BatteryCC.js +0 -516
  610. package/build/cc/BatteryCC.js.map +0 -1
  611. package/build/cc/BinarySensorCC.d.ts +0 -122
  612. package/build/cc/BinarySensorCC.d.ts.map +0 -1
  613. package/build/cc/BinarySensorCC.js +0 -420
  614. package/build/cc/BinarySensorCC.js.map +0 -1
  615. package/build/cc/BinarySwitchCC.d.ts +0 -139
  616. package/build/cc/BinarySwitchCC.d.ts.map +0 -1
  617. package/build/cc/BinarySwitchCC.js +0 -365
  618. package/build/cc/BinarySwitchCC.js.map +0 -1
  619. package/build/cc/CRC16CC.d.ts +0 -29
  620. package/build/cc/CRC16CC.d.ts.map +0 -1
  621. package/build/cc/CRC16CC.js +0 -126
  622. package/build/cc/CRC16CC.js.map +0 -1
  623. package/build/cc/CentralSceneCC.d.ts +0 -210
  624. package/build/cc/CentralSceneCC.d.ts.map +0 -1
  625. package/build/cc/CentralSceneCC.js +0 -453
  626. package/build/cc/CentralSceneCC.js.map +0 -1
  627. package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
  628. package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
  629. package/build/cc/ClimateControlScheduleCC.js +0 -469
  630. package/build/cc/ClimateControlScheduleCC.js.map +0 -1
  631. package/build/cc/ClockCC.d.ts +0 -47
  632. package/build/cc/ClockCC.d.ts.map +0 -1
  633. package/build/cc/ClockCC.js +0 -208
  634. package/build/cc/ClockCC.js.map +0 -1
  635. package/build/cc/ColorSwitchCC.d.ts +0 -339
  636. package/build/cc/ColorSwitchCC.d.ts.map +0 -1
  637. package/build/cc/ColorSwitchCC.js +0 -1152
  638. package/build/cc/ColorSwitchCC.js.map +0 -1
  639. package/build/cc/ConfigurationCC.d.ts +0 -396
  640. package/build/cc/ConfigurationCC.d.ts.map +0 -1
  641. package/build/cc/ConfigurationCC.js +0 -2458
  642. package/build/cc/ConfigurationCC.js.map +0 -1
  643. package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
  644. package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
  645. package/build/cc/DeviceResetLocallyCC.js +0 -76
  646. package/build/cc/DeviceResetLocallyCC.js.map +0 -1
  647. package/build/cc/DoorLockCC.d.ts +0 -837
  648. package/build/cc/DoorLockCC.d.ts.map +0 -1
  649. package/build/cc/DoorLockCC.js +0 -1273
  650. package/build/cc/DoorLockCC.js.map +0 -1
  651. package/build/cc/DoorLockLoggingCC.d.ts +0 -77
  652. package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
  653. package/build/cc/DoorLockLoggingCC.js +0 -319
  654. package/build/cc/DoorLockLoggingCC.js.map +0 -1
  655. package/build/cc/EnergyProductionCC.d.ts +0 -77
  656. package/build/cc/EnergyProductionCC.d.ts.map +0 -1
  657. package/build/cc/EnergyProductionCC.js +0 -216
  658. package/build/cc/EnergyProductionCC.js.map +0 -1
  659. package/build/cc/EntryControlCC.d.ts +0 -231
  660. package/build/cc/EntryControlCC.d.ts.map +0 -1
  661. package/build/cc/EntryControlCC.js +0 -607
  662. package/build/cc/EntryControlCC.js.map +0 -1
  663. package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
  664. package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
  665. package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
  666. package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
  667. package/build/cc/HailCC.d.ts +0 -6
  668. package/build/cc/HailCC.d.ts.map +0 -1
  669. package/build/cc/HailCC.js +0 -24
  670. package/build/cc/HailCC.js.map +0 -1
  671. package/build/cc/HumidityControlModeCC.d.ts +0 -111
  672. package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
  673. package/build/cc/HumidityControlModeCC.js +0 -308
  674. package/build/cc/HumidityControlModeCC.js.map +0 -1
  675. package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
  676. package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
  677. package/build/cc/HumidityControlOperatingStateCC.js +0 -140
  678. package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
  679. package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
  680. package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
  681. package/build/cc/HumidityControlSetpointCC.js +0 -648
  682. package/build/cc/HumidityControlSetpointCC.js.map +0 -1
  683. package/build/cc/InclusionControllerCC.d.ts +0 -42
  684. package/build/cc/InclusionControllerCC.d.ts.map +0 -1
  685. package/build/cc/InclusionControllerCC.js +0 -136
  686. package/build/cc/InclusionControllerCC.js.map +0 -1
  687. package/build/cc/IndicatorCC.d.ts +0 -338
  688. package/build/cc/IndicatorCC.d.ts.map +0 -1
  689. package/build/cc/IndicatorCC.js +0 -1320
  690. package/build/cc/IndicatorCC.js.map +0 -1
  691. package/build/cc/IrrigationCC.d.ts +0 -1496
  692. package/build/cc/IrrigationCC.d.ts.map +0 -1
  693. package/build/cc/IrrigationCC.js +0 -2041
  694. package/build/cc/IrrigationCC.js.map +0 -1
  695. package/build/cc/LanguageCC.d.ts +0 -101
  696. package/build/cc/LanguageCC.d.ts.map +0 -1
  697. package/build/cc/LanguageCC.js +0 -246
  698. package/build/cc/LanguageCC.js.map +0 -1
  699. package/build/cc/LockCC.d.ts +0 -73
  700. package/build/cc/LockCC.d.ts.map +0 -1
  701. package/build/cc/LockCC.js +0 -200
  702. package/build/cc/LockCC.js.map +0 -1
  703. package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
  704. package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
  705. package/build/cc/ManufacturerProprietaryCC.js +0 -204
  706. package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
  707. package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
  708. package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
  709. package/build/cc/ManufacturerSpecificCC.js +0 -318
  710. package/build/cc/ManufacturerSpecificCC.js.map +0 -1
  711. package/build/cc/MeterCC.d.ts +0 -318
  712. package/build/cc/MeterCC.d.ts.map +0 -1
  713. package/build/cc/MeterCC.js +0 -1312
  714. package/build/cc/MeterCC.js.map +0 -1
  715. package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
  716. package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
  717. package/build/cc/MultiChannelAssociationCC.js +0 -1007
  718. package/build/cc/MultiChannelAssociationCC.js.map +0 -1
  719. package/build/cc/MultiChannelCC.d.ts +0 -394
  720. package/build/cc/MultiChannelCC.d.ts.map +0 -1
  721. package/build/cc/MultiChannelCC.js +0 -1130
  722. package/build/cc/MultiChannelCC.js.map +0 -1
  723. package/build/cc/MultiCommandCC.d.ts +0 -27
  724. package/build/cc/MultiCommandCC.d.ts.map +0 -1
  725. package/build/cc/MultiCommandCC.js +0 -145
  726. package/build/cc/MultiCommandCC.js.map +0 -1
  727. package/build/cc/MultilevelSensorCC.d.ts +0 -185
  728. package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
  729. package/build/cc/MultilevelSensorCC.js +0 -756
  730. package/build/cc/MultilevelSensorCC.js.map +0 -1
  731. package/build/cc/MultilevelSwitchCC.d.ts +0 -357
  732. package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
  733. package/build/cc/MultilevelSwitchCC.js +0 -813
  734. package/build/cc/MultilevelSwitchCC.js.map +0 -1
  735. package/build/cc/NoOperationCC.d.ts +0 -9
  736. package/build/cc/NoOperationCC.d.ts.map +0 -1
  737. package/build/cc/NoOperationCC.js +0 -42
  738. package/build/cc/NoOperationCC.js.map +0 -1
  739. package/build/cc/NodeNamingCC.d.ts +0 -118
  740. package/build/cc/NodeNamingCC.d.ts.map +0 -1
  741. package/build/cc/NodeNamingCC.js +0 -348
  742. package/build/cc/NodeNamingCC.js.map +0 -1
  743. package/build/cc/NotificationCC.d.ts +0 -479
  744. package/build/cc/NotificationCC.d.ts.map +0 -1
  745. package/build/cc/NotificationCC.js +0 -1379
  746. package/build/cc/NotificationCC.js.map +0 -1
  747. package/build/cc/PowerlevelCC.d.ts +0 -82
  748. package/build/cc/PowerlevelCC.d.ts.map +0 -1
  749. package/build/cc/PowerlevelCC.js +0 -488
  750. package/build/cc/PowerlevelCC.js.map +0 -1
  751. package/build/cc/ProtectionCC.d.ts +0 -325
  752. package/build/cc/ProtectionCC.d.ts.map +0 -1
  753. package/build/cc/ProtectionCC.js +0 -672
  754. package/build/cc/ProtectionCC.js.map +0 -1
  755. package/build/cc/SceneActivationCC.d.ts +0 -89
  756. package/build/cc/SceneActivationCC.d.ts.map +0 -1
  757. package/build/cc/SceneActivationCC.js +0 -169
  758. package/build/cc/SceneActivationCC.js.map +0 -1
  759. package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
  760. package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
  761. package/build/cc/SceneActuatorConfigurationCC.js +0 -377
  762. package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
  763. package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
  764. package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
  765. package/build/cc/SceneControllerConfigurationCC.js +0 -449
  766. package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
  767. package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
  768. package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
  769. package/build/cc/ScheduleEntryLockCC.js +0 -1829
  770. package/build/cc/ScheduleEntryLockCC.js.map +0 -1
  771. package/build/cc/Security2CC.d.ts +0 -251
  772. package/build/cc/Security2CC.d.ts.map +0 -1
  773. package/build/cc/Security2CC.js +0 -1817
  774. package/build/cc/Security2CC.js.map +0 -1
  775. package/build/cc/SecurityCC.d.ts +0 -128
  776. package/build/cc/SecurityCC.d.ts.map +0 -1
  777. package/build/cc/SecurityCC.js +0 -803
  778. package/build/cc/SecurityCC.js.map +0 -1
  779. package/build/cc/SoundSwitchCC.d.ts +0 -232
  780. package/build/cc/SoundSwitchCC.d.ts.map +0 -1
  781. package/build/cc/SoundSwitchCC.js +0 -636
  782. package/build/cc/SoundSwitchCC.js.map +0 -1
  783. package/build/cc/SupervisionCC.d.ts +0 -104
  784. package/build/cc/SupervisionCC.d.ts.map +0 -1
  785. package/build/cc/SupervisionCC.js +0 -322
  786. package/build/cc/SupervisionCC.js.map +0 -1
  787. package/build/cc/ThermostatFanModeCC.d.ts +0 -141
  788. package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
  789. package/build/cc/ThermostatFanModeCC.js +0 -362
  790. package/build/cc/ThermostatFanModeCC.js.map +0 -1
  791. package/build/cc/ThermostatFanStateCC.d.ts +0 -60
  792. package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
  793. package/build/cc/ThermostatFanStateCC.js +0 -142
  794. package/build/cc/ThermostatFanStateCC.js.map +0 -1
  795. package/build/cc/ThermostatModeCC.d.ts +0 -150
  796. package/build/cc/ThermostatModeCC.d.ts.map +0 -1
  797. package/build/cc/ThermostatModeCC.js +0 -429
  798. package/build/cc/ThermostatModeCC.js.map +0 -1
  799. package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
  800. package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
  801. package/build/cc/ThermostatOperatingStateCC.js +0 -138
  802. package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
  803. package/build/cc/ThermostatSetbackCC.d.ts +0 -46
  804. package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
  805. package/build/cc/ThermostatSetbackCC.js +0 -247
  806. package/build/cc/ThermostatSetbackCC.js.map +0 -1
  807. package/build/cc/ThermostatSetpointCC.d.ts +0 -197
  808. package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
  809. package/build/cc/ThermostatSetpointCC.js +0 -658
  810. package/build/cc/ThermostatSetpointCC.js.map +0 -1
  811. package/build/cc/TimeCC.d.ts +0 -88
  812. package/build/cc/TimeCC.d.ts.map +0 -1
  813. package/build/cc/TimeCC.js +0 -454
  814. package/build/cc/TimeCC.js.map +0 -1
  815. package/build/cc/TimeParametersCC.d.ts +0 -72
  816. package/build/cc/TimeParametersCC.d.ts.map +0 -1
  817. package/build/cc/TimeParametersCC.js +0 -303
  818. package/build/cc/TimeParametersCC.js.map +0 -1
  819. package/build/cc/TransportServiceCC.d.ts +0 -107
  820. package/build/cc/TransportServiceCC.d.ts.map +0 -1
  821. package/build/cc/TransportServiceCC.js +0 -426
  822. package/build/cc/TransportServiceCC.js.map +0 -1
  823. package/build/cc/UserCodeCC.d.ts +0 -683
  824. package/build/cc/UserCodeCC.d.ts.map +0 -1
  825. package/build/cc/UserCodeCC.js +0 -1699
  826. package/build/cc/UserCodeCC.js.map +0 -1
  827. package/build/cc/VersionCC.d.ts +0 -469
  828. package/build/cc/VersionCC.d.ts.map +0 -1
  829. package/build/cc/VersionCC.js +0 -865
  830. package/build/cc/VersionCC.js.map +0 -1
  831. package/build/cc/WakeUpCC.d.ts +0 -150
  832. package/build/cc/WakeUpCC.d.ts.map +0 -1
  833. package/build/cc/WakeUpCC.js +0 -441
  834. package/build/cc/WakeUpCC.js.map +0 -1
  835. package/build/cc/WindowCoveringCC.d.ts +0 -315
  836. package/build/cc/WindowCoveringCC.d.ts.map +0 -1
  837. package/build/cc/WindowCoveringCC.js +0 -783
  838. package/build/cc/WindowCoveringCC.js.map +0 -1
  839. package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
  840. package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
  841. package/build/cc/ZWaveLongRangeCC.js +0 -20
  842. package/build/cc/ZWaveLongRangeCC.js.map +0 -1
  843. package/build/cc/ZWavePlusCC.d.ts +0 -163
  844. package/build/cc/ZWavePlusCC.d.ts.map +0 -1
  845. package/build/cc/ZWavePlusCC.js +0 -270
  846. package/build/cc/ZWavePlusCC.js.map +0 -1
  847. package/build/cc/ZWaveProtocolCC.d.ts +0 -344
  848. package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
  849. package/build/cc/ZWaveProtocolCC.js +0 -1033
  850. package/build/cc/ZWaveProtocolCC.js.map +0 -1
  851. package/build/cc/index.d.ts +0 -132
  852. package/build/cc/index.d.ts.map +0 -1
  853. package/build/cc/index.js +0 -627
  854. package/build/cc/index.js.map +0 -1
  855. package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
  856. package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
  857. package/build/cc/manufacturerProprietary/Decorators.js +0 -83
  858. package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
  859. package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
  860. package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
  861. package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
  862. package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
  863. package/build/index.d.ts +0 -15
  864. package/build/index.d.ts.map +0 -1
  865. package/build/index.js +0 -52
  866. package/build/index.js.map +0 -1
  867. package/build/index_safe.d.ts +0 -3
  868. package/build/index_safe.d.ts.map +0 -1
  869. package/build/index_safe.js +0 -20
  870. package/build/index_safe.js.map +0 -1
  871. package/build/lib/API.d.ts +0 -271
  872. package/build/lib/API.d.ts.map +0 -1
  873. package/build/lib/API.js +0 -458
  874. package/build/lib/API.js.map +0 -1
  875. package/build/lib/CommandClass.d.ts +0 -234
  876. package/build/lib/CommandClass.d.ts.map +0 -1
  877. package/build/lib/CommandClass.js +0 -788
  878. package/build/lib/CommandClass.js.map +0 -1
  879. package/build/lib/CommandClassDecorators.d.ts +0 -112
  880. package/build/lib/CommandClassDecorators.d.ts.map +0 -1
  881. package/build/lib/CommandClassDecorators.js +0 -243
  882. package/build/lib/CommandClassDecorators.js.map +0 -1
  883. package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
  884. package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
  885. package/build/lib/EncapsulatingCommandClass.js +0 -61
  886. package/build/lib/EncapsulatingCommandClass.js.map +0 -1
  887. package/build/lib/ICommandClassContainer.d.ts.map +0 -1
  888. package/build/lib/ICommandClassContainer.js +0 -3
  889. package/build/lib/ICommandClassContainer.js.map +0 -1
  890. package/build/lib/NotificationEventPayload.d.ts +0 -10
  891. package/build/lib/NotificationEventPayload.d.ts.map +0 -1
  892. package/build/lib/NotificationEventPayload.js +0 -10
  893. package/build/lib/NotificationEventPayload.js.map +0 -1
  894. package/build/lib/Security2/Extension.d.ts.map +0 -1
  895. package/build/lib/Security2/Extension.js +0 -303
  896. package/build/lib/Security2/Extension.js.map +0 -1
  897. package/build/lib/Security2/shared.d.ts.map +0 -1
  898. package/build/lib/Security2/shared.js +0 -43
  899. package/build/lib/Security2/shared.js.map +0 -1
  900. package/build/lib/SetValueResult.d.ts.map +0 -1
  901. package/build/lib/SetValueResult.js +0 -60
  902. package/build/lib/SetValueResult.js.map +0 -1
  903. package/build/lib/Values.d.ts +0 -223
  904. package/build/lib/Values.d.ts.map +0 -1
  905. package/build/lib/Values.js +0 -172
  906. package/build/lib/Values.js.map +0 -1
  907. package/build/lib/_Types.d.ts.map +0 -1
  908. package/build/lib/_Types.js +0 -1443
  909. package/build/lib/_Types.js.map +0 -1
  910. package/build/lib/serializers.d.ts +0 -34
  911. package/build/lib/serializers.d.ts.map +0 -1
  912. package/build/lib/serializers.js +0 -107
  913. package/build/lib/serializers.js.map +0 -1
  914. package/build/lib/utils.d.ts +0 -17
  915. package/build/lib/utils.d.ts.map +0 -1
  916. package/build/lib/utils.js +0 -860
  917. package/build/lib/utils.js.map +0 -1
  918. /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
  919. /package/build/{lib → cjs/lib}/Security2/Extension.d.ts +0 -0
  920. /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
  921. /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
  922. /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
@@ -0,0 +1,956 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var MultiChannelAssociationCC_exports = {};
30
+ __export(MultiChannelAssociationCC_exports, {
31
+ MultiChannelAssociationCC: () => MultiChannelAssociationCC,
32
+ MultiChannelAssociationCCAPI: () => MultiChannelAssociationCCAPI,
33
+ MultiChannelAssociationCCGet: () => MultiChannelAssociationCCGet,
34
+ MultiChannelAssociationCCRemove: () => MultiChannelAssociationCCRemove,
35
+ MultiChannelAssociationCCReport: () => MultiChannelAssociationCCReport,
36
+ MultiChannelAssociationCCSet: () => MultiChannelAssociationCCSet,
37
+ MultiChannelAssociationCCSupportedGroupingsGet: () => MultiChannelAssociationCCSupportedGroupingsGet,
38
+ MultiChannelAssociationCCSupportedGroupingsReport: () => MultiChannelAssociationCCSupportedGroupingsReport,
39
+ MultiChannelAssociationCCValues: () => MultiChannelAssociationCCValues
40
+ });
41
+ module.exports = __toCommonJS(MultiChannelAssociationCC_exports);
42
+ var import_safe = require("@zwave-js/core/safe");
43
+ var import_safe2 = require("@zwave-js/shared/safe");
44
+ var import_safe3 = require("@zwave-js/shared/safe");
45
+ var import_API = require("../lib/API.js");
46
+ var import_CommandClass = require("../lib/CommandClass.js");
47
+ var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
48
+ var import_Values = require("../lib/Values.js");
49
+ var import_Types = require("../lib/_Types.js");
50
+ var ccUtils = __toESM(require("../lib/utils.js"), 1);
51
+ var import_AssociationCC = require("./AssociationCC.js");
52
+ var __decorate = function(decorators, target, key, desc) {
53
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
54
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
55
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
57
+ };
58
+ var MultiChannelAssociationCCSet_1, MultiChannelAssociationCCRemove_1, MultiChannelAssociationCCReport_1, MultiChannelAssociationCCGet_1, MultiChannelAssociationCCSupportedGroupingsReport_1;
59
+ function __assertType(argName, typeName, boundHasError) {
60
+ const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
61
+ if (boundHasError()) {
62
+ throw new ZWaveError2(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes2.Argument_Invalid);
63
+ }
64
+ }
65
+ const __assertType__number = ($o) => {
66
+ function _number($o2) {
67
+ return typeof $o2 !== "number" ? {} : null;
68
+ }
69
+ return _number($o);
70
+ };
71
+ const __assertType__MultiChannelAssociationCCReportOptions = ($o) => {
72
+ function _number($o2) {
73
+ return typeof $o2 !== "number" ? {} : null;
74
+ }
75
+ function sa__number_ea_3($o2) {
76
+ if (!Array.isArray($o2))
77
+ return {};
78
+ for (let i = 0; i < $o2.length; i++) {
79
+ const error = _number($o2[i]);
80
+ if (error)
81
+ return error;
82
+ }
83
+ return null;
84
+ }
85
+ function su__number_sa__number_ea_3_3_3_eu($o2) {
86
+ const conditions = [_number, sa__number_ea_3];
87
+ for (const condition of conditions) {
88
+ const error = condition($o2);
89
+ if (!error)
90
+ return null;
91
+ }
92
+ return {};
93
+ }
94
+ function _4($o2) {
95
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
96
+ return {};
97
+ if ("nodeId" in $o2 && $o2["nodeId"] !== void 0) {
98
+ const error = _number($o2["nodeId"]);
99
+ if (error)
100
+ return error;
101
+ } else
102
+ return {};
103
+ if ("endpoint" in $o2 && $o2["endpoint"] !== void 0) {
104
+ const error = su__number_sa__number_ea_3_3_3_eu($o2["endpoint"]);
105
+ if (error)
106
+ return error;
107
+ } else
108
+ return {};
109
+ return null;
110
+ }
111
+ function sa__4_ea_4($o2) {
112
+ if (!Array.isArray($o2))
113
+ return {};
114
+ for (let i = 0; i < $o2.length; i++) {
115
+ const error = _4($o2[i]);
116
+ if (error)
117
+ return error;
118
+ }
119
+ return null;
120
+ }
121
+ function _0($o2) {
122
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
123
+ return {};
124
+ if ("groupId" in $o2 && $o2["groupId"] !== void 0) {
125
+ const error = _number($o2["groupId"]);
126
+ if (error)
127
+ return error;
128
+ } else
129
+ return {};
130
+ if ("maxNodes" in $o2 && $o2["maxNodes"] !== void 0) {
131
+ const error = _number($o2["maxNodes"]);
132
+ if (error)
133
+ return error;
134
+ } else
135
+ return {};
136
+ if ("nodeIds" in $o2 && $o2["nodeIds"] !== void 0) {
137
+ const error = sa__number_ea_3($o2["nodeIds"]);
138
+ if (error)
139
+ return error;
140
+ } else
141
+ return {};
142
+ if ("endpoints" in $o2 && $o2["endpoints"] !== void 0) {
143
+ const error = sa__4_ea_4($o2["endpoints"]);
144
+ if (error)
145
+ return error;
146
+ } else
147
+ return {};
148
+ if ("reportsToFollow" in $o2 && $o2["reportsToFollow"] !== void 0) {
149
+ const error = _number($o2["reportsToFollow"]);
150
+ if (error)
151
+ return error;
152
+ } else
153
+ return {};
154
+ return null;
155
+ }
156
+ return _0($o);
157
+ };
158
+ const __assertType__MultiChannelAssociationCCSetOptions = ($o) => {
159
+ function _number($o2) {
160
+ return typeof $o2 !== "number" ? {} : null;
161
+ }
162
+ function _2($o2) {
163
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
164
+ return {};
165
+ if ("groupId" in $o2 && $o2["groupId"] !== void 0) {
166
+ const error = _number($o2["groupId"]);
167
+ if (error)
168
+ return error;
169
+ } else
170
+ return {};
171
+ return null;
172
+ }
173
+ function sa__number_ea_10($o2) {
174
+ if (!Array.isArray($o2))
175
+ return {};
176
+ for (let i = 0; i < $o2.length; i++) {
177
+ const error = _number($o2[i]);
178
+ if (error)
179
+ return error;
180
+ }
181
+ return null;
182
+ }
183
+ function _3($o2) {
184
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
185
+ return {};
186
+ if ("nodeIds" in $o2 && $o2["nodeIds"] !== void 0) {
187
+ const error = sa__number_ea_10($o2["nodeIds"]);
188
+ if (error)
189
+ return error;
190
+ } else
191
+ return {};
192
+ return null;
193
+ }
194
+ function si__2__3_ei($o2) {
195
+ const conditions = [_2, _3];
196
+ for (const condition of conditions) {
197
+ const error = condition($o2);
198
+ if (error)
199
+ return error;
200
+ }
201
+ return null;
202
+ }
203
+ function su__number_sa__number_ea_10_10_10_eu($o2) {
204
+ const conditions = [_number, sa__number_ea_10];
205
+ for (const condition of conditions) {
206
+ const error = condition($o2);
207
+ if (!error)
208
+ return null;
209
+ }
210
+ return {};
211
+ }
212
+ function _11($o2) {
213
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
214
+ return {};
215
+ if ("nodeId" in $o2 && $o2["nodeId"] !== void 0) {
216
+ const error = _number($o2["nodeId"]);
217
+ if (error)
218
+ return error;
219
+ } else
220
+ return {};
221
+ if ("endpoint" in $o2 && $o2["endpoint"] !== void 0) {
222
+ const error = su__number_sa__number_ea_10_10_10_eu($o2["endpoint"]);
223
+ if (error)
224
+ return error;
225
+ } else
226
+ return {};
227
+ return null;
228
+ }
229
+ function sa__11_ea_11($o2) {
230
+ if (!Array.isArray($o2))
231
+ return {};
232
+ for (let i = 0; i < $o2.length; i++) {
233
+ const error = _11($o2[i]);
234
+ if (error)
235
+ return error;
236
+ }
237
+ return null;
238
+ }
239
+ function _5($o2) {
240
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
241
+ return {};
242
+ if ("endpoints" in $o2 && $o2["endpoints"] !== void 0) {
243
+ const error = sa__11_ea_11($o2["endpoints"]);
244
+ if (error)
245
+ return error;
246
+ } else
247
+ return {};
248
+ return null;
249
+ }
250
+ function si__2__5_ei($o2) {
251
+ const conditions = [_2, _5];
252
+ for (const condition of conditions) {
253
+ const error = condition($o2);
254
+ if (error)
255
+ return error;
256
+ }
257
+ return null;
258
+ }
259
+ function _7($o2) {
260
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
261
+ return {};
262
+ if ("nodeIds" in $o2 && $o2["nodeIds"] !== void 0) {
263
+ const error = sa__number_ea_10($o2["nodeIds"]);
264
+ if (error)
265
+ return error;
266
+ } else
267
+ return {};
268
+ if ("endpoints" in $o2 && $o2["endpoints"] !== void 0) {
269
+ const error = sa__11_ea_11($o2["endpoints"]);
270
+ if (error)
271
+ return error;
272
+ } else
273
+ return {};
274
+ return null;
275
+ }
276
+ function si__2__7_ei($o2) {
277
+ const conditions = [_2, _7];
278
+ for (const condition of conditions) {
279
+ const error = condition($o2);
280
+ if (error)
281
+ return error;
282
+ }
283
+ return null;
284
+ }
285
+ function su_si__2__3_ei_si__2__5_ei_si__2__7_ei_eu($o2) {
286
+ const conditions = [si__2__3_ei, si__2__5_ei, si__2__7_ei];
287
+ for (const condition of conditions) {
288
+ const error = condition($o2);
289
+ if (!error)
290
+ return null;
291
+ }
292
+ return {};
293
+ }
294
+ return su_si__2__3_ei_si__2__5_ei_si__2__7_ei_eu($o);
295
+ };
296
+ const __assertType__MultiChannelAssociationCCRemoveOptions = ($o) => {
297
+ function _number($o2) {
298
+ return typeof $o2 !== "number" ? {} : null;
299
+ }
300
+ function sa__number_ea_3($o2) {
301
+ if (!Array.isArray($o2))
302
+ return {};
303
+ for (let i = 0; i < $o2.length; i++) {
304
+ const error = _number($o2[i]);
305
+ if (error)
306
+ return error;
307
+ }
308
+ return null;
309
+ }
310
+ function su__number_sa__number_ea_3_3_3_eu($o2) {
311
+ const conditions = [_number, sa__number_ea_3];
312
+ for (const condition of conditions) {
313
+ const error = condition($o2);
314
+ if (!error)
315
+ return null;
316
+ }
317
+ return {};
318
+ }
319
+ function _4($o2) {
320
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
321
+ return {};
322
+ if ("nodeId" in $o2 && $o2["nodeId"] !== void 0) {
323
+ const error = _number($o2["nodeId"]);
324
+ if (error)
325
+ return error;
326
+ } else
327
+ return {};
328
+ if ("endpoint" in $o2 && $o2["endpoint"] !== void 0) {
329
+ const error = su__number_sa__number_ea_3_3_3_eu($o2["endpoint"]);
330
+ if (error)
331
+ return error;
332
+ } else
333
+ return {};
334
+ return null;
335
+ }
336
+ function sa__4_ea_4($o2) {
337
+ if (!Array.isArray($o2))
338
+ return {};
339
+ for (let i = 0; i < $o2.length; i++) {
340
+ const error = _4($o2[i]);
341
+ if (error)
342
+ return error;
343
+ }
344
+ return null;
345
+ }
346
+ function _0($o2) {
347
+ if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
348
+ return {};
349
+ if ("groupId" in $o2 && $o2["groupId"] !== void 0) {
350
+ const error = _number($o2["groupId"]);
351
+ if (error)
352
+ return error;
353
+ }
354
+ if ("nodeIds" in $o2 && $o2["nodeIds"] !== void 0) {
355
+ const error = sa__number_ea_3($o2["nodeIds"]);
356
+ if (error)
357
+ return error;
358
+ }
359
+ if ("endpoints" in $o2 && $o2["endpoints"] !== void 0) {
360
+ const error = sa__4_ea_4($o2["endpoints"]);
361
+ if (error)
362
+ return error;
363
+ }
364
+ return null;
365
+ }
366
+ return _0($o);
367
+ };
368
+ const MultiChannelAssociationCCValues = Object.freeze({
369
+ ...import_Values.V.defineStaticCCValues(import_safe.CommandClasses["Multi Channel Association"], {
370
+ // number multi channel association groups
371
+ ...import_Values.V.staticProperty("groupCount", void 0, { internal: true })
372
+ }),
373
+ ...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses["Multi Channel Association"], {
374
+ // maximum number of nodes of a multi channel association group
375
+ ...import_Values.V.dynamicPropertyAndKeyWithName("maxNodes", "maxNodes", (groupId) => groupId, ({ property, propertyKey }) => property === "maxNodes" && typeof propertyKey === "number", void 0, { internal: true }),
376
+ // node IDs of a multi channel association group
377
+ ...import_Values.V.dynamicPropertyAndKeyWithName("nodeIds", "nodeIds", (groupId) => groupId, ({ property, propertyKey }) => property === "nodeIds" && typeof propertyKey === "number", void 0, { internal: true }),
378
+ // Endpoint addresses of a multi channel association group
379
+ ...import_Values.V.dynamicPropertyAndKeyWithName("endpoints", "endpoints", (groupId) => groupId, ({ property, propertyKey }) => property === "endpoints" && typeof propertyKey === "number", void 0, { internal: true })
380
+ })
381
+ });
382
+ function endpointAddressesToString(endpoints) {
383
+ return endpoints.map(({ nodeId, endpoint }) => {
384
+ if (typeof endpoint === "number") {
385
+ return `${nodeId}:${endpoint}`;
386
+ } else {
387
+ return `${nodeId}:[${endpoint.map(String).join(", ")}]`;
388
+ }
389
+ }).join(", ");
390
+ }
391
+ const MULTI_CHANNEL_ASSOCIATION_MARKER = 0;
392
+ function serializeMultiChannelAssociationDestination(nodeIds, endpoints) {
393
+ const nodeAddressBytes = nodeIds.length;
394
+ const endpointAddressBytes = endpoints.length * 2;
395
+ const payload = new import_safe2.Bytes(
396
+ // node addresses
397
+ nodeAddressBytes + (endpointAddressBytes > 0 ? 1 : 0) + endpointAddressBytes
398
+ );
399
+ for (let i = 0; i < nodeIds.length; i++) {
400
+ payload[i] = nodeIds[i];
401
+ }
402
+ if (endpointAddressBytes > 0) {
403
+ let offset = nodeIds.length;
404
+ payload[offset] = MULTI_CHANNEL_ASSOCIATION_MARKER;
405
+ offset += 1;
406
+ for (let i = 0; i < endpoints.length; i++) {
407
+ const endpoint = endpoints[i];
408
+ const destination = typeof endpoint.endpoint === "number" ? endpoint.endpoint & 127 : (0, import_safe.encodeBitMask)(endpoint.endpoint, 7)[0] | 128;
409
+ payload[offset + 2 * i] = endpoint.nodeId;
410
+ payload[offset + 2 * i + 1] = destination;
411
+ }
412
+ }
413
+ return payload;
414
+ }
415
+ function deserializeMultiChannelAssociationDestination(data) {
416
+ const nodeIds = [];
417
+ let endpointOffset = data.length;
418
+ for (let i = 0; i < data.length; i++) {
419
+ if (data[i] === MULTI_CHANNEL_ASSOCIATION_MARKER) {
420
+ endpointOffset = i + 1;
421
+ break;
422
+ }
423
+ nodeIds.push(data[i]);
424
+ }
425
+ const endpoints = [];
426
+ for (let i = endpointOffset; i < data.length; i += 2) {
427
+ const nodeId = data[i];
428
+ const isBitMask = !!(data[i + 1] & 128);
429
+ const destination = data[i + 1] & 127;
430
+ const endpoint = isBitMask ? (0, import_safe.parseBitMask)(import_safe2.Bytes.from([destination])) : destination;
431
+ endpoints.push({ nodeId, endpoint });
432
+ }
433
+ return { nodeIds, endpoints };
434
+ }
435
+ let MultiChannelAssociationCCAPI = class MultiChannelAssociationCCAPI2 extends import_API.PhysicalCCAPI {
436
+ supportsCommand(cmd) {
437
+ switch (cmd) {
438
+ case import_Types.MultiChannelAssociationCommand.Get:
439
+ case import_Types.MultiChannelAssociationCommand.Set:
440
+ case import_Types.MultiChannelAssociationCommand.Report:
441
+ case import_Types.MultiChannelAssociationCommand.Remove:
442
+ case import_Types.MultiChannelAssociationCommand.SupportedGroupingsGet:
443
+ case import_Types.MultiChannelAssociationCommand.SupportedGroupingsReport:
444
+ return true;
445
+ }
446
+ return super.supportsCommand(cmd);
447
+ }
448
+ /**
449
+ * Returns the number of association groups a node supports.
450
+ * Association groups are consecutive, starting at 1.
451
+ */
452
+ async getGroupCount() {
453
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.SupportedGroupingsGet);
454
+ const cc = new MultiChannelAssociationCCSupportedGroupingsGet({
455
+ nodeId: this.endpoint.nodeId,
456
+ endpointIndex: this.endpoint.index
457
+ });
458
+ const response = await this.host.sendCommand(cc, this.commandOptions);
459
+ return response?.groupCount;
460
+ }
461
+ async reportGroupCount(groupCount) {
462
+ __assertType("groupCount", "number", __assertType__number.bind(void 0, groupCount));
463
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.SupportedGroupingsReport);
464
+ const cc = new MultiChannelAssociationCCSupportedGroupingsReport({
465
+ nodeId: this.endpoint.nodeId,
466
+ endpointIndex: this.endpoint.index,
467
+ groupCount
468
+ });
469
+ await this.host.sendCommand(cc, this.commandOptions);
470
+ }
471
+ /**
472
+ * Returns information about an association group.
473
+ */
474
+ async getGroup(groupId) {
475
+ __assertType("groupId", "number", __assertType__number.bind(void 0, groupId));
476
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.Get);
477
+ const cc = new MultiChannelAssociationCCGet({
478
+ nodeId: this.endpoint.nodeId,
479
+ endpointIndex: this.endpoint.index,
480
+ groupId
481
+ });
482
+ const response = await this.host.sendCommand(cc, this.commandOptions);
483
+ if (response) {
484
+ return (0, import_safe3.pick)(response, ["maxNodes", "nodeIds", "endpoints"]);
485
+ }
486
+ }
487
+ async sendReport(options) {
488
+ __assertType("options", "MultiChannelAssociationCCReportOptions", __assertType__MultiChannelAssociationCCReportOptions.bind(void 0, options));
489
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.Report);
490
+ const cc = new MultiChannelAssociationCCReport({
491
+ nodeId: this.endpoint.nodeId,
492
+ endpointIndex: this.endpoint.index,
493
+ ...options
494
+ });
495
+ await this.host.sendCommand(cc, this.commandOptions);
496
+ }
497
+ /**
498
+ * Adds new nodes or endpoints to an association group
499
+ */
500
+ async addDestinations(options) {
501
+ __assertType("options", "MultiChannelAssociationCCSetOptions", __assertType__MultiChannelAssociationCCSetOptions.bind(void 0, options));
502
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.Set);
503
+ const cc = new MultiChannelAssociationCCSet({
504
+ nodeId: this.endpoint.nodeId,
505
+ endpointIndex: this.endpoint.index,
506
+ ...options
507
+ });
508
+ return this.host.sendCommand(cc, this.commandOptions);
509
+ }
510
+ /**
511
+ * Removes nodes or endpoints from an association group
512
+ */
513
+ async removeDestinations(options) {
514
+ __assertType("options", "MultiChannelAssociationCCRemoveOptions", __assertType__MultiChannelAssociationCCRemoveOptions.bind(void 0, options));
515
+ this.assertSupportsCommand(import_Types.MultiChannelAssociationCommand, import_Types.MultiChannelAssociationCommand.Remove);
516
+ if (!options.groupId && this.version === 1) {
517
+ const currentDestinations = MultiChannelAssociationCC.getAllDestinationsCached(this.host, this.endpoint);
518
+ for (const [group, destinations] of currentDestinations) {
519
+ const cc = new MultiChannelAssociationCCRemove({
520
+ nodeId: this.endpoint.nodeId,
521
+ endpointIndex: this.endpoint.index,
522
+ groupId: group,
523
+ nodeIds: destinations.filter((d) => d.endpoint != void 0).map((d) => d.nodeId),
524
+ endpoints: destinations.filter((d) => d.endpoint != void 0)
525
+ });
526
+ await this.host.sendCommand(cc, this.commandOptions);
527
+ }
528
+ } else if (options.groupId && options.groupId < 0) {
529
+ throw new import_safe.ZWaveError("The group id must not be negative!", import_safe.ZWaveErrorCodes.Argument_Invalid);
530
+ } else {
531
+ const cc = new MultiChannelAssociationCCRemove({
532
+ nodeId: this.endpoint.nodeId,
533
+ endpointIndex: this.endpoint.index,
534
+ ...options
535
+ });
536
+ return this.host.sendCommand(cc, this.commandOptions);
537
+ }
538
+ }
539
+ };
540
+ MultiChannelAssociationCCAPI = __decorate([
541
+ (0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Multi Channel Association"])
542
+ ], MultiChannelAssociationCCAPI);
543
+ let MultiChannelAssociationCC = class MultiChannelAssociationCC2 extends import_CommandClass.CommandClass {
544
+ determineRequiredCCInterviews() {
545
+ return [
546
+ ...super.determineRequiredCCInterviews(),
547
+ import_safe.CommandClasses["Z-Wave Plus Info"],
548
+ // We need information about endpoints to correctly configure the lifeline associations
549
+ import_safe.CommandClasses["Multi Channel"],
550
+ // AssociationCC will short-circuit if this CC is supported
551
+ import_safe.CommandClasses.Association
552
+ ];
553
+ }
554
+ /**
555
+ * Returns the number of association groups reported by the node/endpoint.
556
+ * This only works AFTER the interview process
557
+ */
558
+ static getGroupCountCached(ctx, endpoint) {
559
+ return ctx.getValueDB(endpoint.nodeId).getValue(MultiChannelAssociationCCValues.groupCount.endpoint(endpoint.index)) || 0;
560
+ }
561
+ /**
562
+ * Returns the number of nodes an association group supports.
563
+ * This only works AFTER the interview process
564
+ */
565
+ static getMaxNodesCached(ctx, endpoint, groupId) {
566
+ return ctx.getValueDB(endpoint.nodeId).getValue(MultiChannelAssociationCCValues.maxNodes(groupId).endpoint(endpoint.index)) ?? 0;
567
+ }
568
+ /**
569
+ * Returns all the destinations of all association groups reported by the node/endpoint.
570
+ * This only works AFTER the interview process
571
+ */
572
+ static getAllDestinationsCached(ctx, endpoint) {
573
+ const ret = /* @__PURE__ */ new Map();
574
+ const groupCount = this.getGroupCountCached(ctx, endpoint);
575
+ const valueDB = ctx.getValueDB(endpoint.nodeId);
576
+ for (let i = 1; i <= groupCount; i++) {
577
+ const groupDestinations = [];
578
+ const nodes = valueDB.getValue(MultiChannelAssociationCCValues.nodeIds(i).endpoint(endpoint.index)) ?? [];
579
+ groupDestinations.push(...nodes.map((nodeId) => ({ nodeId })));
580
+ const endpoints = valueDB.getValue(MultiChannelAssociationCCValues.endpoints(i).endpoint(endpoint.index)) ?? [];
581
+ for (const ep of endpoints) {
582
+ if (typeof ep.endpoint === "number") {
583
+ groupDestinations.push({
584
+ nodeId: ep.nodeId,
585
+ endpoint: ep.endpoint
586
+ });
587
+ } else {
588
+ groupDestinations.push(...ep.endpoint.map((e) => ({
589
+ nodeId: ep.nodeId,
590
+ endpoint: e
591
+ })));
592
+ }
593
+ }
594
+ ret.set(
595
+ i,
596
+ // Filter out duplicates
597
+ groupDestinations.filter((addr, index) => index === groupDestinations.findIndex(({ nodeId, endpoint: endpoint2 }) => nodeId === addr.nodeId && endpoint2 === addr.endpoint))
598
+ );
599
+ }
600
+ return ret;
601
+ }
602
+ async interview(ctx) {
603
+ const node = this.getNode(ctx);
604
+ const endpoint = this.getEndpoint(ctx);
605
+ const mcAPI = import_API.CCAPI.create(import_safe.CommandClasses["Multi Channel Association"], ctx, endpoint);
606
+ ctx.logNode(node.id, {
607
+ endpoint: this.endpointIndex,
608
+ message: `Interviewing ${this.ccName}...`,
609
+ direction: "none"
610
+ });
611
+ ctx.logNode(node.id, {
612
+ endpoint: this.endpointIndex,
613
+ message: "querying number of multi channel association groups...",
614
+ direction: "outbound"
615
+ });
616
+ const mcGroupCount = await mcAPI.getGroupCount();
617
+ if (mcGroupCount != void 0) {
618
+ ctx.logNode(node.id, {
619
+ endpoint: this.endpointIndex,
620
+ message: `supports ${mcGroupCount} multi channel association groups`,
621
+ direction: "inbound"
622
+ });
623
+ } else {
624
+ ctx.logNode(node.id, {
625
+ endpoint: this.endpointIndex,
626
+ message: "Querying multi channel association groups timed out, skipping interview...",
627
+ level: "warn"
628
+ });
629
+ return;
630
+ }
631
+ await this.refreshValues(ctx);
632
+ await ccUtils.configureLifelineAssociations(ctx, endpoint);
633
+ this.setInterviewComplete(ctx, true);
634
+ }
635
+ async refreshValues(ctx) {
636
+ const node = this.getNode(ctx);
637
+ const endpoint = this.getEndpoint(ctx);
638
+ const mcAPI = import_API.CCAPI.create(import_safe.CommandClasses["Multi Channel Association"], ctx, endpoint).withOptions({
639
+ priority: import_safe.MessagePriority.NodeQuery
640
+ });
641
+ const assocAPI = import_API.CCAPI.create(import_safe.CommandClasses.Association, ctx, endpoint).withOptions({
642
+ priority: import_safe.MessagePriority.NodeQuery
643
+ });
644
+ const mcGroupCount = this.getValue(ctx, MultiChannelAssociationCCValues.groupCount) ?? 0;
645
+ const assocGroupCount = this.getValue(ctx, import_AssociationCC.AssociationCCValues.groupCount) || mcGroupCount;
646
+ for (let groupId = 1; groupId <= mcGroupCount; groupId++) {
647
+ ctx.logNode(node.id, {
648
+ endpoint: this.endpointIndex,
649
+ message: `querying multi channel association group #${groupId}...`,
650
+ direction: "outbound"
651
+ });
652
+ const group = await mcAPI.getGroup(groupId);
653
+ if (!group)
654
+ continue;
655
+ const logMessage = `received information for multi channel association group #${groupId}:
656
+ maximum # of nodes: ${group.maxNodes}
657
+ currently assigned nodes: ${group.nodeIds.map(String).join(", ")}
658
+ currently assigned endpoints: ${group.endpoints.map(({ nodeId, endpoint: endpoint2 }) => {
659
+ if (typeof endpoint2 === "number") {
660
+ return `${nodeId}:${endpoint2}`;
661
+ } else {
662
+ return `${nodeId}:[${endpoint2.map(String).join(", ")}]`;
663
+ }
664
+ }).join("")}`;
665
+ ctx.logNode(node.id, {
666
+ endpoint: this.endpointIndex,
667
+ message: logMessage,
668
+ direction: "inbound"
669
+ });
670
+ }
671
+ if (assocAPI.isSupported() && assocGroupCount > mcGroupCount) {
672
+ ctx.logNode(node.id, {
673
+ endpoint: this.endpointIndex,
674
+ message: `querying additional non-multi-channel association groups...`,
675
+ direction: "outbound"
676
+ });
677
+ for (let groupId = mcGroupCount + 1; groupId <= assocGroupCount; groupId++) {
678
+ ctx.logNode(node.id, {
679
+ endpoint: this.endpointIndex,
680
+ message: `querying association group #${groupId}...`,
681
+ direction: "outbound"
682
+ });
683
+ const group = await assocAPI.getGroup(groupId);
684
+ if (!group)
685
+ continue;
686
+ const logMessage = `received information for association group #${groupId}:
687
+ maximum # of nodes: ${group.maxNodes}
688
+ currently assigned nodes: ${group.nodeIds.map(String).join(", ")}`;
689
+ ctx.logNode(node.id, {
690
+ endpoint: this.endpointIndex,
691
+ message: logMessage,
692
+ direction: "inbound"
693
+ });
694
+ }
695
+ }
696
+ }
697
+ };
698
+ MultiChannelAssociationCC = __decorate([
699
+ (0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Multi Channel Association"]),
700
+ (0, import_CommandClassDecorators.implementedVersion)(5),
701
+ (0, import_CommandClassDecorators.ccValues)(MultiChannelAssociationCCValues)
702
+ ], MultiChannelAssociationCC);
703
+ let MultiChannelAssociationCCSet = MultiChannelAssociationCCSet_1 = class MultiChannelAssociationCCSet2 extends MultiChannelAssociationCC {
704
+ constructor(options) {
705
+ super(options);
706
+ if (options.groupId < 1) {
707
+ throw new import_safe.ZWaveError("The group id must be positive!", import_safe.ZWaveErrorCodes.Argument_Invalid);
708
+ }
709
+ this.groupId = options.groupId;
710
+ this.nodeIds = "nodeIds" in options && options.nodeIds || [];
711
+ if (this.nodeIds.some((n) => n < 1 || n > import_safe.MAX_NODES)) {
712
+ throw new import_safe.ZWaveError(`All node IDs must be between 1 and ${import_safe.MAX_NODES}!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
713
+ }
714
+ this.endpoints = "endpoints" in options && options.endpoints || [];
715
+ }
716
+ static from(raw, ctx) {
717
+ (0, import_safe.validatePayload)(raw.payload.length >= 1);
718
+ const groupId = raw.payload[0];
719
+ const { nodeIds, endpoints } = deserializeMultiChannelAssociationDestination(raw.payload.subarray(1));
720
+ return new MultiChannelAssociationCCSet_1({
721
+ nodeId: ctx.sourceNodeId,
722
+ groupId,
723
+ nodeIds,
724
+ endpoints
725
+ });
726
+ }
727
+ groupId;
728
+ nodeIds;
729
+ endpoints;
730
+ serialize(ctx) {
731
+ this.payload = import_safe2.Bytes.concat([
732
+ import_safe2.Bytes.from([this.groupId]),
733
+ serializeMultiChannelAssociationDestination(this.nodeIds, this.endpoints)
734
+ ]);
735
+ return super.serialize(ctx);
736
+ }
737
+ toLogEntry(ctx) {
738
+ return {
739
+ ...super.toLogEntry(ctx),
740
+ message: {
741
+ "group id": this.groupId,
742
+ "node ids": this.nodeIds.join(", "),
743
+ endpoints: endpointAddressesToString(this.endpoints)
744
+ }
745
+ };
746
+ }
747
+ };
748
+ MultiChannelAssociationCCSet = MultiChannelAssociationCCSet_1 = __decorate([
749
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.Set),
750
+ (0, import_CommandClassDecorators.useSupervision)()
751
+ ], MultiChannelAssociationCCSet);
752
+ let MultiChannelAssociationCCRemove = MultiChannelAssociationCCRemove_1 = class MultiChannelAssociationCCRemove2 extends MultiChannelAssociationCC {
753
+ constructor(options) {
754
+ super(options);
755
+ this.groupId = options.groupId;
756
+ this.nodeIds = options.nodeIds;
757
+ this.endpoints = options.endpoints;
758
+ }
759
+ static from(raw, ctx) {
760
+ (0, import_safe.validatePayload)(raw.payload.length >= 1);
761
+ const groupId = raw.payload[0];
762
+ const { nodeIds, endpoints } = deserializeMultiChannelAssociationDestination(raw.payload.subarray(1));
763
+ return new MultiChannelAssociationCCRemove_1({
764
+ nodeId: ctx.sourceNodeId,
765
+ groupId,
766
+ nodeIds,
767
+ endpoints
768
+ });
769
+ }
770
+ groupId;
771
+ nodeIds;
772
+ endpoints;
773
+ serialize(ctx) {
774
+ this.payload = import_safe2.Bytes.concat([
775
+ import_safe2.Bytes.from([this.groupId || 0]),
776
+ serializeMultiChannelAssociationDestination(this.nodeIds || [], this.endpoints || [])
777
+ ]);
778
+ return super.serialize(ctx);
779
+ }
780
+ toLogEntry(ctx) {
781
+ const message = {
782
+ "group id": this.groupId || "(all groups)"
783
+ };
784
+ if (this.nodeIds) {
785
+ message["node ids"] = this.nodeIds.join(", ");
786
+ }
787
+ if (this.endpoints) {
788
+ message.endpoints = endpointAddressesToString(this.endpoints);
789
+ }
790
+ return {
791
+ ...super.toLogEntry(ctx),
792
+ message
793
+ };
794
+ }
795
+ };
796
+ MultiChannelAssociationCCRemove = MultiChannelAssociationCCRemove_1 = __decorate([
797
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.Remove),
798
+ (0, import_CommandClassDecorators.useSupervision)()
799
+ ], MultiChannelAssociationCCRemove);
800
+ let MultiChannelAssociationCCReport = MultiChannelAssociationCCReport_1 = class MultiChannelAssociationCCReport2 extends MultiChannelAssociationCC {
801
+ constructor(options) {
802
+ super(options);
803
+ this.groupId = options.groupId;
804
+ this.maxNodes = options.maxNodes;
805
+ this.nodeIds = options.nodeIds;
806
+ this.endpoints = options.endpoints;
807
+ this.reportsToFollow = options.reportsToFollow;
808
+ }
809
+ static from(raw, ctx) {
810
+ (0, import_safe.validatePayload)(raw.payload.length >= 3);
811
+ const groupId = raw.payload[0];
812
+ const maxNodes = raw.payload[1];
813
+ const reportsToFollow = raw.payload[2];
814
+ const { nodeIds, endpoints } = deserializeMultiChannelAssociationDestination(raw.payload.subarray(3));
815
+ return new MultiChannelAssociationCCReport_1({
816
+ nodeId: ctx.sourceNodeId,
817
+ groupId,
818
+ maxNodes,
819
+ nodeIds,
820
+ endpoints,
821
+ reportsToFollow
822
+ });
823
+ }
824
+ groupId;
825
+ maxNodes;
826
+ nodeIds;
827
+ endpoints;
828
+ reportsToFollow;
829
+ getPartialCCSessionId() {
830
+ return { groupId: this.groupId };
831
+ }
832
+ expectMoreMessages() {
833
+ return this.reportsToFollow > 0;
834
+ }
835
+ mergePartialCCs(partials, _ctx) {
836
+ this.nodeIds = [...partials, this].map((report) => [...report.nodeIds]).reduce((prev, cur) => prev.concat(...cur), []);
837
+ this.endpoints = [...partials, this].map((report) => [...report.endpoints]).reduce((prev, cur) => prev.concat(...cur), []);
838
+ }
839
+ serialize(ctx) {
840
+ const destinations = serializeMultiChannelAssociationDestination(this.nodeIds, this.endpoints);
841
+ this.payload = import_safe2.Bytes.concat([
842
+ import_safe2.Bytes.from([
843
+ this.groupId,
844
+ this.maxNodes,
845
+ this.reportsToFollow
846
+ ]),
847
+ destinations
848
+ ]);
849
+ return super.serialize(ctx);
850
+ }
851
+ toLogEntry(ctx) {
852
+ return {
853
+ ...super.toLogEntry(ctx),
854
+ message: {
855
+ "group id": this.groupId,
856
+ "maximum # of nodes": this.maxNodes,
857
+ "node ids": this.nodeIds.join(", "),
858
+ endpoints: endpointAddressesToString(this.endpoints)
859
+ }
860
+ };
861
+ }
862
+ };
863
+ __decorate([
864
+ (0, import_CommandClassDecorators.ccValue)(MultiChannelAssociationCCValues.maxNodes, (self) => [self.groupId])
865
+ ], MultiChannelAssociationCCReport.prototype, "maxNodes", void 0);
866
+ __decorate([
867
+ (0, import_CommandClassDecorators.ccValue)(MultiChannelAssociationCCValues.nodeIds, (self) => [self.groupId])
868
+ ], MultiChannelAssociationCCReport.prototype, "nodeIds", void 0);
869
+ __decorate([
870
+ (0, import_CommandClassDecorators.ccValue)(MultiChannelAssociationCCValues.endpoints, (self) => [self.groupId])
871
+ ], MultiChannelAssociationCCReport.prototype, "endpoints", void 0);
872
+ MultiChannelAssociationCCReport = MultiChannelAssociationCCReport_1 = __decorate([
873
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.Report)
874
+ ], MultiChannelAssociationCCReport);
875
+ let MultiChannelAssociationCCGet = MultiChannelAssociationCCGet_1 = class MultiChannelAssociationCCGet2 extends MultiChannelAssociationCC {
876
+ constructor(options) {
877
+ super(options);
878
+ if (options.groupId < 1) {
879
+ throw new import_safe.ZWaveError("The group id must be positive!", import_safe.ZWaveErrorCodes.Argument_Invalid);
880
+ }
881
+ this.groupId = options.groupId;
882
+ }
883
+ static from(raw, ctx) {
884
+ (0, import_safe.validatePayload)(raw.payload.length >= 1);
885
+ const groupId = raw.payload[0];
886
+ return new MultiChannelAssociationCCGet_1({
887
+ nodeId: ctx.sourceNodeId,
888
+ groupId
889
+ });
890
+ }
891
+ groupId;
892
+ serialize(ctx) {
893
+ this.payload = import_safe2.Bytes.from([this.groupId]);
894
+ return super.serialize(ctx);
895
+ }
896
+ toLogEntry(ctx) {
897
+ return {
898
+ ...super.toLogEntry(ctx),
899
+ message: { "group id": this.groupId }
900
+ };
901
+ }
902
+ };
903
+ MultiChannelAssociationCCGet = MultiChannelAssociationCCGet_1 = __decorate([
904
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.Get),
905
+ (0, import_CommandClassDecorators.expectedCCResponse)(MultiChannelAssociationCCReport)
906
+ ], MultiChannelAssociationCCGet);
907
+ let MultiChannelAssociationCCSupportedGroupingsReport = MultiChannelAssociationCCSupportedGroupingsReport_1 = class MultiChannelAssociationCCSupportedGroupingsReport2 extends MultiChannelAssociationCC {
908
+ constructor(options) {
909
+ super(options);
910
+ this.groupCount = options.groupCount;
911
+ }
912
+ static from(raw, ctx) {
913
+ (0, import_safe.validatePayload)(raw.payload.length >= 1);
914
+ const groupCount = raw.payload[0];
915
+ return new MultiChannelAssociationCCSupportedGroupingsReport_1({
916
+ nodeId: ctx.sourceNodeId,
917
+ groupCount
918
+ });
919
+ }
920
+ groupCount;
921
+ serialize(ctx) {
922
+ this.payload = import_safe2.Bytes.from([this.groupCount]);
923
+ return super.serialize(ctx);
924
+ }
925
+ toLogEntry(ctx) {
926
+ return {
927
+ ...super.toLogEntry(ctx),
928
+ message: { "group count": this.groupCount }
929
+ };
930
+ }
931
+ };
932
+ __decorate([
933
+ (0, import_CommandClassDecorators.ccValue)(MultiChannelAssociationCCValues.groupCount)
934
+ ], MultiChannelAssociationCCSupportedGroupingsReport.prototype, "groupCount", void 0);
935
+ MultiChannelAssociationCCSupportedGroupingsReport = MultiChannelAssociationCCSupportedGroupingsReport_1 = __decorate([
936
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.SupportedGroupingsReport)
937
+ ], MultiChannelAssociationCCSupportedGroupingsReport);
938
+ let MultiChannelAssociationCCSupportedGroupingsGet = class MultiChannelAssociationCCSupportedGroupingsGet2 extends MultiChannelAssociationCC {
939
+ };
940
+ MultiChannelAssociationCCSupportedGroupingsGet = __decorate([
941
+ (0, import_CommandClassDecorators.CCCommand)(import_Types.MultiChannelAssociationCommand.SupportedGroupingsGet),
942
+ (0, import_CommandClassDecorators.expectedCCResponse)(MultiChannelAssociationCCSupportedGroupingsReport)
943
+ ], MultiChannelAssociationCCSupportedGroupingsGet);
944
+ // Annotate the CommonJS export names for ESM import in node:
945
+ 0 && (module.exports = {
946
+ MultiChannelAssociationCC,
947
+ MultiChannelAssociationCCAPI,
948
+ MultiChannelAssociationCCGet,
949
+ MultiChannelAssociationCCRemove,
950
+ MultiChannelAssociationCCReport,
951
+ MultiChannelAssociationCCSet,
952
+ MultiChannelAssociationCCSupportedGroupingsGet,
953
+ MultiChannelAssociationCCSupportedGroupingsReport,
954
+ MultiChannelAssociationCCValues
955
+ });
956
+ //# sourceMappingURL=MultiChannelAssociationCC.js.map