@zwave-js/cc 14.3.10 → 15.0.0-beta.1

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 (523) hide show
  1. package/build/cjs/cc/AlarmSensorCC.d.ts +68 -68
  2. package/build/cjs/cc/AlarmSensorCC.js +12 -50
  3. package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
  4. package/build/cjs/cc/AssociationCC.d.ts +72 -73
  5. package/build/cjs/cc/AssociationCC.js +9 -26
  6. package/build/cjs/cc/AssociationCC.js.map +2 -2
  7. package/build/cjs/cc/AssociationGroupInfoCC.d.ts +71 -71
  8. package/build/cjs/cc/AssociationGroupInfoCC.js +11 -22
  9. package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
  10. package/build/cjs/cc/BarrierOperatorCC.d.ts +66 -72
  11. package/build/cjs/cc/BarrierOperatorCC.js +12 -44
  12. package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
  13. package/build/cjs/cc/BasicCC.d.ts +64 -65
  14. package/build/cjs/cc/BasicCC.js +15 -46
  15. package/build/cjs/cc/BasicCC.js.map +2 -2
  16. package/build/cjs/cc/BatteryCC.d.ts +162 -165
  17. package/build/cjs/cc/BatteryCC.js +7 -84
  18. package/build/cjs/cc/BatteryCC.js.map +2 -2
  19. package/build/cjs/cc/BinarySensorCC.d.ts +36 -36
  20. package/build/cjs/cc/BinarySensorCC.js +9 -29
  21. package/build/cjs/cc/BinarySensorCC.js.map +2 -2
  22. package/build/cjs/cc/BinarySwitchCC.d.ts +34 -34
  23. package/build/cjs/cc/BinarySwitchCC.js +6 -22
  24. package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
  25. package/build/cjs/cc/CRC16CC.d.ts +4 -8
  26. package/build/cjs/cc/CRC16CC.js +4 -27
  27. package/build/cjs/cc/CRC16CC.js.map +2 -2
  28. package/build/cjs/cc/CentralSceneCC.d.ts +74 -74
  29. package/build/cjs/cc/CentralSceneCC.js +7 -30
  30. package/build/cjs/cc/CentralSceneCC.js.map +2 -2
  31. package/build/cjs/cc/ClimateControlScheduleCC.d.ts +38 -40
  32. package/build/cjs/cc/ClimateControlScheduleCC.js +5 -24
  33. package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
  34. package/build/cjs/cc/ClockCC.d.ts +3 -3
  35. package/build/cjs/cc/ClockCC.js.map +2 -2
  36. package/build/cjs/cc/ColorSwitchCC.d.ts +117 -117
  37. package/build/cjs/cc/ColorSwitchCC.js +23 -75
  38. package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
  39. package/build/cjs/cc/ConfigurationCC._validateArgs.js +1 -1
  40. package/build/cjs/cc/ConfigurationCC._validateArgs.js.map +1 -1
  41. package/build/cjs/cc/ConfigurationCC.d.ts +48 -52
  42. package/build/cjs/cc/ConfigurationCC.js +11 -39
  43. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  44. package/build/cjs/cc/DeviceResetLocallyCC.d.ts +1 -1
  45. package/build/cjs/cc/DeviceResetLocallyCC.js.map +2 -2
  46. package/build/cjs/cc/DoorLockCC._validateArgs.js +1 -1
  47. package/build/cjs/cc/DoorLockCC._validateArgs.js.map +1 -1
  48. package/build/cjs/cc/DoorLockCC.d.ts +362 -361
  49. package/build/cjs/cc/DoorLockCC.js +51 -156
  50. package/build/cjs/cc/DoorLockCC.js.map +2 -2
  51. package/build/cjs/cc/DoorLockLoggingCC.d.ts +14 -14
  52. package/build/cjs/cc/DoorLockLoggingCC.js +4 -8
  53. package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
  54. package/build/cjs/cc/EnergyProductionCC.d.ts +16 -16
  55. package/build/cjs/cc/EnergyProductionCC.js +5 -17
  56. package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
  57. package/build/cjs/cc/EntryControlCC.d.ts +71 -71
  58. package/build/cjs/cc/EntryControlCC.js +9 -36
  59. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  60. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
  61. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js +26 -0
  62. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
  63. package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
  64. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +159 -34
  65. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
  66. package/build/cjs/cc/HumidityControlModeCC.d.ts +31 -33
  67. package/build/cjs/cc/HumidityControlModeCC.js +6 -15
  68. package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
  69. package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +9 -11
  70. package/build/cjs/cc/HumidityControlOperatingStateCC.js +4 -12
  71. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
  72. package/build/cjs/cc/HumidityControlSetpointCC.d.ts +50 -50
  73. package/build/cjs/cc/HumidityControlSetpointCC.js +10 -28
  74. package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
  75. package/build/cjs/cc/InclusionControllerCC.d.ts +4 -4
  76. package/build/cjs/cc/InclusionControllerCC.js.map +2 -2
  77. package/build/cjs/cc/IndicatorCC.d.ts +119 -119
  78. package/build/cjs/cc/IndicatorCC.js +15 -61
  79. package/build/cjs/cc/IndicatorCC.js.map +2 -2
  80. package/build/cjs/cc/IrrigationCC.d.ts +581 -585
  81. package/build/cjs/cc/IrrigationCC.js +29 -233
  82. package/build/cjs/cc/IrrigationCC.js.map +2 -2
  83. package/build/cjs/cc/LanguageCC.d.ts +21 -21
  84. package/build/cjs/cc/LanguageCC.js +4 -15
  85. package/build/cjs/cc/LanguageCC.js.map +2 -2
  86. package/build/cjs/cc/LockCC.d.ts +9 -9
  87. package/build/cjs/cc/LockCC.js +4 -12
  88. package/build/cjs/cc/LockCC.js.map +2 -2
  89. package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
  90. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  91. package/build/cjs/cc/ManufacturerSpecificCC.d.ts +67 -67
  92. package/build/cjs/cc/ManufacturerSpecificCC.js +5 -26
  93. package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
  94. package/build/cjs/cc/MeterCC.d.ts +120 -119
  95. package/build/cjs/cc/MeterCC.js +25 -69
  96. package/build/cjs/cc/MeterCC.js.map +2 -2
  97. package/build/cjs/cc/MultiChannelAssociationCC.d.ts +71 -73
  98. package/build/cjs/cc/MultiChannelAssociationCC.js +10 -28
  99. package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
  100. package/build/cjs/cc/MultiChannelCC.d.ts +136 -146
  101. package/build/cjs/cc/MultiChannelCC.js +26 -118
  102. package/build/cjs/cc/MultiChannelCC.js.map +2 -2
  103. package/build/cjs/cc/MultiCommandCC.d.ts +4 -8
  104. package/build/cjs/cc/MultiCommandCC.js +4 -37
  105. package/build/cjs/cc/MultiCommandCC.js.map +2 -2
  106. package/build/cjs/cc/MultilevelSensorCC.d.ts +50 -49
  107. package/build/cjs/cc/MultilevelSensorCC.js +12 -33
  108. package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
  109. package/build/cjs/cc/MultilevelSwitchCC.d.ts +146 -146
  110. package/build/cjs/cc/MultilevelSwitchCC.js +13 -107
  111. package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
  112. package/build/cjs/cc/NodeNamingCC.d.ts +30 -30
  113. package/build/cjs/cc/NodeNamingCC.js +5 -16
  114. package/build/cjs/cc/NodeNamingCC.js.map +2 -2
  115. package/build/cjs/cc/NotificationCC.d.ts +210 -208
  116. package/build/cjs/cc/NotificationCC.js +41 -113
  117. package/build/cjs/cc/NotificationCC.js.map +2 -2
  118. package/build/cjs/cc/PowerlevelCC.d.ts +6 -6
  119. package/build/cjs/cc/PowerlevelCC.js.map +2 -2
  120. package/build/cjs/cc/ProtectionCC.d.ts +117 -121
  121. package/build/cjs/cc/ProtectionCC.js +15 -50
  122. package/build/cjs/cc/ProtectionCC.js.map +2 -2
  123. package/build/cjs/cc/SceneActivationCC.d.ts +29 -29
  124. package/build/cjs/cc/SceneActivationCC.js +4 -17
  125. package/build/cjs/cc/SceneActivationCC.js.map +2 -2
  126. package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +35 -35
  127. package/build/cjs/cc/SceneActuatorConfigurationCC.js +9 -21
  128. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
  129. package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +36 -35
  130. package/build/cjs/cc/SceneControllerConfigurationCC.js +10 -22
  131. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
  132. package/build/cjs/cc/ScheduleEntryLockCC.d.ts +109 -109
  133. package/build/cjs/cc/ScheduleEntryLockCC.js +13 -30
  134. package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
  135. package/build/cjs/cc/Security2CC.d.ts +15 -21
  136. package/build/cjs/cc/Security2CC.js +32 -347
  137. package/build/cjs/cc/Security2CC.js.map +3 -3
  138. package/build/cjs/cc/SecurityCC.d.ts +12 -19
  139. package/build/cjs/cc/SecurityCC.js +12 -106
  140. package/build/cjs/cc/SecurityCC.js.map +2 -2
  141. package/build/cjs/cc/SoundSwitchCC.d.ts +58 -58
  142. package/build/cjs/cc/SoundSwitchCC.js +11 -43
  143. package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
  144. package/build/cjs/cc/SupervisionCC.d.ts +21 -25
  145. package/build/cjs/cc/SupervisionCC.js +8 -38
  146. package/build/cjs/cc/SupervisionCC.js.map +2 -2
  147. package/build/cjs/cc/ThermostatFanModeCC.d.ts +37 -39
  148. package/build/cjs/cc/ThermostatFanModeCC.js +8 -21
  149. package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
  150. package/build/cjs/cc/ThermostatFanStateCC.d.ts +9 -11
  151. package/build/cjs/cc/ThermostatFanStateCC.js +4 -12
  152. package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
  153. package/build/cjs/cc/ThermostatModeCC.d.ts +39 -41
  154. package/build/cjs/cc/ThermostatModeCC.js +8 -21
  155. package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
  156. package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +9 -11
  157. package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -12
  158. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
  159. package/build/cjs/cc/ThermostatSetbackCC.d.ts +4 -4
  160. package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
  161. package/build/cjs/cc/ThermostatSetpointCC.d.ts +51 -51
  162. package/build/cjs/cc/ThermostatSetpointCC.js +10 -25
  163. package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
  164. package/build/cjs/cc/TimeCC.d.ts +6 -6
  165. package/build/cjs/cc/TimeCC.js.map +2 -2
  166. package/build/cjs/cc/TimeParametersCC.d.ts +9 -9
  167. package/build/cjs/cc/TimeParametersCC.js +4 -11
  168. package/build/cjs/cc/TimeParametersCC.js.map +2 -2
  169. package/build/cjs/cc/TransportServiceCC.d.ts +7 -12
  170. package/build/cjs/cc/TransportServiceCC.js +3 -20
  171. package/build/cjs/cc/TransportServiceCC.js.map +2 -2
  172. package/build/cjs/cc/UserCodeCC._validateArgs.js +1 -1
  173. package/build/cjs/cc/UserCodeCC._validateArgs.js.map +1 -1
  174. package/build/cjs/cc/UserCodeCC.d.ts +236 -236
  175. package/build/cjs/cc/UserCodeCC.js +33 -98
  176. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  177. package/build/cjs/cc/VersionCC.d.ts +210 -212
  178. package/build/cjs/cc/VersionCC.js +7 -98
  179. package/build/cjs/cc/VersionCC.js.map +2 -2
  180. package/build/cjs/cc/WakeUpCC.d.ts +44 -44
  181. package/build/cjs/cc/WakeUpCC.js +6 -26
  182. package/build/cjs/cc/WakeUpCC.js.map +2 -2
  183. package/build/cjs/cc/WindowCoveringCC.d.ts +118 -122
  184. package/build/cjs/cc/WindowCoveringCC.js +16 -128
  185. package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
  186. package/build/cjs/cc/ZWavePlusCC.d.ts +74 -74
  187. package/build/cjs/cc/ZWavePlusCC.js +4 -25
  188. package/build/cjs/cc/ZWavePlusCC.js.map +2 -2
  189. package/build/cjs/cc/ZWaveProtocolCC.d.ts +28 -28
  190. package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
  191. package/build/cjs/cc/_CCValues.generated.d.ts +15814 -0
  192. package/build/cjs/cc/_CCValues.generated.js +8723 -0
  193. package/build/cjs/cc/_CCValues.generated.js.map +7 -0
  194. package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
  195. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
  196. package/build/cjs/index.d.ts +1 -0
  197. package/build/cjs/index.js.map +1 -1
  198. package/build/cjs/index_browser.d.ts +9 -0
  199. package/build/cjs/index_browser.js +41 -1
  200. package/build/cjs/index_browser.js.map +2 -2
  201. package/build/cjs/lib/API.d.ts +7 -5
  202. package/build/cjs/lib/API.js +1 -1
  203. package/build/cjs/lib/API.js.map +2 -2
  204. package/build/cjs/lib/CCValueUtils.d.ts +14 -0
  205. package/build/cjs/lib/CCValueUtils.js +93 -0
  206. package/build/cjs/lib/CCValueUtils.js.map +7 -0
  207. package/build/cjs/lib/CommandClass.d.ts +10 -21
  208. package/build/cjs/lib/CommandClass.js +51 -106
  209. package/build/cjs/lib/CommandClass.js.map +3 -3
  210. package/build/cjs/lib/CommandClassDecorators.d.ts +1 -1
  211. package/build/cjs/lib/CommandClassDecorators.js +3 -3
  212. package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
  213. package/build/cjs/lib/Values.d.ts +7 -106
  214. package/build/cjs/lib/Values.js +13 -107
  215. package/build/cjs/lib/Values.js.map +3 -3
  216. package/build/cjs/lib/traits.d.ts +94 -0
  217. package/build/cjs/lib/traits.js +17 -0
  218. package/build/cjs/lib/traits.js.map +7 -0
  219. package/build/cjs/lib/utils.d.ts +2 -2
  220. package/build/cjs/lib/utils.js.map +2 -2
  221. package/build/esm/cc/AlarmSensorCC.d.ts +68 -68
  222. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  223. package/build/esm/cc/AlarmSensorCC.js +2 -40
  224. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  225. package/build/esm/cc/AssociationCC.d.ts +72 -73
  226. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  227. package/build/esm/cc/AssociationCC.js +2 -27
  228. package/build/esm/cc/AssociationCC.js.map +1 -1
  229. package/build/esm/cc/AssociationGroupInfoCC.d.ts +71 -71
  230. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  231. package/build/esm/cc/AssociationGroupInfoCC.js +2 -19
  232. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  233. package/build/esm/cc/BarrierOperatorCC.d.ts +66 -72
  234. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  235. package/build/esm/cc/BarrierOperatorCC.js +2 -37
  236. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  237. package/build/esm/cc/BasicCC.d.ts +64 -65
  238. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  239. package/build/esm/cc/BasicCC.js +2 -34
  240. package/build/esm/cc/BasicCC.js.map +1 -1
  241. package/build/esm/cc/BatteryCC.d.ts +162 -165
  242. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  243. package/build/esm/cc/BatteryCC.js +3 -80
  244. package/build/esm/cc/BatteryCC.js.map +1 -1
  245. package/build/esm/cc/BinarySensorCC.d.ts +36 -36
  246. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  247. package/build/esm/cc/BinarySensorCC.js +2 -19
  248. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  249. package/build/esm/cc/BinarySwitchCC.d.ts +34 -34
  250. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  251. package/build/esm/cc/BinarySwitchCC.js +2 -19
  252. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  253. package/build/esm/cc/CRC16CC.d.ts +4 -8
  254. package/build/esm/cc/CRC16CC.d.ts.map +1 -1
  255. package/build/esm/cc/CRC16CC.js +4 -34
  256. package/build/esm/cc/CRC16CC.js.map +1 -1
  257. package/build/esm/cc/CentralSceneCC.d.ts +74 -74
  258. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  259. package/build/esm/cc/CentralSceneCC.js +2 -27
  260. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  261. package/build/esm/cc/ClimateControlScheduleCC.d.ts +38 -40
  262. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
  263. package/build/esm/cc/ClimateControlScheduleCC.js +2 -26
  264. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  265. package/build/esm/cc/ClockCC.d.ts +3 -3
  266. package/build/esm/cc/ClockCC.d.ts.map +1 -1
  267. package/build/esm/cc/ClockCC.js +0 -1
  268. package/build/esm/cc/ClockCC.js.map +1 -1
  269. package/build/esm/cc/ColorSwitchCC.d.ts +117 -117
  270. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  271. package/build/esm/cc/ColorSwitchCC.js +2 -58
  272. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  273. package/build/esm/cc/ConfigurationCC._validateArgs.js +1 -1
  274. package/build/esm/cc/ConfigurationCC._validateArgs.js.map +1 -1
  275. package/build/esm/cc/ConfigurationCC.d.ts +48 -52
  276. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  277. package/build/esm/cc/ConfigurationCC.js +2 -40
  278. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  279. package/build/esm/cc/DeviceResetLocallyCC.d.ts +1 -1
  280. package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
  281. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  282. package/build/esm/cc/DoorLockCC._validateArgs.js +1 -1
  283. package/build/esm/cc/DoorLockCC._validateArgs.js.map +1 -1
  284. package/build/esm/cc/DoorLockCC.d.ts +362 -361
  285. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  286. package/build/esm/cc/DoorLockCC.js +9 -129
  287. package/build/esm/cc/DoorLockCC.js.map +1 -1
  288. package/build/esm/cc/DoorLockLoggingCC.d.ts +14 -14
  289. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  290. package/build/esm/cc/DoorLockLoggingCC.js +2 -6
  291. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  292. package/build/esm/cc/EnergyProductionCC.d.ts +16 -16
  293. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
  294. package/build/esm/cc/EnergyProductionCC.js +2 -15
  295. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  296. package/build/esm/cc/EntryControlCC.d.ts +71 -71
  297. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  298. package/build/esm/cc/EntryControlCC.js +2 -29
  299. package/build/esm/cc/EntryControlCC.js.map +1 -1
  300. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
  301. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts.map +1 -1
  302. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js +20 -0
  303. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
  304. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
  305. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  306. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +160 -53
  307. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  308. package/build/esm/cc/HumidityControlModeCC.d.ts +31 -33
  309. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  310. package/build/esm/cc/HumidityControlModeCC.js +2 -11
  311. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  312. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +9 -11
  313. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  314. package/build/esm/cc/HumidityControlOperatingStateCC.js +2 -9
  315. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  316. package/build/esm/cc/HumidityControlSetpointCC.d.ts +50 -50
  317. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  318. package/build/esm/cc/HumidityControlSetpointCC.js +2 -23
  319. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  320. package/build/esm/cc/InclusionControllerCC.d.ts +4 -4
  321. package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
  322. package/build/esm/cc/InclusionControllerCC.js +0 -2
  323. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  324. package/build/esm/cc/IndicatorCC.d.ts +119 -119
  325. package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
  326. package/build/esm/cc/IndicatorCC.js +2 -50
  327. package/build/esm/cc/IndicatorCC.js.map +1 -1
  328. package/build/esm/cc/IrrigationCC.d.ts +581 -585
  329. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  330. package/build/esm/cc/IrrigationCC.js +3 -231
  331. package/build/esm/cc/IrrigationCC.js.map +1 -1
  332. package/build/esm/cc/LanguageCC.d.ts +21 -21
  333. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  334. package/build/esm/cc/LanguageCC.js +2 -13
  335. package/build/esm/cc/LanguageCC.js.map +1 -1
  336. package/build/esm/cc/LockCC.d.ts +9 -9
  337. package/build/esm/cc/LockCC.d.ts.map +1 -1
  338. package/build/esm/cc/LockCC.js +2 -10
  339. package/build/esm/cc/LockCC.js.map +1 -1
  340. package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
  341. package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
  342. package/build/esm/cc/ManufacturerProprietaryCC.js +0 -2
  343. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  344. package/build/esm/cc/ManufacturerSpecificCC.d.ts +67 -67
  345. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  346. package/build/esm/cc/ManufacturerSpecificCC.js +2 -26
  347. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  348. package/build/esm/cc/MeterCC.d.ts +120 -119
  349. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  350. package/build/esm/cc/MeterCC.js +3 -53
  351. package/build/esm/cc/MeterCC.js.map +1 -1
  352. package/build/esm/cc/MultiChannelAssociationCC.d.ts +71 -73
  353. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  354. package/build/esm/cc/MultiChannelAssociationCC.js +2 -30
  355. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  356. package/build/esm/cc/MultiChannelCC.d.ts +136 -146
  357. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  358. package/build/esm/cc/MultiChannelCC.js +10 -131
  359. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  360. package/build/esm/cc/MultiCommandCC.d.ts +4 -8
  361. package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
  362. package/build/esm/cc/MultiCommandCC.js +4 -38
  363. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  364. package/build/esm/cc/MultilevelSensorCC.d.ts +50 -49
  365. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  366. package/build/esm/cc/MultilevelSensorCC.js +2 -27
  367. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  368. package/build/esm/cc/MultilevelSwitchCC.d.ts +146 -146
  369. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  370. package/build/esm/cc/MultilevelSwitchCC.js +5 -105
  371. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  372. package/build/esm/cc/NodeNamingCC.d.ts +30 -30
  373. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  374. package/build/esm/cc/NodeNamingCC.js +2 -14
  375. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  376. package/build/esm/cc/NotificationCC.d.ts +210 -208
  377. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  378. package/build/esm/cc/NotificationCC.js +21 -97
  379. package/build/esm/cc/NotificationCC.js.map +1 -1
  380. package/build/esm/cc/PowerlevelCC.d.ts +6 -6
  381. package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
  382. package/build/esm/cc/PowerlevelCC.js +0 -4
  383. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  384. package/build/esm/cc/ProtectionCC.d.ts +117 -121
  385. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  386. package/build/esm/cc/ProtectionCC.js +2 -39
  387. package/build/esm/cc/ProtectionCC.js.map +1 -1
  388. package/build/esm/cc/SceneActivationCC.d.ts +29 -29
  389. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
  390. package/build/esm/cc/SceneActivationCC.js +2 -15
  391. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  392. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +35 -35
  393. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
  394. package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -16
  395. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  396. package/build/esm/cc/SceneControllerConfigurationCC.d.ts +36 -35
  397. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
  398. package/build/esm/cc/SceneControllerConfigurationCC.js +2 -16
  399. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  400. package/build/esm/cc/ScheduleEntryLockCC.d.ts +109 -109
  401. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  402. package/build/esm/cc/ScheduleEntryLockCC.js +2 -31
  403. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  404. package/build/esm/cc/Security2CC.d.ts +15 -21
  405. package/build/esm/cc/Security2CC.d.ts.map +1 -1
  406. package/build/esm/cc/Security2CC.js +27 -475
  407. package/build/esm/cc/Security2CC.js.map +1 -1
  408. package/build/esm/cc/SecurityCC.d.ts +12 -19
  409. package/build/esm/cc/SecurityCC.d.ts.map +1 -1
  410. package/build/esm/cc/SecurityCC.js +13 -138
  411. package/build/esm/cc/SecurityCC.js.map +1 -1
  412. package/build/esm/cc/SoundSwitchCC.d.ts +58 -58
  413. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  414. package/build/esm/cc/SoundSwitchCC.js +2 -40
  415. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  416. package/build/esm/cc/SupervisionCC.d.ts +21 -25
  417. package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
  418. package/build/esm/cc/SupervisionCC.js +6 -41
  419. package/build/esm/cc/SupervisionCC.js.map +1 -1
  420. package/build/esm/cc/ThermostatFanModeCC.d.ts +37 -39
  421. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  422. package/build/esm/cc/ThermostatFanModeCC.js +2 -15
  423. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  424. package/build/esm/cc/ThermostatFanStateCC.d.ts +9 -11
  425. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  426. package/build/esm/cc/ThermostatFanStateCC.js +2 -9
  427. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  428. package/build/esm/cc/ThermostatModeCC.d.ts +39 -41
  429. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  430. package/build/esm/cc/ThermostatModeCC.js +2 -17
  431. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  432. package/build/esm/cc/ThermostatOperatingStateCC.d.ts +9 -11
  433. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  434. package/build/esm/cc/ThermostatOperatingStateCC.js +2 -9
  435. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  436. package/build/esm/cc/ThermostatSetbackCC.d.ts +4 -4
  437. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
  438. package/build/esm/cc/ThermostatSetbackCC.js +0 -2
  439. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  440. package/build/esm/cc/ThermostatSetpointCC.d.ts +51 -51
  441. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  442. package/build/esm/cc/ThermostatSetpointCC.js +2 -22
  443. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  444. package/build/esm/cc/TimeCC.d.ts +6 -6
  445. package/build/esm/cc/TimeCC.d.ts.map +1 -1
  446. package/build/esm/cc/TimeCC.js +0 -4
  447. package/build/esm/cc/TimeCC.js.map +1 -1
  448. package/build/esm/cc/TimeParametersCC.d.ts +9 -9
  449. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  450. package/build/esm/cc/TimeParametersCC.js +2 -9
  451. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  452. package/build/esm/cc/TransportServiceCC.d.ts +7 -12
  453. package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
  454. package/build/esm/cc/TransportServiceCC.js +5 -38
  455. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  456. package/build/esm/cc/UserCodeCC._validateArgs.js +1 -1
  457. package/build/esm/cc/UserCodeCC._validateArgs.js.map +1 -1
  458. package/build/esm/cc/UserCodeCC.d.ts +236 -236
  459. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  460. package/build/esm/cc/UserCodeCC.js +2 -72
  461. package/build/esm/cc/UserCodeCC.js.map +1 -1
  462. package/build/esm/cc/VersionCC.d.ts +210 -212
  463. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  464. package/build/esm/cc/VersionCC.js +2 -96
  465. package/build/esm/cc/VersionCC.js.map +1 -1
  466. package/build/esm/cc/WakeUpCC.d.ts +44 -44
  467. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  468. package/build/esm/cc/WakeUpCC.js +2 -22
  469. package/build/esm/cc/WakeUpCC.js.map +1 -1
  470. package/build/esm/cc/WindowCoveringCC.d.ts +118 -122
  471. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  472. package/build/esm/cc/WindowCoveringCC.js +3 -108
  473. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  474. package/build/esm/cc/ZWavePlusCC.d.ts +74 -74
  475. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  476. package/build/esm/cc/ZWavePlusCC.js +2 -26
  477. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  478. package/build/esm/cc/ZWaveProtocolCC.d.ts +28 -28
  479. package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
  480. package/build/esm/cc/ZWaveProtocolCC.js +0 -27
  481. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  482. package/build/esm/cc/_CCValues.generated.d.ts +15814 -0
  483. package/build/esm/cc/_CCValues.generated.d.ts.map +1 -0
  484. package/build/esm/cc/_CCValues.generated.js +9187 -0
  485. package/build/esm/cc/_CCValues.generated.js.map +1 -0
  486. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
  487. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
  488. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +0 -3
  489. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  490. package/build/esm/index.d.ts +1 -0
  491. package/build/esm/index.d.ts.map +1 -1
  492. package/build/esm/index_browser.d.ts +9 -0
  493. package/build/esm/index_browser.d.ts.map +1 -1
  494. package/build/esm/index_browser.js +8 -1
  495. package/build/esm/index_browser.js.map +1 -1
  496. package/build/esm/lib/API.d.ts +7 -5
  497. package/build/esm/lib/API.d.ts.map +1 -1
  498. package/build/esm/lib/API.js +1 -1
  499. package/build/esm/lib/API.js.map +1 -1
  500. package/build/esm/lib/CCValueUtils.d.ts +14 -0
  501. package/build/esm/lib/CCValueUtils.d.ts.map +1 -0
  502. package/build/esm/lib/CCValueUtils.js +62 -0
  503. package/build/esm/lib/CCValueUtils.js.map +1 -0
  504. package/build/esm/lib/CommandClass.d.ts +10 -21
  505. package/build/esm/lib/CommandClass.d.ts.map +1 -1
  506. package/build/esm/lib/CommandClass.js +8 -101
  507. package/build/esm/lib/CommandClass.js.map +1 -1
  508. package/build/esm/lib/CommandClassDecorators.d.ts +1 -1
  509. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
  510. package/build/esm/lib/CommandClassDecorators.js +1 -1
  511. package/build/esm/lib/CommandClassDecorators.js.map +1 -1
  512. package/build/esm/lib/Values.d.ts +7 -106
  513. package/build/esm/lib/Values.d.ts.map +1 -1
  514. package/build/esm/lib/Values.js +7 -104
  515. package/build/esm/lib/Values.js.map +1 -1
  516. package/build/esm/lib/traits.d.ts +94 -0
  517. package/build/esm/lib/traits.d.ts.map +1 -0
  518. package/build/esm/lib/traits.js +2 -0
  519. package/build/esm/lib/traits.js.map +1 -0
  520. package/build/esm/lib/utils.d.ts +2 -2
  521. package/build/esm/lib/utils.d.ts.map +1 -1
  522. package/build/esm/lib/utils.js.map +1 -1
  523. package/package.json +16 -14
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var CCValueUtils_exports = {};
21
+ __export(CCValueUtils_exports, {
22
+ irrigationValveIdToMetadataPrefix: () => irrigationValveIdToMetadataPrefix,
23
+ meterTypesToPropertyKey: () => meterTypesToPropertyKey,
24
+ multilevelSwitchTypeProperties: () => multilevelSwitchTypeProperties,
25
+ multilevelSwitchTypeToActions: () => multilevelSwitchTypeToActions,
26
+ windowCoveringParameterToLevelChangeLabel: () => windowCoveringParameterToLevelChangeLabel,
27
+ windowCoveringParameterToMetadataStates: () => windowCoveringParameterToMetadataStates
28
+ });
29
+ module.exports = __toCommonJS(CCValueUtils_exports);
30
+ var import_Types = require("./_Types.js");
31
+ function multilevelSwitchTypeToActions(switchType) {
32
+ if (!switchType.includes("/"))
33
+ switchType = import_Types.SwitchType[2];
34
+ return switchType.split("/", 2);
35
+ }
36
+ __name(multilevelSwitchTypeToActions, "multilevelSwitchTypeToActions");
37
+ const multilevelSwitchTypeProperties = Object.keys(import_Types.SwitchType).filter((key) => key.includes("/")).map((key) => multilevelSwitchTypeToActions(key)).reduce((acc, cur) => acc.concat(...cur), []);
38
+ function windowCoveringParameterToMetadataStates(parameter) {
39
+ switch (parameter) {
40
+ case import_Types.WindowCoveringParameter["Vertical Slats Angle (no position)"]:
41
+ case import_Types.WindowCoveringParameter["Vertical Slats Angle"]:
42
+ return {
43
+ 0: "Closed (right inside)",
44
+ 50: "Open",
45
+ 99: "Closed (left inside)"
46
+ };
47
+ case import_Types.WindowCoveringParameter["Horizontal Slats Angle (no position)"]:
48
+ case import_Types.WindowCoveringParameter["Horizontal Slats Angle"]:
49
+ return {
50
+ 0: "Closed (up inside)",
51
+ 50: "Open",
52
+ 99: "Closed (down inside)"
53
+ };
54
+ }
55
+ return {
56
+ 0: "Closed",
57
+ 99: "Open"
58
+ };
59
+ }
60
+ __name(windowCoveringParameterToMetadataStates, "windowCoveringParameterToMetadataStates");
61
+ function windowCoveringParameterToLevelChangeLabel(parameter, direction) {
62
+ switch (parameter) {
63
+ // For angle control, both directions are closed, so we specify it explicitly
64
+ case import_Types.WindowCoveringParameter["Vertical Slats Angle (no position)"]:
65
+ case import_Types.WindowCoveringParameter["Vertical Slats Angle"]:
66
+ return `Change tilt (${direction === "up" ? "left inside" : "right inside"})`;
67
+ case import_Types.WindowCoveringParameter["Horizontal Slats Angle (no position)"]:
68
+ case import_Types.WindowCoveringParameter["Horizontal Slats Angle"]:
69
+ return `Change tilt (${direction === "up" ? "down inside" : "up inside"})`;
70
+ }
71
+ return direction === "up" ? "Open" : "Close";
72
+ }
73
+ __name(windowCoveringParameterToLevelChangeLabel, "windowCoveringParameterToLevelChangeLabel");
74
+ function meterTypesToPropertyKey(meterType, rateType, scale) {
75
+ return meterType << 16 | scale << 8 | rateType;
76
+ }
77
+ __name(meterTypesToPropertyKey, "meterTypesToPropertyKey");
78
+ function irrigationValveIdToMetadataPrefix(valveId) {
79
+ if (valveId === "master")
80
+ return "Master valve";
81
+ return `Valve ${valveId.toString().padStart(3, "0")}`;
82
+ }
83
+ __name(irrigationValveIdToMetadataPrefix, "irrigationValveIdToMetadataPrefix");
84
+ // Annotate the CommonJS export names for ESM import in node:
85
+ 0 && (module.exports = {
86
+ irrigationValveIdToMetadataPrefix,
87
+ meterTypesToPropertyKey,
88
+ multilevelSwitchTypeProperties,
89
+ multilevelSwitchTypeToActions,
90
+ windowCoveringParameterToLevelChangeLabel,
91
+ windowCoveringParameterToMetadataStates
92
+ });
93
+ //# sourceMappingURL=CCValueUtils.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/CCValueUtils.ts"],
4
+ "sourcesContent": ["import {\n\ttype RateType,\n\tSwitchType,\n\ttype ValveId,\n\tWindowCoveringParameter,\n} from \"./_Types.js\";\n\n/**\n * Translates a switch type into two actions that may be performed. Unknown types default to Down/Up\n */\n\nexport function multilevelSwitchTypeToActions(\n\tswitchType: string,\n): [down: string, up: string] {\n\tif (!switchType.includes(\"/\")) switchType = SwitchType[0x02]; // Down/Up\n\treturn switchType.split(\"/\", 2) as any;\n}\n/**\n * The property names are organized so that positive motions are at odd indices and negative motions at even indices\n */\n\nexport const multilevelSwitchTypeProperties = Object.keys(SwitchType)\n\t.filter((key) => key.includes(\"/\"))\n\t.map((key) => multilevelSwitchTypeToActions(key))\n\t.reduce<string[]>((acc, cur) => acc.concat(...cur), []);\n\nexport function windowCoveringParameterToMetadataStates(\n\tparameter: WindowCoveringParameter,\n): Record<number, string> {\n\tswitch (parameter) {\n\t\tcase WindowCoveringParameter[\"Vertical Slats Angle (no position)\"]:\n\t\tcase WindowCoveringParameter[\"Vertical Slats Angle\"]:\n\t\t\treturn {\n\t\t\t\t0: \"Closed (right inside)\",\n\t\t\t\t50: \"Open\",\n\t\t\t\t99: \"Closed (left inside)\",\n\t\t\t};\n\n\t\tcase WindowCoveringParameter[\"Horizontal Slats Angle (no position)\"]:\n\t\tcase WindowCoveringParameter[\"Horizontal Slats Angle\"]:\n\t\t\treturn {\n\t\t\t\t0: \"Closed (up inside)\",\n\t\t\t\t50: \"Open\",\n\t\t\t\t99: \"Closed (down inside)\",\n\t\t\t};\n\t}\n\n\treturn {\n\t\t0: \"Closed\",\n\t\t99: \"Open\",\n\t};\n}\n\nexport function windowCoveringParameterToLevelChangeLabel(\n\tparameter: WindowCoveringParameter,\n\tdirection: \"up\" | \"down\",\n): string {\n\tswitch (parameter) {\n\t\t// For angle control, both directions are closed, so we specify it explicitly\n\t\tcase WindowCoveringParameter[\"Vertical Slats Angle (no position)\"]:\n\t\tcase WindowCoveringParameter[\"Vertical Slats Angle\"]:\n\t\t\treturn `Change tilt (${\n\t\t\t\tdirection === \"up\" ? \"left inside\" : \"right inside\"\n\t\t\t})`;\n\n\t\tcase WindowCoveringParameter[\"Horizontal Slats Angle (no position)\"]:\n\t\tcase WindowCoveringParameter[\"Horizontal Slats Angle\"]:\n\t\t\t// Horizontal slats refer to the position of the inner side of the slats\n\t\t\t// where a high level (99) actually means they face down\n\t\t\treturn `Change tilt (${\n\t\t\t\tdirection === \"up\" ? \"down inside\" : \"up inside\"\n\t\t\t})`;\n\t}\n\t// For all other parameters, refer to the amount of light that is let in\n\treturn direction === \"up\" ? \"Open\" : \"Close\";\n}\n\nexport function meterTypesToPropertyKey(\n\tmeterType: number,\n\trateType: RateType,\n\tscale: number,\n): number {\n\treturn (meterType << 16) | (scale << 8) | rateType;\n}\n\nexport function irrigationValveIdToMetadataPrefix(valveId: ValveId): string {\n\tif (valveId === \"master\") return \"Master valve\";\n\treturn `Valve ${valveId.toString().padStart(3, \"0\")}`;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;AAAA,mBAKO;AAMD,SAAU,8BACf,YAAkB;AAElB,MAAI,CAAC,WAAW,SAAS,GAAG;AAAG,iBAAa,wBAAW,CAAI;AAC3D,SAAO,WAAW,MAAM,KAAK,CAAC;AAC/B;AALgB;AAUT,MAAM,iCAAiC,OAAO,KAAK,uBAAU,EAClE,OAAO,CAAC,QAAQ,IAAI,SAAS,GAAG,CAAC,EACjC,IAAI,CAAC,QAAQ,8BAA8B,GAAG,CAAC,EAC/C,OAAiB,CAAC,KAAK,QAAQ,IAAI,OAAO,GAAG,GAAG,GAAG,CAAA,CAAE;AAEjD,SAAU,wCACf,WAAkC;AAElC,UAAQ,WAAW;IAClB,KAAK,qCAAwB,oCAAoC;IACjE,KAAK,qCAAwB,sBAAsB;AAClD,aAAO;QACN,GAAG;QACH,IAAI;QACJ,IAAI;;IAGN,KAAK,qCAAwB,sCAAsC;IACnE,KAAK,qCAAwB,wBAAwB;AACpD,aAAO;QACN,GAAG;QACH,IAAI;QACJ,IAAI;;EAEP;AAEA,SAAO;IACN,GAAG;IACH,IAAI;;AAEN;AAzBgB;AA2BV,SAAU,0CACf,WACA,WAAwB;AAExB,UAAQ,WAAW;;IAElB,KAAK,qCAAwB,oCAAoC;IACjE,KAAK,qCAAwB,sBAAsB;AAClD,aAAO,gBACN,cAAc,OAAO,gBAAgB,cACtC;IAED,KAAK,qCAAwB,sCAAsC;IACnE,KAAK,qCAAwB,wBAAwB;AAGpD,aAAO,gBACN,cAAc,OAAO,gBAAgB,WACtC;EACF;AAEA,SAAO,cAAc,OAAO,SAAS;AACtC;AAtBgB;AAwBV,SAAU,wBACf,WACA,UACA,OAAa;AAEb,SAAQ,aAAa,KAAO,SAAS,IAAK;AAC3C;AANgB;AAQV,SAAU,kCAAkC,SAAgB;AACjE,MAAI,YAAY;AAAU,WAAO;AACjC,SAAO,SAAS,QAAQ,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAC;AACpD;AAHgB;",
6
+ "names": []
7
+ }
@@ -1,9 +1,12 @@
1
- import { type BroadcastCC, type CCAddress, type CCId, CommandClasses, type ControlsCC, EncapsulationFlags, type EndpointId, type FrameType, type GetAllEndpoints, type GetCCs, type GetEndpoint, type ListenBehavior, type MessageOrCCLogEntry, type ModifyCCs, type MulticastCC, type MulticastDestination, type NodeId, type QueryNodeStatus, type QuerySecurityClasses, type SetSecurityClass, type SinglecastCC, type SupportsCC, type ValueDB, type ValueID, type ValueMetadata, ZWaveErrorCodes } from "@zwave-js/core";
2
- import type { CCEncodingContext, CCParsingContext, GetDeviceConfig, GetInterviewOptions, GetNode, GetSupportedCCVersion, GetValueDB, HostIDs, LogNode, LookupManufacturer } from "@zwave-js/host";
3
- import { Bytes, type JSONObject } from "@zwave-js/shared";
1
+ import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
2
+ import { type GetDeviceConfig, type LookupManufacturer } from "@zwave-js/config";
3
+ import { type LogNode } from "@zwave-js/core";
4
+ import { type BroadcastCC, type CCAddress, type CCId, CommandClasses, type ControlsCC, EncapsulationFlags, type EndpointId, type FrameType, type GetAllEndpoints, type GetCCs, type GetEndpoint, type GetNode, type GetSupportedCCVersion, type GetValueDB, type HostIDs, type ListenBehavior, type MessageOrCCLogEntry, type ModifyCCs, type MulticastCC, type MulticastDestination, type NodeId, type QueryNodeStatus, type QuerySecurityClasses, type SetSecurityClass, type SinglecastCC, type SupportsCC, type ValueDB, type ValueID, type ValueMetadata, ZWaveErrorCodes } from "@zwave-js/core/safe";
5
+ import { Bytes, type JSONObject } from "@zwave-js/shared/safe";
4
6
  import type { CCAPIHost, CCAPINode, ValueIDProperties } from "./API.js";
