zwave-js 9.2.1 → 9.3.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 (524) hide show
  1. package/build/Controller.d.ts +2 -2
  2. package/build/Controller.d.ts.map +1 -1
  3. package/build/Controller.js +1 -1
  4. package/build/Controller.js.map +1 -1
  5. package/build/Driver.d.ts +3 -4
  6. package/build/Driver.d.ts.map +1 -1
  7. package/build/Driver.js +6 -7
  8. package/build/Driver.js.map +1 -1
  9. package/build/Utils.d.ts +2 -0
  10. package/build/Utils.d.ts.map +1 -1
  11. package/build/Utils.js +5 -1
  12. package/build/Utils.js.map +1 -1
  13. package/build/lib/commandclass/AlarmSensorCC.d.ts +6 -5
  14. package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
  15. package/build/lib/commandclass/AlarmSensorCC.js +23 -23
  16. package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
  17. package/build/lib/commandclass/AssociationCC.d.ts +12 -11
  18. package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
  19. package/build/lib/commandclass/AssociationCC.js +47 -41
  20. package/build/lib/commandclass/AssociationCC.js.map +1 -1
  21. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +15 -14
  22. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
  23. package/build/lib/commandclass/AssociationGroupInfoCC.js +56 -51
  24. package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
  25. package/build/lib/commandclass/BarrierOperatorCC.d.ts +9 -8
  26. package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
  27. package/build/lib/commandclass/BarrierOperatorCC.js +28 -28
  28. package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
  29. package/build/lib/commandclass/BasicCC.d.ts +5 -4
  30. package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
  31. package/build/lib/commandclass/BasicCC.js +18 -18
  32. package/build/lib/commandclass/BasicCC.js.map +1 -1
  33. package/build/lib/commandclass/BatteryCC.d.ts +5 -4
  34. package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
  35. package/build/lib/commandclass/BatteryCC.js +17 -17
  36. package/build/lib/commandclass/BatteryCC.js.map +1 -1
  37. package/build/lib/commandclass/BinarySensorCC.d.ts +6 -5
  38. package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
  39. package/build/lib/commandclass/BinarySensorCC.js +24 -24
  40. package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
  41. package/build/lib/commandclass/BinarySwitchCC.d.ts +5 -4
  42. package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
  43. package/build/lib/commandclass/BinarySwitchCC.js +15 -15
  44. package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
  45. package/build/lib/commandclass/CRC16CC.d.ts +3 -3
  46. package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
  47. package/build/lib/commandclass/CRC16CC.js +5 -5
  48. package/build/lib/commandclass/CRC16CC.js.map +1 -1
  49. package/build/lib/commandclass/CentralSceneCC.d.ts +6 -5
  50. package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
  51. package/build/lib/commandclass/CentralSceneCC.js +23 -25
  52. package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
  53. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +7 -7
  54. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
  55. package/build/lib/commandclass/ClimateControlScheduleCC.js +12 -12
  56. package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
  57. package/build/lib/commandclass/ClockCC.d.ts +5 -4
  58. package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
  59. package/build/lib/commandclass/ClockCC.js +15 -15
  60. package/build/lib/commandclass/ClockCC.js.map +1 -1
  61. package/build/lib/commandclass/ColorSwitchCC.d.ts +10 -9
  62. package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
  63. package/build/lib/commandclass/ColorSwitchCC.js +29 -29
  64. package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
  65. package/build/lib/commandclass/CommandClass.d.ts +17 -10
  66. package/build/lib/commandclass/CommandClass.d.ts.map +1 -1
  67. package/build/lib/commandclass/CommandClass.js +53 -27
  68. package/build/lib/commandclass/CommandClass.js.map +1 -1
  69. package/build/lib/commandclass/ConfigurationCC.d.ts +16 -15
  70. package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
  71. package/build/lib/commandclass/ConfigurationCC.js +66 -59
  72. package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
  73. package/build/lib/commandclass/DoorLockCC.d.ts +8 -7
  74. package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
  75. package/build/lib/commandclass/DoorLockCC.js +27 -27
  76. package/build/lib/commandclass/DoorLockCC.js.map +1 -1
  77. package/build/lib/commandclass/DoorLockLoggingCC.d.ts +6 -5
  78. package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
  79. package/build/lib/commandclass/DoorLockLoggingCC.js +18 -18
  80. package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
  81. package/build/lib/commandclass/EntryControlCC.d.ts +8 -7
  82. package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
  83. package/build/lib/commandclass/EntryControlCC.js +27 -27
  84. package/build/lib/commandclass/EntryControlCC.js.map +1 -1
  85. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +11 -11
  86. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  87. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +20 -20
  88. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
  89. package/build/lib/commandclass/HumidityControlModeCC.d.ts +6 -5
  90. package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
  91. package/build/lib/commandclass/HumidityControlModeCC.js +22 -22
  92. package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
  93. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +4 -3
  94. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
  95. package/build/lib/commandclass/HumidityControlOperatingStateCC.js +13 -13
  96. package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
  97. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +11 -10
  98. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
  99. package/build/lib/commandclass/HumidityControlSetpointCC.js +46 -46
  100. package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
  101. package/build/lib/commandclass/IndicatorCC.d.ts +9 -8
  102. package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
  103. package/build/lib/commandclass/IndicatorCC.js +37 -37
  104. package/build/lib/commandclass/IndicatorCC.js.map +1 -1
  105. package/build/lib/commandclass/IrrigationCC.d.ts +18 -17
  106. package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
  107. package/build/lib/commandclass/IrrigationCC.js +51 -51
  108. package/build/lib/commandclass/IrrigationCC.js.map +1 -1
  109. package/build/lib/commandclass/LanguageCC.d.ts +5 -4
  110. package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
  111. package/build/lib/commandclass/LanguageCC.js +15 -15
  112. package/build/lib/commandclass/LanguageCC.js.map +1 -1
  113. package/build/lib/commandclass/LockCC.d.ts +5 -4
  114. package/build/lib/commandclass/LockCC.d.ts.map +1 -1
  115. package/build/lib/commandclass/LockCC.js +15 -15
  116. package/build/lib/commandclass/LockCC.js.map +1 -1
  117. package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts +11 -3
  118. package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts.map +1 -1
  119. package/build/lib/commandclass/ManufacturerProprietaryCC.js +44 -18
  120. package/build/lib/commandclass/ManufacturerProprietaryCC.js.map +1 -1
  121. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +5 -4
  122. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
  123. package/build/lib/commandclass/ManufacturerSpecificCC.js +15 -15
  124. package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
  125. package/build/lib/commandclass/MeterCC.d.ts +8 -7
  126. package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
  127. package/build/lib/commandclass/MeterCC.js +49 -41
  128. package/build/lib/commandclass/MeterCC.js.map +1 -1
  129. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +12 -11
  130. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
  131. package/build/lib/commandclass/MultiChannelAssociationCC.js +45 -43
  132. package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
  133. package/build/lib/commandclass/MultiChannelCC.d.ts +15 -14
  134. package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
  135. package/build/lib/commandclass/MultiChannelCC.js +61 -61
  136. package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
  137. package/build/lib/commandclass/MultiCommandCC.d.ts +3 -3
  138. package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
  139. package/build/lib/commandclass/MultiCommandCC.js +5 -5
  140. package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
  141. package/build/lib/commandclass/MultilevelSensorCC.d.ts +8 -7
  142. package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
  143. package/build/lib/commandclass/MultilevelSensorCC.js +50 -50
  144. package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
  145. package/build/lib/commandclass/MultilevelSwitchCC.d.ts +8 -7
  146. package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
  147. package/build/lib/commandclass/MultilevelSwitchCC.js +31 -31
  148. package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
  149. package/build/lib/commandclass/NoOperationCC.d.ts +1 -1
  150. package/build/lib/commandclass/NoOperationCC.d.ts.map +1 -1
  151. package/build/lib/commandclass/NoOperationCC.js +2 -2
  152. package/build/lib/commandclass/NoOperationCC.js.map +1 -1
  153. package/build/lib/commandclass/NodeNamingCC.d.ts +7 -6
  154. package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
  155. package/build/lib/commandclass/NodeNamingCC.js +21 -21
  156. package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
  157. package/build/lib/commandclass/NotificationCC.d.ts +10 -9
  158. package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
  159. package/build/lib/commandclass/NotificationCC.js +54 -54
  160. package/build/lib/commandclass/NotificationCC.js.map +1 -1
  161. package/build/lib/commandclass/PowerlevelCC.d.ts +5 -5
  162. package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
  163. package/build/lib/commandclass/PowerlevelCC.js +9 -9
  164. package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
  165. package/build/lib/commandclass/ProtectionCC.d.ts +10 -9
  166. package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
  167. package/build/lib/commandclass/ProtectionCC.js +33 -33
  168. package/build/lib/commandclass/ProtectionCC.js.map +1 -1
  169. package/build/lib/commandclass/SceneActivationCC.d.ts +2 -2
  170. package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
  171. package/build/lib/commandclass/SceneActivationCC.js +2 -2
  172. package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
  173. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +5 -4
  174. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
  175. package/build/lib/commandclass/SceneActuatorConfigurationCC.js +9 -9
  176. package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
  177. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +7 -6
  178. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
  179. package/build/lib/commandclass/SceneControllerConfigurationCC.js +32 -28
  180. package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
  181. package/build/lib/commandclass/Security2CC.d.ts +17 -26
  182. package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
  183. package/build/lib/commandclass/Security2CC.js +68 -68
  184. package/build/lib/commandclass/Security2CC.js.map +1 -1
  185. package/build/lib/commandclass/SecurityCC.d.ts +11 -14
  186. package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
  187. package/build/lib/commandclass/SecurityCC.js +41 -41
  188. package/build/lib/commandclass/SecurityCC.js.map +1 -1
  189. package/build/lib/commandclass/SoundSwitchCC.d.ts +9 -8
  190. package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
  191. package/build/lib/commandclass/SoundSwitchCC.js +27 -27
  192. package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
  193. package/build/lib/commandclass/SupervisionCC.d.ts +4 -4
  194. package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
  195. package/build/lib/commandclass/SupervisionCC.js +9 -9
  196. package/build/lib/commandclass/SupervisionCC.js.map +1 -1
  197. package/build/lib/commandclass/ThermostatFanModeCC.d.ts +6 -5
  198. package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
  199. package/build/lib/commandclass/ThermostatFanModeCC.js +22 -22
  200. package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
  201. package/build/lib/commandclass/ThermostatFanStateCC.d.ts +4 -3
  202. package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
  203. package/build/lib/commandclass/ThermostatFanStateCC.js +13 -13
  204. package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
  205. package/build/lib/commandclass/ThermostatModeCC.d.ts +6 -5
  206. package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
  207. package/build/lib/commandclass/ThermostatModeCC.js +22 -22
  208. package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
  209. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +4 -3
  210. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
  211. package/build/lib/commandclass/ThermostatOperatingStateCC.js +13 -13
  212. package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
  213. package/build/lib/commandclass/ThermostatSetbackCC.d.ts +5 -4
  214. package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
  215. package/build/lib/commandclass/ThermostatSetbackCC.js +15 -15
  216. package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
  217. package/build/lib/commandclass/ThermostatSetpointCC.d.ts +10 -9
  218. package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
  219. package/build/lib/commandclass/ThermostatSetpointCC.js +48 -48
  220. package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
  221. package/build/lib/commandclass/TimeCC.d.ts +6 -5
  222. package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
  223. package/build/lib/commandclass/TimeCC.js +15 -15
  224. package/build/lib/commandclass/TimeCC.js.map +1 -1
  225. package/build/lib/commandclass/TimeParametersCC.d.ts +4 -3
  226. package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
  227. package/build/lib/commandclass/TimeParametersCC.js +11 -11
  228. package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
  229. package/build/lib/commandclass/TransportServiceCC.d.ts +7 -7
  230. package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
  231. package/build/lib/commandclass/TransportServiceCC.js +12 -12
  232. package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
  233. package/build/lib/commandclass/UserCodeCC.d.ts +17 -16
  234. package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
  235. package/build/lib/commandclass/UserCodeCC.js +58 -58
  236. package/build/lib/commandclass/UserCodeCC.js.map +1 -1
  237. package/build/lib/commandclass/VersionCC.d.ts +7 -6
  238. package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
  239. package/build/lib/commandclass/VersionCC.js +28 -28
  240. package/build/lib/commandclass/VersionCC.js.map +1 -1
  241. package/build/lib/commandclass/WakeUpCC.d.ts +5 -5
  242. package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
  243. package/build/lib/commandclass/WakeUpCC.js +24 -28
  244. package/build/lib/commandclass/WakeUpCC.js.map +1 -1
  245. package/build/lib/commandclass/ZWavePlusCC.d.ts +20 -14
  246. package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
  247. package/build/lib/commandclass/ZWavePlusCC.js +119 -41
  248. package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
  249. package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts +8 -7
  250. package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts.map +1 -1
  251. package/build/lib/commandclass/manufacturerProprietary/Fibaro.js +21 -21
  252. package/build/lib/commandclass/manufacturerProprietary/Fibaro.js.map +1 -1
  253. package/build/lib/controller/Controller.d.ts +21 -14
  254. package/build/lib/controller/Controller.d.ts.map +1 -1
  255. package/build/lib/controller/Controller.js +129 -140
  256. package/build/lib/controller/Controller.js.map +1 -1
  257. package/build/lib/controller/Inclusion.d.ts +1 -1
  258. package/build/lib/controller/Inclusion.d.ts.map +1 -1
  259. package/build/lib/controller/MockControllerBehaviors.d.ts +4 -0
  260. package/build/lib/controller/MockControllerBehaviors.d.ts.map +1 -0
  261. package/build/lib/controller/MockControllerBehaviors.js +161 -0
  262. package/build/lib/controller/MockControllerBehaviors.js.map +1 -0
  263. package/build/lib/controller/NodeInformationFrame.d.ts +9 -0
  264. package/build/lib/controller/NodeInformationFrame.d.ts.map +1 -0
  265. package/build/lib/controller/NodeInformationFrame.js +53 -0
  266. package/build/lib/controller/NodeInformationFrame.js.map +1 -0
  267. package/build/lib/controller/ZWaveChipTypes.d.ts +10 -0
  268. package/build/lib/controller/ZWaveChipTypes.d.ts.map +1 -0
  269. package/build/lib/controller/ZWaveChipTypes.js +32 -0
  270. package/build/lib/controller/ZWaveChipTypes.js.map +1 -0
  271. package/build/lib/controller/utils.d.ts +3 -0
  272. package/build/lib/controller/utils.d.ts.map +1 -0
  273. package/build/lib/controller/utils.js +40 -0
  274. package/build/lib/controller/utils.js.map +1 -0
  275. package/build/lib/driver/CommandQueueMachine.d.ts +1 -1
  276. package/build/lib/driver/CommandQueueMachine.d.ts.map +1 -1
  277. package/build/lib/driver/CommandQueueMachine.js.map +1 -1
  278. package/build/lib/driver/Driver.d.ts +7 -4
  279. package/build/lib/driver/Driver.d.ts.map +1 -1
  280. package/build/lib/driver/Driver.js +89 -67
  281. package/build/lib/driver/Driver.js.map +1 -1
  282. package/build/lib/driver/DriverMock.d.ts +13 -0
  283. package/build/lib/driver/DriverMock.d.ts.map +1 -0
  284. package/build/lib/driver/DriverMock.js +53 -0
  285. package/build/lib/driver/DriverMock.js.map +1 -0
  286. package/build/lib/driver/MessageGenerators.d.ts +1 -1
  287. package/build/lib/driver/MessageGenerators.d.ts.map +1 -1
  288. package/build/lib/driver/MessageGenerators.js.map +1 -1
  289. package/build/lib/driver/NetworkCache.d.ts +1 -1
  290. package/build/lib/driver/NetworkCache.d.ts.map +1 -1
  291. package/build/lib/driver/NetworkCache.js +80 -38
  292. package/build/lib/driver/NetworkCache.js.map +1 -1
  293. package/build/lib/driver/SendThreadMachine.d.ts +2 -2
  294. package/build/lib/driver/SendThreadMachine.d.ts.map +1 -1
  295. package/build/lib/driver/SendThreadMachine.js +4 -4
  296. package/build/lib/driver/SendThreadMachine.js.map +1 -1
  297. package/build/lib/driver/SerialAPICommandMachine.d.ts +1 -1
  298. package/build/lib/driver/SerialAPICommandMachine.d.ts.map +1 -1
  299. package/build/lib/driver/SerialAPICommandMachine.js +6 -7
  300. package/build/lib/driver/SerialAPICommandMachine.js.map +1 -1
  301. package/build/lib/driver/StateMachineShared.d.ts +1 -1
  302. package/build/lib/driver/StateMachineShared.d.ts.map +1 -1
  303. package/build/lib/driver/StateMachineShared.js.map +1 -1
  304. package/build/lib/driver/Transaction.d.ts +2 -2
  305. package/build/lib/driver/Transaction.d.ts.map +1 -1
  306. package/build/lib/driver/Transaction.js +5 -5
  307. package/build/lib/driver/Transaction.js.map +1 -1
  308. package/build/lib/driver/TransactionMachine.d.ts +1 -1
  309. package/build/lib/driver/TransactionMachine.d.ts.map +1 -1
  310. package/build/lib/driver/TransactionMachine.js.map +1 -1
  311. package/build/lib/driver/ZWaveOptions.d.ts +1 -1
  312. package/build/lib/driver/ZWaveOptions.d.ts.map +1 -1
  313. package/build/lib/log/Driver.d.ts +1 -1
  314. package/build/lib/log/Driver.d.ts.map +1 -1
  315. package/build/lib/log/Driver.js +4 -4
  316. package/build/lib/log/Driver.js.map +1 -1
  317. package/build/lib/node/Endpoint.d.ts +3 -2
  318. package/build/lib/node/Endpoint.d.ts.map +1 -1
  319. package/build/lib/node/Endpoint.js +32 -31
  320. package/build/lib/node/Endpoint.js.map +1 -1
  321. package/build/lib/node/Node.d.ts +4 -13
  322. package/build/lib/node/Node.d.ts.map +1 -1
  323. package/build/lib/node/Node.js +64 -150
  324. package/build/lib/node/Node.js.map +1 -1
  325. package/build/lib/node/_Types.d.ts +2 -30
  326. package/build/lib/node/_Types.d.ts.map +1 -1
  327. package/build/lib/node/_Types.js +3 -33
  328. package/build/lib/node/_Types.js.map +1 -1
  329. package/build/lib/node/utils.d.ts +28 -0
  330. package/build/lib/node/utils.d.ts.map +1 -0
  331. package/build/lib/node/utils.js +187 -0
  332. package/build/lib/node/utils.js.map +1 -0
  333. package/build/lib/serialapi/_Types.d.ts +1 -14
  334. package/build/lib/serialapi/_Types.d.ts.map +1 -1
  335. package/build/lib/serialapi/_Types.js +2 -15
  336. package/build/lib/serialapi/_Types.js.map +1 -1
  337. package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts +4 -3
  338. package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts.map +1 -1
  339. package/build/lib/serialapi/application/ApplicationCommandRequest.js +15 -14
  340. package/build/lib/serialapi/application/ApplicationCommandRequest.js.map +1 -1
  341. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts +6 -6
  342. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts.map +1 -1
  343. package/build/lib/serialapi/application/ApplicationUpdateRequest.js +10 -11
  344. package/build/lib/serialapi/application/ApplicationUpdateRequest.js.map +1 -1
  345. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts +4 -3
  346. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts.map +1 -1
  347. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js +14 -9
  348. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js.map +1 -1
  349. package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts +23 -11
  350. package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts.map +1 -1
  351. package/build/lib/serialapi/application/SerialAPIStartedRequest.js +59 -36
  352. package/build/lib/serialapi/application/SerialAPIStartedRequest.js.map +1 -1
  353. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts +17 -11
  354. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts.map +1 -1
  355. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js +40 -34
  356. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js.map +1 -1
  357. package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts +11 -9
  358. package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts.map +1 -1
  359. package/build/lib/serialapi/capability/GetControllerVersionMessages.js +24 -24
  360. package/build/lib/serialapi/capability/GetControllerVersionMessages.js.map +1 -1
  361. package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts +3 -3
  362. package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts.map +1 -1
  363. package/build/lib/serialapi/capability/GetProtocolVersionMessages.js +9 -10
  364. package/build/lib/serialapi/capability/GetProtocolVersionMessages.js.map +1 -1
  365. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts +17 -16
  366. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts.map +1 -1
  367. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js +39 -42
  368. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js.map +1 -1
  369. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts +26 -14
  370. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts.map +1 -1
  371. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js +138 -51
  372. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js.map +1 -1
  373. package/build/lib/serialapi/capability/HardResetRequest.d.ts +12 -2
  374. package/build/lib/serialapi/capability/HardResetRequest.d.ts.map +1 -1
  375. package/build/lib/serialapi/capability/HardResetRequest.js +41 -11
  376. package/build/lib/serialapi/capability/HardResetRequest.js.map +1 -1
  377. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts +22 -22
  378. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts.map +1 -1
  379. package/build/lib/serialapi/capability/SerialAPISetupMessages.js +50 -51
  380. package/build/lib/serialapi/capability/SerialAPISetupMessages.js.map +1 -1
  381. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts +22 -0
  382. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts.map +1 -0
  383. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js +60 -0
  384. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js.map +1 -0
  385. package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts +13 -9
  386. package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts.map +1 -1
  387. package/build/lib/serialapi/memory/GetControllerIdMessages.js +31 -23
  388. package/build/lib/serialapi/memory/GetControllerIdMessages.js.map +1 -1
  389. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts +3 -3
  390. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts.map +1 -1
  391. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js +9 -10
  392. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js.map +1 -1
  393. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts +5 -5
  394. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts.map +1 -1
  395. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js +12 -13
  396. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js.map +1 -1
  397. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts +4 -4
  398. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts.map +1 -1
  399. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js +11 -12
  400. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js.map +1 -1
  401. package/build/lib/serialapi/misc/SoftResetRequest.d.ts +1 -1
  402. package/build/lib/serialapi/misc/SoftResetRequest.d.ts.map +1 -1
  403. package/build/lib/serialapi/misc/SoftResetRequest.js +4 -5
  404. package/build/lib/serialapi/misc/SoftResetRequest.js.map +1 -1
  405. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts +8 -8
  406. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts.map +1 -1
  407. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js +17 -18
  408. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js.map +1 -1
  409. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts +7 -8
  410. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts.map +1 -1
  411. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js +19 -20
  412. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js.map +1 -1
  413. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts +7 -8
  414. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts.map +1 -1
  415. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js +19 -20
  416. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js.map +1 -1
  417. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts +7 -8
  418. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts.map +1 -1
  419. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js +19 -20
  420. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js.map +1 -1
  421. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts +7 -8
  422. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts.map +1 -1
  423. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js +19 -20
  424. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js.map +1 -1
  425. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts +20 -18
  426. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts.map +1 -1
  427. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js +72 -26
  428. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js.map +1 -1
  429. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts +4 -4
  430. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts.map +1 -1
  431. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js +11 -12
  432. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js.map +1 -1
  433. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts +9 -7
  434. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts.map +1 -1
  435. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js +18 -19
  436. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js.map +1 -1
  437. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts +4 -4
  438. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts.map +1 -1
  439. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js +11 -12
  440. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js.map +1 -1
  441. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts +7 -7
  442. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts.map +1 -1
  443. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js +18 -19
  444. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js.map +1 -1
  445. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts +6 -6
  446. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts.map +1 -1
  447. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js +13 -14
  448. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js.map +1 -1
  449. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts +7 -7
  450. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts.map +1 -1
  451. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js +17 -18
  452. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js.map +1 -1
  453. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts +5 -6
  454. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts.map +1 -1
  455. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js +12 -13
  456. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js.map +1 -1
  457. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts +6 -6
  458. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts.map +1 -1
  459. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js +14 -15
  460. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js.map +1 -1
  461. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts +7 -7
  462. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts.map +1 -1
  463. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js +21 -22
  464. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js.map +1 -1
  465. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts +4 -4
  466. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts.map +1 -1
  467. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js +12 -13
  468. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js.map +1 -1
  469. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts +4 -4
  470. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts.map +1 -1
  471. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js +12 -13
  472. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js.map +1 -1
  473. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts +4 -4
  474. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts.map +1 -1
  475. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js +12 -13
  476. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js.map +1 -1
  477. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts +4 -4
  478. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts.map +1 -1
  479. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js +12 -13
  480. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js.map +1 -1
  481. package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts +3 -3
  482. package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts.map +1 -1
  483. package/build/lib/serialapi/nvm/GetNVMIdMessages.js +9 -10
  484. package/build/lib/serialapi/nvm/GetNVMIdMessages.js.map +1 -1
  485. package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts +8 -8
  486. package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts.map +1 -1
  487. package/build/lib/serialapi/nvm/NVMOperationsMessages.js +19 -20
  488. package/build/lib/serialapi/nvm/NVMOperationsMessages.js.map +1 -1
  489. package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts +13 -11
  490. package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts.map +1 -1
  491. package/build/lib/serialapi/transport/SendDataBridgeMessages.js +48 -44
  492. package/build/lib/serialapi/transport/SendDataBridgeMessages.js.map +1 -1
  493. package/build/lib/serialapi/transport/SendDataMessages.d.ts +13 -11
  494. package/build/lib/serialapi/transport/SendDataMessages.d.ts.map +1 -1
  495. package/build/lib/serialapi/transport/SendDataMessages.js +49 -43
  496. package/build/lib/serialapi/transport/SendDataMessages.js.map +1 -1
  497. package/build/lib/telemetry/deviceConfig.d.ts.map +1 -1
  498. package/build/lib/telemetry/deviceConfig.js +2 -3
  499. package/build/lib/telemetry/deviceConfig.js.map +1 -1
  500. package/package.json +9 -8
  501. package/build/lib/driver/FileSystem.d.ts +0 -11
  502. package/build/lib/driver/FileSystem.d.ts.map +0 -1
  503. package/build/lib/driver/FileSystem.js +0 -3
  504. package/build/lib/driver/FileSystem.js.map +0 -1
  505. package/build/lib/log/Controller.d.ts +0 -68
  506. package/build/lib/log/Controller.d.ts.map +0 -1
  507. package/build/lib/log/Controller.js +0 -221
  508. package/build/lib/log/Controller.js.map +0 -1
  509. package/build/lib/message/Constants.d.ts +0 -150
  510. package/build/lib/message/Constants.d.ts.map +0 -1
  511. package/build/lib/message/Constants.js +0 -176
  512. package/build/lib/message/Constants.js.map +0 -1
  513. package/build/lib/message/Message.d.ts +0 -172
  514. package/build/lib/message/Message.d.ts.map +0 -1
  515. package/build/lib/message/Message.js +0 -465
  516. package/build/lib/message/Message.js.map +0 -1
  517. package/build/lib/message/SuccessIndicator.d.ts +0 -16
  518. package/build/lib/message/SuccessIndicator.d.ts.map +0 -1
  519. package/build/lib/message/SuccessIndicator.js +0 -12
  520. package/build/lib/message/SuccessIndicator.js.map +0 -1
  521. package/build/lib/node/INodeQuery.d.ts +0 -7
  522. package/build/lib/node/INodeQuery.d.ts.map +0 -1
  523. package/build/lib/node/INodeQuery.js +0 -9
  524. package/build/lib/node/INodeQuery.js.map +0 -1
