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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -33,13 +33,45 @@ var import_CommandClass = require("../lib/CommandClass.js");
33
33
  var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
34
34
  var import_Values = require("../lib/Values.js");
35
35
  var import_Types = require("../lib/_Types.js");
36
- var __decorate = function(decorators, target, key, desc) {
37
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
- 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;
40
- return c > 3 && r && Object.defineProperty(target, key, r), r;
36
+ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
37
+ function accept(f) {
38
+ if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
39
+ return f;
40
+ }
41
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
42
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
43
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
44
+ var _, done = false;
45
+ for (var i = decorators.length - 1; i >= 0; i--) {
46
+ var context = {};
47
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
48
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
49
+ context.addInitializer = function(f) {
50
+ if (done) throw new TypeError("Cannot add initializers after decoration has completed");
51
+ extraInitializers.push(accept(f || null));
52
+ };
53
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
54
+ if (kind === "accessor") {
55
+ if (result === void 0) continue;
56
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
57
+ if (_ = accept(result.get)) descriptor.get = _;
58
+ if (_ = accept(result.set)) descriptor.set = _;
59
+ if (_ = accept(result.init)) initializers.unshift(_);
60
+ } else if (_ = accept(result)) {
61
+ if (kind === "field") initializers.unshift(_);
62
+ else descriptor[key] = _;
63
+ }
64
+ }
65
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
66
+ done = true;
67
+ };
68
+ var __runInitializers = function(thisArg, initializers, value) {
69
+ var useValue = arguments.length > 2;
70
+ for (var i = 0; i < initializers.length; i++) {
71
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
72
+ }
73
+ return useValue ? value : void 0;
41
74
  };
42
- var LockCCReport_1;
43
75
  function __assertType(argName, typeName, boundHasError) {
44
76
  const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
45
77
  if (boundHasError()) {
@@ -61,155 +93,223 @@ const LockCCValues = Object.freeze({
61
93
  })
62
94
  })
63
95
  });