5
7
  import { type EncapsulatingCommandClass } from "./EncapsulatingCommandClass.js";
6
8
  import { type CCValue, type DynamicCCValue, type StaticCCValue } from "./Values.js";
9
+ import { type GetInterviewOptions } from "./traits.js";
7
10
  export interface CommandClassOptions extends CCAddress {
8
11
  ccId?: number;
9
12
  ccCommand?: number;
@@ -25,12 +28,8 @@ export declare class CCRaw {
25
28
  }
26
29
  export declare class CommandClass implements CCId {
27
30
  constructor(options: CommandClassOptions);
28
- /** @deprecated Use {@link parseAsync} instead */
29
- static parse(data: Uint8Array, ctx: CCParsingContext): CommandClass;
30
- static parseAsync(data: Uint8Array, ctx: CCParsingContext): Promise<CommandClass>;
31
- /** @deprecated Use {@link fromAsync} instead */
32
- static from(raw: CCRaw, ctx: CCParsingContext): CommandClass;
33
- static fromAsync(raw: CCRaw, ctx: CCParsingContext): Promise<CommandClass>;
31
+ static parse(data: Uint8Array, ctx: CCParsingContext): Promise<CommandClass>;
32
+ static from(raw: CCRaw, ctx: CCParsingContext): CommandClass | Promise<CommandClass>;
34
33
  /** This CC's identifier */
35
34
  ccId: CommandClasses;
36
35
  ccCommand?: number;
@@ -60,13 +59,8 @@ export declare class CommandClass implements CCId {
60
59
  setInterviewComplete(host: GetValueDB, complete: boolean): void;
61
60
  /**
62
61
  * Serializes this CommandClass to be embedded in a message payload or another CC
63
- * @deprecated Use {@link serializeAsync} instead
64
62
  */
65
- serialize(ctx: CCEncodingContext): Bytes;
66
- /**
67
- * Serializes this CommandClass to be embedded in a message payload or another CC
68
- */
69
- serializeAsync(ctx: CCEncodingContext): Promise<Bytes>;
63
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
70
64
  prepareRetransmission(): void;
71
65
  /**
72
66
  * Create an instance of the given CC without checking whether it is supported.
@@ -186,13 +180,8 @@ export declare class CommandClass implements CCId {
186
180
  * @param _session The previously received set of messages received in this partial CC session
187
181
  */
188
182
  expectMoreMessages(_session: CommandClass[]): boolean;
189
- /**
190
- * Include previously received partial responses into a final CC
191
- * @deprecated Use {@link mergePartialCCsAsync} instead
192
- */
193
- mergePartialCCs(_partials: CommandClass[], _ctx: CCParsingContext): void;
194
183
  /** Include previously received partial responses into a final CC */
195
- mergePartialCCsAsync(_partials: CommandClass[], _ctx: CCParsingContext): Promise<void>;
184
+ mergePartialCCs(_partials: CommandClass[], _ctx: CCParsingContext): Promise<void>;
196
185
  /** Tests whether this CC expects at least one command in return */
197
186
  expectsCCResponse(): boolean;
198
187
  isExpectedCCResponse(received: CommandClass): boolean;
@@ -25,14 +25,14 @@ __export(CommandClass_exports, {
25
25
  getEffectiveCCVersion: () => getEffectiveCCVersion
26
26
  });
27
27
  module.exports = __toCommonJS(CommandClass_exports);
28
- var import_core = require("@zwave-js/core");
29
- var import_shared = require("@zwave-js/shared");
28
+ var import_safe = require("@zwave-js/core/safe");
29
+ var import_safe2 = require("@zwave-js/shared/safe");
30
30
  var import_typeguards = require("alcalzone-shared/typeguards");
31
31
  var import_CommandClassDecorators = require("./CommandClassDecorators.js");
32
32
  var import_EncapsulatingCommandClass = require("./EncapsulatingCommandClass.js");
33
33
  var import_Values = require("./Values.js");
34
34
  function getEffectiveCCVersion(ctx, cc, defaultVersion) {
35
- if (typeof cc.nodeId !== "number" || cc.nodeId === import_core.NODE_ID_BROADCAST || cc.nodeId === import_core.NODE_ID_BROADCAST_LR) {
35
+ if (typeof cc.nodeId !== "number" || cc.nodeId === import_safe.NODE_ID_BROADCAST || cc.nodeId === import_safe.NODE_ID_BROADCAST_LR) {
36
36
  return (0, import_CommandClassDecorators.getImplementedVersion)(cc.ccId);
37
37
  }
38
38
  return ctx.getSupportedCCVersion(cc.ccId, cc.nodeId, cc.endpointIndex) || (defaultVersion ?? (0, import_CommandClassDecorators.getImplementedVersion)(cc.ccId));
@@ -51,21 +51,21 @@ class CCRaw {
51
51
  this.payload = payload;
52
52
  }
53
53
  static parse(data) {
54
- const { ccId, bytesRead: ccIdLength } = (0, import_core.parseCCId)(data);
55
- if (ccId === import_core.CommandClasses["No Operation"]) {
56
- return new CCRaw(ccId, void 0, new import_shared.Bytes());
54
+ const { ccId, bytesRead: ccIdLength } = (0, import_safe.parseCCId)(data);
55
+ if (ccId === import_safe.CommandClasses["No Operation"]) {
56
+ return new CCRaw(ccId, void 0, new import_safe2.Bytes());
57
57
  }
58
58
  let ccCommand = data[ccIdLength];
59
- let payload = import_shared.Bytes.view(data.subarray(ccIdLength + 1));
60
- if (ccId === import_core.CommandClasses["Transport Service"]) {
61
- payload = import_shared.Bytes.concat([
62
- import_shared.Bytes.from([ccCommand & 7]),
59
+ let payload = import_safe2.Bytes.view(data.subarray(ccIdLength + 1));
60
+ if (ccId === import_safe.CommandClasses["Transport Service"]) {
61
+ payload = import_safe2.Bytes.concat([
62
+ import_safe2.Bytes.from([ccCommand & 7]),
63
63
  payload
64
64
  ]);
65
65
  ccCommand = ccCommand & 248;
66
- } else if (ccId === import_core.CommandClasses["Manufacturer Proprietary"]) {
67
- payload = import_shared.Bytes.concat([
68
- import_shared.Bytes.from([ccCommand]),
66
+ } else if (ccId === import_safe.CommandClasses["Manufacturer Proprietary"]) {
67
+ payload = import_safe2.Bytes.concat([
68
+ import_safe2.Bytes.from([ccCommand]),
69
69
  payload
70
70
  ]);
71
71
  ccCommand = void 0;
@@ -87,26 +87,25 @@ class CommandClass {
87
87
  this.endpointIndex = endpointIndex;
88
88
  this.ccId = ccId;
89
89
  this.ccCommand = ccCommand;
90
- this.payload = import_shared.Bytes.view(payload);
90
+ this.payload = import_safe2.Bytes.view(payload);
91
91
  }
92
- /** @deprecated Use {@link parseAsync} instead */
93
- static parse(data, ctx) {
92
+ static async parse(data, ctx) {
94
93
  const raw = CCRaw.parse(data);
95
94
  const CCConstructor = (0, import_CommandClassDecorators.getCCConstructor)(raw.ccId);
96
95
  if (!CCConstructor) {
97
- return CommandClass.from(raw, ctx);
96
+ return await CommandClass.from(raw, ctx);
98
97
  }
99
98
  let CommandConstructor;
100
99
  if (raw.ccCommand != void 0) {
101
100
  CommandConstructor = (0, import_CommandClassDecorators.getCCCommandConstructor)(raw.ccId, raw.ccCommand);
102
101
  }
103
102
  try {
104
- return (CommandConstructor ?? CCConstructor).from(raw, ctx);
103
+ return await (CommandConstructor ?? CCConstructor).from(raw, ctx);
105
104
  } catch (e) {
106
- if ((0, import_core.isZWaveError)(e) && e.code === import_core.ZWaveErrorCodes.PacketFormat_InvalidPayload) {
107
- const ccName = CommandConstructor?.name ?? `${(0, import_core.getCCName)(raw.ccId)} CC`;
105
+ if ((0, import_safe.isZWaveError)(e) && e.code === import_safe.ZWaveErrorCodes.PacketFormat_InvalidPayload) {
106
+ const ccName = CommandConstructor?.name ?? `${(0, import_safe.getCCName)(raw.ccId)} CC`;
108
107
  let reason;
109
- if (typeof e.context === "string" || typeof e.context === "number" && import_core.ZWaveErrorCodes[e.context] != void 0) {
108
+ if (typeof e.context === "string" || typeof e.context === "number" && import_safe.ZWaveErrorCodes[e.context] != void 0) {
110
109
  reason = e.context;
111
110
  }
112
111
  const ret = new InvalidCC({
@@ -121,38 +120,6 @@ class CommandClass {
121
120
  throw e;
122
121
  }
123
122
  }
124
- static async parseAsync(data, ctx) {
125
- const raw = CCRaw.parse(data);
126
- const CCConstructor = (0, import_CommandClassDecorators.getCCConstructor)(raw.ccId);
127
- if (!CCConstructor) {
128
- return CommandClass.fromAsync(raw, ctx);
129
- }
130
- let CommandConstructor;
131
- if (raw.ccCommand != void 0) {
132
- CommandConstructor = (0, import_CommandClassDecorators.getCCCommandConstructor)(raw.ccId, raw.ccCommand);
133
- }
134
- try {
135
- return await (CommandConstructor ?? CCConstructor).fromAsync(raw, ctx);
136
- } catch (e) {
137
- if ((0, import_core.isZWaveError)(e) && e.code === import_core.ZWaveErrorCodes.PacketFormat_InvalidPayload) {
138
- const ccName = CommandConstructor?.name ?? `${(0, import_core.getCCName)(raw.ccId)} CC`;
139
- let reason;
140
- if (typeof e.context === "string" || typeof e.context === "number" && import_core.ZWaveErrorCodes[e.context] != void 0) {
141
- reason = e.context;
142
- }
143
- const ret = new InvalidCC({
144
- nodeId: ctx.sourceNodeId,
145
- ccId: raw.ccId,
146
- ccCommand: raw.ccCommand,
147
- ccName,
148
- reason
149
- });
150
- return ret;
151
- }
152
- throw e;
153
- }
154
- }
155
- /** @deprecated Use {@link fromAsync} instead */
156
123
  static from(raw, ctx) {
157
124
  return new this({
158
125
  nodeId: ctx.sourceNodeId,
@@ -161,15 +128,11 @@ class CommandClass {
161
128
  payload: raw.payload
162
129
  });
163
130
  }
164
- // eslint-disable-next-line @typescript-eslint/require-await
165
- static async fromAsync(raw, ctx) {
166
- return this.from(raw, ctx);
167
- }
168
131
  /** This CC's identifier */
169
132
  ccId;
170
133
  ccCommand;
171
134
  get ccName() {
172
- return (0, import_core.getCCName)(this.ccId);
135
+ return (0, import_safe.getCCName)(this.ccId);
173
136
  }
174
137
  /** The ID of the target node(s) */
175
138
  nodeId;
@@ -181,7 +144,7 @@ class CommandClass {
181
144
  *
182
145
  * Don't use this directly, this is used internally.
183
146
  */
184
- encapsulationFlags = import_core.EncapsulationFlags.None;
147
+ encapsulationFlags = import_safe.EncapsulationFlags.None;
185
148
  /** Activates or deactivates the given encapsulation flag(s) */
186
149
  toggleEncapsulationFlag(flag, active) {
187
150
  if (active) {
@@ -216,18 +179,17 @@ class CommandClass {
216
179
  }
217
180
  /**
218
181
  * Serializes this CommandClass to be embedded in a message payload or another CC
219
- * @deprecated Use {@link serializeAsync} instead
220
182
  */
221
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
222
- serialize(ctx) {
223
- if (this.ccId === import_core.CommandClasses["No Operation"]) {
224
- return import_shared.Bytes.from([this.ccId]);
183
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/require-await
184
+ async serialize(ctx) {
185
+ if (this.ccId === import_safe.CommandClasses["No Operation"]) {
186
+ return import_safe2.Bytes.from([this.ccId]);
225
187
  } else if (this.ccCommand == void 0) {
226
- throw new import_core.ZWaveError("Cannot serialize a Command Class without a command", import_core.ZWaveErrorCodes.CC_Invalid);
188
+ throw new import_safe.ZWaveError("Cannot serialize a Command Class without a command", import_safe.ZWaveErrorCodes.CC_Invalid);
227
189
  }
228
190
  const payloadLength = this.payload.length;
229
191
  const ccIdLength = this.isExtended() ? 2 : 1;
230
- const data = new import_shared.Bytes(ccIdLength + 1 + payloadLength);
192
+ const data = new import_safe2.Bytes(ccIdLength + 1 + payloadLength);
231
193
  data.writeUIntBE(this.ccId, 0, ccIdLength);
232
194
  data[ccIdLength] = this.ccCommand;
233
195
  if (payloadLength > 0) {
@@ -235,17 +197,6 @@ class CommandClass {
235
197
  }
236
198
  return data;
237
199
  }
238
- /**
239
- * Serializes this CommandClass to be embedded in a message payload or another CC
240
- */
241
- // eslint-disable-next-line @typescript-eslint/require-await
242
- async serializeAsync(ctx) {
243
- if (this.serializeAsync !== CommandClass.prototype.serializeAsync) {
244
- return CommandClass.prototype.serialize.call(this, ctx);
245
- } else {
246
- return this.serialize(ctx);
247
- }
248
- }
249
200
  prepareRetransmission() {
250
201
  }
251
202
  /**
@@ -268,13 +219,13 @@ class CommandClass {
268
219
  let tag = this.constructor.name;
269
220
  const message = {};
270
221
  if (this.constructor === CommandClass) {
271
- tag = `${(0, import_shared.getEnumMemberName)(import_core.CommandClasses, this.ccId)} CC (not implemented)`;
222
+ tag = `${(0, import_safe2.getEnumMemberName)(import_safe.CommandClasses, this.ccId)} CC (not implemented)`;
272
223
  if (this.ccCommand != void 0) {
273
- message.command = (0, import_shared.num2hex)(this.ccCommand);
224
+ message.command = (0, import_safe2.num2hex)(this.ccCommand);
274
225
  }
275
226
  }
276
227
  if (this.payload.length > 0) {
277
- message.payload = (0, import_shared.buffer2hex)(this.payload);
228
+ message.payload = (0, import_safe2.buffer2hex)(this.payload);
278
229
  }
279
230
  return {
280
231
  tags: [tag],
@@ -288,18 +239,18 @@ class CommandClass {
288
239
  toJSONInternal() {
289
240
  const ret = {
290
241
  nodeId: this.nodeId,
291
- ccId: import_core.CommandClasses[this.ccId] || (0, import_shared.num2hex)(this.ccId)
242
+ ccId: import_safe.CommandClasses[this.ccId] || (0, import_safe2.num2hex)(this.ccId)
292
243
  };
293
244
  if (this.ccCommand != void 0) {
294
- ret.ccCommand = (0, import_shared.num2hex)(this.ccCommand);
245
+ ret.ccCommand = (0, import_safe2.num2hex)(this.ccCommand);
295
246
  }
296
247
  if (this.payload.length > 0) {
297
- ret.payload = (0, import_shared.buffer2hex)(this.payload);
248
+ ret.payload = (0, import_safe2.buffer2hex)(this.payload);
298
249
  }
299
250
  return ret;
300
251
  }
301
252
  throwMissingCriticalInterviewResponse() {
302
- throw new import_core.ZWaveError(`The node did not respond to a critical interview query in time.`, import_core.ZWaveErrorCodes.Controller_NodeTimeout);
253
+ throw new import_safe.ZWaveError(`The node did not respond to a critical interview query in time.`, import_safe.ZWaveErrorCodes.Controller_NodeTimeout);
303
254
  }
304
255
  /**
305
256
  * Performs the interview procedure for this CC according to SDS14223
@@ -320,7 +271,7 @@ class CommandClass {
320
271
  }
321
272
  /** Determines which CC interviews must be performed before this CC can be interviewed */
322
273
  determineRequiredCCInterviews() {
323
- return [import_core.CommandClasses.Version];
274
+ return [import_safe.CommandClasses.Version];
324
275
  }
325
276
  /**
326
277
  * Whether the endpoint interview may be skipped by a CC. Can be overwritten by a subclass.
@@ -338,7 +289,7 @@ class CommandClass {
338
289
  isSinglecast() {
339
290
  return (
340
291
  // received
341
- this.frameType === "singlecast" || this.frameType == void 0 && typeof this.nodeId === "number" && this.nodeId !== import_core.NODE_ID_BROADCAST && this.nodeId !== import_core.NODE_ID_BROADCAST_LR
292
+ this.frameType === "singlecast" || this.frameType == void 0 && typeof this.nodeId === "number" && this.nodeId !== import_safe.NODE_ID_BROADCAST && this.nodeId !== import_safe.NODE_ID_BROADCAST_LR
342
293
  );
343
294
  }
344
295
  isMulticast() {
@@ -350,7 +301,7 @@ class CommandClass {
350
301
  isBroadcast() {
351
302
  return (
352
303
  // received
353
- this.frameType === "broadcast" || this.frameType == void 0 && (this.nodeId === import_core.NODE_ID_BROADCAST || this.nodeId === import_core.NODE_ID_BROADCAST_LR)
304
+ this.frameType === "broadcast" || this.frameType == void 0 && (this.nodeId === import_safe.NODE_ID_BROADCAST || this.nodeId === import_safe.NODE_ID_BROADCAST_LR)
354
305
  );
355
306
  }
356
307
  /**
@@ -369,7 +320,7 @@ class CommandClass {
369
320
  try {
370
321
  return this.getNode(ctx);
371
322
  } catch (e) {
372
- if ((0, import_core.isZWaveError)(e) && e.code === import_core.ZWaveErrorCodes.Driver_NotReady) {
323
+ if ((0, import_safe.isZWaveError)(e) && e.code === import_safe.ZWaveErrorCodes.Driver_NotReady) {
373
324
  return void 0;
374
325
  }
375
326
  throw e;
@@ -384,10 +335,10 @@ class CommandClass {
384
335
  try {
385
336
  return ctx.getValueDB(this.nodeId);
386
337
  } catch {
387
- throw new import_core.ZWaveError("The node for this CC does not exist or the driver is not ready yet", import_core.ZWaveErrorCodes.Driver_NotReady);
338
+ throw new import_safe.ZWaveError("The node for this CC does not exist or the driver is not ready yet", import_safe.ZWaveErrorCodes.Driver_NotReady);
388
339
  }
389
340
  }
390
- throw new import_core.ZWaveError("Cannot retrieve the value DB for non-singlecast CCs", import_core.ZWaveErrorCodes.CC_NoNodeID);
341
+ throw new import_safe.ZWaveError("Cannot retrieve the value DB for non-singlecast CCs", import_safe.ZWaveErrorCodes.CC_NoNodeID);
391
342
  }
392
343
  /**
393
344
  * Ensures that the metadata for the given CC value exists in the Value DB or creates it if it does not.
@@ -502,7 +453,7 @@ class CommandClass {
502
453
  property,
503
454
  propertyKey
504
455
  };
505
- const dbKey = (0, import_core.valueIdToString)(valueId);
456
+ const dbKey = (0, import_safe.valueIdToString)(valueId);
506
457
  if (!ret.has(dbKey))
507
458
  ret.set(dbKey, valueId);
508
459
  }, "addValueId");
@@ -511,7 +462,7 @@ class CommandClass {
511
462
  ...valueDB.getValues(this.ccId),
512
463
  ...valueDB.getAllMetadata(this.ccId)
513
464
  ];
514
- const supportedVersion = typeof this.nodeId === "number" && this.nodeId !== import_core.NODE_ID_BROADCAST && this.nodeId !== import_core.NODE_ID_BROADCAST_LR ? ctx.getSupportedCCVersion(this.ccId, this.nodeId, this.endpointIndex) : (0, import_CommandClassDecorators.getImplementedVersion)(this.ccId);
465
+ const supportedVersion = typeof this.nodeId === "number" && this.nodeId !== import_safe.NODE_ID_BROADCAST && this.nodeId !== import_safe.NODE_ID_BROADCAST_LR ? ctx.getSupportedCCVersion(this.ccId, this.nodeId, this.endpointIndex) : (0, import_CommandClassDecorators.getImplementedVersion)(this.ccId);
515
466
  for (const value of Object.values((0, import_CommandClassDecorators.getCCValues)(this) ?? {})) {
516
467
  if (!value || typeof value === "function")
517
468
  continue;
@@ -605,43 +556,37 @@ class CommandClass {
605
556
  expectMoreMessages(_session) {
606
557
  return false;
607
558
  }
608
- /**
609
- * Include previously received partial responses into a final CC
610
- * @deprecated Use {@link mergePartialCCsAsync} instead
611
- */
612
- mergePartialCCs(_partials, _ctx) {
613
- }
614
559
  /** Include previously received partial responses into a final CC */
615
- async mergePartialCCsAsync(_partials, _ctx) {
560
+ async mergePartialCCs(_partials, _ctx) {
616
561
  }
617
562
  /** Tests whether this CC expects at least one command in return */
618
563
  expectsCCResponse() {
619
564
  let expected = (0, import_CommandClassDecorators.getExpectedCCResponse)(this);
620
- if (typeof expected === "function" && !(0, import_shared.staticExtends)(expected, CommandClass)) {
565
+ if (typeof expected === "function" && !(0, import_safe2.staticExtends)(expected, CommandClass)) {
621
566
  expected = expected(this);
622
567
  }
623
568
  if (expected === void 0)
624
569
  return false;
625
570
  if ((0, import_typeguards.isArray)(expected)) {
626
- return expected.every((cc) => (0, import_shared.staticExtends)(cc, CommandClass));
571
+ return expected.every((cc) => (0, import_safe2.staticExtends)(cc, CommandClass));
627
572
  } else {
628
- return (0, import_shared.staticExtends)(expected, CommandClass);
573
+ return (0, import_safe2.staticExtends)(expected, CommandClass);
629
574
  }
630
575
  }
631
576
  isExpectedCCResponse(received) {
632
577
  if (received.nodeId !== this.nodeId)
633
578
  return false;
634
579
  let expected = (0, import_CommandClassDecorators.getExpectedCCResponse)(this);
635
- if (typeof expected === "function" && !(0, import_shared.staticExtends)(expected, CommandClass)) {
580
+ if (typeof expected === "function" && !(0, import_safe2.staticExtends)(expected, CommandClass)) {
636
581
  expected = expected(this);
637
582
  }
638
583
  if (expected == void 0) {
639
584
  return false;
640
- } else if ((0, import_typeguards.isArray)(expected) && expected.every((cc) => (0, import_shared.staticExtends)(cc, CommandClass))) {
585
+ } else if ((0, import_typeguards.isArray)(expected) && expected.every((cc) => (0, import_safe2.staticExtends)(cc, CommandClass))) {
641
586
  if (expected.every((base) => !(received instanceof base))) {
642
587
  return false;
643
588
  }
644
- } else if ((0, import_shared.staticExtends)(expected, CommandClass)) {
589
+ } else if ((0, import_safe2.staticExtends)(expected, CommandClass)) {
645
590
  if (!(received instanceof expected))
646
591
  return false;
647
592
  }
@@ -743,7 +688,7 @@ class InvalidCC extends CommandClass {
743
688
  return {
744
689
  tags: [this.ccName, "INVALID"],
745
690
  message: this.reason != void 0 ? {
746
- error: typeof this.reason === "string" ? this.reason : (0, import_shared.getEnumMemberName)(import_core.ZWaveErrorCodes, this.reason)
691
+ error: typeof this.reason === "string" ? this.reason : (0, import_safe2.getEnumMemberName)(import_safe.ZWaveErrorCodes, this.reason)
747
692
  } : void 0
748
693
  };
749
694
  }