@@ -1,13 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
2
18
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
19
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
20
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
21
  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;
6
22
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
23
  };
24
+ var __importStar = (this && this.__importStar) || function (mod) {
25
+ if (mod && mod.__esModule) return mod;
26
+ var result = {};
27
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
+ __setModuleDefault(result, mod);
29
+ return result;
30
+ };
8
31
  Object.defineProperty(exports, "__esModule", { value: true });
9
32
  exports.ZWaveNode = void 0;
10
33
  const core_1 = require("@zwave-js/core");
34
+ const serial_1 = require("@zwave-js/serial");
11
35
  const shared_1 = require("@zwave-js/shared");
12
36
  const math_1 = require("alcalzone-shared/math");
13
37
  const strings_1 = require("alcalzone-shared/strings");
@@ -42,7 +66,6 @@ const _Types_1 = require("../commandclass/_Types");
42
66
  const _Types_2 = require("../controller/_Types");
43
67
  const NetworkCache_1 = require("../driver/NetworkCache");
44
68
  const StateMachineShared_1 = require("../driver/StateMachineShared");
45
- const Constants_1 = require("../message/Constants");
46
69
  const ApplicationUpdateRequest_1 = require("../serialapi/application/ApplicationUpdateRequest");
47
70
  const GetNodeProtocolInfoMessages_1 = require("../serialapi/network-mgmt/GetNodeProtocolInfoMessages");