64
- let LockCCAPI = class LockCCAPI2 extends import_API.PhysicalCCAPI {
65
- supportsCommand(cmd) {
66
- switch (cmd) {
67
- case import_Types.LockCommand.Get:
68
- case import_Types.LockCommand.Set:
69
- return true;
70
- }
71
- return super.supportsCommand(cmd);
72
- }
73
- async get() {
74
- this.assertSupportsCommand(import_Types.LockCommand, import_Types.LockCommand.Get);
75
- const cc = new LockCCGet({
76
- nodeId: this.endpoint.nodeId,
77
- endpointIndex: this.endpoint.index
78
- });
79
- const response = await this.host.sendCommand(cc, this.commandOptions);
80
- return response?.locked;
81
- }
82
- /**
83
- * Locks or unlocks the lock
84
- * @param locked Whether the lock should be locked
85
- */
86
- async set(locked) {
87
- __assertType("locked", "boolean", __assertType__boolean.bind(void 0, locked));
88
- this.assertSupportsCommand(import_Types.LockCommand, import_Types.LockCommand.Set);
89
- const cc = new LockCCSet({
90
- nodeId: this.endpoint.nodeId,
91
- endpointIndex: this.endpoint.index,
92
- locked
93
- });
94
- return this.host.sendCommand(cc, this.commandOptions);
95
- }
96
- get [import_API.SET_VALUE]() {
97
- return async function({ property }, value) {
98
- if (property !== "locked") {
99
- (0, import_API.throwUnsupportedProperty)(this.ccId, property);
100
- }
101
- if (typeof value !== "boolean") {
102
- (0, import_API.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
103
- }
104
- const result = await this.set(value);
105
- if (!(0, import_safe.supervisedCommandSucceeded)(result)) {
106
- this.schedulePoll({ property }, value);
96
+ let LockCCAPI = (() => {
97
+ let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Lock)];
98
+ let _classDescriptor;
99
+ let _classExtraInitializers = [];
100
+ let _classThis;
101
+ let _classSuper = import_API.PhysicalCCAPI;
102
+ var LockCCAPI2 = class extends _classSuper {
103
+ static {
104
+ _classThis = this;
105
+ }
106
+ static {
107
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
108
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
109
+ LockCCAPI2 = _classThis = _classDescriptor.value;
110
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
111
+ __runInitializers(_classThis, _classExtraInitializers);
112
+ }
113
+ supportsCommand(cmd) {
114
+ switch (cmd) {
115
+ case import_Types.LockCommand.Get:
116
+ case import_Types.LockCommand.Set:
117
+ return true;
107
118
  }
108
- return result;
109
- };
110
- }
111
- get [import_API.POLL_VALUE]() {
112
- return async function({ property }) {
113
- if (property === "locked")
114
- return this.get();
115
- (0, import_API.throwUnsupportedProperty)(this.ccId, property);
116
- };
117
- }
118
- };
119
- LockCCAPI = __decorate([
120
- (0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Lock)
121
- ], LockCCAPI);
122
- let LockCC = class LockCC2 extends import_CommandClass.CommandClass {
123
- async interview(ctx) {
124
- const node = this.getNode(ctx);
125
- ctx.logNode(node.id, {
126
- endpoint: this.endpointIndex,
127
- message: `Interviewing ${this.ccName}...`,
128
- direction: "none"
129
- });
130
- await this.refreshValues(ctx);
131
- this.setInterviewComplete(ctx, true);
132
- }
133
- async refreshValues(ctx) {
134
- const node = this.getNode(ctx);
135
- const endpoint = this.getEndpoint(ctx);
136
- const api = import_API.CCAPI.create(import_safe.CommandClasses.Lock, ctx, endpoint).withOptions({
137
- priority: import_safe.MessagePriority.NodeQuery
138
- });
139
- ctx.logNode(node.id, {
140
- message: "requesting current lock state...",
141
- direction: "outbound"
142
- });
143
- const locked = await api.get();
144
- const logMessage = `the lock is ${locked ? "locked" : "unlocked"}`;
145
- ctx.logNode(node.id, {
146
- message: logMessage,
147
- direction: "inbound"
148
- });
149
- }
150
- };
151
- LockCC = __decorate([
152
- (0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Lock),
153
- (0, import_CommandClassDecorators.implementedVersion)(1),
154
- (0, import_CommandClassDecorators.ccValues)(LockCCValues)
155
- ], LockCC);
156
- let LockCCSet = class LockCCSet2 extends LockCC {
157
- constructor(options) {
158
- super(options);
159
- this.locked = options.locked;
160
- }
161
- static from(_raw, _ctx) {
162
- throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
163
- }
164
- locked;
165
- serialize(ctx) {
166
- this.payload = import_safe2.Bytes.from([this.locked ? 1 : 0]);
167
- return super.serialize(ctx);
168
- }
169
- toLogEntry(ctx) {
170
- return {
171
- ...super.toLogEntry(ctx),
172
- message: { locked: this.locked }
173
- };
174
- }
175
- };
176
- LockCCSet = __decorate([
177
- (0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Set),
178
- (0, import_CommandClassDecorators.useSupervision)()
179
- ], LockCCSet);
180
- let LockCCReport = LockCCReport_1 = class LockCCReport2 extends LockCC {
181
- constructor(options) {
182
- super(options);
183
- this.locked = options.locked;
184
- }
185
- static from(raw, ctx) {
186
- (0, import_safe.validatePayload)(raw.payload.length >= 1);
187
- const locked = raw.payload[0] === 1;
188
- return new LockCCReport_1({
189
- nodeId: ctx.sourceNodeId,
190
- locked
191
- });
192
- }
193
- locked;
194
- toLogEntry(ctx) {
195
- return {
196
- ...super.toLogEntry(ctx),
197
- message: { locked: this.locked }
198
- };
199
- }
200
- };
201
- __decorate([
202
- (0, import_CommandClassDecorators.ccValue)(LockCCValues.locked)
203
- ], LockCCReport.prototype, "locked", void 0);
204
- LockCCReport = LockCCReport_1 = __decorate([
205
- (0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Report)
206
- ], LockCCReport);
207
- let LockCCGet = class LockCCGet2 extends LockCC {
208
- };
209
- LockCCGet = __decorate([
210
- (0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Get),
211
- (0, import_CommandClassDecorators.expectedCCResponse)(LockCCReport)
212
- ], LockCCGet);
119
+ return super.supportsCommand(cmd);
120
+ }
121
+ async get() {
122
+ this.assertSupportsCommand(import_Types.LockCommand, import_Types.LockCommand.Get);
123
+ const cc = new LockCCGet({
124
+ nodeId: this.endpoint.nodeId,
125
+ endpointIndex: this.endpoint.index
126
+ });
127
+ const response = await this.host.sendCommand(cc, this.commandOptions);
128
+ return response?.locked;
129
+ }
130
+ /**
131
+ * Locks or unlocks the lock
132
+ * @param locked Whether the lock should be locked
133
+ */
134
+ async set(locked) {
135
+ __assertType("locked", "boolean", __assertType__boolean.bind(void 0, locked));
136
+ this.assertSupportsCommand(import_Types.LockCommand, import_Types.LockCommand.Set);
137
+ const cc = new LockCCSet({
138
+ nodeId: this.endpoint.nodeId,
139
+ endpointIndex: this.endpoint.index,
140
+ locked
141
+ });
142
+ return this.host.sendCommand(cc, this.commandOptions);
143
+ }
144
+ get [import_API.SET_VALUE]() {
145
+ return async function({ property }, value) {
146
+ if (property !== "locked") {
147
+ (0, import_API.throwUnsupportedProperty)(this.ccId, property);
148
+ }
149
+ if (typeof value !== "boolean") {
150
+ (0, import_API.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
151
+ }
152
+ const result = await this.set(value);
153
+ if (!(0, import_safe.supervisedCommandSucceeded)(result)) {
154
+ this.schedulePoll({ property }, value);
155
+ }
156
+ return result;
157
+ };
158
+ }
159
+ get [import_API.POLL_VALUE]() {
160
+ return async function({ property }) {
161
+ if (property === "locked")
162
+ return this.get();
163
+ (0, import_API.throwUnsupportedProperty)(this.ccId, property);
164
+ };
165
+ }
166
+ };
167
+ return LockCCAPI2 = _classThis;
168
+ })();
169
+ let LockCC = (() => {
170
+ let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Lock), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(LockCCValues)];
171
+ let _classDescriptor;
172
+ let _classExtraInitializers = [];
173
+ let _classThis;
174
+ let _classSuper = import_CommandClass.CommandClass;
175
+ var LockCC2 = class extends _classSuper {
176
+ static {
177
+ _classThis = this;
178
+ }
179
+ static {
180
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
181
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
182
+ LockCC2 = _classThis = _classDescriptor.value;
183
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
184
+ __runInitializers(_classThis, _classExtraInitializers);
185
+ }
186
+ async interview(ctx) {
187
+ const node = this.getNode(ctx);
188
+ ctx.logNode(node.id, {
189
+ endpoint: this.endpointIndex,
190
+ message: `Interviewing ${this.ccName}...`,
191
+ direction: "none"
192
+ });
193
+ await this.refreshValues(ctx);
194
+ this.setInterviewComplete(ctx, true);
195
+ }
196
+ async refreshValues(ctx) {
197
+ const node = this.getNode(ctx);
198
+ const endpoint = this.getEndpoint(ctx);
199
+ const api = import_API.CCAPI.create(import_safe.CommandClasses.Lock, ctx, endpoint).withOptions({
200
+ priority: import_safe.MessagePriority.NodeQuery
201
+ });
202
+ ctx.logNode(node.id, {
203
+ message: "requesting current lock state...",
204
+ direction: "outbound"
205
+ });
206
+ const locked = await api.get();
207
+ const logMessage = `the lock is ${locked ? "locked" : "unlocked"}`;
208
+ ctx.logNode(node.id, {
209
+ message: logMessage,
210
+ direction: "inbound"
211
+ });
212
+ }
213
+ };
214
+ return LockCC2 = _classThis;
215
+ })();
216
+ let LockCCSet = (() => {
217
+ let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Set), (0, import_CommandClassDecorators.useSupervision)()];
218
+ let _classDescriptor;
219
+ let _classExtraInitializers = [];
220
+ let _classThis;
221
+ let _classSuper = LockCC;
222
+ var LockCCSet2 = class extends _classSuper {
223
+ static {
224
+ _classThis = this;
225
+ }
226
+ static {
227
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
228
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
229
+ LockCCSet2 = _classThis = _classDescriptor.value;
230
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
231
+ __runInitializers(_classThis, _classExtraInitializers);
232
+ }
233
+ constructor(options) {
234
+ super(options);
235
+ this.locked = options.locked;
236
+ }
237
+ static from(_raw, _ctx) {
238
+ throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
239
+ }
240
+ locked;
241
+ serialize(ctx) {
242
+ this.payload = import_safe2.Bytes.from([this.locked ? 1 : 0]);
243
+ return super.serialize(ctx);
244
+ }
245
+ toLogEntry(ctx) {
246
+ return {
247
+ ...super.toLogEntry(ctx),
248
+ message: { locked: this.locked }
249
+ };
250
+ }
251
+ };
252
+ return LockCCSet2 = _classThis;
253
+ })();
254
+ let LockCCReport = (() => {
255
+ let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("locked", LockCCValues.locked)];
256
+ let _classDescriptor;
257
+ let _classExtraInitializers = [];
258
+ let _classThis;
259
+ let _classSuper = LockCC;
260
+ var LockCCReport2 = class extends _classSuper {
261
+ static {
262
+ _classThis = this;
263
+ }
264
+ static {
265
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
266
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
267
+ LockCCReport2 = _classThis = _classDescriptor.value;
268
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
269
+ __runInitializers(_classThis, _classExtraInitializers);
270
+ }
271
+ constructor(options) {
272
+ super(options);
273
+ this.locked = options.locked;
274
+ }
275
+ static from(raw, ctx) {
276
+ (0, import_safe.validatePayload)(raw.payload.length >= 1);
277
+ const locked = raw.payload[0] === 1;
278
+ return new this({
279
+ nodeId: ctx.sourceNodeId,
280
+ locked
281
+ });
282
+ }
283
+ locked;
284
+ toLogEntry(ctx) {
285
+ return {
286
+ ...super.toLogEntry(ctx),
287
+ message: { locked: this.locked }
288
+ };
289
+ }
290
+ };
291
+ return LockCCReport2 = _classThis;
292
+ })();
293
+ let LockCCGet = (() => {
294
+ let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.LockCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(LockCCReport)];
295
+ let _classDescriptor;
296
+ let _classExtraInitializers = [];
297
+ let _classThis;
298
+ let _classSuper = LockCC;
299
+ var LockCCGet2 = class extends _classSuper {
300
+ static {
301
+ _classThis = this;
302
+ }
303
+ static {
304
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
305
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
306
+ LockCCGet2 = _classThis = _classDescriptor.value;
307
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
308
+ __runInitializers(_classThis, _classExtraInitializers);
309
+ }
310
+ };
311
+ return LockCCGet2 = _classThis;
312
+ })();
213
313
  // Annotate the CommonJS export names for ESM import in node:
