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

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 (331) hide show
  1. package/build/cjs/cc/AlarmSensorCC.js +381 -266
  2. package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
  3. package/build/cjs/cc/AssociationCC.js +669 -503
  4. package/build/cjs/cc/AssociationCC.js.map +3 -3
  5. package/build/cjs/cc/AssociationGroupInfoCC.js +633 -492
  6. package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
  7. package/build/cjs/cc/BarrierOperatorCC.js +595 -429
  8. package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
  9. package/build/cjs/cc/BasicCC.js +354 -260
  10. package/build/cjs/cc/BasicCC.js.map +3 -3
  11. package/build/cjs/cc/BatteryCC.js +427 -345
  12. package/build/cjs/cc/BatteryCC.js.map +3 -3
  13. package/build/cjs/cc/BinarySensorCC.js +391 -276
  14. package/build/cjs/cc/BinarySensorCC.js.map +3 -3
  15. package/build/cjs/cc/BinarySwitchCC.js +347 -253
  16. package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
  17. package/build/cjs/cc/CRC16CC.js +160 -85
  18. package/build/cjs/cc/CRC16CC.js.map +3 -3
  19. package/build/cjs/cc/CentralSceneCC.js +459 -324
  20. package/build/cjs/cc/CentralSceneCC.js.map +3 -3
  21. package/build/cjs/cc/ClimateControlScheduleCC.js +459 -293
  22. package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
  23. package/build/cjs/cc/ClockCC.js +254 -150
  24. package/build/cjs/cc/ClockCC.js.map +3 -3
  25. package/build/cjs/cc/ColorSwitchCC.js +758 -610
  26. package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
  27. package/build/cjs/cc/ConfigurationCC.js +1700 -1453
  28. package/build/cjs/cc/ConfigurationCC.js.map +3 -3
  29. package/build/cjs/cc/DeviceResetLocallyCC.js +125 -49
  30. package/build/cjs/cc/DeviceResetLocallyCC.js.map +3 -3
  31. package/build/cjs/cc/DoorLockCC.js +904 -777
  32. package/build/cjs/cc/DoorLockCC.js.map +3 -3
  33. package/build/cjs/cc/DoorLockLoggingCC.js +321 -206
  34. package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
  35. package/build/cjs/cc/EnergyProductionCC.js +249 -160
  36. package/build/cjs/cc/EnergyProductionCC.js.map +3 -3
  37. package/build/cjs/cc/EntryControlCC.js +619 -458
  38. package/build/cjs/cc/EntryControlCC.js.map +3 -3
  39. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +898 -698
  40. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
  41. package/build/cjs/cc/HailCC.js +57 -11
  42. package/build/cjs/cc/HailCC.js.map +2 -2
  43. package/build/cjs/cc/HumidityControlModeCC.js +359 -233
  44. package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
  45. package/build/cjs/cc/HumidityControlOperatingStateCC.js +189 -103
  46. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
  47. package/build/cjs/cc/HumidityControlSetpointCC.js +682 -495
  48. package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
  49. package/build/cjs/cc/InclusionControllerCC.js +205 -114
  50. package/build/cjs/cc/InclusionControllerCC.js.map +3 -3
  51. package/build/cjs/cc/IndicatorCC.js +897 -736
  52. package/build/cjs/cc/IndicatorCC.js.map +3 -3
  53. package/build/cjs/cc/IrrigationCC.js +1651 -1405
  54. package/build/cjs/cc/IrrigationCC.js.map +3 -3
  55. package/build/cjs/cc/LanguageCC.js +268 -171
  56. package/build/cjs/cc/LanguageCC.js.map +3 -3
  57. package/build/cjs/cc/LockCC.js +254 -154
  58. package/build/cjs/cc/LockCC.js.map +3 -3
  59. package/build/cjs/cc/ManufacturerProprietaryCC.js +189 -129
  60. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  61. package/build/cjs/cc/ManufacturerSpecificCC.js +319 -213
  62. package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
  63. package/build/cjs/cc/MeterCC.js +827 -707
  64. package/build/cjs/cc/MeterCC.js.map +3 -3
  65. package/build/cjs/cc/MultiChannelAssociationCC.js +612 -478
  66. package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
  67. package/build/cjs/cc/MultiChannelCC.js +1037 -819
  68. package/build/cjs/cc/MultiChannelCC.js.map +3 -3
  69. package/build/cjs/cc/MultiCommandCC.js +172 -97
  70. package/build/cjs/cc/MultiCommandCC.js.map +3 -3
  71. package/build/cjs/cc/MultilevelSensorCC.js +589 -449
  72. package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
  73. package/build/cjs/cc/MultilevelSwitchCC.js +587 -439
  74. package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
  75. package/build/cjs/cc/NoOperationCC.js +89 -27
  76. package/build/cjs/cc/NoOperationCC.js.map +2 -2
  77. package/build/cjs/cc/NodeNamingCC.js +417 -277
  78. package/build/cjs/cc/NodeNamingCC.js.map +3 -3
  79. package/build/cjs/cc/NotificationCC.js +972 -818
  80. package/build/cjs/cc/NotificationCC.js.map +3 -3
  81. package/build/cjs/cc/PowerlevelCC.js +450 -303
  82. package/build/cjs/cc/PowerlevelCC.js.map +3 -3
  83. package/build/cjs/cc/ProtectionCC.js +686 -494
  84. package/build/cjs/cc/ProtectionCC.js.map +3 -3
  85. package/build/cjs/cc/SceneActivationCC.js +165 -97
  86. package/build/cjs/cc/SceneActivationCC.js.map +3 -3
  87. package/build/cjs/cc/SceneActuatorConfigurationCC.js +346 -243
  88. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
  89. package/build/cjs/cc/SceneControllerConfigurationCC.js +401 -298
  90. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
  91. package/build/cjs/cc/ScheduleEntryLockCC.js +1552 -1272
  92. package/build/cjs/cc/ScheduleEntryLockCC.js.map +3 -3
  93. package/build/cjs/cc/Security2CC.js +1483 -1219
  94. package/build/cjs/cc/Security2CC.js.map +3 -3
  95. package/build/cjs/cc/SecurityCC.js +839 -619
  96. package/build/cjs/cc/SecurityCC.js.map +3 -3
  97. package/build/cjs/cc/SoundSwitchCC.js +707 -515
  98. package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
  99. package/build/cjs/cc/SupervisionCC.js +327 -237
  100. package/build/cjs/cc/SupervisionCC.js.map +3 -3
  101. package/build/cjs/cc/ThermostatFanModeCC.js +386 -263
  102. package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
  103. package/build/cjs/cc/ThermostatFanStateCC.js +192 -106
  104. package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
  105. package/build/cjs/cc/ThermostatModeCC.js +425 -302
  106. package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
  107. package/build/cjs/cc/ThermostatOperatingStateCC.js +188 -102
  108. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
  109. package/build/cjs/cc/ThermostatSetbackCC.js +277 -173
  110. package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
  111. package/build/cjs/cc/ThermostatSetpointCC.js +645 -491
  112. package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
  113. package/build/cjs/cc/TimeCC.js +515 -353
  114. package/build/cjs/cc/TimeCC.js.map +3 -3
  115. package/build/cjs/cc/TimeParametersCC.js +302 -202
  116. package/build/cjs/cc/TimeParametersCC.js.map +3 -3
  117. package/build/cjs/cc/TransportServiceCC.js +433 -315
  118. package/build/cjs/cc/TransportServiceCC.js.map +3 -3
  119. package/build/cjs/cc/UserCodeCC.js +1385 -1102
  120. package/build/cjs/cc/UserCodeCC.js.map +3 -3
  121. package/build/cjs/cc/VersionCC.js +696 -562
  122. package/build/cjs/cc/VersionCC.js.map +3 -3
  123. package/build/cjs/cc/WakeUpCC.js +499 -346
  124. package/build/cjs/cc/WakeUpCC.js.map +3 -3
  125. package/build/cjs/cc/WindowCoveringCC.js +626 -478
  126. package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
  127. package/build/cjs/cc/ZWaveLongRangeCC.js +57 -10
  128. package/build/cjs/cc/ZWaveLongRangeCC.js.map +2 -2
  129. package/build/cjs/cc/ZWavePlusCC.js +233 -159
  130. package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
  131. package/build/cjs/cc/ZWaveProtocolCC.js +1515 -948
  132. package/build/cjs/cc/ZWaveProtocolCC.js.map +3 -3
  133. package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +4 -4
  134. package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +1 -1
  135. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +395 -274
  136. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +3 -3
  137. package/build/cjs/lib/CommandClassDecorators.d.ts +11 -15
  138. package/build/cjs/lib/CommandClassDecorators.js +19 -20
  139. package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
  140. package/build/cjs/lib/Security2/Extension.d.ts +1 -1
  141. package/build/cjs/lib/Security2/Extension.js +217 -126
  142. package/build/cjs/lib/Security2/Extension.js.map +3 -3
  143. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  144. package/build/esm/cc/AlarmSensorCC.js +389 -291
  145. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  146. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  147. package/build/esm/cc/AssociationCC.js +678 -537
  148. package/build/esm/cc/AssociationCC.js.map +1 -1
  149. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  150. package/build/esm/cc/AssociationGroupInfoCC.js +659 -539
  151. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  152. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  153. package/build/esm/cc/BarrierOperatorCC.js +634 -493
  154. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  155. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  156. package/build/esm/cc/BasicCC.js +380 -302
  157. package/build/esm/cc/BasicCC.js.map +1 -1
  158. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  159. package/build/esm/cc/BatteryCC.js +449 -384
  160. package/build/esm/cc/BatteryCC.js.map +1 -1
  161. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  162. package/build/esm/cc/BinarySensorCC.js +395 -297
  163. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  164. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  165. package/build/esm/cc/BinarySwitchCC.js +353 -274
  166. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  167. package/build/esm/cc/CRC16CC.js +162 -98
  168. package/build/esm/cc/CRC16CC.js.map +1 -1
  169. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  170. package/build/esm/cc/CentralSceneCC.js +465 -351
  171. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  172. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
  173. package/build/esm/cc/ClimateControlScheduleCC.js +454 -313
  174. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  175. package/build/esm/cc/ClockCC.js +248 -159
  176. package/build/esm/cc/ClockCC.js.map +1 -1
  177. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  178. package/build/esm/cc/ColorSwitchCC.js +802 -677
  179. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  180. package/build/esm/cc/ConfigurationCC.js +1899 -1687
  181. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  182. package/build/esm/cc/DeviceResetLocallyCC.js +124 -59
  183. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  184. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  185. package/build/esm/cc/DoorLockCC.js +951 -849
  186. package/build/esm/cc/DoorLockCC.js.map +1 -1
  187. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  188. package/build/esm/cc/DoorLockLoggingCC.js +316 -218
  189. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  190. package/build/esm/cc/EnergyProductionCC.js +240 -164
  191. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  192. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  193. package/build/esm/cc/EntryControlCC.js +629 -493
  194. package/build/esm/cc/EntryControlCC.js.map +1 -1
  195. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  196. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +938 -769
  197. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  198. package/build/esm/cc/HailCC.js +51 -12
  199. package/build/esm/cc/HailCC.js.map +1 -1
  200. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  201. package/build/esm/cc/HumidityControlModeCC.js +357 -250
  202. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  203. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  204. package/build/esm/cc/HumidityControlOperatingStateCC.js +182 -109
  205. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  206. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  207. package/build/esm/cc/HumidityControlSetpointCC.js +706 -546
  208. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  209. package/build/esm/cc/InclusionControllerCC.js +197 -119
  210. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  211. package/build/esm/cc/IndicatorCC.js +973 -835
  212. package/build/esm/cc/IndicatorCC.js.map +1 -1
  213. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  214. package/build/esm/cc/IrrigationCC.js +1697 -1496
  215. package/build/esm/cc/IrrigationCC.js.map +1 -1
  216. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  217. package/build/esm/cc/LanguageCC.js +266 -184
  218. package/build/esm/cc/LanguageCC.js.map +1 -1
  219. package/build/esm/cc/LockCC.d.ts.map +1 -1
  220. package/build/esm/cc/LockCC.js +247 -162
  221. package/build/esm/cc/LockCC.js.map +1 -1
  222. package/build/esm/cc/ManufacturerProprietaryCC.js +192 -141
  223. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  224. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  225. package/build/esm/cc/ManufacturerSpecificCC.js +312 -223
  226. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  227. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  228. package/build/esm/cc/MeterCC.js +896 -795
  229. package/build/esm/cc/MeterCC.js.map +1 -1
  230. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  231. package/build/esm/cc/MultiChannelAssociationCC.js +631 -518
  232. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  233. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  234. package/build/esm/cc/MultiChannelCC.js +1106 -921
  235. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  236. package/build/esm/cc/MultiCommandCC.js +166 -102
  237. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  238. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  239. package/build/esm/cc/MultilevelSensorCC.js +616 -497
  240. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  241. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  242. package/build/esm/cc/MultilevelSwitchCC.js +621 -496
  243. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  244. package/build/esm/cc/NoOperationCC.js +82 -29
  245. package/build/esm/cc/NoOperationCC.js.map +1 -1
  246. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  247. package/build/esm/cc/NodeNamingCC.js +413 -294
  248. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  249. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  250. package/build/esm/cc/NotificationCC.js +1097 -966
  251. package/build/esm/cc/NotificationCC.js.map +1 -1
  252. package/build/esm/cc/PowerlevelCC.js +437 -311
  253. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  254. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  255. package/build/esm/cc/ProtectionCC.js +704 -543
  256. package/build/esm/cc/ProtectionCC.js.map +1 -1
  257. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
  258. package/build/esm/cc/SceneActivationCC.js +157 -100
  259. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  260. package/build/esm/cc/SceneActuatorConfigurationCC.js +357 -269
  261. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  262. package/build/esm/cc/SceneControllerConfigurationCC.js +434 -346
  263. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  264. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  265. package/build/esm/cc/ScheduleEntryLockCC.js +1596 -1357
  266. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  267. package/build/esm/cc/Security2CC.js +1633 -1406
  268. package/build/esm/cc/Security2CC.js.map +1 -1
  269. package/build/esm/cc/SecurityCC.js +876 -687
  270. package/build/esm/cc/SecurityCC.js.map +1 -1
  271. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  272. package/build/esm/cc/SoundSwitchCC.js +689 -526
  273. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  274. package/build/esm/cc/SupervisionCC.js +349 -272
  275. package/build/esm/cc/SupervisionCC.js.map +1 -1
  276. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  277. package/build/esm/cc/ThermostatFanModeCC.js +388 -284
  278. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  279. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  280. package/build/esm/cc/ThermostatFanStateCC.js +184 -111
  281. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  282. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  283. package/build/esm/cc/ThermostatModeCC.js +435 -331
  284. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  285. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  286. package/build/esm/cc/ThermostatOperatingStateCC.js +180 -107
  287. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  288. package/build/esm/cc/ThermostatSetbackCC.js +274 -185
  289. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  290. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  291. package/build/esm/cc/ThermostatSetpointCC.js +674 -543
  292. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  293. package/build/esm/cc/TimeCC.js +499 -360
  294. package/build/esm/cc/TimeCC.js.map +1 -1
  295. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  296. package/build/esm/cc/TimeParametersCC.js +296 -211
  297. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  298. package/build/esm/cc/TransportServiceCC.js +464 -363
  299. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  300. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  301. package/build/esm/cc/UserCodeCC.js +1443 -1205
  302. package/build/esm/cc/UserCodeCC.js.map +1 -1
  303. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  304. package/build/esm/cc/VersionCC.js +744 -635
  305. package/build/esm/cc/VersionCC.js.map +1 -1
  306. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  307. package/build/esm/cc/WakeUpCC.js +494 -364
  308. package/build/esm/cc/WakeUpCC.js.map +1 -1
  309. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  310. package/build/esm/cc/WindowCoveringCC.js +655 -530
  311. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  312. package/build/esm/cc/ZWaveLongRangeCC.js +51 -11
  313. package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
  314. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  315. package/build/esm/cc/ZWavePlusCC.js +223 -162
  316. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  317. package/build/esm/cc/ZWaveProtocolCC.js +1443 -953
  318. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  319. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +4 -4
  320. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
  321. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +390 -286
  322. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  323. package/build/esm/lib/CommandClassDecorators.d.ts +11 -15
  324. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
  325. package/build/esm/lib/CommandClassDecorators.js +24 -24
  326. package/build/esm/lib/CommandClassDecorators.js.map +1 -1
  327. package/build/esm/lib/Security2/Extension.d.ts +1 -1
  328. package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
  329. package/build/esm/lib/Security2/Extension.js +207 -123
  330. package/build/esm/lib/Security2/Extension.js.map +1 -1
  331. package/package.json +6 -6