48
71
  const RequestNodeInfoMessages_1 = require("../serialapi/network-mgmt/RequestNodeInfoMessages");
@@ -52,6 +75,7 @@ const HealthCheck_1 = require("./HealthCheck");
52
75
  const NodeReadyMachine_1 = require("./NodeReadyMachine");
53
76
  const NodeStatistics_1 = require("./NodeStatistics");
54
77
  const NodeStatusMachine_1 = require("./NodeStatusMachine");
78
+ const nodeUtils = __importStar(require("./utils"));
55
79
  const _Types_3 = require("./_Types");
56
80
  /**
57
81
  * A ZWaveNode represents a node in a Z-Wave network. It is also an instance
@@ -165,35 +189,12 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
165
189
  this.cancelScheduledPoll(valueId);
166
190
  }
167
191
  }
168
- /**
169
- * Enhances a value id so it can be consumed better by applications
170
- */
171
- translateValueID(valueId) {
172
- // Try to retrieve the speaking CC name
173
- const commandClassName = (0, core_1.getCCName)(valueId.commandClass);
174
- const ret = {
175
- commandClassName,
176
- ...valueId,
177
- };
178
- const ccInstance = this.createCCInstanceInternal(valueId.commandClass);
179
- if (!ccInstance) {
180
- throw new core_1.ZWaveError(`Cannot translate a value ID for the non-implemented CC ${(0, core_1.getCCName)(valueId.commandClass)}`, core_1.ZWaveErrorCodes.CC_NotImplemented);
181
- }
182
- // Retrieve the speaking property name
183
- ret.propertyName = ccInstance.translateProperty(valueId.property, valueId.propertyKey);
184
- // Try to retrieve the speaking property key
185
- if (valueId.propertyKey != undefined) {
186
- const propertyKey = ccInstance.translatePropertyKey(valueId.property, valueId.propertyKey);
187
- ret.propertyKeyName = propertyKey;
188
- }
189
- return ret;
190
- }
191
192
  /**
192
193
  * Enhances the raw event args of the ValueDB so it can be consumed better by applications
193
194
  */