214
314
  0 && (module.exports = {
215
315
  LockCC,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cc/LockCC.ts"],
4
- "sourcesContent": ["import {\n\tCommandClasses,\n\ttype MaybeNotKnown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype SupervisionResult,\n\tValueMetadata,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tsupervisedCommandSucceeded,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport type {\n\tCCEncodingContext,\n\tCCParsingContext,\n\tGetValueDB,\n} from \"@zwave-js/host/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tPOLL_VALUE,\n\tPhysicalCCAPI,\n\ttype PollValueImplementation,\n\tSET_VALUE,\n\ttype SetValueImplementation,\n\tthrowUnsupportedProperty,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype RefreshValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValue,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { LockCommand } from \"../lib/_Types.js\";\n\nexport const LockCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses.Lock, {\n\t\t...V.staticProperty(\n\t\t\t\"locked\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.Boolean,\n\t\t\t\tlabel: \"Locked\",\n\t\t\t\tdescription: \"Whether the lock is locked\",\n\t\t\t} as const,\n\t\t),\n\t}),\n});\n\n@API(CommandClasses.Lock)\nexport class LockCCAPI extends PhysicalCCAPI {\n\tpublic supportsCommand(cmd: LockCommand): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase LockCommand.Get:\n\t\t\tcase LockCommand.Set:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\tpublic async get(): Promise<MaybeNotKnown<boolean>> {\n\t\tthis.assertSupportsCommand(LockCommand, LockCommand.Get);\n\n\t\tconst cc = new LockCCGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<LockCCReport>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.locked;\n\t}\n\n\t/**\n\t * Locks or unlocks the lock\n\t * @param locked Whether the lock should be locked\n\t */\n\t@validateArgs()\n\tpublic async set(locked: boolean): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(LockCommand, LockCommand.Set);\n\n\t\tconst cc = new LockCCSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tlocked,\n\t\t});\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(this: LockCCAPI, { property }, value) {\n\t\t\tif (property !== \"locked\") {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tthrowWrongValueType(\n\t\t\t\t\tthis.ccId,\n\t\t\t\t\tproperty,\n\t\t\t\t\t\"boolean\",\n\t\t\t\t\ttypeof value,\n\t\t\t\t);\n\t\t\t}\n\t\t\tconst result = await this.set(value);\n\n\t\t\t// Verify the current value after a delay, unless the command was supervised and successful\n\t\t\tif (!supervisedCommandSucceeded(result)) {\n\t\t\t\tthis.schedulePoll({ property }, value);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t};\n\t}\n\n\tprotected get [POLL_VALUE](): PollValueImplementation {\n\t\treturn async function(this: LockCCAPI, { property }) {\n\t\t\tif (property === \"locked\") return this.get();\n\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t};\n\t}\n}\n\n@commandClass(CommandClasses.Lock)\n@implementedVersion(1)\n@ccValues(LockCCValues)\nexport class LockCC extends CommandClass {\n\tdeclare ccCommand: LockCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\tawait this.refreshValues(ctx);\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\tpublic async refreshValues(\n\t\tctx: RefreshValuesContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses.Lock,\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"requesting current lock state...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst locked = await api.get();\n\t\tconst logMessage = `the lock is ${locked ? \"locked\" : \"unlocked\"}`;\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: logMessage,\n\t\t\tdirection: \"inbound\",\n\t\t});\n\t}\n}\n\n// @publicAPI\nexport interface LockCCSetOptions {\n\tlocked: boolean;\n}\n\n@CCCommand(LockCommand.Set)\n@useSupervision()\nexport class LockCCSet extends LockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<LockCCSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.locked = options.locked;\n\t}\n\n\tpublic static from(_raw: CCRaw, _ctx: CCParsingContext): LockCCSet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new LockCCSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic locked: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.locked ? 1 : 0]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { locked: this.locked },\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface LockCCReportOptions {\n\tlocked: boolean;\n}\n\n@CCCommand(LockCommand.Report)\nexport class LockCCReport extends LockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<LockCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.locked = options.locked;\n\t}\n\n\tpublic static from(raw: CCRaw, ctx: CCParsingContext): LockCCReport {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\tconst locked = raw.payload[0] === 1;\n\n\t\treturn new LockCCReport({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tlocked,\n\t\t});\n\t}\n\n\t@ccValue(LockCCValues.locked)\n\tpublic readonly locked: boolean;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { locked: this.locked },\n\t\t};\n\t}\n}\n\n@CCCommand(LockCommand.Get)\n@expectedCCResponse(LockCCReport)\nexport class LockCCGet extends LockCC {}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAYO;AAMP,IAAAA,eAAsB;AAEtB,iBASO;AACP,0BAKO;AACP,oCASO;AACP,oBAAkB;AAClB,mBAA4B;;;;;;;;;;;;;;;;;;;;AAErB,MAAM,eAAe,OAAO,OAAO;EACzC,GAAG,gBAAE,qBAAqB,2BAAe,MAAM;IAC9C,GAAG,gBAAE,eACJ,UACA;MACC,GAAG,0BAAc;MACjB,OAAO;MACP,aAAa;KACJ;GAEX;CACD;AAGM,IAAM,YAAN,MAAMC,mBAAkB,yBAAa;EACpC,gBAAgB,KAAgB;AACtC,YAAQ,KAAK;MACZ,KAAK,yBAAY;MACjB,KAAK,yBAAY;AAChB,eAAO;IACT;AACA,WAAO,MAAM,gBAAgB,GAAG;EACjC;EAEO,MAAM,MAAG;AACf,SAAK,sBAAsB,0BAAa,yBAAY,GAAG;AAEvD,UAAM,KAAK,IAAI,UAAU;MACxB,QAAQ,KAAK,SAAS;M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IAAI;MACZ;KACA;EACF;EAGgB;EAET,WAAW,KAAgB;AACjC,WAAO;MACN,GAAG,MAAM,WAAW,GAAG;MACvB,SAAS,EAAE,QAAQ,KAAK,OAAM;;EAEhC;;AAPgB,WAAA;MADf,uCAAQ,aAAa,MAAM;;AApBhB,eAAY,iBAAA,WAAA;MADxB,yCAAU,yBAAY,MAAM;GAChB,YAAY;AAiClB,IAAM,YAAN,MAAMC,mBAAkB,OAAM;;AAAxB,YAAS,WAAA;MAFrB,yCAAU,yBAAY,GAAG;MACzB,kDAAmB,YAAY;GACnB,SAAS;",
6
- "names": ["import_safe", "LockCCAPI", "LockCC", "LockCCSet", "LockCCReport", "LockCCGet"]
4
+ "sourcesContent": ["import {\n\tCommandClasses,\n\ttype MaybeNotKnown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype SupervisionResult,\n\tValueMetadata,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tsupervisedCommandSucceeded,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport type {\n\tCCEncodingContext,\n\tCCParsingContext,\n\tGetValueDB,\n} from \"@zwave-js/host/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tPOLL_VALUE,\n\tPhysicalCCAPI,\n\ttype PollValueImplementation,\n\tSET_VALUE,\n\ttype SetValueImplementation,\n\tthrowUnsupportedProperty,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype RefreshValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { LockCommand } from \"../lib/_Types.js\";\n\nexport const LockCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses.Lock, {\n\t\t...V.staticProperty(\n\t\t\t\"locked\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.Boolean,\n\t\t\t\tlabel: \"Locked\",\n\t\t\t\tdescription: \"Whether the lock is locked\",\n\t\t\t} as const,\n\t\t),\n\t}),\n});\n\n@API(CommandClasses.Lock)\nexport class LockCCAPI extends PhysicalCCAPI {\n\tpublic supportsCommand(cmd: LockCommand): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase LockCommand.Get:\n\t\t\tcase LockCommand.Set:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\tpublic async get(): Promise<MaybeNotKnown<boolean>> {\n\t\tthis.assertSupportsCommand(LockCommand, LockCommand.Get);\n\n\t\tconst cc = new LockCCGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<LockCCReport>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.locked;\n\t}\n\n\t/**\n\t * Locks or unlocks the lock\n\t * @param locked Whether the lock should be locked\n\t */\n\t@validateArgs()\n\tpublic async set(locked: boolean): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(LockCommand, LockCommand.Set);\n\n\t\tconst cc = new LockCCSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tlocked,\n\t\t});\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(this: LockCCAPI, { property }, value) {\n\t\t\tif (property !== \"locked\") {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tthrowWrongValueType(\n\t\t\t\t\tthis.ccId,\n\t\t\t\t\tproperty,\n\t\t\t\t\t\"boolean\",\n\t\t\t\t\ttypeof value,\n\t\t\t\t);\n\t\t\t}\n\t\t\tconst result = await this.set(value);\n\n\t\t\t// Verify the current value after a delay, unless the command was supervised and successful\n\t\t\tif (!supervisedCommandSucceeded(result)) {\n\t\t\t\tthis.schedulePoll({ property }, value);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t};\n\t}\n\n\tprotected get [POLL_VALUE](): PollValueImplementation {\n\t\treturn async function(this: LockCCAPI, { property }) {\n\t\t\tif (property === \"locked\") return this.get();\n\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t};\n\t}\n}\n\n@commandClass(CommandClasses.Lock)\n@implementedVersion(1)\n@ccValues(LockCCValues)\nexport class LockCC extends CommandClass {\n\tdeclare ccCommand: LockCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\tawait this.refreshValues(ctx);\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\tpublic async refreshValues(\n\t\tctx: RefreshValuesContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses.Lock,\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"requesting current lock state...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst locked = await api.get();\n\t\tconst logMessage = `the lock is ${locked ? \"locked\" : \"unlocked\"}`;\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: logMessage,\n\t\t\tdirection: \"inbound\",\n\t\t});\n\t}\n}\n\n// @publicAPI\nexport interface LockCCSetOptions {\n\tlocked: boolean;\n}\n\n@CCCommand(LockCommand.Set)\n@useSupervision()\nexport class LockCCSet extends LockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<LockCCSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.locked = options.locked;\n\t}\n\n\tpublic static from(_raw: CCRaw, _ctx: CCParsingContext): LockCCSet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new LockCCSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic locked: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.locked ? 1 : 0]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { locked: this.locked },\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface LockCCReportOptions {\n\tlocked: boolean;\n}\n\n@CCCommand(LockCommand.Report)\n@ccValueProperty(\"locked\", LockCCValues.locked)\nexport class LockCCReport extends LockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<LockCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.locked = options.locked;\n\t}\n\n\tpublic static from(raw: CCRaw, ctx: CCParsingContext): LockCCReport {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\tconst locked = raw.payload[0] === 1;\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tlocked,\n\t\t});\n\t}\n\n\tpublic readonly locked: boolean;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { locked: this.locked },\n\t\t};\n\t}\n}\n\n@CCCommand(LockCommand.Get)\n@expectedCCResponse(LockCCReport)\nexport class LockCCGet extends LockCC {}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAYO;AAMP,IAAAA,eAAsB;AAEtB,iBASO;AACP,0BAKO;AACP,oCASO;AACP,oBAAkB;AAClB,mBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErB,MAAM,eAAe,OAAO,OAAO;EACzC,GAAG,gBAAE,qBAAqB,2BAAe,MAAM;IAC9C,GAAG,gBAAE,eACJ,UACA;MACC,GAAG,0BAAc;MACjB,OAAO;MACP,aAAa;KACJ;GAEX;CACD;IAGY,aAAS,MAAA;8BADrB,mCAAI,2BAAe,IAAI,CAAC;;;;oBACM;iCAAA,YAAa;;;;;;AAA5C,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IACL,gBAAgB,KAAgB;AACtC,cAAQ,KAAK;QACZ,KAAK,yBAAY;QACjB,KAAK,yBAAY;AAChB,iBAAO;MACT;AACA,aAAO,MAAM,gBAAgB,GAAG;IACjC;IAEO,MAAM,MAAG;AACf,WAAK,sBAAsB,0BAAa,yBAAY,GAAG;AAEvD,YAAM,KAAK,IAAI,UAAU;QACxB,QAAQ,KAAK,SAAS;QACtB,eAAe,KAAK,SAAS;OAC7B;AACD,YAAM,WAAW,MAAM,KAAK,KAAK,YAChC,IACA,KAAK,cAAc;AAEpB,aAAO,UAAU;IAClB;;;;;IAOO,MAAM,IAAI,QAAe;;AAC/B,WAAK,sBAAsB,0BAAa,yBAAY,GAAG;AAEvD,YAAM,KAAK,IAAI,UAAU;QACxB,QAAQ,KA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