@@ -40,13 +40,45 @@ var import_API = require("../../lib/API.js");
40
40
  var import_CommandClassDecorators = require("../../lib/CommandClassDecorators.js");
41
41
  var import_ManufacturerProprietaryCC = require("../ManufacturerProprietaryCC.js");
42
42
  var import_Decorators = require("./Decorators.js");
43
- var __decorate = function(decorators, target, key, desc) {
44
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
45
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
46
- 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;
47
- return c > 3 && r && Object.defineProperty(target, key, r), r;
43
+ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
44
+ function accept(f) {
45
+ if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
46
+ return f;
47
+ }
48
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
49
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
50
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
51
+ var _, done = false;
52
+ for (var i = decorators.length - 1; i >= 0; i--) {
53
+ var context = {};
54
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
55
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
56
+ context.addInitializer = function(f) {
57
+ if (done) throw new TypeError("Cannot add initializers after decoration has completed");
58
+ extraInitializers.push(accept(f || null));
59
+ };
60
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
61
+ if (kind === "accessor") {
62
+ if (result === void 0) continue;
63
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
64
+ if (_ = accept(result.get)) descriptor.get = _;
65
+ if (_ = accept(result.set)) descriptor.set = _;
66
+ if (_ = accept(result.init)) initializers.unshift(_);
67
+ } else if (_ = accept(result)) {
68
+ if (kind === "field") initializers.unshift(_);
69
+ else descriptor[key] = _;
70
+ }
71
+ }
72
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
73
+ done = true;
74
+ };
75
+ var __runInitializers = function(thisArg, initializers, value) {
76
+ var useValue = arguments.length > 2;
77
+ for (var i = 0; i < initializers.length; i++) {
78
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
79
+ }
80
+ return useValue ? value : void 0;
48
81
  };
