@zwave-js/cc 15.21.1 → 15.22.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 (639) hide show
  1. package/build/cjs/cc/AlarmSensorCC._validateArgs.d.ts +1 -1
  2. package/build/cjs/cc/AlarmSensorCC.d.ts +3 -3
  3. package/build/cjs/cc/AlarmSensorCC.js +18 -57
  4. package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
  5. package/build/cjs/cc/ApplicationStatusCC.js +9 -48
  6. package/build/cjs/cc/ApplicationStatusCC.js.map +1 -1
  7. package/build/cjs/cc/AssociationCC._validateArgs.d.ts +8 -8
  8. package/build/cjs/cc/AssociationCC.d.ts +2 -2
  9. package/build/cjs/cc/AssociationCC.js +32 -71
  10. package/build/cjs/cc/AssociationCC.js.map +2 -2
  11. package/build/cjs/cc/AssociationGroupInfoCC._validateArgs.d.ts +6 -6
  12. package/build/cjs/cc/AssociationGroupInfoCC.d.ts +3 -3
  13. package/build/cjs/cc/AssociationGroupInfoCC.js +28 -65
  14. package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
  15. package/build/cjs/cc/BarrierOperatorCC._validateArgs.d.ts +4 -4
  16. package/build/cjs/cc/BarrierOperatorCC.d.ts +3 -3
  17. package/build/cjs/cc/BarrierOperatorCC.js +30 -67
  18. package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
  19. package/build/cjs/cc/BasicCC._validateArgs.d.ts +1 -1
  20. package/build/cjs/cc/BasicCC.d.ts +3 -3
  21. package/build/cjs/cc/BasicCC.js +17 -54
  22. package/build/cjs/cc/BasicCC.js.map +2 -2
  23. package/build/cjs/cc/BasicWindowCoveringCC._validateArgs.d.ts +2 -2
  24. package/build/cjs/cc/BasicWindowCoveringCC.js +12 -51
  25. package/build/cjs/cc/BasicWindowCoveringCC.js.map +1 -1
  26. package/build/cjs/cc/BatteryCC.d.ts +3 -3
  27. package/build/cjs/cc/BatteryCC.js +15 -54
  28. package/build/cjs/cc/BatteryCC.js.map +2 -2
  29. package/build/cjs/cc/BinarySensorCC._validateArgs.d.ts +3 -3
  30. package/build/cjs/cc/BinarySensorCC.d.ts +2 -2
  31. package/build/cjs/cc/BinarySensorCC.js +19 -58
  32. package/build/cjs/cc/BinarySensorCC.js.map +2 -2
  33. package/build/cjs/cc/BinarySwitchCC._validateArgs.d.ts +1 -1
  34. package/build/cjs/cc/BinarySwitchCC.d.ts +2 -2
  35. package/build/cjs/cc/BinarySwitchCC.js +17 -54
  36. package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
  37. package/build/cjs/cc/CRC16CC.js +7 -46
  38. package/build/cjs/cc/CRC16CC.js.map +1 -1
  39. package/build/cjs/cc/CentralSceneCC._validateArgs.d.ts +1 -1
  40. package/build/cjs/cc/CentralSceneCC.d.ts +1 -1
  41. package/build/cjs/cc/CentralSceneCC.js +19 -58
  42. package/build/cjs/cc/CentralSceneCC.js.map +1 -1
  43. package/build/cjs/cc/ClimateControlScheduleCC._validateArgs.d.ts +3 -3
  44. package/build/cjs/cc/ClimateControlScheduleCC.js +25 -64
  45. package/build/cjs/cc/ClimateControlScheduleCC.js.map +1 -1
  46. package/build/cjs/cc/ClockCC._validateArgs.d.ts +1 -1
  47. package/build/cjs/cc/ClockCC.d.ts +3 -3
  48. package/build/cjs/cc/ClockCC.js +15 -54
  49. package/build/cjs/cc/ClockCC.js.map +2 -2
  50. package/build/cjs/cc/ColorSwitchCC._validateArgs.d.ts +4 -4
  51. package/build/cjs/cc/ColorSwitchCC.d.ts +3 -3
  52. package/build/cjs/cc/ColorSwitchCC.js +26 -65
  53. package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
  54. package/build/cjs/cc/ConfigurationCC._validateArgs.d.ts +9 -9
  55. package/build/cjs/cc/ConfigurationCC.d.ts +3 -8
  56. package/build/cjs/cc/ConfigurationCC.js +43 -82
  57. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  58. package/build/cjs/cc/DeviceResetLocallyCC.js +7 -46
  59. package/build/cjs/cc/DeviceResetLocallyCC.js.map +1 -1
  60. package/build/cjs/cc/DoorLockCC._validateArgs.d.ts +2 -2
  61. package/build/cjs/cc/DoorLockCC.d.ts +5 -5
  62. package/build/cjs/cc/DoorLockCC.js +26 -65
  63. package/build/cjs/cc/DoorLockCC.js.map +2 -2
  64. package/build/cjs/cc/DoorLockLoggingCC._validateArgs.d.ts +1 -1
  65. package/build/cjs/cc/DoorLockLoggingCC.d.ts +2 -2
  66. package/build/cjs/cc/DoorLockLoggingCC.js +17 -56
  67. package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
  68. package/build/cjs/cc/EnergyProductionCC._validateArgs.d.ts +1 -1
  69. package/build/cjs/cc/EnergyProductionCC.d.ts +2 -2
  70. package/build/cjs/cc/EnergyProductionCC.js +13 -52
  71. package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
  72. package/build/cjs/cc/EntryControlCC._validateArgs.d.ts +1 -1
  73. package/build/cjs/cc/EntryControlCC.d.ts +3 -3
  74. package/build/cjs/cc/EntryControlCC.js +25 -64
  75. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  76. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +6 -6
  77. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +34 -73
  78. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  79. package/build/cjs/cc/HailCC.js +3 -42
  80. package/build/cjs/cc/HailCC.js.map +1 -1
  81. package/build/cjs/cc/HumidityControlModeCC._validateArgs.d.ts +1 -1
  82. package/build/cjs/cc/HumidityControlModeCC.d.ts +2 -2
  83. package/build/cjs/cc/HumidityControlModeCC.js +19 -58
  84. package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
  85. package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +2 -2
  86. package/build/cjs/cc/HumidityControlOperatingStateCC.js +11 -50
  87. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
  88. package/build/cjs/cc/HumidityControlSetpointCC._validateArgs.d.ts +4 -4
  89. package/build/cjs/cc/HumidityControlSetpointCC.d.ts +2 -2
  90. package/build/cjs/cc/HumidityControlSetpointCC.js +30 -69
  91. package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
  92. package/build/cjs/cc/InclusionControllerCC.js +9 -48
  93. package/build/cjs/cc/InclusionControllerCC.js.map +1 -1
  94. package/build/cjs/cc/IndicatorCC._validateArgs.d.ts +9 -9
  95. package/build/cjs/cc/IndicatorCC.d.ts +2 -2
  96. package/build/cjs/cc/IndicatorCC.js +31 -70
  97. package/build/cjs/cc/IndicatorCC.js.map +2 -2
  98. package/build/cjs/cc/IrrigationCC._validateArgs.d.ts +10 -10
  99. package/build/cjs/cc/IrrigationCC.d.ts +7 -7
  100. package/build/cjs/cc/IrrigationCC.js +54 -93
  101. package/build/cjs/cc/IrrigationCC.js.map +2 -2
  102. package/build/cjs/cc/LanguageCC._validateArgs.d.ts +1 -1
  103. package/build/cjs/cc/LanguageCC.d.ts +3 -3
  104. package/build/cjs/cc/LanguageCC.js +15 -54
  105. package/build/cjs/cc/LanguageCC.js.map +2 -2
  106. package/build/cjs/cc/LockCC._validateArgs.d.ts +1 -1
  107. package/build/cjs/cc/LockCC.d.ts +2 -2
  108. package/build/cjs/cc/LockCC.js +15 -54
  109. package/build/cjs/cc/LockCC.js.map +2 -2
  110. package/build/cjs/cc/ManufacturerProprietaryCC._validateArgs.d.ts +2 -2
  111. package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
  112. package/build/cjs/cc/ManufacturerProprietaryCC.js +10 -49
  113. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  114. package/build/cjs/cc/ManufacturerSpecificCC._validateArgs.d.ts +2 -2
  115. package/build/cjs/cc/ManufacturerSpecificCC.d.ts +1 -1
  116. package/build/cjs/cc/ManufacturerSpecificCC.js +16 -55
  117. package/build/cjs/cc/ManufacturerSpecificCC.js.map +1 -1
  118. package/build/cjs/cc/MeterCC._validateArgs.d.ts +5 -5
  119. package/build/cjs/cc/MeterCC.d.ts +3 -3
  120. package/build/cjs/cc/MeterCC.js +23 -62
  121. package/build/cjs/cc/MeterCC.js.map +2 -2
  122. package/build/cjs/cc/MultiChannelAssociationCC._validateArgs.d.ts +5 -5
  123. package/build/cjs/cc/MultiChannelAssociationCC.d.ts +3 -3
  124. package/build/cjs/cc/MultiChannelAssociationCC.js +26 -65
  125. package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
  126. package/build/cjs/cc/MultiChannelCC._validateArgs.d.ts +4 -4
  127. package/build/cjs/cc/MultiChannelCC.js +34 -73
  128. package/build/cjs/cc/MultiChannelCC.js.map +1 -1
  129. package/build/cjs/cc/MultiCommandCC._validateArgs.d.ts +1 -1
  130. package/build/cjs/cc/MultiCommandCC.js +9 -48
  131. package/build/cjs/cc/MultiCommandCC.js.map +1 -1
  132. package/build/cjs/cc/MultilevelSensorCC._validateArgs.d.ts +3 -3
  133. package/build/cjs/cc/MultilevelSensorCC.d.ts +2 -2
  134. package/build/cjs/cc/MultilevelSensorCC.js +23 -62
  135. package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
  136. package/build/cjs/cc/MultilevelSwitchCC._validateArgs.d.ts +2 -2
  137. package/build/cjs/cc/MultilevelSwitchCC.d.ts +3 -3
  138. package/build/cjs/cc/MultilevelSwitchCC.js +26 -63
  139. package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
  140. package/build/cjs/cc/NoOperationCC.js +5 -44
  141. package/build/cjs/cc/NoOperationCC.js.map +1 -1
  142. package/build/cjs/cc/NodeNamingCC._validateArgs.d.ts +2 -2
  143. package/build/cjs/cc/NodeNamingCC.d.ts +2 -2
  144. package/build/cjs/cc/NodeNamingCC.js +22 -61
  145. package/build/cjs/cc/NodeNamingCC.js.map +2 -2
  146. package/build/cjs/cc/NotificationCC._validateArgs.d.ts +4 -4
  147. package/build/cjs/cc/NotificationCC.d.ts +22 -5
  148. package/build/cjs/cc/NotificationCC.js +141 -104
  149. package/build/cjs/cc/NotificationCC.js.map +2 -2
  150. package/build/cjs/cc/PowerlevelCC._validateArgs.d.ts +4 -4
  151. package/build/cjs/cc/PowerlevelCC.d.ts +2 -2
  152. package/build/cjs/cc/PowerlevelCC.js +22 -61
  153. package/build/cjs/cc/PowerlevelCC.js.map +1 -1
  154. package/build/cjs/cc/ProtectionCC._validateArgs.d.ts +3 -3
  155. package/build/cjs/cc/ProtectionCC.d.ts +3 -3
  156. package/build/cjs/cc/ProtectionCC.js +33 -72
  157. package/build/cjs/cc/ProtectionCC.js.map +2 -2
  158. package/build/cjs/cc/SceneActivationCC._validateArgs.d.ts +1 -1
  159. package/build/cjs/cc/SceneActivationCC.js +9 -48
  160. package/build/cjs/cc/SceneActivationCC.js.map +1 -1
  161. package/build/cjs/cc/SceneActuatorConfigurationCC._validateArgs.d.ts +2 -2
  162. package/build/cjs/cc/SceneActuatorConfigurationCC.js +14 -53
  163. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +1 -1
  164. package/build/cjs/cc/SceneControllerConfigurationCC._validateArgs.d.ts +3 -3
  165. package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +2 -2
  166. package/build/cjs/cc/SceneControllerConfigurationCC.js +17 -56
  167. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
  168. package/build/cjs/cc/ScheduleEntryLockCC._validateArgs.d.ts +8 -8
  169. package/build/cjs/cc/ScheduleEntryLockCC.d.ts +1 -1
  170. package/build/cjs/cc/ScheduleEntryLockCC.js +46 -85
  171. package/build/cjs/cc/ScheduleEntryLockCC.js.map +1 -1
  172. package/build/cjs/cc/Security2CC.d.ts +1 -1
  173. package/build/cjs/cc/Security2CC.js +33 -72
  174. package/build/cjs/cc/Security2CC.js.map +1 -1
  175. package/build/cjs/cc/SecurityCC.d.ts +1 -1
  176. package/build/cjs/cc/SecurityCC.js +27 -66
  177. package/build/cjs/cc/SecurityCC.js.map +2 -2
  178. package/build/cjs/cc/SoundSwitchCC._validateArgs.d.ts +3 -3
  179. package/build/cjs/cc/SoundSwitchCC.d.ts +2 -2
  180. package/build/cjs/cc/SoundSwitchCC.js +29 -68
  181. package/build/cjs/cc/SoundSwitchCC.js.map +1 -1
  182. package/build/cjs/cc/SupervisionCC.js +9 -48
  183. package/build/cjs/cc/SupervisionCC.js.map +1 -1
  184. package/build/cjs/cc/ThermostatFanModeCC._validateArgs.d.ts +1 -1
  185. package/build/cjs/cc/ThermostatFanModeCC.d.ts +2 -2
  186. package/build/cjs/cc/ThermostatFanModeCC.js +19 -58
  187. package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
  188. package/build/cjs/cc/ThermostatFanStateCC.d.ts +2 -2
  189. package/build/cjs/cc/ThermostatFanStateCC.js +11 -50
  190. package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
  191. package/build/cjs/cc/ThermostatModeCC._validateArgs.d.ts +1 -1
  192. package/build/cjs/cc/ThermostatModeCC.d.ts +3 -3
  193. package/build/cjs/cc/ThermostatModeCC.js +19 -58
  194. package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
  195. package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +2 -2
  196. package/build/cjs/cc/ThermostatOperatingStateCC.js +11 -50
  197. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
  198. package/build/cjs/cc/ThermostatSetbackCC._validateArgs.d.ts +1 -1
  199. package/build/cjs/cc/ThermostatSetbackCC.d.ts +3 -3
  200. package/build/cjs/cc/ThermostatSetbackCC.js +15 -54
  201. package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
  202. package/build/cjs/cc/ThermostatSetpointCC._validateArgs.d.ts +3 -3
  203. package/build/cjs/cc/ThermostatSetpointCC.d.ts +3 -3
  204. package/build/cjs/cc/ThermostatSetpointCC.js +25 -64
  205. package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
  206. package/build/cjs/cc/TimeCC._validateArgs.d.ts +4 -4
  207. package/build/cjs/cc/TimeCC.d.ts +1 -1
  208. package/build/cjs/cc/TimeCC.js +24 -63
  209. package/build/cjs/cc/TimeCC.js.map +1 -1
  210. package/build/cjs/cc/TimeParametersCC._validateArgs.d.ts +1 -1
  211. package/build/cjs/cc/TimeParametersCC.js +13 -52
  212. package/build/cjs/cc/TimeParametersCC.js.map +1 -1
  213. package/build/cjs/cc/TransportServiceCC.js +13 -52
  214. package/build/cjs/cc/TransportServiceCC.js.map +1 -1
  215. package/build/cjs/cc/UserCodeCC._validateArgs.d.ts +6 -6
  216. package/build/cjs/cc/UserCodeCC.d.ts +7 -5
  217. package/build/cjs/cc/UserCodeCC.js +89 -98
  218. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  219. package/build/cjs/cc/VersionCC._validateArgs.d.ts +3 -3
  220. package/build/cjs/cc/VersionCC.d.ts +2 -2
  221. package/build/cjs/cc/VersionCC.js +25 -64
  222. package/build/cjs/cc/VersionCC.js.map +1 -1
  223. package/build/cjs/cc/WakeUpCC._validateArgs.d.ts +1 -1
  224. package/build/cjs/cc/WakeUpCC.d.ts +1 -1
  225. package/build/cjs/cc/WakeUpCC.js +21 -60
  226. package/build/cjs/cc/WakeUpCC.js.map +1 -1
  227. package/build/cjs/cc/WindowCoveringCC._validateArgs.d.ts +4 -4
  228. package/build/cjs/cc/WindowCoveringCC.d.ts +3 -3
  229. package/build/cjs/cc/WindowCoveringCC.js +28 -65
  230. package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
  231. package/build/cjs/cc/ZWaveLongRangeCC.js +3 -42
  232. package/build/cjs/cc/ZWaveLongRangeCC.js.map +1 -1
  233. package/build/cjs/cc/ZWavePlusCC._validateArgs.d.ts +1 -1
  234. package/build/cjs/cc/ZWavePlusCC.d.ts +1 -1
  235. package/build/cjs/cc/ZWavePlusCC.js +11 -50
  236. package/build/cjs/cc/ZWavePlusCC.js.map +1 -1
  237. package/build/cjs/cc/ZWaveProtocolCC.js +73 -112
  238. package/build/cjs/cc/ZWaveProtocolCC.js.map +1 -1
  239. package/build/cjs/cc/_CCValues.generated.d.ts +1173 -1049
  240. package/build/cjs/cc/_CCValues.generated.js +68 -5
  241. package/build/cjs/cc/_CCValues.generated.js.map +2 -2
  242. package/build/cjs/cc/manufacturerProprietary/FibaroCC._validateArgs.d.ts +2 -2
  243. package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
  244. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +22 -59
  245. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
  246. package/build/cjs/lib/API.d.ts +1 -0
  247. package/build/cjs/lib/API.js.map +2 -2
  248. package/build/cjs/lib/CommandClass.d.ts +6 -2
  249. package/build/cjs/lib/CommandClass.js +2 -1
  250. package/build/cjs/lib/CommandClass.js.map +2 -2
  251. package/build/cjs/lib/Security2/Extension.js +9 -48
  252. package/build/cjs/lib/Security2/Extension.js.map +1 -1
  253. package/build/cjs/lib/Values.d.ts +5 -5
  254. package/build/cjs/lib/Values.js.map +2 -2
  255. package/build/cjs/lib/_CCAPI.generated.d.ts +64 -64
  256. package/build/esm/cc/AlarmSensorCC._validateArgs.d.ts +1 -1
  257. package/build/esm/cc/AlarmSensorCC._validateArgs.d.ts.map +1 -1
  258. package/build/esm/cc/AlarmSensorCC.d.ts +3 -3
  259. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  260. package/build/esm/cc/AlarmSensorCC.js +9 -38
  261. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  262. package/build/esm/cc/ApplicationStatusCC.d.ts.map +1 -1
  263. package/build/esm/cc/ApplicationStatusCC.js +1 -34
  264. package/build/esm/cc/ApplicationStatusCC.js.map +1 -1
  265. package/build/esm/cc/AssociationCC._validateArgs.d.ts +8 -8
  266. package/build/esm/cc/AssociationCC._validateArgs.d.ts.map +1 -1
  267. package/build/esm/cc/AssociationCC.d.ts +2 -2
  268. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  269. package/build/esm/cc/AssociationCC.js +3 -36
  270. package/build/esm/cc/AssociationCC.js.map +1 -1
  271. package/build/esm/cc/AssociationGroupInfoCC._validateArgs.d.ts +6 -6
  272. package/build/esm/cc/AssociationGroupInfoCC._validateArgs.d.ts.map +1 -1
  273. package/build/esm/cc/AssociationGroupInfoCC.d.ts +3 -3
  274. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  275. package/build/esm/cc/AssociationGroupInfoCC.js +5 -36
  276. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  277. package/build/esm/cc/BarrierOperatorCC._validateArgs.d.ts +4 -4
  278. package/build/esm/cc/BarrierOperatorCC._validateArgs.d.ts.map +1 -1
  279. package/build/esm/cc/BarrierOperatorCC.d.ts +3 -3
  280. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  281. package/build/esm/cc/BarrierOperatorCC.js +5 -36
  282. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  283. package/build/esm/cc/BasicCC._validateArgs.d.ts +1 -1
  284. package/build/esm/cc/BasicCC._validateArgs.d.ts.map +1 -1
  285. package/build/esm/cc/BasicCC.d.ts +3 -3
  286. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  287. package/build/esm/cc/BasicCC.js +5 -36
  288. package/build/esm/cc/BasicCC.js.map +1 -1
  289. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.d.ts +2 -2
  290. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.d.ts.map +1 -1
  291. package/build/esm/cc/BasicWindowCoveringCC.d.ts.map +1 -1
  292. package/build/esm/cc/BasicWindowCoveringCC.js +1 -34
  293. package/build/esm/cc/BasicWindowCoveringCC.js.map +1 -1
  294. package/build/esm/cc/BatteryCC.d.ts +3 -3
  295. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  296. package/build/esm/cc/BatteryCC.js +3 -36
  297. package/build/esm/cc/BatteryCC.js.map +1 -1
  298. package/build/esm/cc/BinarySensorCC._validateArgs.d.ts +3 -3
  299. package/build/esm/cc/BinarySensorCC._validateArgs.d.ts.map +1 -1
  300. package/build/esm/cc/BinarySensorCC.d.ts +2 -2
  301. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  302. package/build/esm/cc/BinarySensorCC.js +3 -36
  303. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  304. package/build/esm/cc/BinarySwitchCC._validateArgs.d.ts +1 -1
  305. package/build/esm/cc/BinarySwitchCC._validateArgs.d.ts.map +1 -1
  306. package/build/esm/cc/BinarySwitchCC.d.ts +2 -2
  307. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  308. package/build/esm/cc/BinarySwitchCC.js +5 -36
  309. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  310. package/build/esm/cc/CRC16CC.d.ts.map +1 -1
  311. package/build/esm/cc/CRC16CC.js +1 -34
  312. package/build/esm/cc/CRC16CC.js.map +1 -1
  313. package/build/esm/cc/CentralSceneCC._validateArgs.d.ts +1 -1
  314. package/build/esm/cc/CentralSceneCC._validateArgs.d.ts.map +1 -1
  315. package/build/esm/cc/CentralSceneCC.d.ts +1 -1
  316. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  317. package/build/esm/cc/CentralSceneCC.js +1 -34
  318. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  319. package/build/esm/cc/ClimateControlScheduleCC._validateArgs.d.ts +3 -3
  320. package/build/esm/cc/ClimateControlScheduleCC._validateArgs.d.ts.map +1 -1
  321. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
  322. package/build/esm/cc/ClimateControlScheduleCC.js +1 -34
  323. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  324. package/build/esm/cc/ClockCC._validateArgs.d.ts +1 -1
  325. package/build/esm/cc/ClockCC._validateArgs.d.ts.map +1 -1
  326. package/build/esm/cc/ClockCC.d.ts +3 -3
  327. package/build/esm/cc/ClockCC.d.ts.map +1 -1
  328. package/build/esm/cc/ClockCC.js +3 -36
  329. package/build/esm/cc/ClockCC.js.map +1 -1
  330. package/build/esm/cc/ColorSwitchCC._validateArgs.d.ts +4 -4
  331. package/build/esm/cc/ColorSwitchCC._validateArgs.d.ts.map +1 -1
  332. package/build/esm/cc/ColorSwitchCC.d.ts +3 -3
  333. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  334. package/build/esm/cc/ColorSwitchCC.js +3 -36
  335. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  336. package/build/esm/cc/ConfigurationCC._validateArgs.d.ts +9 -9
  337. package/build/esm/cc/ConfigurationCC._validateArgs.d.ts.map +1 -1
  338. package/build/esm/cc/ConfigurationCC.d.ts +3 -8
  339. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  340. package/build/esm/cc/ConfigurationCC.js +3 -36
  341. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  342. package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
  343. package/build/esm/cc/DeviceResetLocallyCC.js +1 -34
  344. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  345. package/build/esm/cc/DoorLockCC._validateArgs.d.ts +2 -2
  346. package/build/esm/cc/DoorLockCC._validateArgs.d.ts.map +1 -1
  347. package/build/esm/cc/DoorLockCC.d.ts +5 -5
  348. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  349. package/build/esm/cc/DoorLockCC.js +3 -36
  350. package/build/esm/cc/DoorLockCC.js.map +1 -1
  351. package/build/esm/cc/DoorLockLoggingCC._validateArgs.d.ts +1 -1
  352. package/build/esm/cc/DoorLockLoggingCC._validateArgs.d.ts.map +1 -1
  353. package/build/esm/cc/DoorLockLoggingCC.d.ts +2 -2
  354. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  355. package/build/esm/cc/DoorLockLoggingCC.js +3 -36
  356. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  357. package/build/esm/cc/EnergyProductionCC._validateArgs.d.ts +1 -1
  358. package/build/esm/cc/EnergyProductionCC._validateArgs.d.ts.map +1 -1
  359. package/build/esm/cc/EnergyProductionCC.d.ts +2 -2
  360. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
  361. package/build/esm/cc/EnergyProductionCC.js +3 -36
  362. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  363. package/build/esm/cc/EntryControlCC._validateArgs.d.ts +1 -1
  364. package/build/esm/cc/EntryControlCC._validateArgs.d.ts.map +1 -1
  365. package/build/esm/cc/EntryControlCC.d.ts +3 -3
  366. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  367. package/build/esm/cc/EntryControlCC.js +3 -36
  368. package/build/esm/cc/EntryControlCC.js.map +1 -1
  369. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +6 -6
  370. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts.map +1 -1
  371. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  372. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1 -34
  373. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  374. package/build/esm/cc/HailCC.js +1 -34
  375. package/build/esm/cc/HailCC.js.map +1 -1
  376. package/build/esm/cc/HumidityControlModeCC._validateArgs.d.ts +1 -1
  377. package/build/esm/cc/HumidityControlModeCC._validateArgs.d.ts.map +1 -1
  378. package/build/esm/cc/HumidityControlModeCC.d.ts +2 -2
  379. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  380. package/build/esm/cc/HumidityControlModeCC.js +3 -36
  381. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  382. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +2 -2
  383. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  384. package/build/esm/cc/HumidityControlOperatingStateCC.js +3 -36
  385. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  386. package/build/esm/cc/HumidityControlSetpointCC._validateArgs.d.ts +4 -4
  387. package/build/esm/cc/HumidityControlSetpointCC._validateArgs.d.ts.map +1 -1
  388. package/build/esm/cc/HumidityControlSetpointCC.d.ts +2 -2
  389. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  390. package/build/esm/cc/HumidityControlSetpointCC.js +3 -36
  391. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  392. package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
  393. package/build/esm/cc/InclusionControllerCC.js +1 -34
  394. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  395. package/build/esm/cc/IndicatorCC._validateArgs.d.ts +9 -9
  396. package/build/esm/cc/IndicatorCC._validateArgs.d.ts.map +1 -1
  397. package/build/esm/cc/IndicatorCC.d.ts +2 -2
  398. package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
  399. package/build/esm/cc/IndicatorCC.js +3 -36
  400. package/build/esm/cc/IndicatorCC.js.map +1 -1
  401. package/build/esm/cc/IrrigationCC._validateArgs.d.ts +10 -10
  402. package/build/esm/cc/IrrigationCC._validateArgs.d.ts.map +1 -1
  403. package/build/esm/cc/IrrigationCC.d.ts +7 -7
  404. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  405. package/build/esm/cc/IrrigationCC.js +3 -36
  406. package/build/esm/cc/IrrigationCC.js.map +1 -1
  407. package/build/esm/cc/LanguageCC._validateArgs.d.ts +1 -1
  408. package/build/esm/cc/LanguageCC._validateArgs.d.ts.map +1 -1
  409. package/build/esm/cc/LanguageCC.d.ts +3 -3
  410. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  411. package/build/esm/cc/LanguageCC.js +3 -36
  412. package/build/esm/cc/LanguageCC.js.map +1 -1
  413. package/build/esm/cc/LockCC._validateArgs.d.ts +1 -1
  414. package/build/esm/cc/LockCC._validateArgs.d.ts.map +1 -1
  415. package/build/esm/cc/LockCC.d.ts +2 -2
  416. package/build/esm/cc/LockCC.d.ts.map +1 -1
  417. package/build/esm/cc/LockCC.js +3 -36
  418. package/build/esm/cc/LockCC.js.map +1 -1
  419. package/build/esm/cc/ManufacturerProprietaryCC._validateArgs.d.ts +2 -2
  420. package/build/esm/cc/ManufacturerProprietaryCC._validateArgs.d.ts.map +1 -1
  421. package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
  422. package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
  423. package/build/esm/cc/ManufacturerProprietaryCC.js +3 -36
  424. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  425. package/build/esm/cc/ManufacturerSpecificCC._validateArgs.d.ts +2 -2
  426. package/build/esm/cc/ManufacturerSpecificCC._validateArgs.d.ts.map +1 -1
  427. package/build/esm/cc/ManufacturerSpecificCC.d.ts +1 -1
  428. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  429. package/build/esm/cc/ManufacturerSpecificCC.js +1 -34
  430. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  431. package/build/esm/cc/MeterCC._validateArgs.d.ts +5 -5
  432. package/build/esm/cc/MeterCC._validateArgs.d.ts.map +1 -1
  433. package/build/esm/cc/MeterCC.d.ts +3 -3
  434. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  435. package/build/esm/cc/MeterCC.js +3 -36
  436. package/build/esm/cc/MeterCC.js.map +1 -1
  437. package/build/esm/cc/MultiChannelAssociationCC._validateArgs.d.ts +5 -5
  438. package/build/esm/cc/MultiChannelAssociationCC._validateArgs.d.ts.map +1 -1
  439. package/build/esm/cc/MultiChannelAssociationCC.d.ts +3 -3
  440. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  441. package/build/esm/cc/MultiChannelAssociationCC.js +4 -37
  442. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  443. package/build/esm/cc/MultiChannelCC._validateArgs.d.ts +4 -4
  444. package/build/esm/cc/MultiChannelCC._validateArgs.d.ts.map +1 -1
  445. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  446. package/build/esm/cc/MultiChannelCC.js +1 -34
  447. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  448. package/build/esm/cc/MultiCommandCC._validateArgs.d.ts +1 -1
  449. package/build/esm/cc/MultiCommandCC._validateArgs.d.ts.map +1 -1
  450. package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
  451. package/build/esm/cc/MultiCommandCC.js +1 -34
  452. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  453. package/build/esm/cc/MultilevelSensorCC._validateArgs.d.ts +3 -3
  454. package/build/esm/cc/MultilevelSensorCC._validateArgs.d.ts.map +1 -1
  455. package/build/esm/cc/MultilevelSensorCC.d.ts +2 -2
  456. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  457. package/build/esm/cc/MultilevelSensorCC.js +3 -36
  458. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  459. package/build/esm/cc/MultilevelSwitchCC._validateArgs.d.ts +2 -2
  460. package/build/esm/cc/MultilevelSwitchCC._validateArgs.d.ts.map +1 -1
  461. package/build/esm/cc/MultilevelSwitchCC.d.ts +3 -3
  462. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  463. package/build/esm/cc/MultilevelSwitchCC.js +5 -36
  464. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  465. package/build/esm/cc/NoOperationCC.d.ts.map +1 -1
  466. package/build/esm/cc/NoOperationCC.js +1 -34
  467. package/build/esm/cc/NoOperationCC.js.map +1 -1
  468. package/build/esm/cc/NodeNamingCC._validateArgs.d.ts +2 -2
  469. package/build/esm/cc/NodeNamingCC._validateArgs.d.ts.map +1 -1
  470. package/build/esm/cc/NodeNamingCC.d.ts +2 -2
  471. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  472. package/build/esm/cc/NodeNamingCC.js +3 -36
  473. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  474. package/build/esm/cc/NotificationCC._validateArgs.d.ts +4 -4
  475. package/build/esm/cc/NotificationCC._validateArgs.d.ts.map +1 -1
  476. package/build/esm/cc/NotificationCC.d.ts +22 -5
  477. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  478. package/build/esm/cc/NotificationCC.js +143 -89
  479. package/build/esm/cc/NotificationCC.js.map +1 -1
  480. package/build/esm/cc/PowerlevelCC._validateArgs.d.ts +4 -4
  481. package/build/esm/cc/PowerlevelCC._validateArgs.d.ts.map +1 -1
  482. package/build/esm/cc/PowerlevelCC.d.ts +2 -2
  483. package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
  484. package/build/esm/cc/PowerlevelCC.js +1 -34
  485. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  486. package/build/esm/cc/ProtectionCC._validateArgs.d.ts +3 -3
  487. package/build/esm/cc/ProtectionCC._validateArgs.d.ts.map +1 -1
  488. package/build/esm/cc/ProtectionCC.d.ts +3 -3
  489. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  490. package/build/esm/cc/ProtectionCC.js +3 -36
  491. package/build/esm/cc/ProtectionCC.js.map +1 -1
  492. package/build/esm/cc/SceneActivationCC._validateArgs.d.ts +1 -1
  493. package/build/esm/cc/SceneActivationCC._validateArgs.d.ts.map +1 -1
  494. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
  495. package/build/esm/cc/SceneActivationCC.js +1 -34
  496. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  497. package/build/esm/cc/SceneActuatorConfigurationCC._validateArgs.d.ts +2 -2
  498. package/build/esm/cc/SceneActuatorConfigurationCC._validateArgs.d.ts.map +1 -1
  499. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
  500. package/build/esm/cc/SceneActuatorConfigurationCC.js +1 -34
  501. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  502. package/build/esm/cc/SceneControllerConfigurationCC._validateArgs.d.ts +3 -3
  503. package/build/esm/cc/SceneControllerConfigurationCC._validateArgs.d.ts.map +1 -1
  504. package/build/esm/cc/SceneControllerConfigurationCC.d.ts +2 -2
  505. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
  506. package/build/esm/cc/SceneControllerConfigurationCC.js +3 -36
  507. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  508. package/build/esm/cc/ScheduleEntryLockCC._validateArgs.d.ts +8 -8
  509. package/build/esm/cc/ScheduleEntryLockCC._validateArgs.d.ts.map +1 -1
  510. package/build/esm/cc/ScheduleEntryLockCC.d.ts +1 -1
  511. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  512. package/build/esm/cc/ScheduleEntryLockCC.js +1 -34
  513. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  514. package/build/esm/cc/Security2CC.d.ts +1 -1
  515. package/build/esm/cc/Security2CC.d.ts.map +1 -1
  516. package/build/esm/cc/Security2CC.js +1 -34
  517. package/build/esm/cc/Security2CC.js.map +1 -1
  518. package/build/esm/cc/SecurityCC.d.ts +1 -1
  519. package/build/esm/cc/SecurityCC.d.ts.map +1 -1
  520. package/build/esm/cc/SecurityCC.js +2 -36
  521. package/build/esm/cc/SecurityCC.js.map +1 -1
  522. package/build/esm/cc/SoundSwitchCC._validateArgs.d.ts +3 -3
  523. package/build/esm/cc/SoundSwitchCC._validateArgs.d.ts.map +1 -1
  524. package/build/esm/cc/SoundSwitchCC.d.ts +2 -2
  525. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  526. package/build/esm/cc/SoundSwitchCC.js +1 -34
  527. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  528. package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
  529. package/build/esm/cc/SupervisionCC.js +1 -34
  530. package/build/esm/cc/SupervisionCC.js.map +1 -1
  531. package/build/esm/cc/ThermostatFanModeCC._validateArgs.d.ts +1 -1
  532. package/build/esm/cc/ThermostatFanModeCC._validateArgs.d.ts.map +1 -1
  533. package/build/esm/cc/ThermostatFanModeCC.d.ts +2 -2
  534. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  535. package/build/esm/cc/ThermostatFanModeCC.js +3 -36
  536. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  537. package/build/esm/cc/ThermostatFanStateCC.d.ts +2 -2
  538. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  539. package/build/esm/cc/ThermostatFanStateCC.js +3 -36
  540. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  541. package/build/esm/cc/ThermostatModeCC._validateArgs.d.ts +1 -1
  542. package/build/esm/cc/ThermostatModeCC._validateArgs.d.ts.map +1 -1
  543. package/build/esm/cc/ThermostatModeCC.d.ts +3 -3
  544. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  545. package/build/esm/cc/ThermostatModeCC.js +3 -36
  546. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  547. package/build/esm/cc/ThermostatOperatingStateCC.d.ts +2 -2
  548. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  549. package/build/esm/cc/ThermostatOperatingStateCC.js +3 -36
  550. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  551. package/build/esm/cc/ThermostatSetbackCC._validateArgs.d.ts +1 -1
  552. package/build/esm/cc/ThermostatSetbackCC._validateArgs.d.ts.map +1 -1
  553. package/build/esm/cc/ThermostatSetbackCC.d.ts +3 -3
  554. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
  555. package/build/esm/cc/ThermostatSetbackCC.js +3 -36
  556. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  557. package/build/esm/cc/ThermostatSetpointCC._validateArgs.d.ts +3 -3
  558. package/build/esm/cc/ThermostatSetpointCC._validateArgs.d.ts.map +1 -1
  559. package/build/esm/cc/ThermostatSetpointCC.d.ts +3 -3
  560. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  561. package/build/esm/cc/ThermostatSetpointCC.js +3 -36
  562. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  563. package/build/esm/cc/TimeCC._validateArgs.d.ts +4 -4
  564. package/build/esm/cc/TimeCC._validateArgs.d.ts.map +1 -1
  565. package/build/esm/cc/TimeCC.d.ts +1 -1
  566. package/build/esm/cc/TimeCC.d.ts.map +1 -1
  567. package/build/esm/cc/TimeCC.js +1 -34
  568. package/build/esm/cc/TimeCC.js.map +1 -1
  569. package/build/esm/cc/TimeParametersCC._validateArgs.d.ts +1 -1
  570. package/build/esm/cc/TimeParametersCC._validateArgs.d.ts.map +1 -1
  571. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  572. package/build/esm/cc/TimeParametersCC.js +1 -34
  573. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  574. package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
  575. package/build/esm/cc/TransportServiceCC.js +1 -34
  576. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  577. package/build/esm/cc/UserCodeCC._validateArgs.d.ts +6 -6
  578. package/build/esm/cc/UserCodeCC._validateArgs.d.ts.map +1 -1
  579. package/build/esm/cc/UserCodeCC.d.ts +7 -5
  580. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  581. package/build/esm/cc/UserCodeCC.js +55 -48
  582. package/build/esm/cc/UserCodeCC.js.map +1 -1
  583. package/build/esm/cc/VersionCC._validateArgs.d.ts +3 -3
  584. package/build/esm/cc/VersionCC._validateArgs.d.ts.map +1 -1
  585. package/build/esm/cc/VersionCC.d.ts +2 -2
  586. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  587. package/build/esm/cc/VersionCC.js +1 -34
  588. package/build/esm/cc/VersionCC.js.map +1 -1
  589. package/build/esm/cc/WakeUpCC._validateArgs.d.ts +1 -1
  590. package/build/esm/cc/WakeUpCC._validateArgs.d.ts.map +1 -1
  591. package/build/esm/cc/WakeUpCC.d.ts +1 -1
  592. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  593. package/build/esm/cc/WakeUpCC.js +1 -34
  594. package/build/esm/cc/WakeUpCC.js.map +1 -1
  595. package/build/esm/cc/WindowCoveringCC._validateArgs.d.ts +4 -4
  596. package/build/esm/cc/WindowCoveringCC._validateArgs.d.ts.map +1 -1
  597. package/build/esm/cc/WindowCoveringCC.d.ts +3 -3
  598. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  599. package/build/esm/cc/WindowCoveringCC.js +5 -36
  600. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  601. package/build/esm/cc/ZWaveLongRangeCC.js +1 -34
  602. package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
  603. package/build/esm/cc/ZWavePlusCC._validateArgs.d.ts +1 -1
  604. package/build/esm/cc/ZWavePlusCC._validateArgs.d.ts.map +1 -1
  605. package/build/esm/cc/ZWavePlusCC.d.ts +1 -1
  606. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  607. package/build/esm/cc/ZWavePlusCC.js +1 -34
  608. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  609. package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
  610. package/build/esm/cc/ZWaveProtocolCC.js +1 -34
  611. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  612. package/build/esm/cc/_CCValues.generated.d.ts +1173 -1049
  613. package/build/esm/cc/_CCValues.generated.d.ts.map +1 -1
  614. package/build/esm/cc/_CCValues.generated.js +71 -4
  615. package/build/esm/cc/_CCValues.generated.js.map +1 -1
  616. package/build/esm/cc/manufacturerProprietary/FibaroCC._validateArgs.d.ts +2 -2
  617. package/build/esm/cc/manufacturerProprietary/FibaroCC._validateArgs.d.ts.map +1 -1
  618. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
  619. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
  620. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +7 -38
  621. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  622. package/build/esm/lib/API.d.ts +1 -0
  623. package/build/esm/lib/API.d.ts.map +1 -1
  624. package/build/esm/lib/API.js.map +1 -1
  625. package/build/esm/lib/CommandClass.d.ts +6 -2
  626. package/build/esm/lib/CommandClass.d.ts.map +1 -1
  627. package/build/esm/lib/CommandClass.js +4 -2
  628. package/build/esm/lib/CommandClass.js.map +1 -1
  629. package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
  630. package/build/esm/lib/Security2/Extension.js +1 -34
  631. package/build/esm/lib/Security2/Extension.js.map +1 -1
  632. package/build/esm/lib/Values.d.ts +5 -5
  633. package/build/esm/lib/Values.d.ts.map +1 -1
  634. package/build/esm/lib/Values.js +4 -1
  635. package/build/esm/lib/Values.js.map +1 -1
  636. package/build/esm/lib/_CCAPI.generated.d.ts +64 -64
  637. package/build/esm/lib/_CCAPI.generated.d.ts.map +1 -1
  638. package/build/esm/lib/serializers.js.map +1 -1
  639. package/package.json +17 -15
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src_gen/cc/DoorLockLoggingCC.ts"],
4
- "sourcesContent": ["import * as __validateArgs from \"./DoorLockLoggingCC._validateArgs.js\";\nconst { validateArgs_DoorLockLoggingCCAPI_getRecord } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type WithAddress, ZWaveError, ZWaveErrorCodes, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, isPrintableASCII, num2hex } from \"@zwave-js/shared\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type RefreshValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { DoorLockLoggingCommand, DoorLockLoggingEventType, type DoorLockLoggingRecord, DoorLockLoggingRecordStatus, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { userCodeToLogString } from \"./UserCodeCC.js\";\ninterface DateSegments {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n}\nfunction segmentsToDate(segments: DateSegments): Date {\n return new Date(segments.year, segments.month - 1, // JS months are 0-based.\n segments.day, segments.hour, segments.minute, segments.second);\n}\nconst eventTypeLabel = {\n LockCode: \"Locked via Access Code\",\n UnlockCode: \"Unlocked via Access Code\",\n LockButton: \"Locked via Lock Button\",\n UnlockButton: \"Unlocked via Unlock Button\",\n LockCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Access Code\",\n UnlockCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Access Code\",\n IllegalCode: \"Illegal Access Code Entered\",\n LockManual: \"Manually Locked\",\n UnlockManual: \"Manually Unlocked\",\n LockAuto: \"Auto Locked\",\n UnlockAuto: \"Auto Unlocked\",\n LockRemoteCode: \"Locked via Remote Access Code\",\n UnlockRemoteCode: \"Unlocked via Remote Access Code\",\n LockRemote: \"Locked via Remote\",\n UnlockRemote: \"Unlocked via Remote\",\n LockRemoteCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Remote Access Code\",\n UnlockRemoteCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Remote Access Code\",\n RemoteIllegalCode: \"Illegal Remote Access Code\",\n LockManual2: \"Manually Locked (2)\",\n UnlockManual2: \"Manually Unlocked (2)\",\n LockSecured: \"Lock Secured\",\n LockUnsecured: \"Lock Unsecured\",\n UserCodeAdded: \"User Code Added\",\n UserCodeDeleted: \"User Code Deleted\",\n AllUserCodesDeleted: \"All User Codes Deleted\",\n AdminCodeChanged: \"Admin Code Changed\",\n UserCodeChanged: \"User Code Changed\",\n LockReset: \"Lock Reset\",\n ConfigurationChanged: \"Configuration Changed\",\n LowBattery: \"Low Battery\",\n NewBattery: \"New Battery Installed\",\n Unknown: \"Unknown\",\n} as const;\nconst LATEST_RECORD_NUMBER_KEY = 0;\nimport { DoorLockLoggingCCValues } from \"./_CCValues.generated.js\";\nexport { DoorLockLoggingCCValues };\n@API(CommandClasses[\"Door Lock Logging\"])\nexport class DoorLockLoggingCCAPI extends PhysicalCCAPI {\n public supportsCommand(cmd: DoorLockLoggingCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case DoorLockLoggingCommand.RecordsSupportedGet:\n case DoorLockLoggingCommand.RecordsSupportedReport:\n case DoorLockLoggingCommand.RecordGet:\n case DoorLockLoggingCommand.RecordReport:\n return true;\n }\n return super.supportsCommand(cmd);\n }\n public async getRecordsCount(): Promise<MaybeNotKnown<number>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordsSupportedGet);\n const cc = new DoorLockLoggingCCRecordsSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordsSupportedReport>(cc, this.commandOptions);\n return response?.recordsCount;\n }\n /** Retrieves the specified audit record. Defaults to the latest one. */\n @validateArgs_DoorLockLoggingCCAPI_getRecord()\n public async getRecord(recordNumber: number = LATEST_RECORD_NUMBER_KEY): Promise<MaybeNotKnown<DoorLockLoggingRecord>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordGet);\n const cc = new DoorLockLoggingCCRecordGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n recordNumber,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordReport>(cc, this.commandOptions);\n return response?.record;\n }\n}\n@commandClass(CommandClasses[\"Door Lock Logging\"])\n@implementedVersion(1)\n@ccValues(DoorLockLoggingCCValues)\nexport class DoorLockLoggingCC extends CommandClass {\n declare ccCommand: DoorLockLoggingCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Door Lock Logging\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"querying supported number of records...\",\n direction: \"outbound\",\n });\n const recordsCount = await api.getRecordsCount();\n if (!recordsCount) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Door Lock Logging records count query timed out, skipping interview...\",\n level: \"warn\",\n });\n return;\n }\n const recordsCountLogMessage = `supports ${recordsCount} record${recordsCount === 1 ? \"\" : \"s\"}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: recordsCountLogMessage,\n direction: \"inbound\",\n });\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordsSupportedReportOptions {\n recordsCount: number;\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedReport)\n@ccValueProperty(\"recordsCount\", DoorLockLoggingCCValues.recordsCount)\nexport class DoorLockLoggingCCRecordsSupportedReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordsSupportedReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordsCount = options.recordsCount;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordsSupportedReport {\n validatePayload(raw.payload.length >= 1);\n const recordsCount = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n recordsCount,\n });\n }\n public readonly recordsCount: number;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"supported no. of records\": this.recordsCount,\n },\n };\n }\n}\nfunction eventTypeToLabel(eventType: DoorLockLoggingEventType): string {\n return ((eventTypeLabel as any)[DoorLockLoggingEventType[eventType]]\n ?? `Unknown ${num2hex(eventType)}`);\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedGet)\n@expectedCCResponse(DoorLockLoggingCCRecordsSupportedReport)\nexport class DoorLockLoggingCCRecordsSupportedGet extends DoorLockLoggingCC {\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordReportOptions {\n recordNumber: number;\n record?: DoorLockLoggingRecord;\n}\n@CCCommand(DoorLockLoggingCommand.RecordReport)\nexport class DoorLockLoggingCCRecordReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordNumber = options.recordNumber;\n this.record = options.record;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordReport {\n validatePayload(raw.payload.length >= 11);\n const recordNumber = raw.payload[0];\n const recordStatus = raw.payload[5] >>> 5;\n let record: DoorLockLoggingRecord | undefined;\n if (recordStatus !== DoorLockLoggingRecordStatus.Empty) {\n const dateSegments = {\n year: raw.payload.readUInt16BE(1),\n month: raw.payload[3],\n day: raw.payload[4],\n hour: raw.payload[5] & 0b11111,\n minute: raw.payload[6],\n second: raw.payload[7],\n };\n const eventType = raw.payload[8];\n const recordUserID = raw.payload[9];\n const userCodeLength = raw.payload[10];\n validatePayload(userCodeLength <= 10, raw.payload.length >= 11 + userCodeLength);\n const userCodeBuffer = raw.payload.subarray(11, 11 + userCodeLength);\n // See User Code CC for a detailed description. We try to parse the code as ASCII if possible\n // and fall back to a buffer otherwise.\n const userCodeString = userCodeBuffer.toString(\"utf8\");\n const userCode = isPrintableASCII(userCodeString)\n ? userCodeString\n : userCodeBuffer;\n record = {\n eventType: eventType,\n label: eventTypeToLabel(eventType),\n timestamp: segmentsToDate(dateSegments).toISOString(),\n userId: recordUserID,\n userCode,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n recordNumber,\n record,\n });\n }\n public readonly recordNumber: number;\n public readonly record?: DoorLockLoggingRecord;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.record) {\n message = {\n \"record #\": `${this.recordNumber} (empty)`,\n };\n }\n else {\n message = {\n \"record #\": `${this.recordNumber}`,\n \"event type\": this.record.label,\n timestamp: this.record.timestamp,\n };\n if (this.record.userId) {\n message[\"user ID\"] = this.record.userId;\n }\n if (this.record.userCode) {\n message[\"user code\"] = userCodeToLogString(this.record.userCode);\n }\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordGetOptions {\n recordNumber: number;\n}\nfunction testResponseForDoorLockLoggingRecordGet(sent: DoorLockLoggingCCRecordGet, received: DoorLockLoggingCCRecordReport) {\n return (sent.recordNumber === LATEST_RECORD_NUMBER_KEY\n || sent.recordNumber === received.recordNumber);\n}\n@CCCommand(DoorLockLoggingCommand.RecordGet)\n@expectedCCResponse(DoorLockLoggingCCRecordReport, testResponseForDoorLockLoggingRecordGet)\nexport class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordGetOptions>) {\n super(options);\n this.recordNumber = options.recordNumber;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): DoorLockLoggingCCRecordGet {\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new DoorLockLoggingCCRecordGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public recordNumber: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.recordNumber]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"record number\": this.recordNumber },\n };\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAAoM;AACpM,oBAAiD;AACjD,iBAAqC;AACrC,0BAA4F;AAC5F,oCAAiH;AAEjH,mBAA2H;AAE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ACb,WAAK,eAAe,QAAQ;IAChC;IACO,OAAO,KAAK,MAAa,MAAsB;AAClD,YAAM,IAAI,uBAAW,GAAG,KAAK,IAAI,qCAAqC,4BAAgB,8BAA8B;IAIxH;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,YAAY,CAAC;AAC7C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS,EAAE,iBAAiB,KAAK,aAAY;;IAErD;;;;",
4
+ "sourcesContent": ["import * as __validateArgs from \"./DoorLockLoggingCC._validateArgs.js\";\nconst { validateArgs_DoorLockLoggingCCAPI_getRecord } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type WithAddress, ZWaveError, ZWaveErrorCodes, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, isPrintableASCII, num2hex } from \"@zwave-js/shared\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type RefreshValuesContext, type RefreshValuesOptions, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { DoorLockLoggingCommand, DoorLockLoggingEventType, type DoorLockLoggingRecord, DoorLockLoggingRecordStatus, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { userCodeToLogString } from \"./UserCodeCC.js\";\ninterface DateSegments {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n}\nfunction segmentsToDate(segments: DateSegments): Date {\n return new Date(segments.year, segments.month - 1, // JS months are 0-based.\n segments.day, segments.hour, segments.minute, segments.second);\n}\nconst eventTypeLabel = {\n LockCode: \"Locked via Access Code\",\n UnlockCode: \"Unlocked via Access Code\",\n LockButton: \"Locked via Lock Button\",\n UnlockButton: \"Unlocked via Unlock Button\",\n LockCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Access Code\",\n UnlockCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Access Code\",\n IllegalCode: \"Illegal Access Code Entered\",\n LockManual: \"Manually Locked\",\n UnlockManual: \"Manually Unlocked\",\n LockAuto: \"Auto Locked\",\n UnlockAuto: \"Auto Unlocked\",\n LockRemoteCode: \"Locked via Remote Access Code\",\n UnlockRemoteCode: \"Unlocked via Remote Access Code\",\n LockRemote: \"Locked via Remote\",\n UnlockRemote: \"Unlocked via Remote\",\n LockRemoteCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Remote Access Code\",\n UnlockRemoteCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Remote Access Code\",\n RemoteIllegalCode: \"Illegal Remote Access Code\",\n LockManual2: \"Manually Locked (2)\",\n UnlockManual2: \"Manually Unlocked (2)\",\n LockSecured: \"Lock Secured\",\n LockUnsecured: \"Lock Unsecured\",\n UserCodeAdded: \"User Code Added\",\n UserCodeDeleted: \"User Code Deleted\",\n AllUserCodesDeleted: \"All User Codes Deleted\",\n AdminCodeChanged: \"Admin Code Changed\",\n UserCodeChanged: \"User Code Changed\",\n LockReset: \"Lock Reset\",\n ConfigurationChanged: \"Configuration Changed\",\n LowBattery: \"Low Battery\",\n NewBattery: \"New Battery Installed\",\n Unknown: \"Unknown\",\n} as const;\nconst LATEST_RECORD_NUMBER_KEY = 0;\nimport { DoorLockLoggingCCValues } from \"./_CCValues.generated.js\";\nexport { DoorLockLoggingCCValues };\n@API(CommandClasses[\"Door Lock Logging\"])\nexport class DoorLockLoggingCCAPI extends PhysicalCCAPI {\n public supportsCommand(cmd: DoorLockLoggingCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case DoorLockLoggingCommand.RecordsSupportedGet:\n case DoorLockLoggingCommand.RecordsSupportedReport:\n case DoorLockLoggingCommand.RecordGet:\n case DoorLockLoggingCommand.RecordReport:\n return true;\n }\n return super.supportsCommand(cmd);\n }\n public async getRecordsCount(): Promise<MaybeNotKnown<number>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordsSupportedGet);\n const cc = new DoorLockLoggingCCRecordsSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordsSupportedReport>(cc, this.commandOptions);\n return response?.recordsCount;\n }\n /** Retrieves the specified audit record. Defaults to the latest one. */\n @validateArgs_DoorLockLoggingCCAPI_getRecord()\n public async getRecord(recordNumber: number = LATEST_RECORD_NUMBER_KEY): Promise<MaybeNotKnown<DoorLockLoggingRecord>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordGet);\n const cc = new DoorLockLoggingCCRecordGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n recordNumber,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordReport>(cc, this.commandOptions);\n return response?.record;\n }\n}\n@commandClass(CommandClasses[\"Door Lock Logging\"])\n@implementedVersion(1)\n@ccValues(DoorLockLoggingCCValues)\nexport class DoorLockLoggingCC extends CommandClass {\n declare ccCommand: DoorLockLoggingCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Door Lock Logging\"], ctx, endpoint).withOptions({\n priority: options?.priority ?? MessagePriority.NodeQuery,\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"querying supported number of records...\",\n direction: \"outbound\",\n });\n const recordsCount = await api.getRecordsCount();\n if (!recordsCount) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Door Lock Logging records count query timed out, skipping interview...\",\n level: \"warn\",\n });\n return;\n }\n const recordsCountLogMessage = `supports ${recordsCount} record${recordsCount === 1 ? \"\" : \"s\"}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: recordsCountLogMessage,\n direction: \"inbound\",\n });\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordsSupportedReportOptions {\n recordsCount: number;\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedReport)\n@ccValueProperty(\"recordsCount\", DoorLockLoggingCCValues.recordsCount)\nexport class DoorLockLoggingCCRecordsSupportedReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordsSupportedReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordsCount = options.recordsCount;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordsSupportedReport {\n validatePayload(raw.payload.length >= 1);\n const recordsCount = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n recordsCount,\n });\n }\n public readonly recordsCount: number;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"supported no. of records\": this.recordsCount,\n },\n };\n }\n}\nfunction eventTypeToLabel(eventType: DoorLockLoggingEventType): string {\n return ((eventTypeLabel as any)[DoorLockLoggingEventType[eventType]]\n ?? `Unknown ${num2hex(eventType)}`);\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedGet)\n@expectedCCResponse(DoorLockLoggingCCRecordsSupportedReport)\nexport class DoorLockLoggingCCRecordsSupportedGet extends DoorLockLoggingCC {\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordReportOptions {\n recordNumber: number;\n record?: DoorLockLoggingRecord;\n}\n@CCCommand(DoorLockLoggingCommand.RecordReport)\nexport class DoorLockLoggingCCRecordReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordNumber = options.recordNumber;\n this.record = options.record;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordReport {\n validatePayload(raw.payload.length >= 11);\n const recordNumber = raw.payload[0];\n const recordStatus = raw.payload[5] >>> 5;\n let record: DoorLockLoggingRecord | undefined;\n if (recordStatus !== DoorLockLoggingRecordStatus.Empty) {\n const dateSegments = {\n year: raw.payload.readUInt16BE(1),\n month: raw.payload[3],\n day: raw.payload[4],\n hour: raw.payload[5] & 0b11111,\n minute: raw.payload[6],\n second: raw.payload[7],\n };\n const eventType = raw.payload[8];\n const recordUserID = raw.payload[9];\n const userCodeLength = raw.payload[10];\n validatePayload(userCodeLength <= 10, raw.payload.length >= 11 + userCodeLength);\n const userCodeBuffer = raw.payload.subarray(11, 11 + userCodeLength);\n // See User Code CC for a detailed description. We try to parse the code as ASCII if possible\n // and fall back to a buffer otherwise.\n const userCodeString = userCodeBuffer.toString(\"utf8\");\n const userCode = isPrintableASCII(userCodeString)\n ? userCodeString\n : userCodeBuffer;\n record = {\n eventType: eventType,\n label: eventTypeToLabel(eventType),\n timestamp: segmentsToDate(dateSegments).toISOString(),\n userId: recordUserID,\n userCode,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n recordNumber,\n record,\n });\n }\n public readonly recordNumber: number;\n public readonly record?: DoorLockLoggingRecord;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.record) {\n message = {\n \"record #\": `${this.recordNumber} (empty)`,\n };\n }\n else {\n message = {\n \"record #\": `${this.recordNumber}`,\n \"event type\": this.record.label,\n timestamp: this.record.timestamp,\n };\n if (this.record.userId) {\n message[\"user ID\"] = this.record.userId;\n }\n if (this.record.userCode) {\n message[\"user code\"] = userCodeToLogString(this.record.userCode);\n }\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordGetOptions {\n recordNumber: number;\n}\nfunction testResponseForDoorLockLoggingRecordGet(sent: DoorLockLoggingCCRecordGet, received: DoorLockLoggingCCRecordReport) {\n return (sent.recordNumber === LATEST_RECORD_NUMBER_KEY\n || sent.recordNumber === received.recordNumber);\n}\n@CCCommand(DoorLockLoggingCommand.RecordGet)\n@expectedCCResponse(DoorLockLoggingCCRecordReport, testResponseForDoorLockLoggingRecordGet)\nexport class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordGetOptions>) {\n super(options);\n this.recordNumber = options.recordNumber;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): DoorLockLoggingCCRecordGet {\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new DoorLockLoggingCCRecordGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public recordNumber: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.recordNumber]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"record number\": this.recordNumber },\n };\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAAoM;AACpM,oBAAiD;AACjD,iBAAqC;AACrC,0BAAuH;AACvH,oCAAiH;AAEjH,mBAA2H;AAE3H,wBAAoC;AAgDpC,gCAAwC;AAzDxC,MAAM,EAAE,4CAA2C,IAAK;AAkBxD,SAAS,eAAe,UAAsB;AAC1C,SAAO,IAAI;IAAK,SAAS;IAAM,SAAS,QAAQ;;IAChD,SAAS;IAAK,SAAS;IAAM,SAAS;IAAQ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AC7C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS,EAAE,iBAAiB,KAAK,aAAY;;IAErD;;;;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export declare function validateArgs_EnergyProductionCCAPI_get(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext) => T | void;
1
+ export declare function validateArgs_EnergyProductionCCAPI_get(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext<unknown, (this: unknown, ...args: any) => any>) => void | T;
2
2
  //# sourceMappingURL=EnergyProductionCC._validateArgs.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type WithAddress } from "@zwave-js/core";
2
2
  import { Bytes } from "@zwave-js/shared";
3
3
  import { CCAPI, POLL_VALUE, type PollValueImplementation } from "../lib/API.js";
4
- import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
4
+ import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions } from "../lib/CommandClass.js";
5
5
  import { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale } from "../lib/_Types.js";
6
6
  import type { CCEncodingContext, CCParsingContext } from "../lib/traits.js";
7
7
  import { EnergyProductionCCValues } from "./_CCValues.generated.js";
@@ -17,7 +17,7 @@ export declare class EnergyProductionCCAPI extends CCAPI {
17
17
  export declare class EnergyProductionCC extends CommandClass {
18
18
  ccCommand: EnergyProductionCommand;
19
19
  interview(ctx: InterviewContext): Promise<void>;
20
- refreshValues(ctx: RefreshValuesContext): Promise<void>;
20
+ refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void>;
21
21
  }
22
22
  export interface EnergyProductionCCReportOptions {
23
23
  parameter: EnergyProductionParameter;
@@ -36,6 +36,7 @@ __export(EnergyProductionCC_exports, {
36
36
  EnergyProductionCCValues: () => import_CCValues_generated.EnergyProductionCCValues
37
37
  });
38
38
  module.exports = __toCommonJS(EnergyProductionCC_exports);
39
+ var import_tslib = require("tslib");
39
40
  var __validateArgs = __toESM(require("./EnergyProductionCC._validateArgs.js"), 1);
40
41
  var import_core = require("@zwave-js/core");
41
42
  var import_shared = require("@zwave-js/shared");
@@ -44,46 +45,6 @@ var import_CommandClass = require("../lib/CommandClass.js");
44
45
  var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
45
46
  var import_Types = require("../lib/_Types.js");
46
47
  var import_CCValues_generated = require("./_CCValues.generated.js");
47
- var __runInitializers = function(thisArg, initializers, value) {
48
- var useValue = arguments.length > 2;
49
- for (var i = 0; i < initializers.length; i++) {
50
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
51
- }
52
- return useValue ? value : void 0;
53
- };
54
- var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
55
- function accept(f) {
56
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
57
- return f;
58
- }
59
- __name(accept, "accept");
60
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
61
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
62
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
63
- var _, done = false;
64
- for (var i = decorators.length - 1; i >= 0; i--) {
65
- var context = {};
66
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
67
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
68
- context.addInitializer = function(f) {
69
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
70
- extraInitializers.push(accept(f || null));
71
- };
72
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
73
- if (kind === "accessor") {
74
- if (result === void 0) continue;
75
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
76
- if (_ = accept(result.get)) descriptor.get = _;
77
- if (_ = accept(result.set)) descriptor.set = _;
78
- if (_ = accept(result.init)) initializers.unshift(_);
79
- } else if (_ = accept(result)) {
80
- if (kind === "field") initializers.unshift(_);
81
- else descriptor[key] = _;
82
- }
83
- }
84
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
85
- done = true;
86
- };
87
48
  const { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;
88
49
  let EnergyProductionCCAPI = (() => {
89
50
  let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Energy Production"])];
@@ -103,11 +64,11 @@ let EnergyProductionCCAPI = (() => {
103
64
  static {
104
65
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
105
66
  _get_decorators = [validateArgs_EnergyProductionCCAPI_get()];
106
- __esDecorate(this, null, _get_decorators, { kind: "method", name: "get", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "get" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.get, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
107
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
67
+ (0, import_tslib.__esDecorate)(this, null, _get_decorators, { kind: "method", name: "get", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "get" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.get, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
68
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
108
69
  EnergyProductionCCAPI2 = _classThis = _classDescriptor.value;
109
70
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
110
- __runInitializers(_classThis, _classExtraInitializers);
71
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
111
72
  }
112
73
  supportsCommand(cmd) {
113
74
  switch (cmd) {
@@ -143,7 +104,7 @@ let EnergyProductionCCAPI = (() => {
143
104
  }
144
105
  constructor() {
145
106
  super(...arguments);
146
- __runInitializers(this, _instanceExtraInitializers);
107
+ (0, import_tslib.__runInitializers)(this, _instanceExtraInitializers);
147
108
  }
148
109
  };
149
110
  return EnergyProductionCCAPI2 = _classThis;
@@ -163,10 +124,10 @@ let EnergyProductionCC = (() => {
163
124
  }
164
125
  static {
165
126
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
166
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
127
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
167
128
  EnergyProductionCC2 = _classThis = _classDescriptor.value;
168
129
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
169
- __runInitializers(_classThis, _classExtraInitializers);
130
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
170
131
  }
171
132
  async interview(ctx) {
172
133
  const node = this.getNode(ctx);
@@ -178,11 +139,11 @@ let EnergyProductionCC = (() => {
178
139
  await this.refreshValues(ctx);
179
140
  this.setInterviewComplete(ctx, true);
180
141
  }
181
- async refreshValues(ctx) {
142
+ async refreshValues(ctx, options) {
182
143
  const node = this.getNode(ctx);
183
144
  const endpoint = this.getEndpoint(ctx);
184
145
  const api = import_API.CCAPI.create(import_core.CommandClasses["Energy Production"], ctx, endpoint).withOptions({
185
- priority: import_core.MessagePriority.NodeQuery
146
+ priority: options?.priority ?? import_core.MessagePriority.NodeQuery
186
147
  });
187
148
  for (const parameter of [
188
149
  import_Types.EnergyProductionParameter.Power,
@@ -216,10 +177,10 @@ let EnergyProductionCCReport = (() => {
216
177
  }
217
178
  static {
218
179
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
219
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
180
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
220
181
  EnergyProductionCCReport2 = _classThis = _classDescriptor.value;
221
182
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
222
- __runInitializers(_classThis, _classExtraInitializers);
183
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
223
184
  }
224
185
  constructor(options) {
225
186
  super(options);
@@ -294,10 +255,10 @@ let EnergyProductionCCGet = (() => {
294
255
  }
295
256
  static {
296
257
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
297
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
258
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
298
259
  EnergyProductionCCGet2 = _classThis = _classDescriptor.value;
299
260
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
300
- __runInitializers(_classThis, _classExtraInitializers);
261
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
301
262
  }
302
263
  constructor(options) {
303
264
  super(options);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src_gen/cc/EnergyProductionCC.ts"],
4
- "sourcesContent": ["import * as __validateArgs from \"./EnergyProductionCC._validateArgs.js\";\nconst { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, ValueMetadata, type WithAddress, encodeFloatWithScale, parseFloatWithScale, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, getEnumMemberName, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, throwUnsupportedProperty, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale, getEnergyProductionScale, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { EnergyProductionCCValues } from \"./_CCValues.generated.js\";\nexport { EnergyProductionCCValues };\n@API(CommandClasses[\"Energy Production\"])\nexport class EnergyProductionCCAPI extends CCAPI {\n public supportsCommand(cmd: EnergyProductionCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case EnergyProductionCommand.Get:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: EnergyProductionCCAPI, { property, propertyKey }) {\n if (EnergyProductionCCValues.value.is({\n commandClass: this.ccId,\n property,\n propertyKey,\n })) {\n return (await this.get(property as EnergyProductionParameter))\n ?.value;\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_EnergyProductionCCAPI_get()\n public async get(parameter: EnergyProductionParameter): Promise<MaybeNotKnown<{\n value: number;\n scale: EnergyProductionScale;\n }>> {\n this.assertSupportsCommand(EnergyProductionCommand, EnergyProductionCommand.Get);\n const cc = new EnergyProductionCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n parameter,\n });\n const response = await this.host.sendCommand<EnergyProductionCCReport>(cc, this.commandOptions);\n if (response) {\n return pick(response, [\"value\", \"scale\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Energy Production\"])\n@implementedVersion(1)\n@ccValues(EnergyProductionCCValues)\nexport class EnergyProductionCC extends CommandClass {\n declare ccCommand: EnergyProductionCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n // Query current values\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Energy Production\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n for (const parameter of [\n EnergyProductionParameter.Power,\n EnergyProductionParameter[\"Production Total\"],\n EnergyProductionParameter[\"Production Today\"],\n EnergyProductionParameter[\"Total Time\"],\n ] as const) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying energy production (${getEnumMemberName(EnergyProductionParameter, parameter)})...`,\n direction: \"outbound\",\n });\n await api.get(parameter);\n }\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCReportOptions {\n parameter: EnergyProductionParameter;\n scale: EnergyProductionScale;\n value: number;\n}\n@CCCommand(EnergyProductionCommand.Report)\nexport class EnergyProductionCCReport extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCReportOptions>) {\n super(options);\n this.parameter = options.parameter;\n this.value = options.value;\n this.scale = options.scale;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCReport {\n validatePayload(raw.payload.length >= 2);\n const parameter: EnergyProductionParameter = raw.payload[0];\n const { value, scale: rawScale } = parseFloatWithScale(raw.payload.subarray(1));\n const scale: EnergyProductionScale = getEnergyProductionScale(parameter, rawScale);\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n value,\n scale,\n });\n }\n public readonly parameter: EnergyProductionParameter;\n public readonly scale: EnergyProductionScale;\n public readonly value: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n const valueValue = EnergyProductionCCValues.value(this.parameter);\n this.setMetadata(ctx, valueValue, {\n ...valueValue.meta,\n unit: this.scale.unit,\n ccSpecific: {\n parameter: this.parameter,\n scale: this.scale.key,\n },\n });\n this.setValue(ctx, valueValue, this.value);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.concat([\n [this.parameter],\n encodeFloatWithScale(this.value, this.scale.key),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n [getEnumMemberName(EnergyProductionParameter, this.parameter).toLowerCase()]: `${this.value} ${this.scale.unit}`,\n },\n };\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCGetOptions {\n parameter: EnergyProductionParameter;\n}\nfunction testResponseForEnergyProductionGet(sent: EnergyProductionCCGet, received: EnergyProductionCCReport) {\n return received.parameter === sent.parameter;\n}\n@CCCommand(EnergyProductionCommand.Get)\n@expectedCCResponse(EnergyProductionCCReport, testResponseForEnergyProductionGet)\nexport class EnergyProductionCCGet extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCGetOptions>) {\n super(options);\n this.parameter = options.parameter;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCGet {\n validatePayload(raw.payload.length >= 1);\n const parameter: EnergyProductionParameter = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n });\n }\n public parameter: EnergyProductionParameter;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.parameter]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n parameter: getEnumMemberName(EnergyProductionParameter, this.parameter),\n },\n };\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAA6M;AAC7M,oBAA+C;AAC/C,iBAA2F;AAC3F,0BAAuH;AACvH,oCAAgG;AAEhG,mBAA0H;AAE1H,gCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AATzC,MAAM,EAAE,uCAAsC,IAAK;IAYtC,yBAAqB,MAAA;8BADjC,mCAAI,2BAAe,mBAAmB,CAAC,CAAC;;;;oBACE;;;6CAAA,YAAK;WAAA;;;;;;;;yBAuB3C,uCAAsC,CAAE;AACzC,mBAAA,MAAA,MAAA,iBAAA,EAAA,MAAA,UAAA,MAAA,OAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KAAA,gCAAA,SAAA,KAAA,QAAA,KAAA,gCAAA,IAAa,KAAb,OAAgB,GAAA,UAAA,UAAA,GAAA,MAAA,0BAAA;AAxBpB,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IACF,gBAAgB,KAA4B;AAC/C,cAAQ,KAAK;QACT,KAAK,qCAAwB;AACzB,iBAAO;MACf;AACA,aAAO,MAAM,gBAAgB,GAAG;IACpC;IACA,KAAe,qBAAU,IAAC;AACtB,aAAO,eAA6C,EAAE,UAAU,YAAW,GAAE;AACzE,YAAI,mDAAyB,MAAM,GAAG;UAClC,cAAc,KAAK;UACnB;UACA;SACH,GAAG;AACA,kBAAQ,MAAM,KAAK,IAAI,QAAqC,IACtD;QACV,OACK;AACD,mDAAyB,KAAK,MA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AAK,MAAM,GAAG;OAClD;AACD,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,KAAC,iCAAkB,wCAA2B,KAAK,SAAS,EAAE,YAAW,CAAE,GAAG,GAAG,KAAK,KAAK,IAAI,KAAK,MAAM,IAAI;;;IAG1H;;;;AAMJ,SAAS,mCAAmC,MAA6B,UAAkC;AACvG,SAAO,SAAS,cAAc,KAAK;AACvC;AAFS;IAKI,yBAAqB,MAAA;8BAFjC,yCAAU,qCAAwB,GAAG,OACrC,kDAAmB,0BAA0B,kCAAkC,CAAC;;;;oBACtC;6CAAA,YAAkB;WAAA;;;;;;;;AAA7D,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IACT,YAAmB,SAAkD;AACjE,YAAM,OAAO;AACb,WAAK,YAAY,QAAQ;IAC7B;IACO,OAAO,KAAK,KAAY,KAAqB;AAChD,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,YAAuC,IAAI,QAAQ,CAAC;AAC1D,aAAO,IAAI,KAAK;QACZ,QAAQ,IAAI;QACZ;OACH;IACL;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,SAAS,CAAC;AAC1C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,eAAW,iCAAkB,wCAA2B,KAAK,SAAS;;;IAGlF;;;;",
4
+ "sourcesContent": ["import * as __validateArgs from \"./EnergyProductionCC._validateArgs.js\";\nconst { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, ValueMetadata, type WithAddress, encodeFloatWithScale, parseFloatWithScale, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, getEnumMemberName, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, throwUnsupportedProperty, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale, getEnergyProductionScale, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { EnergyProductionCCValues } from \"./_CCValues.generated.js\";\nexport { EnergyProductionCCValues };\n@API(CommandClasses[\"Energy Production\"])\nexport class EnergyProductionCCAPI extends CCAPI {\n public supportsCommand(cmd: EnergyProductionCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case EnergyProductionCommand.Get:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: EnergyProductionCCAPI, { property, propertyKey }) {\n if (EnergyProductionCCValues.value.is({\n commandClass: this.ccId,\n property,\n propertyKey,\n })) {\n return (await this.get(property as EnergyProductionParameter))\n ?.value;\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_EnergyProductionCCAPI_get()\n public async get(parameter: EnergyProductionParameter): Promise<MaybeNotKnown<{\n value: number;\n scale: EnergyProductionScale;\n }>> {\n this.assertSupportsCommand(EnergyProductionCommand, EnergyProductionCommand.Get);\n const cc = new EnergyProductionCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n parameter,\n });\n const response = await this.host.sendCommand<EnergyProductionCCReport>(cc, this.commandOptions);\n if (response) {\n return pick(response, [\"value\", \"scale\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Energy Production\"])\n@implementedVersion(1)\n@ccValues(EnergyProductionCCValues)\nexport class EnergyProductionCC extends CommandClass {\n declare ccCommand: EnergyProductionCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n // Query current values\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Energy Production\"], ctx, endpoint).withOptions({\n priority: options?.priority ?? MessagePriority.NodeQuery,\n });\n for (const parameter of [\n EnergyProductionParameter.Power,\n EnergyProductionParameter[\"Production Total\"],\n EnergyProductionParameter[\"Production Today\"],\n EnergyProductionParameter[\"Total Time\"],\n ] as const) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying energy production (${getEnumMemberName(EnergyProductionParameter, parameter)})...`,\n direction: \"outbound\",\n });\n await api.get(parameter);\n }\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCReportOptions {\n parameter: EnergyProductionParameter;\n scale: EnergyProductionScale;\n value: number;\n}\n@CCCommand(EnergyProductionCommand.Report)\nexport class EnergyProductionCCReport extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCReportOptions>) {\n super(options);\n this.parameter = options.parameter;\n this.value = options.value;\n this.scale = options.scale;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCReport {\n validatePayload(raw.payload.length >= 2);\n const parameter: EnergyProductionParameter = raw.payload[0];\n const { value, scale: rawScale } = parseFloatWithScale(raw.payload.subarray(1));\n const scale: EnergyProductionScale = getEnergyProductionScale(parameter, rawScale);\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n value,\n scale,\n });\n }\n public readonly parameter: EnergyProductionParameter;\n public readonly scale: EnergyProductionScale;\n public readonly value: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n const valueValue = EnergyProductionCCValues.value(this.parameter);\n this.setMetadata(ctx, valueValue, {\n ...valueValue.meta,\n unit: this.scale.unit,\n ccSpecific: {\n parameter: this.parameter,\n scale: this.scale.key,\n },\n });\n this.setValue(ctx, valueValue, this.value);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.concat([\n [this.parameter],\n encodeFloatWithScale(this.value, this.scale.key),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n [getEnumMemberName(EnergyProductionParameter, this.parameter).toLowerCase()]: `${this.value} ${this.scale.unit}`,\n },\n };\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCGetOptions {\n parameter: EnergyProductionParameter;\n}\nfunction testResponseForEnergyProductionGet(sent: EnergyProductionCCGet, received: EnergyProductionCCReport) {\n return received.parameter === sent.parameter;\n}\n@CCCommand(EnergyProductionCommand.Get)\n@expectedCCResponse(EnergyProductionCCReport, testResponseForEnergyProductionGet)\nexport class EnergyProductionCCGet extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCGetOptions>) {\n super(options);\n this.parameter = options.parameter;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCGet {\n validatePayload(raw.payload.length >= 1);\n const parameter: EnergyProductionParameter = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n });\n }\n public parameter: EnergyProductionParameter;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.parameter]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n 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,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,KAAC,iCAAkB,wCAA2B,KAAK,SAAS,EAAE,YAAW,CAAE,GAAG,GAAG,KAAK,KAAK,IAAI,KAAK,MAAM,IAAI;;;IAG1H;;;;AAMJ,SAAS,mCAAmC,MAA6B,UAAkC;AACvG,SAAO,SAAS,cAAc,KAAK;AACvC;AAFS;IAKI,yBAAqB,MAAA;8BAFjC,yCAAU,qCAAwB,GAAG,OACrC,kDAAmB,0BAA0B,kCAAkC,CAAC;;;;oBACtC;6CAAA,YAAkB;WAAA;;;;;;;;AAA7D,qCAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,0CAAA,YAAA,uBAAA;;IACT,YAAmB,SAAkD;AACjE,YAAM,OAAO;AACb,WAAK,YAAY,QAAQ;IAC7B;IACO,OAAO,KAAK,KAAY,KAAqB;AAChD,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,YAAuC,IAAI,QAAQ,CAAC;AAC1D,aAAO,IAAI,KAAK;QACZ,QAAQ,IAAI;QACZ;OACH;IACL;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,SAAS,CAAC;AAC1C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,eAAW,iCAAkB,wCAA2B,KAAK,SAAS;;;IAGlF;;;;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export declare function validateArgs_EntryControlCCAPI_setConfiguration(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext) => T | void;
1
+ export declare function validateArgs_EntryControlCCAPI_setConfiguration(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext<unknown, (this: unknown, ...args: any) => any>) => void | T;
2
2
  //# sourceMappingURL=EntryControlCC._validateArgs.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, type WithAddress } from "@zwave-js/core";
2
2
  import { Bytes, type BytesView } from "@zwave-js/shared";
3
3
  import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation } from "../lib/API.js";
4
- import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
4
+ import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions } from "../lib/CommandClass.js";
5
5
  import { EntryControlCommand, EntryControlDataTypes, EntryControlEventTypes } from "../lib/_Types.js";
6
6
  import type { CCEncodingContext, CCParsingContext } from "../lib/traits.js";
7
7
  import { EntryControlCCValues } from "./_CCValues.generated.js";
@@ -9,7 +9,7 @@ export { EntryControlCCValues };
9
9
  export declare class EntryControlCCAPI extends CCAPI {
10
10
  supportsCommand(cmd: EntryControlCommand): MaybeNotKnown<boolean>;
11
11
  getSupportedKeys(): Promise<readonly number[] | undefined>;
12
- getEventCapabilities(): Promise<Pick<EntryControlCCEventSupportedReport, "supportedDataTypes" | "supportedEventTypes" | "minKeyCacheSize" | "maxKeyCacheSize" | "minKeyCacheTimeout" | "maxKeyCacheTimeout"> | undefined>;
12
+ getEventCapabilities(): Promise<Pick<EntryControlCCEventSupportedReport, "maxKeyCacheSize" | "maxKeyCacheTimeout" | "minKeyCacheSize" | "minKeyCacheTimeout" | "supportedDataTypes" | "supportedEventTypes"> | undefined>;
13
13
  getConfiguration(): Promise<Pick<EntryControlCCConfigurationReport, "keyCacheSize" | "keyCacheTimeout"> | undefined>;
14
14
  setConfiguration(keyCacheSize: number, keyCacheTimeout: number): Promise<SupervisionResult | undefined>;
15
15
  protected get [SET_VALUE](): SetValueImplementation;
@@ -19,7 +19,7 @@ export declare class EntryControlCC extends CommandClass {
19
19
  ccCommand: EntryControlCommand;
20
20
  determineRequiredCCInterviews(): readonly CommandClasses[];
21
21
  interview(ctx: InterviewContext): Promise<void>;
22
- refreshValues(ctx: RefreshValuesContext): Promise<void>;
22
+ refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void>;
23
23
  }
24
24
  export interface EntryControlCCNotificationOptions {
25
25
  sequenceNumber: number;
@@ -42,6 +42,7 @@ __export(EntryControlCC_exports, {
42
42
  EntryControlCCValues: () => import_CCValues_generated.EntryControlCCValues
43
43
  });
44
44
  module.exports = __toCommonJS(EntryControlCC_exports);
45
+ var import_tslib = require("tslib");
45
46
  var __validateArgs = __toESM(require("./EntryControlCC._validateArgs.js"), 1);
46
47
  var import_core = require("@zwave-js/core");
47
48
  var import_shared = require("@zwave-js/shared");
@@ -51,46 +52,6 @@ var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
51
52
  var import_Types = require("../lib/_Types.js");
52
53
  var ccUtils = __toESM(require("../lib/utils.js"), 1);
53
54
  var import_CCValues_generated = require("./_CCValues.generated.js");
54
- var __runInitializers = function(thisArg, initializers, value) {
55
- var useValue = arguments.length > 2;
56
- for (var i = 0; i < initializers.length; i++) {
57
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
58
- }
59
- return useValue ? value : void 0;
60
- };
61
- var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
62
- function accept(f) {
63
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
64
- return f;
65
- }
66
- __name(accept, "accept");
67
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
68
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
69
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
70
- var _, done = false;
71
- for (var i = decorators.length - 1; i >= 0; i--) {
72
- var context = {};
73
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
74
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
75
- context.addInitializer = function(f) {
76
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
77
- extraInitializers.push(accept(f || null));
78
- };
79
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
80
- if (kind === "accessor") {
81
- if (result === void 0) continue;
82
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
83
- if (_ = accept(result.get)) descriptor.get = _;
84
- if (_ = accept(result.set)) descriptor.set = _;
85
- if (_ = accept(result.init)) initializers.unshift(_);
86
- } else if (_ = accept(result)) {
87
- if (kind === "field") initializers.unshift(_);
88
- else descriptor[key] = _;
89
- }
90
- }
91
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
92
- done = true;
93
- };
94
55
  const { validateArgs_EntryControlCCAPI_setConfiguration } = __validateArgs;
95
56
  let EntryControlCCAPI = (() => {
96
57
  let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Entry Control"])];
@@ -109,11 +70,11 @@ let EntryControlCCAPI = (() => {
109
70
  }
110
71
  static {
111
72
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
112
- __esDecorate(this, null, _setConfiguration_decorators, { kind: "method", name: "setConfiguration", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setConfiguration" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setConfiguration, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
113
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
73
+ (0, import_tslib.__esDecorate)(this, null, _setConfiguration_decorators, { kind: "method", name: "setConfiguration", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setConfiguration" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setConfiguration, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
74
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
114
75
  EntryControlCCAPI2 = _classThis = _classDescriptor.value;
115
76
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
116
- __runInitializers(_classThis, _classExtraInitializers);
77
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
117
78
  }
118
79
  supportsCommand(cmd) {
119
80
  switch (cmd) {
@@ -214,7 +175,7 @@ let EntryControlCCAPI = (() => {
214
175
  }
215
176
  constructor() {
216
177
  super(...arguments);
217
- __runInitializers(this, _instanceExtraInitializers);
178
+ (0, import_tslib.__runInitializers)(this, _instanceExtraInitializers);
218
179
  }
219
180
  };
220
181
  return EntryControlCCAPI2 = _classThis;
@@ -234,10 +195,10 @@ let EntryControlCC = (() => {
234
195
  }
235
196
  static {
236
197
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
237
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
198
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
238
199
  EntryControlCC2 = _classThis = _classDescriptor.value;
239
200
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
240
- __runInitializers(_classThis, _classExtraInitializers);
201
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
241
202
  }
242
203
  determineRequiredCCInterviews() {
243
204
  return [
@@ -302,11 +263,11 @@ max key cache timeout: ${eventCapabilities.maxKeyCacheTimeout} seconds`,
302
263
  await this.refreshValues(ctx);
303
264
  this.setInterviewComplete(ctx, true);
304
265
  }
305
- async refreshValues(ctx) {
266
+ async refreshValues(ctx, options) {
306
267
  const node = this.getNode(ctx);
307
268
  const endpoint = this.getEndpoint(ctx);
308
269
  const api = import_API.CCAPI.create(import_core.CommandClasses["Entry Control"], ctx, endpoint).withOptions({
309
- priority: import_core.MessagePriority.NodeQuery
270
+ priority: options?.priority ?? import_core.MessagePriority.NodeQuery
310
271
  });
311
272
  ctx.logNode(node.id, {
312
273
  endpoint: this.endpointIndex,
@@ -342,10 +303,10 @@ let EntryControlCCNotification = (() => {
342
303
  }
343
304
  static {
344
305
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
345
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
306
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
346
307
  EntryControlCCNotification2 = _classThis = _classDescriptor.value;
347
308
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
348
- __runInitializers(_classThis, _classExtraInitializers);
309
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
349
310
  }
350
311
  constructor(options) {
351
312
  super(options);
@@ -443,10 +404,10 @@ let EntryControlCCKeySupportedReport = (() => {
443
404
  }
444
405
  static {
445
406
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
446
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
407
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
447
408
  EntryControlCCKeySupportedReport2 = _classThis = _classDescriptor.value;
448
409
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
449
- __runInitializers(_classThis, _classExtraInitializers);
410
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
450
411
  }
451
412
  constructor(options) {
452
413
  super(options);
@@ -487,10 +448,10 @@ let EntryControlCCKeySupportedGet = (() => {
487
448
  }
488
449
  static {
489
450
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
490
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
451
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
491
452
  EntryControlCCKeySupportedGet2 = _classThis = _classDescriptor.value;
492
453
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
493
- __runInitializers(_classThis, _classExtraInitializers);
454
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
494
455
  }
495
456
  };
496
457
  return EntryControlCCKeySupportedGet2 = _classThis;
@@ -510,10 +471,10 @@ let EntryControlCCEventSupportedReport = (() => {
510
471
  }
511
472
  static {
512
473
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
513
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
474
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
514
475
  EntryControlCCEventSupportedReport2 = _classThis = _classDescriptor.value;
515
476
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
516
- __runInitializers(_classThis, _classExtraInitializers);
477
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
517
478
  }
518
479
  constructor(options) {
519
480
  super(options);
@@ -608,10 +569,10 @@ let EntryControlCCEventSupportedGet = (() => {
608
569
  }
609
570
  static {
610
571
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
611
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
572
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
612
573
  EntryControlCCEventSupportedGet2 = _classThis = _classDescriptor.value;
613
574
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
614
- __runInitializers(_classThis, _classExtraInitializers);
575
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
615
576
  }
616
577
  };
617
578
  return EntryControlCCEventSupportedGet2 = _classThis;
@@ -631,10 +592,10 @@ let EntryControlCCConfigurationReport = (() => {
631
592
  }
632
593
  static {
633
594
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
634
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
595
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
635
596
  EntryControlCCConfigurationReport2 = _classThis = _classDescriptor.value;
636
597
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
637
- __runInitializers(_classThis, _classExtraInitializers);
598
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
638
599
  }
639
600
  constructor(options) {
640
601
  super(options);
@@ -681,10 +642,10 @@ let EntryControlCCConfigurationGet = (() => {
681
642
  }
682
643
  static {
683
644
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
684
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
645
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
685
646
  EntryControlCCConfigurationGet2 = _classThis = _classDescriptor.value;
686
647
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
687
- __runInitializers(_classThis, _classExtraInitializers);
648
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
688
649
  }
689
650
  };
690
651
  return EntryControlCCConfigurationGet2 = _classThis;
@@ -704,10 +665,10 @@ let EntryControlCCConfigurationSet = (() => {
704
665
  }
705
666
  static {
706
667
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
707
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
668
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
708
669
  EntryControlCCConfigurationSet2 = _classThis = _classDescriptor.value;
709
670
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
710
- __runInitializers(_classThis, _classExtraInitializers);
671
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
711
672
  }
712
673
  constructor(options) {
713
674
  super(options);