194
195
  translateValueEvent(eventName, arg) {
195
196
  // Try to retrieve the speaking CC name
196
- const outArg = this.translateValueID(arg);
197
+ const outArg = nodeUtils.translateValueID(this.driver, this, arg);
197
198
  // @ts-expect-error This can happen for value updated events
198
199
  if ("source" in outArg)
199
200
  delete outArg.source;
@@ -202,7 +203,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
202
203
  outArg.metadata =
203
204
  this.getValueMetadata(arg);
204
205
  }
205
- const ccInstance = this.createCCInstanceInternal(arg.commandClass);
206
+ const ccInstance = CommandClass_1.CommandClass.createInstanceUnchecked(this.driver, this, arg.commandClass);
206
207
  const isInternalValue = ccInstance === null || ccInstance === void 0 ? void 0 : ccInstance.isInternalValue(arg.property);
207
208
  // Check whether this value change may be logged
208
209
  const isSecretValue = !!(ccInstance === null || ccInstance === void 0 ? void 0 : ccInstance.isSecretValue(arg.property));
@@ -233,7 +234,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
233
234
  // Only application CCs need to be filtered
234
235
  core_1.applicationCCs.includes(arg.commandClass) &&
235
236
  // and only if the endpoints are not unnecessary and the root values mirror them