49
- var FibaroCC_1, FibaroVenetianBlindCCReport_1, FibaroVenetianBlindCCGet_1;
50
82
  function __assertType(argName, typeName, boundHasError) {
51
83
  const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
52
84
  if (boundHasError()) {
@@ -99,300 +131,389 @@ var FibaroCCIDs;
99
131
  (function(FibaroCCIDs2) {
100
132
  FibaroCCIDs2[FibaroCCIDs2["VenetianBlind"] = 38] = "VenetianBlind";
101
133
  })(FibaroCCIDs || (FibaroCCIDs = {}));
102
- let FibaroCCAPI = class FibaroCCAPI2 extends import_ManufacturerProprietaryCC.ManufacturerProprietaryCCAPI {
103
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
104
- async fibaroVenetianBlindsGet() {
105
- const cc = new FibaroVenetianBlindCCGet({
106
- nodeId: this.endpoint.nodeId,
107
- endpointIndex: this.endpoint.index
108
- });
109
- const response = await this.host.sendCommand(cc, this.commandOptions);
110
- if (response) {
111
- return (0, import_shared.pick)(response, ["position", "tilt"]);
134
+ let FibaroCCAPI = (() => {
135
+ let _classDecorators = [(0, import_Decorators.manufacturerProprietaryAPI)(MANUFACTURERID_FIBARO)];
136
+ let _classDescriptor;
137
+ let _classExtraInitializers = [];
138
+ let _classThis;
139
+ let _classSuper = import_ManufacturerProprietaryCC.ManufacturerProprietaryCCAPI;
140
+ var FibaroCCAPI2 = class extends _classSuper {
141
+ static {
142
+ _classThis = this;
112
143
  }
113
- }
114
- async fibaroVenetianBlindsSetPosition(value) {
115
- __assertType("value", "number", __assertType__number.bind(void 0, value));
116
- const cc = new FibaroVenetianBlindCCSet({
117
- nodeId: this.endpoint.nodeId,
118
- endpointIndex: this.endpoint.index,
119
- position: value
120
- });
121
- await this.host.sendCommand(cc, this.commandOptions);
122
- }
123
- async fibaroVenetianBlindsSetTilt(value) {
124
- __assertType("value", "number", __assertType__number.bind(void 0, value));
125
- const cc = new FibaroVenetianBlindCCSet({
126
- nodeId: this.endpoint.nodeId,
127
- endpointIndex: this.endpoint.index,
128
- tilt: value
129
- });
130
- await this.host.sendCommand(cc, this.commandOptions);
131
- }
132
- get [import_API.SET_VALUE]() {
133
- return async function({ property, propertyKey }, value) {
134
- if (property !== "fibaro") {
135
- (0, import_API.throwUnsupportedProperty)(this.ccId, property);
144
+ static {
145
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
146
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
147
+ FibaroCCAPI2 = _classThis = _classDescriptor.value;
148
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
149
+ __runInitializers(_classThis, _classExtraInitializers);
150
+ }
151
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
152
+ async fibaroVenetianBlindsGet() {
153
+ const cc = new FibaroVenetianBlindCCGet({
154
+ nodeId: this.endpoint.nodeId,
155
+ endpointIndex: this.endpoint.index
156
+ });
157
+ const response = await this.host.sendCommand(cc, this.commandOptions);
158
+ if (response) {
159
+ return (0, import_shared.pick)(response, ["position", "tilt"]);
136
160
  }
137
- if (propertyKey === "venetianBlindsPosition") {
138
- if (typeof value !== "number") {
139
- (0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
161
+ }
162
+ async fibaroVenetianBlindsSetPosition(value) {
163
+ __assertType("value", "number", __assertType__number.bind(void 0, value));
164
+ const cc = new FibaroVenetianBlindCCSet({
165
+ nodeId: this.endpoint.nodeId,
166
+ endpointIndex: this.endpoint.index,
167
+ position: value
168
+ });
169
+ await this.host.sendCommand(cc, this.commandOptions);
170
+ }
171
+ async fibaroVenetianBlindsSetTilt(value) {
172
+ __assertType("value", "number", __assertType__number.bind(void 0, value));
173
+ const cc = new FibaroVenetianBlindCCSet({
174
+ nodeId: this.endpoint.nodeId,
175
+ endpointIndex: this.endpoint.index,
176
+ tilt: value
177
+ });
178
+ await this.host.sendCommand(cc, this.commandOptions);
179
+ }
180
+ get [import_API.SET_VALUE]() {
181
+ return async function({ property, propertyKey }, value) {
182
+ if (property !== "fibaro") {
183
+ (0, import_API.throwUnsupportedProperty)(this.ccId, property);
140
184
  }
141
- await this.fibaroVenetianBlindsSetPosition(value);
142
- } else if (propertyKey === "venetianBlindsTilt") {
143
- if (typeof value !== "number") {
144
- (0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
185
+ if (propertyKey === "venetianBlindsPosition") {
186
+ if (typeof value !== "number") {
187
+ (0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
188
+ }
189
+ await this.fibaroVenetianBlindsSetPosition(value);
190
+ } else if (propertyKey === "venetianBlindsTilt") {
191
+ if (typeof value !== "number") {
192
+ (0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
193
+ }
194
+ await this.fibaroVenetianBlindsSetTilt(value);
195
+ } else {
196
+ return;
145
197
  }
146
- await this.fibaroVenetianBlindsSetTilt(value);
147
- } else {
148
- return;
149
- }
150
- this.schedulePoll({ property, propertyKey }, value);
151
- return void 0;
152
- };
153
- }
154
- get [import_API.POLL_VALUE]() {
155
- return async function({ property, propertyKey }) {
156
- if (property !== "fibaro") {
157
- (0, import_API.throwUnsupportedProperty)(this.ccId, property);
158
- } else if (propertyKey == void 0) {
159
- (0, import_API.throwMissingPropertyKey)(this.ccId, property);
198
+ this.schedulePoll({ property, propertyKey }, value);
199
+ return void 0;
200
+ };
201
+ }
202
+ get [import_API.POLL_VALUE]() {
203
+ return async function({ property, propertyKey }) {
204
+ if (property !== "fibaro") {
205
+ (0, import_API.throwUnsupportedProperty)(this.ccId, property);
206
+ } else if (propertyKey == void 0) {
207
+ (0, import_API.throwMissingPropertyKey)(this.ccId, property);
208
+ }
209
+ switch (propertyKey) {
210
+ case "venetianBlindsPosition":
211
+ return (await this.fibaroVenetianBlindsGet())?.position;
212
+ case "venetianBlindsTilt":
213
+ return (await this.fibaroVenetianBlindsGet())?.tilt;
214
+ default:
215
+ (0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
216
+ }
217
+ };
218
+ }
219
+ };
220
+ return FibaroCCAPI2 = _classThis;
221
+ })();
222
+ let FibaroCC = (() => {
223
+ let _classDecorators = [(0, import_Decorators.manufacturerId)(MANUFACTURERID_FIBARO)];
224
+ let _classDescriptor;
225
+ let _classExtraInitializers = [];
226
+ let _classThis;
227
+ let _classSuper = import_ManufacturerProprietaryCC.ManufacturerProprietaryCC;
228
+ var FibaroCC2 = class extends _classSuper {
229
+ static {
230
+ _classThis = this;
231
+ }
232
+ static {
233
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
234
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
235
+ FibaroCC2 = _classThis = _classDescriptor.value;
236
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
237
+ __runInitializers(_classThis, _classExtraInitializers);
238
+ }
239
+ constructor(options) {
240
+ super(options);
241
+ this.fibaroCCId = (0, import_Decorators.getFibaroCCId)(this);
242
+ this.fibaroCCCommand = (0, import_Decorators.getFibaroCCCommand)(this);
243
+ }
244
+ static from(raw, ctx) {
245
+ (0, import_safe.validatePayload)(raw.payload.length >= 2);
246
+ const fibaroCCId = raw.payload[0];
247
+ const fibaroCCCommand2 = raw.payload[1];
248
+ const FibaroConstructor = (0, import_Decorators.getFibaroCCCommandConstructor)(fibaroCCId, fibaroCCCommand2);
249
+ if (FibaroConstructor) {
250
+ return FibaroConstructor.from(raw.withPayload(raw.payload.subarray(2)), ctx);
160
251
  }
161
- switch (propertyKey) {
162
- case "venetianBlindsPosition":
163
- return (await this.fibaroVenetianBlindsGet())?.position;
164
- case "venetianBlindsTilt":
165
- return (await this.fibaroVenetianBlindsGet())?.tilt;
166
- default:
167
- (0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
252
+ return new FibaroCC2({
253
+ nodeId: ctx.sourceNodeId
254
+ });
255
+ }
256
+ fibaroCCId;
257
+ fibaroCCCommand;
258
+ async interview(ctx) {
259
+ const node = this.getNode(ctx);
260
+ const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
261
+ for (const ccId of supportedFibaroCCIDs) {
262
+ const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
263
+ if (SubConstructor) {
264
+ const instance = new SubConstructor({ nodeId: node.id });
265
+ await instance.interview(ctx);
266
+ }
168
267
  }
169
- };
170
- }
171
- };
172
- FibaroCCAPI = __decorate([
173
- (0, import_Decorators.manufacturerProprietaryAPI)(MANUFACTURERID_FIBARO)
174
- ], FibaroCCAPI);
175
- let FibaroCC = FibaroCC_1 = class FibaroCC2 extends import_ManufacturerProprietaryCC.ManufacturerProprietaryCC {
176
- constructor(options) {
177
- super(options);
178
- this.fibaroCCId = (0, import_Decorators.getFibaroCCId)(this);
179
- this.fibaroCCCommand = (0, import_Decorators.getFibaroCCCommand)(this);
180
- }
181
- static from(raw, ctx) {
182
- (0, import_safe.validatePayload)(raw.payload.length >= 2);
183
- const fibaroCCId = raw.payload[0];
184
- const fibaroCCCommand2 = raw.payload[1];
185
- const FibaroConstructor = (0, import_Decorators.getFibaroCCCommandConstructor)(fibaroCCId, fibaroCCCommand2);
186
- if (FibaroConstructor) {
187
- return FibaroConstructor.from(raw.withPayload(raw.payload.subarray(2)), ctx);
188
- }
189
- return new FibaroCC_1({
190
- nodeId: ctx.sourceNodeId
191
- });
192
- }
193
- fibaroCCId;
194
- fibaroCCCommand;
195
- async interview(ctx) {
196
- const node = this.getNode(ctx);
197
- const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
198
- for (const ccId of supportedFibaroCCIDs) {
199
- const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
200
- if (SubConstructor) {
201
- const instance = new SubConstructor({ nodeId: node.id });
202
- await instance.interview(ctx);
268
+ }
269
+ async refreshValues(ctx) {
270
+ const node = this.getNode(ctx);
271
+ const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
272
+ for (const ccId of supportedFibaroCCIDs) {
273
+ const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
274
+ if (SubConstructor) {
275
+ const instance = new SubConstructor({ nodeId: node.id });
276
+ await instance.refreshValues(ctx);
277
+ }
203
278
  }
204
279
  }
205
- }
206
- async refreshValues(ctx) {
207
- const node = this.getNode(ctx);
208
- const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
209
- for (const ccId of supportedFibaroCCIDs) {
210
- const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
211
- if (SubConstructor) {
212
- const instance = new SubConstructor({ nodeId: node.id });
213
- await instance.refreshValues(ctx);
280
+ serialize(ctx) {
281
+ if (this.fibaroCCId == void 0) {
282
+ throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC ID", import_safe.ZWaveErrorCodes.CC_Invalid);
283
+ } else if (this.fibaroCCCommand == void 0) {
284
+ throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC Command", import_safe.ZWaveErrorCodes.CC_Invalid);
214
285
  }
286
+ this.payload = import_shared.Bytes.concat([
287
+ import_shared.Bytes.from([this.fibaroCCId, this.fibaroCCCommand]),
288
+ this.payload
289
+ ]);
290
+ return super.serialize(ctx);
215
291
  }
216
- }
217
- serialize(ctx) {
218
- if (this.fibaroCCId == void 0) {
219
- throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC ID", import_safe.ZWaveErrorCodes.CC_Invalid);
220
- } else if (this.fibaroCCCommand == void 0) {
221
- throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC Command", import_safe.ZWaveErrorCodes.CC_Invalid);
222
- }
223
- this.payload = import_shared.Bytes.concat([
224
- import_shared.Bytes.from([this.fibaroCCId, this.fibaroCCCommand]),
225
- this.payload
226
- ]);
227
- return super.serialize(ctx);
228
- }
229
- };
230
- FibaroCC = FibaroCC_1 = __decorate([
231
- (0, import_Decorators.manufacturerId)(MANUFACTURERID_FIBARO)
232
- ], FibaroCC);
292
+ };
293
+ return FibaroCC2 = _classThis;
294
+ })();
233
295
  var FibaroVenetianBlindCCCommand;
234
296
  (function(FibaroVenetianBlindCCCommand2) {
235
297
  FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Set"] = 1] = "Set";
236
298
  FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Get"] = 2] = "Get";
237
299
  FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Report"] = 3] = "Report";
238
300
  })(FibaroVenetianBlindCCCommand || (FibaroVenetianBlindCCCommand = {}));
239
- let FibaroVenetianBlindCC = class FibaroVenetianBlindCC2 extends FibaroCC {
240
- constructor(options) {
241
- super(options);
242
- this.fibaroCCId = FibaroCCIDs.VenetianBlind;
243
- }
244
- async interview(ctx) {
245
- const node = this.getNode(ctx);
246
- ctx.logNode(node.id, {
247
- endpoint: this.endpointIndex,
248
- message: `Interviewing Fibaro Venetian Blind CC...`,
249
- direction: "none"
250
- });
251
- await this.refreshValues(ctx);
252
- }
253
- async refreshValues(ctx) {
254
- const node = this.getNode(ctx);
255
- ctx.logNode(node.id, {
256
- message: "Requesting venetian blind position and tilt...",
257
- direction: "outbound"
258
- });
259
- const resp = await ctx.sendCommand(new FibaroVenetianBlindCCGet({
260
- nodeId: this.nodeId,
261
- endpointIndex: this.endpointIndex
262
- }));
263
- if (resp) {
264
- const logMessage = `received venetian blind state:
265
- position: ${resp.position}
266
- tilt: ${resp.tilt}`;
301
+ let FibaroVenetianBlindCC = (() => {
302
+ let _classDecorators = [(0, import_Decorators.fibaroCC)(FibaroCCIDs.VenetianBlind)];
303
+ let _classDescriptor;
304
+ let _classExtraInitializers = [];
305
+ let _classThis;
306
+ let _classSuper = FibaroCC;
307
+ var FibaroVenetianBlindCC2 = class extends _classSuper {
308
+ static {
309
+ _classThis = this;
310
+ }
311
+ static {
312
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
313
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
314
+ FibaroVenetianBlindCC2 = _classThis = _classDescriptor.value;
315
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
316
+ __runInitializers(_classThis, _classExtraInitializers);
317
+ }
318
+ constructor(options) {
319
+ super(options);
320
+ this.fibaroCCId = FibaroCCIDs.VenetianBlind;
321
+ }
322
+ async interview(ctx) {
323
+ const node = this.getNode(ctx);
267
324
  ctx.logNode(node.id, {
268
- message: logMessage,
269
- direction: "inbound"
325
+ endpoint: this.endpointIndex,
326
+ message: `Interviewing Fibaro Venetian Blind CC...`,
327
+ direction: "none"
270
328
  });
329
+ await this.refreshValues(ctx);
271
330
  }
272
- }
273
- };
274
- FibaroVenetianBlindCC = __decorate([
275
- (0, import_Decorators.fibaroCC)(FibaroCCIDs.VenetianBlind)
276
- ], FibaroVenetianBlindCC);
277
- let FibaroVenetianBlindCCSet = class FibaroVenetianBlindCCSet2 extends FibaroVenetianBlindCC {
278
- constructor(options) {
279
- super(options);
280
- this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Set;
281
- if ("position" in options)
331
+ async refreshValues(ctx) {
332
+ const node = this.getNode(ctx);
333
+ ctx.logNode(node.id, {
334
+ message: "Requesting venetian blind position and tilt...",
335
+ direction: "outbound"
336
+ });
337
+ const resp = await ctx.sendCommand(new FibaroVenetianBlindCCGet({
338
+ nodeId: this.nodeId,
339
+ endpointIndex: this.endpointIndex
340
+ }));
341
+ if (resp) {
342
+ const logMessage = `received venetian blind state:
343
+ position: ${resp.position}
344
+ tilt: ${resp.tilt}`;
345
+ ctx.logNode(node.id, {
346
+ message: logMessage,
347
+ direction: "inbound"
348
+ });
349
+ }
350
+ }
351
+ };
352
+ return FibaroVenetianBlindCC2 = _classThis;
353
+ })();
354
+ let FibaroVenetianBlindCCSet = (() => {
355
+ let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Set)];
356
+ let _classDescriptor;
357
+ let _classExtraInitializers = [];
358
+ let _classThis;
359
+ let _classSuper = FibaroVenetianBlindCC;
360
+ var FibaroVenetianBlindCCSet2 = class extends _classSuper {
361
+ static {
362
+ _classThis = this;
363
+ }
364
+ static {
365
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
366
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
367
+ FibaroVenetianBlindCCSet2 = _classThis = _classDescriptor.value;
368
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
369
+ __runInitializers(_classThis, _classExtraInitializers);
370
+ }
371
+ constructor(options) {
372
+ super(options);
373
+ this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Set;
374
+ if ("position" in options)
375
+ this.position = options.position;
376
+ if ("tilt" in options)
377
+ this.tilt = options.tilt;
378
+ }
379
+ static from(_raw, _ctx) {
380
+ throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
381
+ }
382
+ position;
383
+ tilt;
384
+ serialize(ctx) {
385
+ const controlByte = (this.position != void 0 ? 2 : 0) | (this.tilt != void 0 ? 1 : 0);
386
+ this.payload = import_shared.Bytes.from([
387
+ controlByte,
388
+ this.position ?? 0,
389
+ this.tilt ?? 0
390
+ ]);
391
+ return super.serialize(ctx);
392
+ }
393
+ toLogEntry(ctx) {
394
+ const message = {};
395
+ if (this.position != void 0) {
396
+ message.position = this.position;
397
+ }
398
+ if (this.tilt != void 0) {
399
+ message.tilt = this.tilt;
400
+ }
401
+ return {
402
+ ...super.toLogEntry(ctx),
403
+ message
404
+ };
405
+ }
406
+ };
407
+ return FibaroVenetianBlindCCSet2 = _classThis;
408
+ })();
409
+ let FibaroVenetianBlindCCReport = (() => {
410
+ let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Report)];
411
+ let _classDescriptor;
412
+ let _classExtraInitializers = [];
413
+ let _classThis;
414
+ let _classSuper = FibaroVenetianBlindCC;
415
+ var FibaroVenetianBlindCCReport2 = class extends _classSuper {
416
+ static {
417
+ _classThis = this;
418
+ }
419
+ static {
420
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
421
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
422
+ FibaroVenetianBlindCCReport2 = _classThis = _classDescriptor.value;
423
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
424
+ __runInitializers(_classThis, _classExtraInitializers);
425
+ }
426
+ constructor(options) {
427
+ super(options);
428
+ this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Report;
282
429
  this.position = options.position;
283
- if ("tilt" in options)
284
430
  this.tilt = options.tilt;
285
- }
286
- static from(_raw, _ctx) {
287
- throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
288
- }
289
- position;
290
- tilt;
291
- serialize(ctx) {
292
- const controlByte = (this.position != void 0 ? 2 : 0) | (this.tilt != void 0 ? 1 : 0);
293
- this.payload = import_shared.Bytes.from([
294
- controlByte,
295
- this.position ?? 0,
296
- this.tilt ?? 0
297
- ]);
298
- return super.serialize(ctx);
299
- }
300
- toLogEntry(ctx) {
301
- const message = {};
302
- if (this.position != void 0) {
303
- message.position = this.position;
304
- }
305
- if (this.tilt != void 0) {
306
- message.tilt = this.tilt;
307
431
  }
308
- return {
309
- ...super.toLogEntry(ctx),
310
- message
311
- };
312
- }
313
- };
314
- FibaroVenetianBlindCCSet = __decorate([
315
- (0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Set)
316
- ], FibaroVenetianBlindCCSet);
317
- let FibaroVenetianBlindCCReport = FibaroVenetianBlindCCReport_1 = class FibaroVenetianBlindCCReport2 extends FibaroVenetianBlindCC {
318
- constructor(options) {
319
- super(options);
320
- this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Report;
321
- this.position = options.position;
322
- this.tilt = options.tilt;
323
- }
324
- static from(raw, ctx) {
325
- (0, import_safe.validatePayload)(raw.payload.length >= 3);
326
- let position;
327
- if (!!(raw.payload[0] & 2)) {
328
- position = (0, import_safe.parseMaybeNumber)(raw.payload[1]);
329
- }
330
- let tilt;
331
- if (!!(raw.payload[0] & 1)) {
332
- tilt = (0, import_safe.parseMaybeNumber)(raw.payload[2]);
333
- }
334
- return new FibaroVenetianBlindCCReport_1({
335
- nodeId: ctx.sourceNodeId,
336
- position,
337
- tilt
338
- });
339
- }
340
- persistValues(ctx) {
341
- if (!super.persistValues(ctx))
342
- return false;
343
- const valueDB = this.getValueDB(ctx);
344
- if (this.position != void 0) {
345
- const positionValueId = getFibaroVenetianBlindPositionValueId(this.endpointIndex);
346
- valueDB.setMetadata(positionValueId, {
347
- ...import_safe.ValueMetadata.Level,
348
- label: "Venetian blinds position"
432
+ static from(raw, ctx) {
433
+ (0, import_safe.validatePayload)(raw.payload.length >= 3);
434
+ let position;
435
+ if (!!(raw.payload[0] & 2)) {
436
+ position = (0, import_safe.parseMaybeNumber)(raw.payload[1]);
437
+ }
438
+ let tilt;
439
+ if (!!(raw.payload[0] & 1)) {
440
+ tilt = (0, import_safe.parseMaybeNumber)(raw.payload[2]);
441
+ }
442
+ return new this({
443
+ nodeId: ctx.sourceNodeId,
444
+ position,
445
+ tilt
349
446
  });
350
- valueDB.setValue(positionValueId, this.position);
351
447
  }
352
- if (this.tilt != void 0) {
353
- const tiltValueId = getFibaroVenetianBlindTiltValueId(this.endpointIndex);
354
- valueDB.setMetadata(tiltValueId, {
355
- ...import_safe.ValueMetadata.Level,
356
- label: "Venetian blinds tilt"
448
+ persistValues(ctx) {
449
+ if (!super.persistValues(ctx))
450
+ return false;
451
+ const valueDB = this.getValueDB(ctx);
452
+ if (this.position != void 0) {
453
+ const positionValueId = getFibaroVenetianBlindPositionValueId(this.endpointIndex);
454
+ valueDB.setMetadata(positionValueId, {
455
+ ...import_safe.ValueMetadata.Level,
456
+ label: "Venetian blinds position"
457
+ });
458
+ valueDB.setValue(positionValueId, this.position);
459
+ }
460
+ if (this.tilt != void 0) {
461
+ const tiltValueId = getFibaroVenetianBlindTiltValueId(this.endpointIndex);
462
+ valueDB.setMetadata(tiltValueId, {
463
+ ...import_safe.ValueMetadata.Level,
464
+ label: "Venetian blinds tilt"
465
+ });
466
+ valueDB.setValue(tiltValueId, this.tilt);
467
+ }
468
+ return true;
469
+ }
470
+ position;
471
+ tilt;
472
+ toLogEntry(ctx) {
473
+ const message = {};
474
+ if (this.position != void 0) {
475
+ message.position = this.position;
476
+ }
477
+ if (this.tilt != void 0) {
478
+ message.tilt = this.tilt;
479
+ }
480
+ return {
481
+ ...super.toLogEntry(ctx),
482
+ message
483
+ };
484
+ }
485
+ };
486
+ return FibaroVenetianBlindCCReport2 = _classThis;
487
+ })();
488
+ let FibaroVenetianBlindCCGet = (() => {
489
+ let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(FibaroVenetianBlindCCReport)];
490
+ let _classDescriptor;
491
+ let _classExtraInitializers = [];
492
+ let _classThis;
493
+ let _classSuper = FibaroVenetianBlindCC;
494
+ var FibaroVenetianBlindCCGet2 = class extends _classSuper {
495
+ static {
496
+ _classThis = this;
497
+ }
498
+ static {
499
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
500
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
501
+ FibaroVenetianBlindCCGet2 = _classThis = _classDescriptor.value;
502
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
503
+ __runInitializers(_classThis, _classExtraInitializers);
504
+ }
505
+ constructor(options) {
506
+ super(options);
507
+ this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Get;
508
+ }
509
+ static from(raw, ctx) {
510
+ return new this({
511
+ nodeId: ctx.sourceNodeId
357
512
  });
358
- valueDB.setValue(tiltValueId, this.tilt);
359
513
  }
360
- return true;
361
- }
362
- position;
363
- tilt;
364
- toLogEntry(ctx) {
365
- const message = {};
366
- if (this.position != void 0) {
367
- message.position = this.position;
368
- }
369
- if (this.tilt != void 0) {
370
- message.tilt = this.tilt;
371
- }
372
- return {
373
- ...super.toLogEntry(ctx),
374
- message
375
- };
376
- }
377
- };
378
- FibaroVenetianBlindCCReport = FibaroVenetianBlindCCReport_1 = __decorate([
379
- (0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Report)
380
- ], FibaroVenetianBlindCCReport);
381
- let FibaroVenetianBlindCCGet = FibaroVenetianBlindCCGet_1 = class FibaroVenetianBlindCCGet2 extends FibaroVenetianBlindCC {
382
- constructor(options) {
383
- super(options);
384
- this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Get;
385
- }
386
- static from(raw, ctx) {
387
- return new FibaroVenetianBlindCCGet_1({
388
- nodeId: ctx.sourceNodeId
389
- });
390
- }
391
- };
392
- FibaroVenetianBlindCCGet = FibaroVenetianBlindCCGet_1 = __decorate([
393
- (0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Get),
394
- (0, import_CommandClassDecorators.expectedCCResponse)(FibaroVenetianBlindCCReport)
395
- ], FibaroVenetianBlindCCGet);
514
+ };
515
+ return FibaroVenetianBlindCCGet2 = _classThis;
516
+ })();
396
517
  // Annotate the CommonJS export names for ESM import in node:
397
518
  0 && (module.exports = {
398
519
  FibaroCC,