236
- this.shouldHideRootApplicationCCValues()) {
237
+ nodeUtils.shouldHideRootApplicationCCValues(this.driver, this)) {
237
238
  // Iterate through all possible non-root endpoints of this node and
238
239
  // check if there is a value ID that mirrors root endpoint functionality
239
240
  for (const endpoint of this.getEndpointIndizes()) {
@@ -400,6 +401,9 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
400
401
  var _a;
401
402
  return (_a = this.securityClasses.get(securityClass)) !== null && _a !== void 0 ? _a : core_1.unknownBoolean;
402
403
  }
404
+ setSecurityClass(securityClass, granted) {
405
+ this.securityClasses.set(securityClass, granted);
406
+ }
403
407
  /** Returns the highest security class this node was granted or `undefined` if that information isn't known yet */
404
408
  getHighestSecurityClass() {
405
409
  if (this.securityClasses.size === 0)
@@ -582,77 +586,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
582
586
  }
583
587
  /** Returns a list of all value names that are defined on all endpoints of this node */
584
588
  getDefinedValueIDs() {
585
- let ret = [];
586
- const allowControlled = [
587
- core_1.CommandClasses["Scene Activation"],
588
- ];
589
- for (const endpoint of this.getAllEndpoints()) {
590
- for (const [cc, info] of endpoint.implementedCommandClasses) {
591
- // Only expose value IDs for CCs that are supported
592
- // with some exceptions that are controlled
593
- if (info.isSupported ||
594
- (info.isControlled && allowControlled.includes(cc))) {
595
- const ccInstance = endpoint.createCCInstanceUnsafe(cc);
596
- if (ccInstance) {
597
- ret.push(...ccInstance.getDefinedValueIDs());
598
- }
599
- }
600
- }
601
- }
602
- // Application command classes of the Root Device capabilities that are also advertised by at
603
- // least one End Point SHOULD be filtered out by controlling nodes before presenting the functionalities
604
- // via service discovery mechanisms like mDNS or to users in a GUI.
605
- // We do this when there are endpoints that were explicitly preserved
606
- if (this.shouldHideRootApplicationCCValues()) {
607
- ret = this.filterRootApplicationCCValueIDs(ret);
608
- }
609
- // Translate the remaining value IDs before exposing them to applications
610
- return ret.map((id) => this.translateValueID(id));
611
- }
612
- /** Determines whether the root application CC values should be hidden in favor of endpoint values */
613
- shouldHideRootApplicationCCValues() {
614
- var _a, _b, _c, _d;
615
- // This is not the case when the root values should explicitly be preserved
616
- if ((_b = (_a = this._deviceConfig) === null || _a === void 0 ? void 0 : _a.compat) === null || _b === void 0 ? void 0 : _b.preserveRootApplicationCCValueIDs)
617
- return false;
618
- // This is not the case when there are no endpoints
619
- const endpointIndizes = this.getEndpointIndizes();
620
- if (endpointIndizes.length === 0)
621
- return false;
622
- // This is not the case when only individual endpoints should be preserved in addition to the root
623
- const preserveEndpoints = (_d = (_c = this._deviceConfig) === null || _c === void 0 ? void 0 : _c.compat) === null || _d === void 0 ? void 0 : _d.preserveEndpoints;
624
- if (preserveEndpoints != undefined &&
625
- preserveEndpoints !== "*" &&
626
- preserveEndpoints.length !== endpointIndizes.length) {
627
- return false;
628
- }
629
- // Otherwise they should be hidden
630
- return true;
631
- }
632
- shouldHideRootValueID(valueId, allValueIds) {
633
- // Non-root endpoint values don't need to be filtered
634
- if (!!valueId.endpoint)
635
- return false;
636
- // Non-application CCs don't need to be filtered
637
- if (!core_1.applicationCCs.includes(valueId.commandClass))
638
- return false;
639
- // Filter out root values if an identical value ID exists for another endpoint
640
- const valueExistsOnAnotherEndpoint = allValueIds.some((other) =>
641
- // same CC
642
- other.commandClass === valueId.commandClass &&
643
- // non-root endpoint
644
- !!other.endpoint &&
645
- // same property and key
646
- other.property === valueId.property &&
647
- other.propertyKey === valueId.propertyKey);
648
- return valueExistsOnAnotherEndpoint;
649
- }
650
- /**
651
- * Removes all Value IDs from an array that belong to a root endpoint and have a corresponding
652
- * Value ID on a non-root endpoint
653
- */
654
- filterRootApplicationCCValueIDs(allValueIds) {
655
- return allValueIds.filter((vid) => !this.shouldHideRootValueID(vid, allValueIds));
589
+ return nodeUtils.getDefinedValueIDs(this.driver, this);
656
590
  }
657
591
  /**
658
592
  * Updates a value for a given property of a given CommandClass on the node.
@@ -722,7 +656,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
722
656
  // We do not want to delay more important communication by polling, so give it
723
657
  // the lowest priority and don't retry unless overwritten by the options
724
658
  maxSendAttempts: 1,
725
- priority: Constants_1.MessagePriority.Poll,
659
+ priority: serial_1.MessagePriority.Poll,
726
660
  ...sendCommandOptions,
727
661
  });
728
662
  // Check if the pollValue method is implemented
@@ -752,7 +686,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
752
686
  // We do not want to delay more important communication by polling, so give it
753
687
  // the lowest priority and don't retry unless overwritten by the options
754
688
  maxSendAttempts: 1,
755
- priority: Constants_1.MessagePriority.Poll,
689
+ priority: serial_1.MessagePriority.Poll,
756
690
  });
757
691
  // Check if the pollValue method is implemented
758
692
  if (!api.pollValue)
@@ -795,28 +729,16 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
795
729
  return true;
796
730
  }
797
731
  get endpointCountIsDynamic() {
798
- return this.getValue({
799
- commandClass: core_1.CommandClasses["Multi Channel"],
800
- property: "countIsDynamic",
801
- });
732
+ return nodeUtils.endpointCountIsDynamic(this.driver, this);
802
733
  }
803
734
  get endpointsHaveIdenticalCapabilities() {
804
- return this.getValue({
805
- commandClass: core_1.CommandClasses["Multi Channel"],
806
- property: "identicalCapabilities",
807
- });
735
+ return nodeUtils.endpointsHaveIdenticalCapabilities(this.driver, this);
808
736
  }
809
737
  get individualEndpointCount() {
810
- return this.getValue({
811
- commandClass: core_1.CommandClasses["Multi Channel"],
812
- property: "individualCount",
813
- });
738
+ return nodeUtils.getIndividualEndpointCount(this.driver, this);
814
739
  }
815
740
  get aggregatedEndpointCount() {
816
- return this.getValue({
817
- commandClass: core_1.CommandClasses["Multi Channel"],
818
- property: "aggregatedCount",
819
- });
741
+ return nodeUtils.getAggregatedEndpointCount(this.driver, this);
820
742
  }
821
743
  /** Returns the device class of an endpoint. Falls back to the node's device class if the information is not known. */
822
744
  getEndpointDeviceClass(index) {
@@ -845,30 +767,17 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
845
767
  * Some devices are known to contradict themselves.
846
768
  */
847
769
  getEndpointCount() {
848
- return ((this.individualEndpointCount || 0) +
849
- (this.aggregatedEndpointCount || 0));
770
+ return nodeUtils.getEndpointCount(this.driver, this);
850
771
  }
851
772
  /**
852
773
  * Returns indizes of all endpoints on the node.
853
774
  */
854
775
  getEndpointIndizes() {
855
- let ret = this.getValue((0, MultiChannelCC_1.getEndpointIndizesValueId)());
856
- if (!ret) {
857
- // Endpoint indizes not stored, assume sequential endpoints
858
- ret = [];
859
- for (let i = 1; i <= this.getEndpointCount(); i++) {
860
- ret.push(i);
861
- }
862
- }
863
- return ret;
776
+ return nodeUtils.getEndpointIndizes(this.driver, this);
864
777
  }
865
778
  /** Whether the Multi Channel CC has been interviewed and all endpoint information is known */
866
779
  get isMultiChannelInterviewComplete() {
867
- return !!this.getValue({
868
- commandClass: core_1.CommandClasses["Multi Channel"],
869
- endpoint: 0,
870
- property: "interviewComplete",
871
- });
780
+ return nodeUtils.isMultiChannelInterviewComplete(this.driver, this);
872
781
  }
873
782
  getEndpoint(index) {
874
783
  if (index < 0)
@@ -900,17 +809,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
900
809
  }
901
810
  /** Returns a list of all endpoints of this node, including the root endpoint (index 0) */
902
811
  getAllEndpoints() {
903
- const ret = [this];
904
- // Check if the Multi Channel CC interview for this node is completed,
905
- // because we don't have all the endpoint information before that
906
- if (this.isMultiChannelInterviewComplete) {
907
- for (const i of this.getEndpointIndizes()) {
908
- const endpoint = this.getEndpoint(i);
909
- if (endpoint)
910
- ret.push(endpoint);
911
- }
912
- }
913
- return ret;
812
+ return nodeUtils.getAllEndpoints(this.driver, this);
914
813
  }
915
814
  /**
916
815
  * This tells us which interview stage was last completed
@@ -1090,7 +989,8 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
1090
989
  this.nodeType = resp.nodeType;
1091
990
  this.supportsSecurity = resp.supportsSecurity;
1092
991
  this.supportsBeaming = resp.supportsBeaming;
1093
- this.applyDeviceClass(resp.deviceClass);
992
+ const deviceClass = new DeviceClass_1.DeviceClass(this.driver.configManager, resp.basicDeviceClass, resp.genericDeviceClass, resp.specificDeviceClass);
993
+ this.applyDeviceClass(deviceClass);
1094
994
  const logMessage = `received response for protocol info:
1095
995
  basic device class: ${this.deviceClass.basic.label}
1096
996
  generic device class: ${this.deviceClass.generic.label}
@@ -1240,7 +1140,7 @@ protocol version: ${this.protocolVersion}`;
1240
1140
  if (instance.interviewComplete)
1241
1141
  return "continue";
1242
1142
  try {
1243
- await instance.interview();
1143
+ await instance.interview(this.driver);
1244
1144
  }
1245
1145
  catch (e) {
1246
1146
  if ((0, core_1.isTransmissionError)(e)) {
@@ -1543,7 +1443,7 @@ protocol version: ${this.protocolVersion}`;
1543
1443
  const instance = endpoint.createCCInstanceUnsafe(cc);
1544
1444
  if (instance) {
1545
1445
  try {
1546
- await instance.interview();
1446
+ await instance.interview(this.driver);
1547
1447
  }
1548
1448
  catch (e) {
1549
1449
  this.driver.controllerLog.logNode(this.id, `failed to interview CC ${(0, core_1.getCCName)(cc)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
@@ -1560,7 +1460,7 @@ protocol version: ${this.protocolVersion}`;
1560
1460
  const instance = endpoint.createCCInstanceUnsafe(cc);
1561
1461
  if (instance) {
1562
1462
  try {
1563
- await instance.refreshValues();
1463
+ await instance.refreshValues(this.driver);
1564
1464
  }
1565
1465
  catch (e) {
1566
1466
  this.driver.controllerLog.logNode(this.id, `failed to refresh values for ${(0, core_1.getCCName)(cc)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
@@ -1581,7 +1481,7 @@ protocol version: ${this.protocolVersion}`;
1581
1481
  continue;
1582
1482
  }
1583
1483
  try {
1584
- await cc.refreshValues();
1484
+ await cc.refreshValues(this.driver);
1585
1485
  }
1586
1486
  catch (e) {
1587
1487
  this.driver.controllerLog.logNode(this.id, `failed to refresh values for ${(0, core_1.getCCName)(cc.ccId)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
@@ -1746,6 +1646,9 @@ protocol version: ${this.protocolVersion}`;
1746
1646
  else if (command instanceof PowerlevelCC_1.PowerlevelCCTestNodeReport) {
1747
1647
  return this.handlePowerlevelTestNodeReport(command);
1748
1648
  }
1649
+ else if (command instanceof ZWavePlusCC_1.ZWavePlusCCGet) {
1650
+ return this.handleZWavePlusGet(command);
1651
+ }
1749
1652
  // Ignore all commands that don't need to be handled
1750
1653
  switch (true) {
1751
1654
  // Reports are either a response to a Get command or
@@ -2238,6 +2141,17 @@ protocol version: ${this.protocolVersion}`;
2238
2141
  this.emit("notification", this, core_1.CommandClasses["Multilevel Switch"], { eventType: _Types_1.MultilevelSwitchCommand.StopLevelChange });
2239
2142
  }
2240
2143
  }
2144
+ async handleZWavePlusGet(_command) {
2145
+ // treat this as a sign that the node is awake
2146
+ this.markAsAwake();
2147
+ await this.commandClasses["Z-Wave Plus Info"].sendReport({
2148
+ zwavePlusVersion: 2,
2149
+ roleType: _Types_1.ZWavePlusRoleType.CentralStaticController,
2150
+ nodeType: _Types_1.ZWavePlusNodeType.Node,
2151
+ installerIcon: 0x0500,
2152
+ userIcon: 0x0500, // Generic Gateway
2153
+ });
2154
+ }
2241
2155
  /** Schedules a notification value to be reset */
2242
2156
  scheduleNotificationIdleReset(valueId, handler) {
2243
2157
  this.clearNotificationIdleReset(valueId);
@@ -2440,8 +2354,8 @@ protocol version: ${this.protocolVersion}`;
2440
2354
  if (command.weekday !== weekday ||
2441
2355
  command.hour !== hours ||
2442
2356
  command.minute !== minutes) {
2443
- const endpoint = command.getEndpoint();
2444
- if (!endpoint || !endpoint.commandClasses.Clock.isSupported()) {
2357
+ const endpoint = command.getEndpoint(this.driver);
2358
+ if (!endpoint /*|| !endpoint.commandClasses.Clock.isSupported()*/) {
2445
2359
  // Make sure the endpoint supports the CC (GH#1704)
2446
2360
  return;
2447
2361
  }