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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/build/cjs/cc/AlarmSensorCC.d.ts +139 -57
  2. package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
  3. package/build/cjs/cc/AssociationCC.d.ts +178 -43
  4. package/build/cjs/cc/AssociationCC.js +0 -4
  5. package/build/cjs/cc/AssociationCC.js.map +2 -2
  6. package/build/cjs/cc/AssociationGroupInfoCC.d.ts +138 -38
  7. package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
  8. package/build/cjs/cc/BarrierOperatorCC.d.ts +275 -73
  9. package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
  10. package/build/cjs/cc/BasicCC.d.ts +316 -71
  11. package/build/cjs/cc/BasicCC.js.map +2 -2
  12. package/build/cjs/cc/BatteryCC.d.ts +759 -164
  13. package/build/cjs/cc/BatteryCC.js.map +2 -2
  14. package/build/cjs/cc/BinarySensorCC.d.ts +91 -26
  15. package/build/cjs/cc/BinarySensorCC.js.map +2 -2
  16. package/build/cjs/cc/BinarySwitchCC.d.ts +190 -38
  17. package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
  18. package/build/cjs/cc/CRC16CC.d.ts +4 -8
  19. package/build/cjs/cc/CRC16CC.js +4 -27
  20. package/build/cjs/cc/CRC16CC.js.map +2 -2
  21. package/build/cjs/cc/CentralSceneCC.d.ts +272 -53
  22. package/build/cjs/cc/CentralSceneCC.js.map +2 -2
  23. package/build/cjs/cc/ClimateControlScheduleCC.d.ts +150 -37
  24. package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
  25. package/build/cjs/cc/ClockCC.d.ts +3 -3
  26. package/build/cjs/cc/ClockCC.js.map +2 -2
  27. package/build/cjs/cc/ColorSwitchCC.d.ts +423 -96
  28. package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
  29. package/build/cjs/cc/ConfigurationCC._validateArgs.js +1 -1
  30. package/build/cjs/cc/ConfigurationCC._validateArgs.js.map +1 -1
  31. package/build/cjs/cc/ConfigurationCC.d.ts +101 -37
  32. package/build/cjs/cc/ConfigurationCC.js +0 -8
  33. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  34. package/build/cjs/cc/DeviceResetLocallyCC.d.ts +1 -1
  35. package/build/cjs/cc/DeviceResetLocallyCC.js.map +2 -2
  36. package/build/cjs/cc/DoorLockCC._validateArgs.js +1 -1
  37. package/build/cjs/cc/DoorLockCC._validateArgs.js.map +1 -1
  38. package/build/cjs/cc/DoorLockCC.d.ts +1731 -419
  39. package/build/cjs/cc/DoorLockCC.js.map +2 -2
  40. package/build/cjs/cc/DoorLockLoggingCC.d.ts +64 -12
  41. package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
  42. package/build/cjs/cc/EnergyProductionCC.d.ts +29 -14
  43. package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
  44. package/build/cjs/cc/EntryControlCC.d.ts +308 -57
  45. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  46. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
  47. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js +26 -0
  48. package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
  49. package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +389 -64
  50. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +154 -8
  51. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
  52. package/build/cjs/cc/HumidityControlModeCC.d.ts +125 -27
  53. package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
  54. package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +64 -18
  55. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
  56. package/build/cjs/cc/HumidityControlSetpointCC.d.ts +116 -39
  57. package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
  58. package/build/cjs/cc/InclusionControllerCC.d.ts +4 -4
  59. package/build/cjs/cc/InclusionControllerCC.js.map +2 -2
  60. package/build/cjs/cc/IndicatorCC.d.ts +325 -83
  61. package/build/cjs/cc/IndicatorCC.js.map +2 -2
  62. package/build/cjs/cc/IrrigationCC.d.ts +2170 -683
  63. package/build/cjs/cc/IrrigationCC.js.map +2 -2
  64. package/build/cjs/cc/LanguageCC.d.ts +128 -26
  65. package/build/cjs/cc/LanguageCC.js.map +2 -2
  66. package/build/cjs/cc/LockCC.d.ts +64 -14
  67. package/build/cjs/cc/LockCC.js.map +2 -2
  68. package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
  69. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  70. package/build/cjs/cc/ManufacturerSpecificCC.d.ts +219 -57
  71. package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
  72. package/build/cjs/cc/MeterCC.d.ts +364 -89
  73. package/build/cjs/cc/MeterCC.js.map +2 -2
  74. package/build/cjs/cc/MultiChannelAssociationCC.d.ts +138 -40
  75. package/build/cjs/cc/MultiChannelAssociationCC.js +0 -5
  76. package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
  77. package/build/cjs/cc/MultiChannelCC.d.ts +469 -99
  78. package/build/cjs/cc/MultiChannelCC.js +8 -72
  79. package/build/cjs/cc/MultiChannelCC.js.map +2 -2
  80. package/build/cjs/cc/MultiCommandCC.d.ts +4 -8
  81. package/build/cjs/cc/MultiCommandCC.js +4 -37
  82. package/build/cjs/cc/MultiCommandCC.js.map +2 -2
  83. package/build/cjs/cc/MultilevelSensorCC.d.ts +118 -33
  84. package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
  85. package/build/cjs/cc/MultilevelSwitchCC.d.ts +490 -125
  86. package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
  87. package/build/cjs/cc/NodeNamingCC.d.ts +128 -26
  88. package/build/cjs/cc/NodeNamingCC.js.map +2 -2
  89. package/build/cjs/cc/NotificationCC.d.ts +603 -161
  90. package/build/cjs/cc/NotificationCC.js +12 -1
  91. package/build/cjs/cc/NotificationCC.js.map +2 -2
  92. package/build/cjs/cc/PowerlevelCC.d.ts +6 -6
  93. package/build/cjs/cc/PowerlevelCC.js.map +2 -2
  94. package/build/cjs/cc/ProtectionCC.d.ts +496 -94
  95. package/build/cjs/cc/ProtectionCC.js.map +2 -2
  96. package/build/cjs/cc/SceneActivationCC.d.ts +127 -28
  97. package/build/cjs/cc/SceneActivationCC.js.map +2 -2
  98. package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +52 -25
  99. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
  100. package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +53 -25
  101. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
  102. package/build/cjs/cc/ScheduleEntryLockCC.d.ts +268 -64
  103. package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
  104. package/build/cjs/cc/Security2CC.d.ts +15 -21
  105. package/build/cjs/cc/Security2CC.js +32 -347
  106. package/build/cjs/cc/Security2CC.js.map +3 -3
  107. package/build/cjs/cc/SecurityCC.d.ts +12 -19
  108. package/build/cjs/cc/SecurityCC.js +12 -106
  109. package/build/cjs/cc/SecurityCC.js.map +2 -2
  110. package/build/cjs/cc/SoundSwitchCC.d.ts +253 -64
  111. package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
  112. package/build/cjs/cc/SupervisionCC.d.ts +28 -16
  113. package/build/cjs/cc/SupervisionCC.js +4 -29
  114. package/build/cjs/cc/SupervisionCC.js.map +2 -2
  115. package/build/cjs/cc/ThermostatFanModeCC.d.ts +187 -38
  116. package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
  117. package/build/cjs/cc/ThermostatFanStateCC.d.ts +64 -18
  118. package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
  119. package/build/cjs/cc/ThermostatModeCC.d.ts +189 -40
  120. package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
  121. package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +65 -19
  122. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
  123. package/build/cjs/cc/ThermostatSetbackCC.d.ts +4 -4
  124. package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
  125. package/build/cjs/cc/ThermostatSetpointCC.d.ts +116 -36
  126. package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
  127. package/build/cjs/cc/TimeCC.d.ts +6 -6
  128. package/build/cjs/cc/TimeCC.js.map +2 -2
  129. package/build/cjs/cc/TimeParametersCC.d.ts +63 -12
  130. package/build/cjs/cc/TimeParametersCC.js.map +2 -2
  131. package/build/cjs/cc/TransportServiceCC.d.ts +7 -12
  132. package/build/cjs/cc/TransportServiceCC.js +3 -20
  133. package/build/cjs/cc/TransportServiceCC.js.map +2 -2
  134. package/build/cjs/cc/UserCodeCC._validateArgs.js +1 -1
  135. package/build/cjs/cc/UserCodeCC._validateArgs.js.map +1 -1
  136. package/build/cjs/cc/UserCodeCC.d.ts +931 -176
  137. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  138. package/build/cjs/cc/VersionCC.d.ts +897 -185
  139. package/build/cjs/cc/VersionCC.js.map +2 -2
  140. package/build/cjs/cc/WakeUpCC.d.ts +190 -38
  141. package/build/cjs/cc/WakeUpCC.js.map +2 -2
  142. package/build/cjs/cc/WindowCoveringCC.d.ts +193 -103
  143. package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
  144. package/build/cjs/cc/ZWavePlusCC.d.ts +311 -51
  145. package/build/cjs/cc/ZWavePlusCC.js.map +2 -2
  146. package/build/cjs/cc/ZWaveProtocolCC.d.ts +28 -28
  147. package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
  148. package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
  149. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
  150. package/build/cjs/index.d.ts +1 -0
  151. package/build/cjs/index.js.map +1 -1
  152. package/build/cjs/index_browser.d.ts +9 -0
  153. package/build/cjs/index_browser.js +41 -1
  154. package/build/cjs/index_browser.js.map +2 -2
  155. package/build/cjs/lib/API.d.ts +7 -5
  156. package/build/cjs/lib/API.js +1 -1
  157. package/build/cjs/lib/API.js.map +2 -2
  158. package/build/cjs/lib/CommandClass.d.ts +10 -21
  159. package/build/cjs/lib/CommandClass.js +51 -106
  160. package/build/cjs/lib/CommandClass.js.map +3 -3
  161. package/build/cjs/lib/CommandClassDecorators.d.ts +1 -1
  162. package/build/cjs/lib/CommandClassDecorators.js +3 -3
  163. package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
  164. package/build/cjs/lib/Values.d.ts +2 -2
  165. package/build/cjs/lib/Values.js.map +2 -2
  166. package/build/cjs/lib/traits.d.ts +94 -0
  167. package/build/cjs/lib/traits.js +17 -0
  168. package/build/cjs/lib/traits.js.map +7 -0
  169. package/build/cjs/lib/utils.d.ts +2 -2
  170. package/build/cjs/lib/utils.js.map +2 -2
  171. package/build/esm/cc/AlarmSensorCC.d.ts +139 -57
  172. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  173. package/build/esm/cc/AlarmSensorCC.js +0 -1
  174. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  175. package/build/esm/cc/AssociationCC.d.ts +178 -43
  176. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  177. package/build/esm/cc/AssociationCC.js +0 -13
  178. package/build/esm/cc/AssociationCC.js.map +1 -1
  179. package/build/esm/cc/AssociationGroupInfoCC.d.ts +138 -38
  180. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  181. package/build/esm/cc/AssociationGroupInfoCC.js +0 -6
  182. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  183. package/build/esm/cc/BarrierOperatorCC.d.ts +275 -73
  184. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  185. package/build/esm/cc/BarrierOperatorCC.js +0 -3
  186. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  187. package/build/esm/cc/BasicCC.d.ts +316 -71
  188. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  189. package/build/esm/cc/BasicCC.js +0 -2
  190. package/build/esm/cc/BasicCC.js.map +1 -1
  191. package/build/esm/cc/BatteryCC.d.ts +759 -164
  192. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  193. package/build/esm/cc/BatteryCC.js +1 -2
  194. package/build/esm/cc/BatteryCC.js.map +1 -1
  195. package/build/esm/cc/BinarySensorCC.d.ts +91 -26
  196. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  197. package/build/esm/cc/BinarySensorCC.js +0 -3
  198. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  199. package/build/esm/cc/BinarySwitchCC.d.ts +190 -38
  200. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  201. package/build/esm/cc/BinarySwitchCC.js +0 -2
  202. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  203. package/build/esm/cc/CRC16CC.d.ts +4 -8
  204. package/build/esm/cc/CRC16CC.d.ts.map +1 -1
  205. package/build/esm/cc/CRC16CC.js +4 -34
  206. package/build/esm/cc/CRC16CC.js.map +1 -1
  207. package/build/esm/cc/CentralSceneCC.d.ts +272 -53
  208. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  209. package/build/esm/cc/CentralSceneCC.js +0 -1
  210. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  211. package/build/esm/cc/ClimateControlScheduleCC.d.ts +150 -37
  212. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
  213. package/build/esm/cc/ClimateControlScheduleCC.js +0 -3
  214. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  215. package/build/esm/cc/ClockCC.d.ts +3 -3
  216. package/build/esm/cc/ClockCC.d.ts.map +1 -1
  217. package/build/esm/cc/ClockCC.js +0 -1
  218. package/build/esm/cc/ClockCC.js.map +1 -1
  219. package/build/esm/cc/ColorSwitchCC.d.ts +423 -96
  220. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  221. package/build/esm/cc/ColorSwitchCC.js +0 -6
  222. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  223. package/build/esm/cc/ConfigurationCC._validateArgs.js +1 -1
  224. package/build/esm/cc/ConfigurationCC._validateArgs.js.map +1 -1
  225. package/build/esm/cc/ConfigurationCC.d.ts +101 -37
  226. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  227. package/build/esm/cc/ConfigurationCC.js +0 -25
  228. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  229. package/build/esm/cc/DeviceResetLocallyCC.d.ts +1 -1
  230. package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
  231. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  232. package/build/esm/cc/DoorLockCC._validateArgs.js +1 -1
  233. package/build/esm/cc/DoorLockCC._validateArgs.js.map +1 -1
  234. package/build/esm/cc/DoorLockCC.d.ts +1731 -419
  235. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  236. package/build/esm/cc/DoorLockCC.js +0 -2
  237. package/build/esm/cc/DoorLockCC.js.map +1 -1
  238. package/build/esm/cc/DoorLockLoggingCC.d.ts +64 -12
  239. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  240. package/build/esm/cc/DoorLockLoggingCC.js +0 -1
  241. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  242. package/build/esm/cc/EnergyProductionCC.d.ts +29 -14
  243. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
  244. package/build/esm/cc/EnergyProductionCC.js +0 -2
  245. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  246. package/build/esm/cc/EntryControlCC.d.ts +308 -57
  247. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  248. package/build/esm/cc/EntryControlCC.js +0 -1
  249. package/build/esm/cc/EntryControlCC.js.map +1 -1
  250. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
  251. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts.map +1 -1
  252. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js +20 -0
  253. package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
  254. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +389 -64
  255. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  256. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +158 -30
  257. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  258. package/build/esm/cc/HumidityControlModeCC.d.ts +125 -27
  259. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  260. package/build/esm/cc/HumidityControlModeCC.js +0 -1
  261. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  262. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +64 -18
  263. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  264. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  265. package/build/esm/cc/HumidityControlSetpointCC.d.ts +116 -39
  266. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  267. package/build/esm/cc/HumidityControlSetpointCC.js +0 -4
  268. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  269. package/build/esm/cc/InclusionControllerCC.d.ts +4 -4
  270. package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
  271. package/build/esm/cc/InclusionControllerCC.js +0 -2
  272. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  273. package/build/esm/cc/IndicatorCC.d.ts +325 -83
  274. package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
  275. package/build/esm/cc/IndicatorCC.js +0 -7
  276. package/build/esm/cc/IndicatorCC.js.map +1 -1
  277. package/build/esm/cc/IrrigationCC.d.ts +2170 -683
  278. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  279. package/build/esm/cc/IrrigationCC.js +0 -9
  280. package/build/esm/cc/IrrigationCC.js.map +1 -1
  281. package/build/esm/cc/LanguageCC.d.ts +128 -26
  282. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  283. package/build/esm/cc/LanguageCC.js +0 -1
  284. package/build/esm/cc/LanguageCC.js.map +1 -1
  285. package/build/esm/cc/LockCC.d.ts +64 -14
  286. package/build/esm/cc/LockCC.d.ts.map +1 -1
  287. package/build/esm/cc/LockCC.js +0 -1
  288. package/build/esm/cc/LockCC.js.map +1 -1
  289. package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
  290. package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
  291. package/build/esm/cc/ManufacturerProprietaryCC.js +0 -1
  292. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  293. package/build/esm/cc/ManufacturerSpecificCC.d.ts +219 -57
  294. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  295. package/build/esm/cc/ManufacturerSpecificCC.js +0 -2
  296. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  297. package/build/esm/cc/MeterCC.d.ts +364 -89
  298. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  299. package/build/esm/cc/MeterCC.js +0 -4
  300. package/build/esm/cc/MeterCC.js.map +1 -1
  301. package/build/esm/cc/MultiChannelAssociationCC.d.ts +138 -40
  302. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  303. package/build/esm/cc/MultiChannelAssociationCC.js +0 -16
  304. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  305. package/build/esm/cc/MultiChannelCC.d.ts +469 -99
  306. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  307. package/build/esm/cc/MultiChannelCC.js +8 -101
  308. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  309. package/build/esm/cc/MultiCommandCC.d.ts +4 -8
  310. package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
  311. package/build/esm/cc/MultiCommandCC.js +4 -38
  312. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  313. package/build/esm/cc/MultilevelSensorCC.d.ts +118 -33
  314. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  315. package/build/esm/cc/MultilevelSensorCC.js +0 -5
  316. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  317. package/build/esm/cc/MultilevelSwitchCC.d.ts +490 -125
  318. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  319. package/build/esm/cc/MultilevelSwitchCC.js +0 -4
  320. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  321. package/build/esm/cc/NodeNamingCC.d.ts +128 -26
  322. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  323. package/build/esm/cc/NodeNamingCC.js +0 -2
  324. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  325. package/build/esm/cc/NotificationCC.d.ts +603 -161
  326. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  327. package/build/esm/cc/NotificationCC.js +18 -12
  328. package/build/esm/cc/NotificationCC.js.map +1 -1
  329. package/build/esm/cc/PowerlevelCC.d.ts +6 -6
  330. package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
  331. package/build/esm/cc/PowerlevelCC.js +0 -4
  332. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  333. package/build/esm/cc/ProtectionCC.d.ts +496 -94
  334. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  335. package/build/esm/cc/ProtectionCC.js +0 -3
  336. package/build/esm/cc/ProtectionCC.js.map +1 -1
  337. package/build/esm/cc/SceneActivationCC.d.ts +127 -28
  338. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
  339. package/build/esm/cc/SceneActivationCC.js +0 -1
  340. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  341. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +52 -25
  342. package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
  343. package/build/esm/cc/SceneActuatorConfigurationCC.js +0 -2
  344. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  345. package/build/esm/cc/SceneControllerConfigurationCC.d.ts +53 -25
  346. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
  347. package/build/esm/cc/SceneControllerConfigurationCC.js +0 -2
  348. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  349. package/build/esm/cc/ScheduleEntryLockCC.d.ts +268 -64
  350. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  351. package/build/esm/cc/ScheduleEntryLockCC.js +0 -14
  352. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  353. package/build/esm/cc/Security2CC.d.ts +15 -21
  354. package/build/esm/cc/Security2CC.d.ts.map +1 -1
  355. package/build/esm/cc/Security2CC.js +27 -475
  356. package/build/esm/cc/Security2CC.js.map +1 -1
  357. package/build/esm/cc/SecurityCC.d.ts +12 -19
  358. package/build/esm/cc/SecurityCC.d.ts.map +1 -1
  359. package/build/esm/cc/SecurityCC.js +13 -138
  360. package/build/esm/cc/SecurityCC.js.map +1 -1
  361. package/build/esm/cc/SoundSwitchCC.d.ts +253 -64
  362. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  363. package/build/esm/cc/SoundSwitchCC.js +0 -7
  364. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  365. package/build/esm/cc/SupervisionCC.d.ts +28 -16
  366. package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
  367. package/build/esm/cc/SupervisionCC.js +4 -34
  368. package/build/esm/cc/SupervisionCC.js.map +1 -1
  369. package/build/esm/cc/ThermostatFanModeCC.d.ts +187 -38
  370. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  371. package/build/esm/cc/ThermostatFanModeCC.js +0 -1
  372. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  373. package/build/esm/cc/ThermostatFanStateCC.d.ts +64 -18
  374. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  375. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  376. package/build/esm/cc/ThermostatModeCC.d.ts +189 -40
  377. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  378. package/build/esm/cc/ThermostatModeCC.js +0 -3
  379. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  380. package/build/esm/cc/ThermostatOperatingStateCC.d.ts +65 -19
  381. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  382. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  383. package/build/esm/cc/ThermostatSetbackCC.d.ts +4 -4
  384. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
  385. package/build/esm/cc/ThermostatSetbackCC.js +0 -2
  386. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  387. package/build/esm/cc/ThermostatSetpointCC.d.ts +116 -36
  388. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  389. package/build/esm/cc/ThermostatSetpointCC.js +0 -6
  390. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  391. package/build/esm/cc/TimeCC.d.ts +6 -6
  392. package/build/esm/cc/TimeCC.d.ts.map +1 -1
  393. package/build/esm/cc/TimeCC.js +0 -4
  394. package/build/esm/cc/TimeCC.js.map +1 -1
  395. package/build/esm/cc/TimeParametersCC.d.ts +63 -12
  396. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  397. package/build/esm/cc/TimeParametersCC.js +0 -1
  398. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  399. package/build/esm/cc/TransportServiceCC.d.ts +7 -12
  400. package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
  401. package/build/esm/cc/TransportServiceCC.js +5 -38
  402. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  403. package/build/esm/cc/UserCodeCC._validateArgs.js +1 -1
  404. package/build/esm/cc/UserCodeCC._validateArgs.js.map +1 -1
  405. package/build/esm/cc/UserCodeCC.d.ts +931 -176
  406. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  407. package/build/esm/cc/UserCodeCC.js +0 -12
  408. package/build/esm/cc/UserCodeCC.js.map +1 -1
  409. package/build/esm/cc/VersionCC.d.ts +897 -185
  410. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  411. package/build/esm/cc/VersionCC.js +0 -4
  412. package/build/esm/cc/VersionCC.js.map +1 -1
  413. package/build/esm/cc/WakeUpCC.d.ts +190 -38
  414. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  415. package/build/esm/cc/WakeUpCC.js +0 -1
  416. package/build/esm/cc/WakeUpCC.js.map +1 -1
  417. package/build/esm/cc/WindowCoveringCC.d.ts +193 -103
  418. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  419. package/build/esm/cc/WindowCoveringCC.js +0 -5
  420. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  421. package/build/esm/cc/ZWavePlusCC.d.ts +311 -51
  422. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  423. package/build/esm/cc/ZWavePlusCC.js +0 -1
  424. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  425. package/build/esm/cc/ZWaveProtocolCC.d.ts +28 -28
  426. package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
  427. package/build/esm/cc/ZWaveProtocolCC.js +0 -27
  428. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  429. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
  430. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
  431. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +0 -3
  432. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  433. package/build/esm/index.d.ts +1 -0
  434. package/build/esm/index.d.ts.map +1 -1
  435. package/build/esm/index_browser.d.ts +9 -0
  436. package/build/esm/index_browser.d.ts.map +1 -1
  437. package/build/esm/index_browser.js +8 -1
  438. package/build/esm/index_browser.js.map +1 -1
  439. package/build/esm/lib/API.d.ts +7 -5
  440. package/build/esm/lib/API.d.ts.map +1 -1
  441. package/build/esm/lib/API.js +1 -1
  442. package/build/esm/lib/API.js.map +1 -1
  443. package/build/esm/lib/CommandClass.d.ts +10 -21
  444. package/build/esm/lib/CommandClass.d.ts.map +1 -1
  445. package/build/esm/lib/CommandClass.js +8 -101
  446. package/build/esm/lib/CommandClass.js.map +1 -1
  447. package/build/esm/lib/CommandClassDecorators.d.ts +1 -1
  448. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
  449. package/build/esm/lib/CommandClassDecorators.js +1 -1
  450. package/build/esm/lib/CommandClassDecorators.js.map +1 -1
  451. package/build/esm/lib/Values.d.ts +2 -2
  452. package/build/esm/lib/Values.d.ts.map +1 -1
  453. package/build/esm/lib/Values.js.map +1 -1
  454. package/build/esm/lib/traits.d.ts +94 -0
  455. package/build/esm/lib/traits.d.ts.map +1 -0
  456. package/build/esm/lib/traits.js +2 -0
  457. package/build/esm/lib/traits.js.map +1 -0
  458. package/build/esm/lib/utils.d.ts +2 -2
  459. package/build/esm/lib/utils.d.ts.map +1 -1
  460. package/build/esm/lib/utils.js.map +1 -1
  461. package/package.json +13 -13
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cc/ScheduleEntryLockCC.ts"],
4
- "sourcesContent": ["import {\n\tCommandClasses,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype MessageRecord,\n\ttype SupervisionResult,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tencodeBitMask,\n\tgetDSTInfo,\n\tisUnsupervisedOrSucceeded,\n\tparseBitMask,\n\tvalidatePayload,\n} from \"@zwave-js/core\";\nimport { type EndpointId, type MaybeNotKnown } from \"@zwave-js/core/safe\";\nimport type {\n\tCCEncodingContext,\n\tCCParsingContext,\n\tGetValueDB,\n} from \"@zwave-js/host\";\nimport {\n\ttype AllOrNone,\n\tBytes,\n\tformatDate,\n\tformatTime,\n\tgetEnumMemberName,\n\tpick,\n} from \"@zwave-js/shared\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport { CCAPI } from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype PersistValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tScheduleEntryLockCommand,\n\ttype ScheduleEntryLockDailyRepeatingSchedule,\n\tScheduleEntryLockScheduleKind,\n\tScheduleEntryLockSetAction,\n\ttype ScheduleEntryLockSlotId,\n\ttype ScheduleEntryLockWeekDaySchedule,\n\tScheduleEntryLockWeekday,\n\ttype ScheduleEntryLockYearDaySchedule,\n\ttype Timezone,\n} from \"../lib/_Types.js\";\nimport { encodeTimezone, parseTimezone } from \"../lib/serializers.js\";\nimport { UserCodeCC } from \"./UserCodeCC.js\";\n\nexport const ScheduleEntryLockCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses[\"Schedule Entry Lock\"], {\n\t\t...V.staticProperty(\"numWeekDaySlots\", undefined, { internal: true }),\n\t\t...V.staticProperty(\"numYearDaySlots\", undefined, { internal: true }),\n\t\t...V.staticProperty(\"numDailyRepeatingSlots\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\t}),\n\n\t...V.defineDynamicCCValues(CommandClasses[\"Schedule Entry Lock\"], {\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"userEnabled\",\n\t\t\t\"userEnabled\",\n\t\t\t(userId: number) => userId,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"userEnabled\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"scheduleKind\",\n\t\t\t\"scheduleKind\",\n\t\t\t(userId: number) => userId,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"scheduleKind\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"schedule\",\n\t\t\t\"schedule\",\n\t\t\t(\n\t\t\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\t\t\tuserId: number,\n\t\t\t\tslotId: number,\n\t\t\t) => toPropertyKey(scheduleKind, userId, slotId),\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"schedule\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\t}),\n});\n\nfunction toPropertyKey(\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n\tuserId: number,\n\tslotId: number,\n): number {\n\treturn (scheduleKind << 16) | (userId << 8) | slotId;\n}\n\n/** Caches information about a schedule */\nfunction persistSchedule(\n\tthis: ScheduleEntryLockCC,\n\tctx: GetValueDB,\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n\tuserId: number,\n\tslotId: number,\n\tschedule:\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t\t| undefined,\n): void {\n\tconst scheduleValue = ScheduleEntryLockCCValues.schedule(\n\t\tscheduleKind,\n\t\tuserId,\n\t\tslotId,\n\t);\n\n\tif (schedule != undefined) {\n\t\tthis.setValue(ctx, scheduleValue, schedule);\n\t} else {\n\t\tthis.removeValue(ctx, scheduleValue);\n\t}\n}\n\n/** Updates the schedule kind assumed to be active for user in the cache */\nfunction setUserCodeScheduleKindCached(\n\tctx: GetValueDB,\n\tendpoint: EndpointId,\n\tuserId: number,\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n): void {\n\tctx\n\t\t.getValueDB(endpoint.nodeId)\n\t\t.setValue(\n\t\t\tScheduleEntryLockCCValues.scheduleKind(userId).endpoint(\n\t\t\t\tendpoint.index,\n\t\t\t),\n\t\t\tscheduleKind,\n\t\t);\n}\n\n/** Updates whether scheduling is active for one or all user(s) in the cache */\nfunction setUserCodeScheduleEnabledCached(\n\tctx: GetValueDB,\n\tendpoint: EndpointId,\n\tuserId: number | undefined,\n\tenabled: boolean,\n): void {\n\tconst setEnabled = (userId: number) => {\n\t\tctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.setValue(\n\t\t\t\tScheduleEntryLockCCValues.userEnabled(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t\tenabled,\n\t\t\t);\n\t};\n\n\tif (userId == undefined) {\n\t\t// Enable/disable all users\n\t\tconst numUsers = UserCodeCC.getSupportedUsersCached(ctx, endpoint)\n\t\t\t?? 0;\n\n\t\tfor (let userId = 1; userId <= numUsers; userId++) {\n\t\t\tsetEnabled(userId);\n\t\t}\n\t} else {\n\t\tsetEnabled(userId);\n\t}\n}\n\n@API(CommandClasses[\"Schedule Entry Lock\"])\nexport class ScheduleEntryLockCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: ScheduleEntryLockCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase ScheduleEntryLockCommand.EnableSet:\n\t\t\tcase ScheduleEntryLockCommand.EnableAllSet:\n\t\t\tcase ScheduleEntryLockCommand.WeekDayScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.WeekDayScheduleGet:\n\t\t\tcase ScheduleEntryLockCommand.YearDayScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.YearDayScheduleGet:\n\t\t\tcase ScheduleEntryLockCommand.SupportedGet:\n\t\t\t\treturn true; // V1\n\n\t\t\tcase ScheduleEntryLockCommand.TimeOffsetSet:\n\t\t\tcase ScheduleEntryLockCommand.TimeOffsetGet:\n\t\t\t\treturn this.version >= 2;\n\n\t\t\tcase ScheduleEntryLockCommand.DailyRepeatingScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.DailyRepeatingScheduleGet:\n\t\t\t\treturn this.version >= 3;\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\t/**\n\t * Enables or disables schedules. If a user ID is given, that user's\n\t * schedules will be enabled or disabled. If no user ID is given, all schedules\n\t * will be affected.\n\t */\n\t@validateArgs()\n\tpublic async setEnabled(\n\t\tenabled: boolean,\n\t\tuserId?: number,\n\t): Promise<SupervisionResult | undefined> {\n\t\tlet result: SupervisionResult | undefined;\n\t\tif (userId != undefined) {\n\t\t\tthis.assertSupportsCommand(\n\t\t\t\tScheduleEntryLockCommand,\n\t\t\t\tScheduleEntryLockCommand.EnableSet,\n\t\t\t);\n\n\t\t\tconst cc = new ScheduleEntryLockCCEnableSet({\n\t\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t\tuserId,\n\t\t\t\tenabled,\n\t\t\t});\n\n\t\t\tresult = await this.host.sendCommand(cc, this.commandOptions);\n\t\t} else {\n\t\t\tthis.assertSupportsCommand(\n\t\t\t\tScheduleEntryLockCommand,\n\t\t\t\tScheduleEntryLockCommand.EnableAllSet,\n\t\t\t);\n\n\t\t\tconst cc = new ScheduleEntryLockCCEnableAllSet({\n\t\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t\tenabled,\n\t\t\t});\n\n\t\t\tresult = await this.host.sendCommand(cc, this.commandOptions);\n\t\t}\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Remember the new state in the cache\n\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t\tuserId,\n\t\t\t\tenabled,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\tpublic async getNumSlots() {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.SupportedGet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCSupportedGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCSupportedReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result) {\n\t\t\treturn pick(result, [\n\t\t\t\t\"numWeekDaySlots\",\n\t\t\t\t\"numYearDaySlots\",\n\t\t\t\t\"numDailyRepeatingSlots\",\n\t\t\t]);\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setWeekDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockWeekDaySchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.WeekDayScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC.getNumWeekDaySlotsCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported day-of-week slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (schedule) {\n\t\t\tif (\n\t\t\t\tschedule.stopHour < schedule.startHour\n\t\t\t\t|| schedule.stopHour === schedule.startHour\n\t\t\t\t\t&& schedule.stopMinute <= schedule.startMinute\n\t\t\t) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The stop time must be after the start time.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCWeekDayScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getWeekDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockWeekDaySchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.WeekDayScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCWeekDayScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCWeekDayScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.weekday != undefined) {\n\t\t\treturn {\n\t\t\t\tweekday: result.weekday,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tstopHour: result.stopHour!,\n\t\t\t\tstopMinute: result.stopMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setYearDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockYearDaySchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.YearDayScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC.getNumYearDaySlotsCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported day-of-year slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (schedule) {\n\t\t\tconst startDate = new Date(\n\t\t\t\tschedule.startYear,\n\t\t\t\tschedule.startMonth - 1,\n\t\t\t\tschedule.startDay,\n\t\t\t\tschedule.startHour,\n\t\t\t\tschedule.startMinute,\n\t\t\t);\n\t\t\tconst stopDate = new Date(\n\t\t\t\tschedule.stopYear,\n\t\t\t\tschedule.stopMonth - 1,\n\t\t\t\tschedule.stopDay,\n\t\t\t\tschedule.stopHour,\n\t\t\t\tschedule.stopMinute,\n\t\t\t);\n\t\t\tif (stopDate <= startDate) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The stop date must be after the start date.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCYearDayScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getYearDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockYearDaySchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.YearDayScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCYearDayScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCYearDayScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.startYear != undefined) {\n\t\t\treturn {\n\t\t\t\tstartYear: result.startYear,\n\t\t\t\tstartMonth: result.startMonth!,\n\t\t\t\tstartDay: result.startDay!,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tstopYear: result.stopYear!,\n\t\t\t\tstopMonth: result.stopMonth!,\n\t\t\t\tstopDay: result.stopDay!,\n\t\t\t\tstopHour: result.stopHour!,\n\t\t\t\tstopMinute: result.stopMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setDailyRepeatingSchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockDailyRepeatingSchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.DailyRepeatingScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC\n\t\t\t\t.getNumDailyRepeatingSlotsCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported daily repeating slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCDailyRepeatingScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getDailyRepeatingSchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.DailyRepeatingScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCDailyRepeatingScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.weekdays != undefined) {\n\t\t\treturn {\n\t\t\t\tweekdays: result.weekdays,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tdurationHour: result.durationHour!,\n\t\t\t\tdurationMinute: result.durationMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic async getTimezone(): Promise<MaybeNotKnown<Timezone>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.TimeOffsetGet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCTimeOffsetGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCTimeOffsetReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result) {\n\t\t\treturn pick(result, [\"standardOffset\", \"dstOffset\"]);\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setTimezone(\n\t\ttimezone: Timezone,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.TimeOffsetSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCTimeOffsetSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...timezone,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n}\n\n@commandClass(CommandClasses[\"Schedule Entry Lock\"])\n@implementedVersion(3)\n@ccValues(ScheduleEntryLockCCValues)\nexport class ScheduleEntryLockCC extends CommandClass {\n\tdeclare ccCommand: ScheduleEntryLockCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Schedule Entry Lock\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: \"Querying supported number of schedule slots...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst slotsResp = await api.getNumSlots();\n\t\tif (slotsResp) {\n\t\t\tlet logMessage = `received supported number of schedule slots:\nday of week: ${slotsResp.numWeekDaySlots}\nday of year: ${slotsResp.numYearDaySlots}`;\n\t\t\tif (slotsResp.numDailyRepeatingSlots != undefined) {\n\t\t\t\tlogMessage += `\ndaily repeating: ${slotsResp.numDailyRepeatingSlots}`;\n\t\t\t}\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tendpoint: this.endpointIndex,\n\t\t\t\tmessage: logMessage,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\t\t}\n\n\t\t// If the timezone is not configured with the Time CC, do it here\n\t\tif (\n\t\t\tapi.supportsCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n\t\t\t&& (!endpoint.supportsCC(CommandClasses.Time)\n\t\t\t\t|| endpoint.getCCVersion(CommandClasses.Time) < 2)\n\t\t) {\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tendpoint: this.endpointIndex,\n\t\t\t\tmessage: \"setting timezone information...\",\n\t\t\t\tdirection: \"outbound\",\n\t\t\t});\n\t\t\t// Set the correct timezone on this node\n\t\t\tconst timezone = getDSTInfo();\n\t\t\tawait api.setTimezone(timezone);\n\t\t}\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\t/**\n\t * Returns the number of supported day-of-week slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumWeekDaySlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numWeekDaySlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns the number of supported day-of-year slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumYearDaySlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numYearDaySlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns the number of supported daily-repeating slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumDailyRepeatingSlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numDailyRepeatingSlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns whether scheduling for a given user ID (most likely) enabled. Since the Schedule Entry Lock CC\n\t * provides no way to query the enabled state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * This only works AFTER the interview process and is likely to be wrong if a device\n\t * with existing schedules is queried. To be sure, disable scheduling for all users and enable\n\t * only the desired ones.\n\t */\n\tpublic static getUserCodeScheduleEnabledCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tuserId: number,\n\t): boolean {\n\t\treturn !!ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.userEnabled(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t);\n\t}\n\n\t/**\n\t * Returns which scheduling kind is (most likely) enabled for a given user ID . Since the Schedule Entry Lock CC\n\t * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * This only works AFTER the interview process and is likely to be wrong if a device\n\t * with existing schedules is queried. To be sure, edit a schedule of the desired kind\n\t * which will automatically switch the user to that scheduling kind.\n\t */\n\tpublic static getUserCodeScheduleKindCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tuserId: number,\n\t): MaybeNotKnown<ScheduleEntryLockScheduleKind> {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue<ScheduleEntryLockScheduleKind>(\n\t\t\t\tScheduleEntryLockCCValues.scheduleKind(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t);\n\t}\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.WeekDay,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | false>;\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.YearDay,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockYearDaySchedule | false>;\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.DailyRepeating,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule | false>;\n\n\t// Catch-all overload for applications which haven't narrowed `scheduleKind`\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t>;\n\n\t/**\n\t * Returns the assumed state of a schedule. Since the Schedule Entry Lock CC\n\t * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * A return value of `false` means the slot is empty, a return value of `undefined` means the information is not cached yet.\n\t *\n\t * This only works AFTER the interview process.\n\t */\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t> {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.schedule(\n\t\t\t\t\tscheduleKind,\n\t\t\t\t\tuserId,\n\t\t\t\t\tslotId,\n\t\t\t\t).endpoint(endpoint.index),\n\t\t\t);\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableSetOptions {\n\tuserId: number;\n\tenabled: boolean;\n}\n\n@CCCommand(ScheduleEntryLockCommand.EnableSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCEnableSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.enabled = options.enabled;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCEnableSet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst enabled: boolean = raw.payload[1] === 0x01;\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tenabled,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic enabled: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.userId, this.enabled ? 0x01 : 0x00]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\taction: this.enabled ? \"enable\" : \"disable\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableAllSetOptions {\n\tenabled: boolean;\n}\n\n@CCCommand(ScheduleEntryLockCommand.EnableAllSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableAllSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCEnableAllSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.enabled = options.enabled;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCEnableAllSet {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\tconst enabled: boolean = raw.payload[0] === 0x01;\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tenabled,\n\t\t});\n\t}\n\n\tpublic enabled: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.enabled ? 0x01 : 0x00]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\taction: this.enabled ? \"enable all\" : \"disable all\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCSupportedReportOptions {\n\tnumWeekDaySlots: number;\n\tnumYearDaySlots: number;\n\tnumDailyRepeatingSlots?: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.SupportedReport)\n@ccValueProperty(\"numWeekDaySlots\", ScheduleEntryLockCCValues.numWeekDaySlots)\n@ccValueProperty(\"numYearDaySlots\", ScheduleEntryLockCCValues.numYearDaySlots)\n@ccValueProperty(\n\t\"numDailyRepeatingSlots\",\n\tScheduleEntryLockCCValues.numDailyRepeatingSlots,\n)\nexport class ScheduleEntryLockCCSupportedReport extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCSupportedReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.numWeekDaySlots = options.numWeekDaySlots;\n\t\tthis.numYearDaySlots = options.numYearDaySlots;\n\t\tthis.numDailyRepeatingSlots = options.numDailyRepeatingSlots;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCSupportedReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst numWeekDaySlots = raw.payload[0];\n\t\tconst numYearDaySlots = raw.payload[1];\n\t\tlet numDailyRepeatingSlots: number | undefined;\n\t\tif (raw.payload.length >= 3) {\n\t\t\tnumDailyRepeatingSlots = raw.payload[2];\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tnumWeekDaySlots,\n\t\t\tnumYearDaySlots,\n\t\t\tnumDailyRepeatingSlots,\n\t\t});\n\t}\n\n\tpublic numWeekDaySlots: number;\n\n\tpublic numYearDaySlots: number;\n\n\tpublic numDailyRepeatingSlots: number | undefined;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.numWeekDaySlots,\n\t\t\tthis.numYearDaySlots,\n\t\t\tthis.numDailyRepeatingSlots ?? 0,\n\t\t]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tconst message: MessageRecord = {\n\t\t\t\"no. of weekday schedule slots\": this.numWeekDaySlots,\n\t\t\t\"no. of day-of-year schedule slots\": this.numYearDaySlots,\n\t\t};\n\t\tif (this.numDailyRepeatingSlots != undefined) {\n\t\t\tmessage[\"no. of daily repeating schedule slots\"] =\n\t\t\t\tthis.numDailyRepeatingSlots;\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n@CCCommand(ScheduleEntryLockCommand.SupportedGet)\n@expectedCCResponse(ScheduleEntryLockCCSupportedReport)\nexport class ScheduleEntryLockCCSupportedGet extends ScheduleEntryLockCC {}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCWeekDayScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockWeekDaySchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCWeekDayScheduleSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.weekday = options.weekday;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.stopHour = options.stopHour;\n\t\t\tthis.stopMinute = options.stopMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 8);\n\t\tconst weekday: ScheduleEntryLockWeekday = raw.payload[3];\n\t\tconst startHour = raw.payload[4];\n\t\tconst startMinute = raw.payload[5];\n\t\tconst stopHour = raw.payload[6];\n\t\tconst stopMinute = raw.payload[7];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tweekday,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tstopHour,\n\t\t\tstopMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic weekday?: ScheduleEntryLockWeekday;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.action,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\t// The report should have these fields set to 0xff\n\t\t\t// if the slot is erased. The specs don't mention anything\n\t\t\t// for the Set command, so we just assume the same is okay\n\t\t\tthis.weekday ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekday: getEnumMemberName(\n\t\t\t\t\tScheduleEntryLockWeekday,\n\t\t\t\t\tthis.weekday!,\n\t\t\t\t),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\t\"end time\": formatTime(\n\t\t\t\t\tthis.stopHour ?? 0,\n\t\t\t\t\tthis.stopMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockWeekDaySchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.weekday = options.weekday;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.stopHour = options.stopHour;\n\t\tthis.stopMinute = options.stopMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tlet ccOptions: ScheduleEntryLockCCWeekDayScheduleReportOptions = {\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t};\n\n\t\tlet weekday: ScheduleEntryLockWeekday | undefined;\n\t\tlet startHour: number | undefined;\n\t\tlet startMinute: number | undefined;\n\t\tlet stopHour: number | undefined;\n\t\tlet stopMinute: number | undefined;\n\n\t\tif (raw.payload.length >= 7) {\n\t\t\tif (raw.payload[2] !== 0xff) {\n\t\t\t\tweekday = raw.payload[2];\n\t\t\t}\n\t\t\tif (raw.payload[3] !== 0xff) {\n\t\t\t\tstartHour = raw.payload[3];\n\t\t\t}\n\t\t\tif (raw.payload[4] !== 0xff) {\n\t\t\t\tstartMinute = raw.payload[4];\n\t\t\t}\n\t\t\tif (raw.payload[5] !== 0xff) {\n\t\t\t\tstopHour = raw.payload[5];\n\t\t\t}\n\t\t\tif (raw.payload[6] !== 0xff) {\n\t\t\t\tstopMinute = raw.payload[6];\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tweekday != undefined\n\t\t\t&& startHour != undefined\n\t\t\t&& startMinute != undefined\n\t\t\t&& stopHour != undefined\n\t\t\t&& stopMinute != undefined\n\t\t) {\n\t\t\tccOptions = {\n\t\t\t\t...ccOptions,\n\t\t\t\tweekday,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tstopHour,\n\t\t\t\tstopMinute,\n\t\t\t};\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t...ccOptions,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\tpublic weekday?: ScheduleEntryLockWeekday;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekday != undefined\n\t\t\t\t? {\n\t\t\t\t\tweekday: this.weekday,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tstopHour: this.stopHour!,\n\t\t\t\t\tstopMinute: this.stopMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekday ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.weekday == undefined) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tweekday: getEnumMemberName(\n\t\t\t\t\tScheduleEntryLockWeekday,\n\t\t\t\t\tthis.weekday,\n\t\t\t\t),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\t\"end time\": formatTime(\n\t\t\t\t\tthis.stopHour ?? 0,\n\t\t\t\t\tthis.stopMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCWeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleGet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCYearDayScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockYearDaySchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCYearDayScheduleSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.startYear = options.startYear;\n\t\t\tthis.startMonth = options.startMonth;\n\t\t\tthis.startDay = options.startDay;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.stopYear = options.stopYear;\n\t\t\tthis.stopMonth = options.stopMonth;\n\t\t\tthis.stopDay = options.stopDay;\n\t\t\tthis.stopHour = options.stopHour;\n\t\t\tthis.stopMinute = options.stopMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 13);\n\t\tconst startYear = raw.payload[3];\n\t\tconst startMonth = raw.payload[4];\n\t\tconst startDay = raw.payload[5];\n\t\tconst startHour = raw.payload[6];\n\t\tconst startMinute = raw.payload[7];\n\t\tconst stopYear = raw.payload[8];\n\t\tconst stopMonth = raw.payload[9];\n\t\tconst stopDay = raw.payload[10];\n\t\tconst stopHour = raw.payload[11];\n\t\tconst stopMinute = raw.payload[12];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tstartYear,\n\t\t\tstartMonth,\n\t\t\tstartDay,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tstopYear,\n\t\t\tstopMonth,\n\t\t\tstopDay,\n\t\t\tstopHour,\n\t\t\tstopMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic startYear?: number;\n\tpublic startMonth?: number;\n\tpublic startDay?: number;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopYear?: number;\n\tpublic stopMonth?: number;\n\tpublic stopDay?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.action,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\t// The report should have these fields set to 0xff\n\t\t\t// if the slot is erased. The specs don't mention anything\n\t\t\t// for the Set command, so we just assume the same is okay\n\t\t\tthis.startYear ?? 0xff,\n\t\t\tthis.startMonth ?? 0xff,\n\t\t\tthis.startDay ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopYear ?? 0xff,\n\t\t\tthis.stopMonth ?? 0xff,\n\t\t\tthis.stopDay ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\t\"start date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.startYear ?? 0,\n\t\t\t\t\t\tthis.startMonth ?? 0,\n\t\t\t\t\t\tthis.startDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n\t\t\t\t\"end date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.stopYear ?? 0,\n\t\t\t\t\t\tthis.stopMonth ?? 0,\n\t\t\t\t\t\tthis.stopDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockYearDaySchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.startYear = options.startYear;\n\t\tthis.startMonth = options.startMonth;\n\t\tthis.startDay = options.startDay;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.stopYear = options.stopYear;\n\t\tthis.stopMonth = options.stopMonth;\n\t\tthis.stopDay = options.stopDay;\n\t\tthis.stopHour = options.stopHour;\n\t\tthis.stopMinute = options.stopMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tlet ccOptions: ScheduleEntryLockCCYearDayScheduleReportOptions = {\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t};\n\n\t\tlet startYear: number | undefined;\n\t\tlet startMonth: number | undefined;\n\t\tlet startDay: number | undefined;\n\t\tlet startHour: number | undefined;\n\t\tlet startMinute: number | undefined;\n\t\tlet stopYear: number | undefined;\n\t\tlet stopMonth: number | undefined;\n\t\tlet stopDay: number | undefined;\n\t\tlet stopHour: number | undefined;\n\t\tlet stopMinute: number | undefined;\n\n\t\tif (raw.payload.length >= 12) {\n\t\t\tif (raw.payload[2] !== 0xff) {\n\t\t\t\tstartYear = raw.payload[2];\n\t\t\t}\n\t\t\tif (raw.payload[3] !== 0xff) {\n\t\t\t\tstartMonth = raw.payload[3];\n\t\t\t}\n\t\t\tif (raw.payload[4] !== 0xff) {\n\t\t\t\tstartDay = raw.payload[4];\n\t\t\t}\n\t\t\tif (raw.payload[5] !== 0xff) {\n\t\t\t\tstartHour = raw.payload[5];\n\t\t\t}\n\t\t\tif (raw.payload[6] !== 0xff) {\n\t\t\t\tstartMinute = raw.payload[6];\n\t\t\t}\n\t\t\tif (raw.payload[7] !== 0xff) {\n\t\t\t\tstopYear = raw.payload[7];\n\t\t\t}\n\t\t\tif (raw.payload[8] !== 0xff) {\n\t\t\t\tstopMonth = raw.payload[8];\n\t\t\t}\n\t\t\tif (raw.payload[9] !== 0xff) {\n\t\t\t\tstopDay = raw.payload[9];\n\t\t\t}\n\t\t\tif (raw.payload[10] !== 0xff) {\n\t\t\t\tstopHour = raw.payload[10];\n\t\t\t}\n\t\t\tif (raw.payload[11] !== 0xff) {\n\t\t\t\tstopMinute = raw.payload[11];\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tstartYear != undefined\n\t\t\t&& startMonth != undefined\n\t\t\t&& startDay != undefined\n\t\t\t&& startHour != undefined\n\t\t\t&& startMinute != undefined\n\t\t\t&& stopYear != undefined\n\t\t\t&& stopMonth != undefined\n\t\t\t&& stopDay != undefined\n\t\t\t&& stopHour != undefined\n\t\t\t&& stopMinute != undefined\n\t\t) {\n\t\t\tccOptions = {\n\t\t\t\t...ccOptions,\n\t\t\t\tstartYear,\n\t\t\t\tstartMonth,\n\t\t\t\tstartDay,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tstopYear,\n\t\t\t\tstopMonth,\n\t\t\t\tstopDay,\n\t\t\t\tstopHour,\n\t\t\t\tstopMinute,\n\t\t\t};\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t...ccOptions,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\tpublic startYear?: number;\n\tpublic startMonth?: number;\n\tpublic startDay?: number;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopYear?: number;\n\tpublic stopMonth?: number;\n\tpublic stopDay?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.startYear != undefined\n\t\t\t\t? {\n\t\t\t\t\tstartYear: this.startYear,\n\t\t\t\t\tstartMonth: this.startMonth!,\n\t\t\t\t\tstartDay: this.startDay!,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tstopYear: this.stopYear!,\n\t\t\t\t\tstopMonth: this.stopMonth!,\n\t\t\t\t\tstopDay: this.stopDay!,\n\t\t\t\t\tstopHour: this.stopHour!,\n\t\t\t\t\tstopMinute: this.stopMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.startYear ?? 0xff,\n\t\t\tthis.startMonth ?? 0xff,\n\t\t\tthis.startDay ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopYear ?? 0xff,\n\t\t\tthis.stopMonth ?? 0xff,\n\t\t\tthis.stopDay ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.startYear !== undefined) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\t\"start date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.startYear ?? 0,\n\t\t\t\t\t\tthis.startMonth ?? 0,\n\t\t\t\t\t\tthis.startDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n\t\t\t\t\"end date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.stopYear ?? 0,\n\t\t\t\t\t\tthis.stopMonth ?? 0,\n\t\t\t\t\t\tthis.stopDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCYearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleGet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetSetOptions {\n\tstandardOffset: number;\n\tdstOffset: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n@useSupervision()\nexport class ScheduleEntryLockCCTimeOffsetSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCTimeOffsetSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.standardOffset = options.standardOffset;\n\t\tthis.dstOffset = options.dstOffset;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCTimeOffsetSet {\n\t\tconst { standardOffset, dstOffset } = parseTimezone(raw.payload);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tstandardOffset,\n\t\t\tdstOffset,\n\t\t});\n\t}\n\n\tpublic standardOffset: number;\n\tpublic dstOffset: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = encodeTimezone({\n\t\t\tstandardOffset: this.standardOffset,\n\t\t\tdstOffset: this.dstOffset,\n\t\t});\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"standard time offset\": `${this.standardOffset} minutes`,\n\t\t\t\t\"DST offset\": `${this.dstOffset} minutes`,\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetReportOptions {\n\tstandardOffset: number;\n\tdstOffset: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetReport extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCTimeOffsetReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.standardOffset = options.standardOffset;\n\t\tthis.dstOffset = options.dstOffset;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCTimeOffsetReport {\n\t\tconst { standardOffset, dstOffset } = parseTimezone(raw.payload);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tstandardOffset,\n\t\t\tdstOffset,\n\t\t});\n\t}\n\n\tpublic standardOffset: number;\n\tpublic dstOffset: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = encodeTimezone({\n\t\t\tstandardOffset: this.standardOffset,\n\t\t\tdstOffset: this.dstOffset,\n\t\t});\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"standard time offset\": `${this.standardOffset} minutes`,\n\t\t\t\t\"DST offset\": `${this.dstOffset} minutes`,\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetGet)\n@expectedCCResponse(ScheduleEntryLockCCTimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetGet extends ScheduleEntryLockCC {}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCDailyRepeatingScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockDailyRepeatingSchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCDailyRepeatingScheduleSet\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleSetOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.weekdays = options.weekdays;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.durationHour = options.durationHour;\n\t\t\tthis.durationMinute = options.durationMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 8);\n\t\tconst weekdays: ScheduleEntryLockWeekday[] = parseBitMask(\n\t\t\traw.payload.subarray(3, 4),\n\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t);\n\t\tconst startHour = raw.payload[4];\n\t\tconst startMinute = raw.payload[5];\n\t\tconst durationHour = raw.payload[6];\n\t\tconst durationMinute = raw.payload[7];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tweekdays,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tdurationHour,\n\t\t\tdurationMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic weekdays?: ScheduleEntryLockWeekday[];\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic durationHour?: number;\n\tpublic durationMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.action, this.userId, this.slotId]);\n\t\tif (this.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.payload = Bytes.concat([\n\t\t\t\tthis.payload,\n\t\t\t\tencodeBitMask(\n\t\t\t\t\tthis.weekdays!,\n\t\t\t\t\tScheduleEntryLockWeekday.Saturday,\n\t\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t\t),\n\t\t\t\tBytes.from([\n\t\t\t\t\tthis.startHour!,\n\t\t\t\t\tthis.startMinute!,\n\t\t\t\t\tthis.durationHour!,\n\t\t\t\t\tthis.durationMinute!,\n\t\t\t\t]),\n\t\t\t]);\n\t\t} else {\n\t\t\t// Not sure if this is correct\n\t\t\tthis.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0xff)]);\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekdays: this.weekdays!.map((w) =>\n\t\t\t\t\tgetEnumMemberName(ScheduleEntryLockWeekday, w)\n\t\t\t\t).join(\", \"),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\tduration: formatTime(\n\t\t\t\t\tthis.durationHour ?? 0,\n\t\t\t\t\tthis.durationMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockDailyRepeatingSchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleReportOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.weekdays = options.weekdays;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.durationHour = options.durationHour;\n\t\tthis.durationMinute = options.durationMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tif (raw.payload.length >= 7 && raw.payload[2] !== 0) {\n\t\t\t// Only parse the schedule if it is present and some weekday is selected\n\t\t\tconst weekdays: ScheduleEntryLockWeekday[] = parseBitMask(\n\t\t\t\traw.payload.subarray(2, 3),\n\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t);\n\t\t\tconst startHour = raw.payload[3];\n\t\t\tconst startMinute = raw.payload[4];\n\t\t\tconst durationHour = raw.payload[5];\n\t\t\tconst durationMinute = raw.payload[6];\n\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t\tweekdays,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tdurationHour,\n\t\t\t\tdurationMinute,\n\t\t\t});\n\t\t} else {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic weekdays?: ScheduleEntryLockWeekday[];\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic durationHour?: number;\n\tpublic durationMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekdays?.length\n\t\t\t\t? {\n\t\t\t\t\tweekdays: this.weekdays,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tdurationHour: this.durationHour!,\n\t\t\t\t\tdurationMinute: this.durationMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\tif (this.weekdays) {\n\t\t\tthis.payload = Bytes.concat([\n\t\t\t\tthis.payload,\n\t\t\t\tencodeBitMask(\n\t\t\t\t\tthis.weekdays,\n\t\t\t\t\tScheduleEntryLockWeekday.Saturday,\n\t\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t\t),\n\t\t\t\tBytes.from([\n\t\t\t\t\tthis.startHour!,\n\t\t\t\t\tthis.startMinute!,\n\t\t\t\t\tthis.durationHour!,\n\t\t\t\t\tthis.durationMinute!,\n\t\t\t\t]),\n\t\t\t]);\n\t\t} else {\n\t\t\t// Not sure if this is correct, but at least we won't parse it incorrectly ourselves when setting everything to 0\n\t\t\tthis.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0)]);\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (!this.weekdays) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekdays: this.weekdays\n\t\t\t\t\t.map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w))\n\t\t\t\t\t.join(\", \"),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\tduration: formatTime(\n\t\t\t\t\tthis.durationHour ?? 0,\n\t\t\t\t\tthis.durationMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCDailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleGet\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleGetOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAcO;AAOP,oBAOO;AAEP,iBAAsB;AACtB,0BAKO;AACP,oCASO;AACP,oBAAkB;AAClB,mBAUO;AACP,yBAA8C;AAC9C,wBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpB,MAAM,4BAA4B,OAAO,OAAO;EACtD,GAAG,gBAAE,qBAAqB,2BAAe,qBAAqB,GAAG;IAChE,GAAG,gBAAE,eAAe,mBAAmB,QAAW,EAAE,UAAU,KAAI,CAAE;IACpE,GAAG,gBAAE,eAAe,mBAAmB,QAAW,EAAE,UAAU,KAAI,CAAE;IACpE,GAAG,gBAAE,eAAe,0BAA0B,QAAW;MACxD,UAAU;KACV;GACD;EAED,GAAG,gBAAE,sBAAsB,2BAAe,qBAAqB,GAAG;IACjE,GAAG,gBAAE,8BACJ,eACA,eACA,CAAC,WAAmB,QACpB,CAAC,EAAE,UAAU,YAAW,MACvB,aAAa,iBAAiB,OAAO,gBAAgB,UACtD,QACA,EAAE,UAAU,KAAI,CAAE;IAGnB,GAAG,gBAAE,8BACJ,gBACA,gBACA,CAAC,WAAmB,QACpB,CAAC,EAAE,UAAU,YAAW,MACvB,aAAa,kBAAkB,OAAO,gBAAgB,UACvD,QACA,EAAE,UAAU,KAAI,CAAE;IAGnB,GA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c,0BACb,KAAK,aAAa,GAClB,KAAK,eAAe,CAAC;UAEtB,cAAU,0BACT,KAAK,gBAAgB,GACrB,KAAK,kBAAkB,CAAC;;MAG3B;AACA,aAAO;QACN,GAAG,MAAM,WAAW,GAAG;QACvB;;IAEF;;;;IASY,gDAA4C,MAAA;8BAFxD,yCAAU,sCAAyB,yBAAyB,OAC5D,kDAAmB,+CAA+C,CAAC;;;;oBAE3D;oEAAA,YAAmB;WAAA;;;;;;;;AAD5B,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IAGZ,YACC,SAEC;AAED,YAAM,OAAO;AACb,WAAK,SAAS,QAAQ;AACtB,WAAK,SAAS,QAAQ;IACvB;IAEO,OAAO,KACb,KACA,KAAqB;AAErB,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,SAAS,IAAI,QAAQ,CAAC;AAC5B,YAAM,SAAS,IAAI,QAAQ,CAAC;AAE5B,aAAO,IAAI,KAAK;QACf,QAAQ,IAAI;QACZ;QACA;OACA;IACF;IAEO;IACA;IAEA,UAAU,KAAsB;AACtC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,QAAQ,KAAK,MAAM,CAAC;AAEpD,aAAO,MAAM,UAAU,GAAG;IAC3B;IAEO,WAAW,KAAgB;AACjC,aAAO;QACN,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACR,WAAW,KAAK;UAChB,UAAU,KAAK;;;IAGlB;;;;",
4
+ "sourcesContent": ["import { type CCEncodingContext, type CCParsingContext } from \"@zwave-js/cc\";\nimport {\n\tCommandClasses,\n\ttype GetValueDB,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype MessageRecord,\n\ttype SupervisionResult,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tencodeBitMask,\n\tgetDSTInfo,\n\tisUnsupervisedOrSucceeded,\n\tparseBitMask,\n\tvalidatePayload,\n} from \"@zwave-js/core\";\nimport { type EndpointId, type MaybeNotKnown } from \"@zwave-js/core/safe\";\nimport {\n\ttype AllOrNone,\n\tBytes,\n\tformatDate,\n\tformatTime,\n\tgetEnumMemberName,\n\tpick,\n} from \"@zwave-js/shared\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport { CCAPI } from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype PersistValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tScheduleEntryLockCommand,\n\ttype ScheduleEntryLockDailyRepeatingSchedule,\n\tScheduleEntryLockScheduleKind,\n\tScheduleEntryLockSetAction,\n\ttype ScheduleEntryLockSlotId,\n\ttype ScheduleEntryLockWeekDaySchedule,\n\tScheduleEntryLockWeekday,\n\ttype ScheduleEntryLockYearDaySchedule,\n\ttype Timezone,\n} from \"../lib/_Types.js\";\nimport { encodeTimezone, parseTimezone } from \"../lib/serializers.js\";\nimport { UserCodeCC } from \"./UserCodeCC.js\";\n\nexport const ScheduleEntryLockCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses[\"Schedule Entry Lock\"], {\n\t\t...V.staticProperty(\"numWeekDaySlots\", undefined, { internal: true }),\n\t\t...V.staticProperty(\"numYearDaySlots\", undefined, { internal: true }),\n\t\t...V.staticProperty(\"numDailyRepeatingSlots\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\t}),\n\n\t...V.defineDynamicCCValues(CommandClasses[\"Schedule Entry Lock\"], {\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"userEnabled\",\n\t\t\t\"userEnabled\",\n\t\t\t(userId: number) => userId,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"userEnabled\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"scheduleKind\",\n\t\t\t\"scheduleKind\",\n\t\t\t(userId: number) => userId,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"scheduleKind\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"schedule\",\n\t\t\t\"schedule\",\n\t\t\t(\n\t\t\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\t\t\tuserId: number,\n\t\t\t\tslotId: number,\n\t\t\t) => toPropertyKey(scheduleKind, userId, slotId),\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"schedule\" && typeof propertyKey === \"number\",\n\t\t\tundefined,\n\t\t\t{ internal: true },\n\t\t),\n\t}),\n});\n\nfunction toPropertyKey(\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n\tuserId: number,\n\tslotId: number,\n): number {\n\treturn (scheduleKind << 16) | (userId << 8) | slotId;\n}\n\n/** Caches information about a schedule */\nfunction persistSchedule(\n\tthis: ScheduleEntryLockCC,\n\tctx: GetValueDB,\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n\tuserId: number,\n\tslotId: number,\n\tschedule:\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t\t| undefined,\n): void {\n\tconst scheduleValue = ScheduleEntryLockCCValues.schedule(\n\t\tscheduleKind,\n\t\tuserId,\n\t\tslotId,\n\t);\n\n\tif (schedule != undefined) {\n\t\tthis.setValue(ctx, scheduleValue, schedule);\n\t} else {\n\t\tthis.removeValue(ctx, scheduleValue);\n\t}\n}\n\n/** Updates the schedule kind assumed to be active for user in the cache */\nfunction setUserCodeScheduleKindCached(\n\tctx: GetValueDB,\n\tendpoint: EndpointId,\n\tuserId: number,\n\tscheduleKind: ScheduleEntryLockScheduleKind,\n): void {\n\tctx\n\t\t.getValueDB(endpoint.nodeId)\n\t\t.setValue(\n\t\t\tScheduleEntryLockCCValues.scheduleKind(userId).endpoint(\n\t\t\t\tendpoint.index,\n\t\t\t),\n\t\t\tscheduleKind,\n\t\t);\n}\n\n/** Updates whether scheduling is active for one or all user(s) in the cache */\nfunction setUserCodeScheduleEnabledCached(\n\tctx: GetValueDB,\n\tendpoint: EndpointId,\n\tuserId: number | undefined,\n\tenabled: boolean,\n): void {\n\tconst setEnabled = (userId: number) => {\n\t\tctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.setValue(\n\t\t\t\tScheduleEntryLockCCValues.userEnabled(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t\tenabled,\n\t\t\t);\n\t};\n\n\tif (userId == undefined) {\n\t\t// Enable/disable all users\n\t\tconst numUsers = UserCodeCC.getSupportedUsersCached(ctx, endpoint)\n\t\t\t?? 0;\n\n\t\tfor (let userId = 1; userId <= numUsers; userId++) {\n\t\t\tsetEnabled(userId);\n\t\t}\n\t} else {\n\t\tsetEnabled(userId);\n\t}\n}\n\n@API(CommandClasses[\"Schedule Entry Lock\"])\nexport class ScheduleEntryLockCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: ScheduleEntryLockCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase ScheduleEntryLockCommand.EnableSet:\n\t\t\tcase ScheduleEntryLockCommand.EnableAllSet:\n\t\t\tcase ScheduleEntryLockCommand.WeekDayScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.WeekDayScheduleGet:\n\t\t\tcase ScheduleEntryLockCommand.YearDayScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.YearDayScheduleGet:\n\t\t\tcase ScheduleEntryLockCommand.SupportedGet:\n\t\t\t\treturn true; // V1\n\n\t\t\tcase ScheduleEntryLockCommand.TimeOffsetSet:\n\t\t\tcase ScheduleEntryLockCommand.TimeOffsetGet:\n\t\t\t\treturn this.version >= 2;\n\n\t\t\tcase ScheduleEntryLockCommand.DailyRepeatingScheduleSet:\n\t\t\tcase ScheduleEntryLockCommand.DailyRepeatingScheduleGet:\n\t\t\t\treturn this.version >= 3;\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\t/**\n\t * Enables or disables schedules. If a user ID is given, that user's\n\t * schedules will be enabled or disabled. If no user ID is given, all schedules\n\t * will be affected.\n\t */\n\t@validateArgs()\n\tpublic async setEnabled(\n\t\tenabled: boolean,\n\t\tuserId?: number,\n\t): Promise<SupervisionResult | undefined> {\n\t\tlet result: SupervisionResult | undefined;\n\t\tif (userId != undefined) {\n\t\t\tthis.assertSupportsCommand(\n\t\t\t\tScheduleEntryLockCommand,\n\t\t\t\tScheduleEntryLockCommand.EnableSet,\n\t\t\t);\n\n\t\t\tconst cc = new ScheduleEntryLockCCEnableSet({\n\t\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t\tuserId,\n\t\t\t\tenabled,\n\t\t\t});\n\n\t\t\tresult = await this.host.sendCommand(cc, this.commandOptions);\n\t\t} else {\n\t\t\tthis.assertSupportsCommand(\n\t\t\t\tScheduleEntryLockCommand,\n\t\t\t\tScheduleEntryLockCommand.EnableAllSet,\n\t\t\t);\n\n\t\t\tconst cc = new ScheduleEntryLockCCEnableAllSet({\n\t\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t\tenabled,\n\t\t\t});\n\n\t\t\tresult = await this.host.sendCommand(cc, this.commandOptions);\n\t\t}\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Remember the new state in the cache\n\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t\tuserId,\n\t\t\t\tenabled,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\tpublic async getNumSlots() {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.SupportedGet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCSupportedGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCSupportedReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result) {\n\t\t\treturn pick(result, [\n\t\t\t\t\"numWeekDaySlots\",\n\t\t\t\t\"numYearDaySlots\",\n\t\t\t\t\"numDailyRepeatingSlots\",\n\t\t\t]);\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setWeekDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockWeekDaySchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.WeekDayScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC.getNumWeekDaySlotsCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported day-of-week slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (schedule) {\n\t\t\tif (\n\t\t\t\tschedule.stopHour < schedule.startHour\n\t\t\t\t|| schedule.stopHour === schedule.startHour\n\t\t\t\t\t&& schedule.stopMinute <= schedule.startMinute\n\t\t\t) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The stop time must be after the start time.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCWeekDayScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getWeekDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockWeekDaySchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.WeekDayScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCWeekDayScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCWeekDayScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.weekday != undefined) {\n\t\t\treturn {\n\t\t\t\tweekday: result.weekday,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tstopHour: result.stopHour!,\n\t\t\t\tstopMinute: result.stopMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setYearDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockYearDaySchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.YearDayScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC.getNumYearDaySlotsCached(\n\t\t\t\tthis.host,\n\t\t\t\tthis.endpoint,\n\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported day-of-year slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (schedule) {\n\t\t\tconst startDate = new Date(\n\t\t\t\tschedule.startYear,\n\t\t\t\tschedule.startMonth - 1,\n\t\t\t\tschedule.startDay,\n\t\t\t\tschedule.startHour,\n\t\t\t\tschedule.startMinute,\n\t\t\t);\n\t\t\tconst stopDate = new Date(\n\t\t\t\tschedule.stopYear,\n\t\t\t\tschedule.stopMonth - 1,\n\t\t\t\tschedule.stopDay,\n\t\t\t\tschedule.stopHour,\n\t\t\t\tschedule.stopMinute,\n\t\t\t);\n\t\t\tif (stopDate <= startDate) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The stop date must be after the start date.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCYearDayScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getYearDaySchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockYearDaySchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.YearDayScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCYearDayScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCYearDayScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.startYear != undefined) {\n\t\t\treturn {\n\t\t\t\tstartYear: result.startYear,\n\t\t\t\tstartMonth: result.startMonth!,\n\t\t\t\tstartDay: result.startDay!,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tstopYear: result.stopYear!,\n\t\t\t\tstopMonth: result.stopMonth!,\n\t\t\t\tstopDay: result.stopDay!,\n\t\t\t\tstopHour: result.stopHour!,\n\t\t\t\tstopMinute: result.stopMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setDailyRepeatingSchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t\tschedule?: ScheduleEntryLockDailyRepeatingSchedule,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.DailyRepeatingScheduleSet,\n\t\t);\n\n\t\tif (this.isSinglecast()) {\n\t\t\tconst numSlots = ScheduleEntryLockCC\n\t\t\t\t.getNumDailyRepeatingSlotsCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t);\n\n\t\t\tif (slot.slotId < 1 || slot.slotId > numSlots) {\n\t\t\t\tthrow new ZWaveError(\n\t\t\t\t\t`The schedule slot # must be between 1 and the number of supported daily repeating slots ${numSlots}.`,\n\t\t\t\t\tZWaveErrorCodes.Argument_Invalid,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst cc = new ScheduleEntryLockCCDailyRepeatingScheduleSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t\t...(schedule\n\t\t\t\t? {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Set,\n\t\t\t\t\t...schedule,\n\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\taction: ScheduleEntryLockSetAction.Erase,\n\t\t\t\t}),\n\t\t});\n\n\t\tconst result = await this.host.sendCommand(cc, this.commandOptions);\n\n\t\tif (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n\t\t\t// Editing (but not erasing) a schedule will enable scheduling for that user\n\t\t\t// and switch it to the current scheduling kind\n\t\t\tif (!!schedule) {\n\t\t\t\tsetUserCodeScheduleEnabledCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\ttrue,\n\t\t\t\t);\n\t\t\t\tsetUserCodeScheduleKindCached(\n\t\t\t\t\tthis.host,\n\t\t\t\t\tthis.endpoint,\n\t\t\t\t\tslot.userId,\n\t\t\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// And cache the schedule\n\t\t\tpersistSchedule.call(\n\t\t\t\tcc,\n\t\t\t\tthis.host,\n\t\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\t\tslot.userId,\n\t\t\t\tslot.slotId,\n\t\t\t\tschedule ?? false,\n\t\t\t);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t@validateArgs()\n\tpublic async getDailyRepeatingSchedule(\n\t\tslot: ScheduleEntryLockSlotId,\n\t): Promise<MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.DailyRepeatingScheduleSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCDailyRepeatingScheduleGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...slot,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result?.weekdays != undefined) {\n\t\t\treturn {\n\t\t\t\tweekdays: result.weekdays,\n\t\t\t\tstartHour: result.startHour!,\n\t\t\t\tstartMinute: result.startMinute!,\n\t\t\t\tdurationHour: result.durationHour!,\n\t\t\t\tdurationMinute: result.durationMinute!,\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic async getTimezone(): Promise<MaybeNotKnown<Timezone>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.TimeOffsetGet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCTimeOffsetGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst result = await this.host.sendCommand<\n\t\t\tScheduleEntryLockCCTimeOffsetReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\n\t\tif (result) {\n\t\t\treturn pick(result, [\"standardOffset\", \"dstOffset\"]);\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async setTimezone(\n\t\ttimezone: Timezone,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tScheduleEntryLockCommand,\n\t\t\tScheduleEntryLockCommand.TimeOffsetSet,\n\t\t);\n\n\t\tconst cc = new ScheduleEntryLockCCTimeOffsetSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...timezone,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n}\n\n@commandClass(CommandClasses[\"Schedule Entry Lock\"])\n@implementedVersion(3)\n@ccValues(ScheduleEntryLockCCValues)\nexport class ScheduleEntryLockCC extends CommandClass {\n\tdeclare ccCommand: ScheduleEntryLockCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Schedule Entry Lock\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: \"Querying supported number of schedule slots...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst slotsResp = await api.getNumSlots();\n\t\tif (slotsResp) {\n\t\t\tlet logMessage = `received supported number of schedule slots:\nday of week: ${slotsResp.numWeekDaySlots}\nday of year: ${slotsResp.numYearDaySlots}`;\n\t\t\tif (slotsResp.numDailyRepeatingSlots != undefined) {\n\t\t\t\tlogMessage += `\ndaily repeating: ${slotsResp.numDailyRepeatingSlots}`;\n\t\t\t}\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tendpoint: this.endpointIndex,\n\t\t\t\tmessage: logMessage,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\t\t}\n\n\t\t// If the timezone is not configured with the Time CC, do it here\n\t\tif (\n\t\t\tapi.supportsCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n\t\t\t&& (!endpoint.supportsCC(CommandClasses.Time)\n\t\t\t\t|| endpoint.getCCVersion(CommandClasses.Time) < 2)\n\t\t) {\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tendpoint: this.endpointIndex,\n\t\t\t\tmessage: \"setting timezone information...\",\n\t\t\t\tdirection: \"outbound\",\n\t\t\t});\n\t\t\t// Set the correct timezone on this node\n\t\t\tconst timezone = getDSTInfo();\n\t\t\tawait api.setTimezone(timezone);\n\t\t}\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\t/**\n\t * Returns the number of supported day-of-week slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumWeekDaySlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numWeekDaySlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns the number of supported day-of-year slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumYearDaySlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numYearDaySlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns the number of supported daily-repeating slots.\n\t * This only works AFTER the interview process\n\t */\n\tpublic static getNumDailyRepeatingSlotsCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t): number {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.numDailyRepeatingSlots.endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t) || 0;\n\t}\n\n\t/**\n\t * Returns whether scheduling for a given user ID (most likely) enabled. Since the Schedule Entry Lock CC\n\t * provides no way to query the enabled state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * This only works AFTER the interview process and is likely to be wrong if a device\n\t * with existing schedules is queried. To be sure, disable scheduling for all users and enable\n\t * only the desired ones.\n\t */\n\tpublic static getUserCodeScheduleEnabledCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tuserId: number,\n\t): boolean {\n\t\treturn !!ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.userEnabled(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t);\n\t}\n\n\t/**\n\t * Returns which scheduling kind is (most likely) enabled for a given user ID . Since the Schedule Entry Lock CC\n\t * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * This only works AFTER the interview process and is likely to be wrong if a device\n\t * with existing schedules is queried. To be sure, edit a schedule of the desired kind\n\t * which will automatically switch the user to that scheduling kind.\n\t */\n\tpublic static getUserCodeScheduleKindCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tuserId: number,\n\t): MaybeNotKnown<ScheduleEntryLockScheduleKind> {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue<ScheduleEntryLockScheduleKind>(\n\t\t\t\tScheduleEntryLockCCValues.scheduleKind(userId).endpoint(\n\t\t\t\t\tendpoint.index,\n\t\t\t\t),\n\t\t\t);\n\t}\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.WeekDay,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | false>;\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.YearDay,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockYearDaySchedule | false>;\n\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind.DailyRepeating,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule | false>;\n\n\t// Catch-all overload for applications which haven't narrowed `scheduleKind`\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t>;\n\n\t/**\n\t * Returns the assumed state of a schedule. Since the Schedule Entry Lock CC\n\t * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n\t *\n\t * A return value of `false` means the slot is empty, a return value of `undefined` means the information is not cached yet.\n\t *\n\t * This only works AFTER the interview process.\n\t */\n\tpublic static getScheduleCached(\n\t\tctx: GetValueDB,\n\t\tendpoint: EndpointId,\n\t\tscheduleKind: ScheduleEntryLockScheduleKind,\n\t\tuserId: number,\n\t\tslotId: number,\n\t): MaybeNotKnown<\n\t\t| ScheduleEntryLockWeekDaySchedule\n\t\t| ScheduleEntryLockYearDaySchedule\n\t\t| ScheduleEntryLockDailyRepeatingSchedule\n\t\t| false\n\t> {\n\t\treturn ctx\n\t\t\t.getValueDB(endpoint.nodeId)\n\t\t\t.getValue(\n\t\t\t\tScheduleEntryLockCCValues.schedule(\n\t\t\t\t\tscheduleKind,\n\t\t\t\t\tuserId,\n\t\t\t\t\tslotId,\n\t\t\t\t).endpoint(endpoint.index),\n\t\t\t);\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableSetOptions {\n\tuserId: number;\n\tenabled: boolean;\n}\n\n@CCCommand(ScheduleEntryLockCommand.EnableSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCEnableSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.enabled = options.enabled;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCEnableSet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst enabled: boolean = raw.payload[1] === 0x01;\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tenabled,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic enabled: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.userId, this.enabled ? 0x01 : 0x00]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\taction: this.enabled ? \"enable\" : \"disable\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableAllSetOptions {\n\tenabled: boolean;\n}\n\n@CCCommand(ScheduleEntryLockCommand.EnableAllSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableAllSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCEnableAllSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.enabled = options.enabled;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCEnableAllSet {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\tconst enabled: boolean = raw.payload[0] === 0x01;\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tenabled,\n\t\t});\n\t}\n\n\tpublic enabled: boolean;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.enabled ? 0x01 : 0x00]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\taction: this.enabled ? \"enable all\" : \"disable all\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCSupportedReportOptions {\n\tnumWeekDaySlots: number;\n\tnumYearDaySlots: number;\n\tnumDailyRepeatingSlots?: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.SupportedReport)\n@ccValueProperty(\"numWeekDaySlots\", ScheduleEntryLockCCValues.numWeekDaySlots)\n@ccValueProperty(\"numYearDaySlots\", ScheduleEntryLockCCValues.numYearDaySlots)\n@ccValueProperty(\n\t\"numDailyRepeatingSlots\",\n\tScheduleEntryLockCCValues.numDailyRepeatingSlots,\n)\nexport class ScheduleEntryLockCCSupportedReport extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCSupportedReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.numWeekDaySlots = options.numWeekDaySlots;\n\t\tthis.numYearDaySlots = options.numYearDaySlots;\n\t\tthis.numDailyRepeatingSlots = options.numDailyRepeatingSlots;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCSupportedReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst numWeekDaySlots = raw.payload[0];\n\t\tconst numYearDaySlots = raw.payload[1];\n\t\tlet numDailyRepeatingSlots: number | undefined;\n\t\tif (raw.payload.length >= 3) {\n\t\t\tnumDailyRepeatingSlots = raw.payload[2];\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tnumWeekDaySlots,\n\t\t\tnumYearDaySlots,\n\t\t\tnumDailyRepeatingSlots,\n\t\t});\n\t}\n\n\tpublic numWeekDaySlots: number;\n\n\tpublic numYearDaySlots: number;\n\n\tpublic numDailyRepeatingSlots: number | undefined;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.numWeekDaySlots,\n\t\t\tthis.numYearDaySlots,\n\t\t\tthis.numDailyRepeatingSlots ?? 0,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tconst message: MessageRecord = {\n\t\t\t\"no. of weekday schedule slots\": this.numWeekDaySlots,\n\t\t\t\"no. of day-of-year schedule slots\": this.numYearDaySlots,\n\t\t};\n\t\tif (this.numDailyRepeatingSlots != undefined) {\n\t\t\tmessage[\"no. of daily repeating schedule slots\"] =\n\t\t\t\tthis.numDailyRepeatingSlots;\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n@CCCommand(ScheduleEntryLockCommand.SupportedGet)\n@expectedCCResponse(ScheduleEntryLockCCSupportedReport)\nexport class ScheduleEntryLockCCSupportedGet extends ScheduleEntryLockCC {}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCWeekDayScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockWeekDaySchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCWeekDayScheduleSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.weekday = options.weekday;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.stopHour = options.stopHour;\n\t\t\tthis.stopMinute = options.stopMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 8);\n\t\tconst weekday: ScheduleEntryLockWeekday = raw.payload[3];\n\t\tconst startHour = raw.payload[4];\n\t\tconst startMinute = raw.payload[5];\n\t\tconst stopHour = raw.payload[6];\n\t\tconst stopMinute = raw.payload[7];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tweekday,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tstopHour,\n\t\t\tstopMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic weekday?: ScheduleEntryLockWeekday;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.action,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\t// The report should have these fields set to 0xff\n\t\t\t// if the slot is erased. The specs don't mention anything\n\t\t\t// for the Set command, so we just assume the same is okay\n\t\t\tthis.weekday ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekday: getEnumMemberName(\n\t\t\t\t\tScheduleEntryLockWeekday,\n\t\t\t\t\tthis.weekday!,\n\t\t\t\t),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\t\"end time\": formatTime(\n\t\t\t\t\tthis.stopHour ?? 0,\n\t\t\t\t\tthis.stopMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockWeekDaySchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.weekday = options.weekday;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.stopHour = options.stopHour;\n\t\tthis.stopMinute = options.stopMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tlet ccOptions: ScheduleEntryLockCCWeekDayScheduleReportOptions = {\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t};\n\n\t\tlet weekday: ScheduleEntryLockWeekday | undefined;\n\t\tlet startHour: number | undefined;\n\t\tlet startMinute: number | undefined;\n\t\tlet stopHour: number | undefined;\n\t\tlet stopMinute: number | undefined;\n\n\t\tif (raw.payload.length >= 7) {\n\t\t\tif (raw.payload[2] !== 0xff) {\n\t\t\t\tweekday = raw.payload[2];\n\t\t\t}\n\t\t\tif (raw.payload[3] !== 0xff) {\n\t\t\t\tstartHour = raw.payload[3];\n\t\t\t}\n\t\t\tif (raw.payload[4] !== 0xff) {\n\t\t\t\tstartMinute = raw.payload[4];\n\t\t\t}\n\t\t\tif (raw.payload[5] !== 0xff) {\n\t\t\t\tstopHour = raw.payload[5];\n\t\t\t}\n\t\t\tif (raw.payload[6] !== 0xff) {\n\t\t\t\tstopMinute = raw.payload[6];\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tweekday != undefined\n\t\t\t&& startHour != undefined\n\t\t\t&& startMinute != undefined\n\t\t\t&& stopHour != undefined\n\t\t\t&& stopMinute != undefined\n\t\t) {\n\t\t\tccOptions = {\n\t\t\t\t...ccOptions,\n\t\t\t\tweekday,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tstopHour,\n\t\t\t\tstopMinute,\n\t\t\t};\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t...ccOptions,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\tpublic weekday?: ScheduleEntryLockWeekday;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.WeekDay,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekday != undefined\n\t\t\t\t? {\n\t\t\t\t\tweekday: this.weekday,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tstopHour: this.stopHour!,\n\t\t\t\t\tstopMinute: this.stopMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekday ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.weekday == undefined) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tweekday: getEnumMemberName(\n\t\t\t\t\tScheduleEntryLockWeekday,\n\t\t\t\t\tthis.weekday,\n\t\t\t\t),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\t\"end time\": formatTime(\n\t\t\t\t\tthis.stopHour ?? 0,\n\t\t\t\t\tthis.stopMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCWeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleGet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCWeekDayScheduleGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCWeekDayScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCYearDayScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockYearDaySchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCYearDayScheduleSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.startYear = options.startYear;\n\t\t\tthis.startMonth = options.startMonth;\n\t\t\tthis.startDay = options.startDay;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.stopYear = options.stopYear;\n\t\t\tthis.stopMonth = options.stopMonth;\n\t\t\tthis.stopDay = options.stopDay;\n\t\t\tthis.stopHour = options.stopHour;\n\t\t\tthis.stopMinute = options.stopMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 13);\n\t\tconst startYear = raw.payload[3];\n\t\tconst startMonth = raw.payload[4];\n\t\tconst startDay = raw.payload[5];\n\t\tconst startHour = raw.payload[6];\n\t\tconst startMinute = raw.payload[7];\n\t\tconst stopYear = raw.payload[8];\n\t\tconst stopMonth = raw.payload[9];\n\t\tconst stopDay = raw.payload[10];\n\t\tconst stopHour = raw.payload[11];\n\t\tconst stopMinute = raw.payload[12];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tstartYear,\n\t\t\tstartMonth,\n\t\t\tstartDay,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tstopYear,\n\t\t\tstopMonth,\n\t\t\tstopDay,\n\t\t\tstopHour,\n\t\t\tstopMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic startYear?: number;\n\tpublic startMonth?: number;\n\tpublic startDay?: number;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopYear?: number;\n\tpublic stopMonth?: number;\n\tpublic stopDay?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.action,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\t// The report should have these fields set to 0xff\n\t\t\t// if the slot is erased. The specs don't mention anything\n\t\t\t// for the Set command, so we just assume the same is okay\n\t\t\tthis.startYear ?? 0xff,\n\t\t\tthis.startMonth ?? 0xff,\n\t\t\tthis.startDay ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopYear ?? 0xff,\n\t\t\tthis.stopMonth ?? 0xff,\n\t\t\tthis.stopDay ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\t\"start date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.startYear ?? 0,\n\t\t\t\t\t\tthis.startMonth ?? 0,\n\t\t\t\t\t\tthis.startDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n\t\t\t\t\"end date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.stopYear ?? 0,\n\t\t\t\t\t\tthis.stopMonth ?? 0,\n\t\t\t\t\t\tthis.stopDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockYearDaySchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.startYear = options.startYear;\n\t\tthis.startMonth = options.startMonth;\n\t\tthis.startDay = options.startDay;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.stopYear = options.stopYear;\n\t\tthis.stopMonth = options.stopMonth;\n\t\tthis.stopDay = options.stopDay;\n\t\tthis.stopHour = options.stopHour;\n\t\tthis.stopMinute = options.stopMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tlet ccOptions: ScheduleEntryLockCCYearDayScheduleReportOptions = {\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t};\n\n\t\tlet startYear: number | undefined;\n\t\tlet startMonth: number | undefined;\n\t\tlet startDay: number | undefined;\n\t\tlet startHour: number | undefined;\n\t\tlet startMinute: number | undefined;\n\t\tlet stopYear: number | undefined;\n\t\tlet stopMonth: number | undefined;\n\t\tlet stopDay: number | undefined;\n\t\tlet stopHour: number | undefined;\n\t\tlet stopMinute: number | undefined;\n\n\t\tif (raw.payload.length >= 12) {\n\t\t\tif (raw.payload[2] !== 0xff) {\n\t\t\t\tstartYear = raw.payload[2];\n\t\t\t}\n\t\t\tif (raw.payload[3] !== 0xff) {\n\t\t\t\tstartMonth = raw.payload[3];\n\t\t\t}\n\t\t\tif (raw.payload[4] !== 0xff) {\n\t\t\t\tstartDay = raw.payload[4];\n\t\t\t}\n\t\t\tif (raw.payload[5] !== 0xff) {\n\t\t\t\tstartHour = raw.payload[5];\n\t\t\t}\n\t\t\tif (raw.payload[6] !== 0xff) {\n\t\t\t\tstartMinute = raw.payload[6];\n\t\t\t}\n\t\t\tif (raw.payload[7] !== 0xff) {\n\t\t\t\tstopYear = raw.payload[7];\n\t\t\t}\n\t\t\tif (raw.payload[8] !== 0xff) {\n\t\t\t\tstopMonth = raw.payload[8];\n\t\t\t}\n\t\t\tif (raw.payload[9] !== 0xff) {\n\t\t\t\tstopDay = raw.payload[9];\n\t\t\t}\n\t\t\tif (raw.payload[10] !== 0xff) {\n\t\t\t\tstopHour = raw.payload[10];\n\t\t\t}\n\t\t\tif (raw.payload[11] !== 0xff) {\n\t\t\t\tstopMinute = raw.payload[11];\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\tstartYear != undefined\n\t\t\t&& startMonth != undefined\n\t\t\t&& startDay != undefined\n\t\t\t&& startHour != undefined\n\t\t\t&& startMinute != undefined\n\t\t\t&& stopYear != undefined\n\t\t\t&& stopMonth != undefined\n\t\t\t&& stopDay != undefined\n\t\t\t&& stopHour != undefined\n\t\t\t&& stopMinute != undefined\n\t\t) {\n\t\t\tccOptions = {\n\t\t\t\t...ccOptions,\n\t\t\t\tstartYear,\n\t\t\t\tstartMonth,\n\t\t\t\tstartDay,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tstopYear,\n\t\t\t\tstopMonth,\n\t\t\t\tstopDay,\n\t\t\t\tstopHour,\n\t\t\t\tstopMinute,\n\t\t\t};\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t...ccOptions,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\tpublic startYear?: number;\n\tpublic startMonth?: number;\n\tpublic startDay?: number;\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic stopYear?: number;\n\tpublic stopMonth?: number;\n\tpublic stopDay?: number;\n\tpublic stopHour?: number;\n\tpublic stopMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.YearDay,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.startYear != undefined\n\t\t\t\t? {\n\t\t\t\t\tstartYear: this.startYear,\n\t\t\t\t\tstartMonth: this.startMonth!,\n\t\t\t\t\tstartDay: this.startDay!,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tstopYear: this.stopYear!,\n\t\t\t\t\tstopMonth: this.stopMonth!,\n\t\t\t\t\tstopDay: this.stopDay!,\n\t\t\t\t\tstopHour: this.stopHour!,\n\t\t\t\t\tstopMinute: this.stopMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.startYear ?? 0xff,\n\t\t\tthis.startMonth ?? 0xff,\n\t\t\tthis.startDay ?? 0xff,\n\t\t\tthis.startHour ?? 0xff,\n\t\t\tthis.startMinute ?? 0xff,\n\t\t\tthis.stopYear ?? 0xff,\n\t\t\tthis.stopMonth ?? 0xff,\n\t\t\tthis.stopDay ?? 0xff,\n\t\t\tthis.stopHour ?? 0xff,\n\t\t\tthis.stopMinute ?? 0xff,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.startYear !== undefined) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\t\"start date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.startYear ?? 0,\n\t\t\t\t\t\tthis.startMonth ?? 0,\n\t\t\t\t\t\tthis.startDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n\t\t\t\t\"end date\": `${\n\t\t\t\t\tformatDate(\n\t\t\t\t\t\tthis.stopYear ?? 0,\n\t\t\t\t\t\tthis.stopMonth ?? 0,\n\t\t\t\t\t\tthis.stopDay ?? 0,\n\t\t\t\t\t)\n\t\t\t\t} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCYearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleGet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCYearDayScheduleGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCYearDayScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetSetOptions {\n\tstandardOffset: number;\n\tdstOffset: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n@useSupervision()\nexport class ScheduleEntryLockCCTimeOffsetSet extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCTimeOffsetSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.standardOffset = options.standardOffset;\n\t\tthis.dstOffset = options.dstOffset;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCTimeOffsetSet {\n\t\tconst { standardOffset, dstOffset } = parseTimezone(raw.payload);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tstandardOffset,\n\t\t\tdstOffset,\n\t\t});\n\t}\n\n\tpublic standardOffset: number;\n\tpublic dstOffset: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = encodeTimezone({\n\t\t\tstandardOffset: this.standardOffset,\n\t\t\tdstOffset: this.dstOffset,\n\t\t});\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"standard time offset\": `${this.standardOffset} minutes`,\n\t\t\t\t\"DST offset\": `${this.dstOffset} minutes`,\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetReportOptions {\n\tstandardOffset: number;\n\tdstOffset: number;\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetReport extends ScheduleEntryLockCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ScheduleEntryLockCCTimeOffsetReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.standardOffset = options.standardOffset;\n\t\tthis.dstOffset = options.dstOffset;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCTimeOffsetReport {\n\t\tconst { standardOffset, dstOffset } = parseTimezone(raw.payload);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tstandardOffset,\n\t\t\tdstOffset,\n\t\t});\n\t}\n\n\tpublic standardOffset: number;\n\tpublic dstOffset: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = encodeTimezone({\n\t\t\tstandardOffset: this.standardOffset,\n\t\t\tdstOffset: this.dstOffset,\n\t\t});\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"standard time offset\": `${this.standardOffset} minutes`,\n\t\t\t\t\"DST offset\": `${this.dstOffset} minutes`,\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetGet)\n@expectedCCResponse(ScheduleEntryLockCCTimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetGet extends ScheduleEntryLockCC {}\n\n/** @publicAPI */\nexport type ScheduleEntryLockCCDailyRepeatingScheduleSetOptions =\n\t& ScheduleEntryLockSlotId\n\t& (\n\t\t| {\n\t\t\taction: ScheduleEntryLockSetAction.Erase;\n\t\t}\n\t\t| ({\n\t\t\taction: ScheduleEntryLockSetAction.Set;\n\t\t} & ScheduleEntryLockDailyRepeatingSchedule)\n\t);\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCDailyRepeatingScheduleSet\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleSetOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.action = options.action;\n\t\tif (options.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.weekdays = options.weekdays;\n\t\t\tthis.startHour = options.startHour;\n\t\t\tthis.startMinute = options.startMinute;\n\t\t\tthis.durationHour = options.durationHour;\n\t\t\tthis.durationMinute = options.durationMinute;\n\t\t}\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleSet {\n\t\tvalidatePayload(raw.payload.length >= 3);\n\t\tconst action: ScheduleEntryLockSetAction = raw.payload[0];\n\n\t\tvalidatePayload(\n\t\t\taction === ScheduleEntryLockSetAction.Set\n\t\t\t\t|| action === ScheduleEntryLockSetAction.Erase,\n\t\t);\n\t\tconst userId = raw.payload[1];\n\t\tconst slotId = raw.payload[2];\n\n\t\tif (action !== ScheduleEntryLockSetAction.Set) {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\taction,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\n\t\tvalidatePayload(raw.payload.length >= 8);\n\t\tconst weekdays: ScheduleEntryLockWeekday[] = parseBitMask(\n\t\t\traw.payload.subarray(3, 4),\n\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t);\n\t\tconst startHour = raw.payload[4];\n\t\tconst startMinute = raw.payload[5];\n\t\tconst durationHour = raw.payload[6];\n\t\tconst durationMinute = raw.payload[7];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\taction,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t\tweekdays,\n\t\t\tstartHour,\n\t\t\tstartMinute,\n\t\t\tdurationHour,\n\t\t\tdurationMinute,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic action: ScheduleEntryLockSetAction;\n\n\tpublic weekdays?: ScheduleEntryLockWeekday[];\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic durationHour?: number;\n\tpublic durationMinute?: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.action, this.userId, this.slotId]);\n\t\tif (this.action === ScheduleEntryLockSetAction.Set) {\n\t\t\tthis.payload = Bytes.concat([\n\t\t\t\tthis.payload,\n\t\t\t\tencodeBitMask(\n\t\t\t\t\tthis.weekdays!,\n\t\t\t\t\tScheduleEntryLockWeekday.Saturday,\n\t\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t\t),\n\t\t\t\tBytes.from([\n\t\t\t\t\tthis.startHour!,\n\t\t\t\t\tthis.startMinute!,\n\t\t\t\t\tthis.durationHour!,\n\t\t\t\t\tthis.durationMinute!,\n\t\t\t\t]),\n\t\t\t]);\n\t\t} else {\n\t\t\t// Not sure if this is correct\n\t\t\tthis.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0xff)]);\n\t\t}\n\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (this.action === ScheduleEntryLockSetAction.Erase) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"erase\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekdays: this.weekdays!.map((w) =>\n\t\t\t\t\tgetEnumMemberName(ScheduleEntryLockWeekday, w)\n\t\t\t\t).join(\", \"),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\tduration: formatTime(\n\t\t\t\t\tthis.durationHour ?? 0,\n\t\t\t\t\tthis.durationMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions =\n\t& ScheduleEntryLockSlotId\n\t& AllOrNone<ScheduleEntryLockDailyRepeatingSchedule>;\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleReport\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleReportOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t\tthis.weekdays = options.weekdays;\n\t\tthis.startHour = options.startHour;\n\t\tthis.startMinute = options.startMinute;\n\t\tthis.durationHour = options.durationHour;\n\t\tthis.durationMinute = options.durationMinute;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\tif (raw.payload.length >= 7 && raw.payload[2] !== 0) {\n\t\t\t// Only parse the schedule if it is present and some weekday is selected\n\t\t\tconst weekdays: ScheduleEntryLockWeekday[] = parseBitMask(\n\t\t\t\traw.payload.subarray(2, 3),\n\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t);\n\t\t\tconst startHour = raw.payload[3];\n\t\t\tconst startMinute = raw.payload[4];\n\t\t\tconst durationHour = raw.payload[5];\n\t\t\tconst durationMinute = raw.payload[6];\n\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t\tweekdays,\n\t\t\t\tstartHour,\n\t\t\t\tstartMinute,\n\t\t\t\tdurationHour,\n\t\t\t\tdurationMinute,\n\t\t\t});\n\t\t} else {\n\t\t\treturn new this({\n\t\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\t\tuserId,\n\t\t\t\tslotId,\n\t\t\t});\n\t\t}\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic weekdays?: ScheduleEntryLockWeekday[];\n\tpublic startHour?: number;\n\tpublic startMinute?: number;\n\tpublic durationHour?: number;\n\tpublic durationMinute?: number;\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tpersistSchedule.call(\n\t\t\tthis,\n\t\t\tctx,\n\t\t\tScheduleEntryLockScheduleKind.DailyRepeating,\n\t\t\tthis.userId,\n\t\t\tthis.slotId,\n\t\t\tthis.weekdays?.length\n\t\t\t\t? {\n\t\t\t\t\tweekdays: this.weekdays,\n\t\t\t\t\tstartHour: this.startHour!,\n\t\t\t\t\tstartMinute: this.startMinute!,\n\t\t\t\t\tdurationHour: this.durationHour!,\n\t\t\t\t\tdurationMinute: this.durationMinute!,\n\t\t\t\t}\n\t\t\t\t: false,\n\t\t);\n\n\t\treturn true;\n\t}\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\tif (this.weekdays) {\n\t\t\tthis.payload = Bytes.concat([\n\t\t\t\tthis.payload,\n\t\t\t\tencodeBitMask(\n\t\t\t\t\tthis.weekdays,\n\t\t\t\t\tScheduleEntryLockWeekday.Saturday,\n\t\t\t\t\tScheduleEntryLockWeekday.Sunday,\n\t\t\t\t),\n\t\t\t\tBytes.from([\n\t\t\t\t\tthis.startHour!,\n\t\t\t\t\tthis.startMinute!,\n\t\t\t\t\tthis.durationHour!,\n\t\t\t\t\tthis.durationMinute!,\n\t\t\t\t]),\n\t\t\t]);\n\t\t} else {\n\t\t\t// Not sure if this is correct, but at least we won't parse it incorrectly ourselves when setting everything to 0\n\t\t\tthis.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0)]);\n\t\t}\n\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\tlet message: MessageRecord;\n\t\tif (!this.weekdays) {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\tschedule: \"(empty)\",\n\t\t\t};\n\t\t} else {\n\t\t\tmessage = {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t\taction: \"set\",\n\t\t\t\tweekdays: this.weekdays\n\t\t\t\t\t.map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w))\n\t\t\t\t\t.join(\", \"),\n\t\t\t\t\"start time\": formatTime(\n\t\t\t\t\tthis.startHour ?? 0,\n\t\t\t\t\tthis.startMinute ?? 0,\n\t\t\t\t),\n\t\t\t\tduration: formatTime(\n\t\t\t\t\tthis.durationHour ?? 0,\n\t\t\t\t\tthis.durationMinute ?? 0,\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage,\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions =\n\tScheduleEntryLockSlotId;\n\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCDailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleGet\n\textends ScheduleEntryLockCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tScheduleEntryLockCCDailyRepeatingScheduleGetOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\t\tthis.userId = options.userId;\n\t\tthis.slotId = options.slotId;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): ScheduleEntryLockCCDailyRepeatingScheduleGet {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst userId = raw.payload[0];\n\t\tconst slotId = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tuserId,\n\t\t\tslotId,\n\t\t});\n\t}\n\n\tpublic userId: number;\n\tpublic slotId: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.userId, this.slotId]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"user ID\": this.userId,\n\t\t\t\t\"slot #\": this.slotId,\n\t\t\t},\n\t\t};\n\t}\n}\n"],
5
+ "mappings":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AA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IAGZ,YACC,SAEC;AAED,YAAM,OAAO;AACb,WAAK,SAAS,QAAQ;AACtB,WAAK,SAAS,QAAQ;IACvB;IAEO,OAAO,KACb,KACA,KAAqB;AAErB,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,SAAS,IAAI,QAAQ,CAAC;AAC5B,YAAM,SAAS,IAAI,QAAQ,CAAC;AAE5B,aAAO,IAAI,KAAK;QACf,QAAQ,IAAI;QACZ;QACA;OACA;IACF;IAEO;IACA;IAEA,UAAU,KAAsB;AACtC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,QAAQ,KAAK,MAAM,CAAC;AACpD,aAAO,MAAM,UAAU,GAAG;IAC3B;IAEO,WAAW,KAAgB;AACjC,aAAO;QACN,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACR,WAAW,KAAK;UAChB,UAAU,KAAK;;;IAGlB;;;;",
6
6
  "names": ["userId"]
7
7
  }
@@ -1,6 +1,6 @@
1
- import { CommandClasses, type MessageOrCCLogEntry, SecurityClass, type WithAddress } from "@zwave-js/core";
1
+ import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
2
+ import { CommandClasses, type GetValueDB, type MessageOrCCLogEntry, SecurityClass, type WithAddress } from "@zwave-js/core";
2
3
  import { type MaybeNotKnown, type SecurityManagers } from "@zwave-js/core/safe";
3
- import type { CCEncodingContext, CCParsingContext, GetValueDB } from "@zwave-js/host/safe";
4
4
  import { Bytes } from "@zwave-js/shared/safe";
5
5
  import { CCAPI } from "../lib/API.js";
6
6
  import { type CCRaw, CommandClass, type InterviewContext } from "../lib/CommandClass.js";
@@ -79,9 +79,7 @@ export interface Security2CCMessageEncapsulationOptions {
79
79
  }
80
80
  export declare class Security2CCMessageEncapsulation extends Security2CC {
81
81
  constructor(options: WithAddress<Security2CCMessageEncapsulationOptions>);
82
- /** @deprecated Use {@link fromAsync} instead */
83
- static from(raw: CCRaw, ctx: CCParsingContext): Security2CCMessageEncapsulation;
84
- static fromAsync(raw: CCRaw, ctx: CCParsingContext): Promise<Security2CCMessageEncapsulation>;
82
+ static from(raw: CCRaw, ctx: CCParsingContext): Promise<Security2CCMessageEncapsulation>;
85
83
  readonly securityClass?: SecurityClass;
86
84
  private key?;
87
85
  private iv?;
@@ -100,12 +98,8 @@ export declare class Security2CCMessageEncapsulation extends Security2CC {
100
98
  getSenderEI(): Uint8Array | undefined;
101
99
  /** Returns the multicast group ID if this command contains an MGRP extension */
102
100
  getMulticastGroupId(): number | undefined;
103
- /** @deprecated Use {@link maybeAddSPANExtensionAsync} instead */
104
- private maybeAddSPANExtensionSync;
105
- private maybeAddSPANExtensionAsync;
106
- /** @deprecated Use {@link serializeAsync} instead */
107
- serialize(ctx: CCEncodingContext): Bytes;
108
- serializeAsync(ctx: CCEncodingContext): Promise<Bytes>;
101
+ private maybeAddSPANExtension;
102
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
109
103
  protected computeEncapsulationOverhead(): number;
110
104
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
111
105
  }
@@ -128,7 +122,7 @@ export declare class Security2CCNonceReport extends Security2CC {
128
122
  readonly SOS: boolean;
129
123
  readonly MOS: boolean;
130
124
  readonly receiverEI?: Uint8Array;
131
- serialize(ctx: CCEncodingContext): Bytes;
125
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
132
126
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
133
127
  }
134
128
  export interface Security2CCNonceGetOptions {
@@ -139,7 +133,7 @@ export declare class Security2CCNonceGet extends Security2CC {
139
133
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCNonceGet;
140
134
  sequenceNumber: number | undefined;
141
135
  private ensureSequenceNumber;
142
- serialize(ctx: CCEncodingContext): Bytes;
136
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
143
137
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
144
138
  }
145
139
  export interface Security2CCKEXReportOptions {
@@ -159,7 +153,7 @@ export declare class Security2CCKEXReport extends Security2CC {
159
153
  readonly supportedKEXSchemes: readonly KEXSchemes[];
160
154
  readonly supportedECDHProfiles: readonly ECDHProfiles[];
161
155
  readonly requestedKeys: readonly SecurityClass[];
162
- serialize(ctx: CCEncodingContext): Bytes;
156
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
163
157
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
164
158
  }
165
159
  export declare class Security2CCKEXGet extends Security2CC {
@@ -181,7 +175,7 @@ export declare class Security2CCKEXSet extends Security2CC {
181
175
  selectedKEXScheme: KEXSchemes;
182
176
  selectedECDHProfile: ECDHProfiles;
183
177
  grantedKeys: SecurityClass[];
184
- serialize(ctx: CCEncodingContext): Bytes;
178
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
185
179
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
186
180
  }
187
181
  export interface Security2CCKEXFailOptions {
@@ -191,7 +185,7 @@ export declare class Security2CCKEXFail extends Security2CC {
191
185
  constructor(options: WithAddress<Security2CCKEXFailOptions>);
192
186
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCKEXFail;
193
187
  failType: KEXFailType;
194
- serialize(ctx: CCEncodingContext): Bytes;
188
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
195
189
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
196
190
  }
197
191
  export interface Security2CCPublicKeyReportOptions {
@@ -203,7 +197,7 @@ export declare class Security2CCPublicKeyReport extends Security2CC {
203
197
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCPublicKeyReport;
204
198
  includingNode: boolean;
205
199
  publicKey: Uint8Array;
206
- serialize(ctx: CCEncodingContext): Bytes;
200
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
207
201
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
208
202
  }
209
203
  export interface Security2CCNetworkKeyReportOptions {
@@ -215,7 +209,7 @@ export declare class Security2CCNetworkKeyReport extends Security2CC {
215
209
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCNetworkKeyReport;
216
210
  grantedKey: SecurityClass;
217
211
  networkKey: Uint8Array;
218
- serialize(ctx: CCEncodingContext): Bytes;
212
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
219
213
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
220
214
  }
221
215
  export interface Security2CCNetworkKeyGetOptions {
@@ -225,7 +219,7 @@ export declare class Security2CCNetworkKeyGet extends Security2CC {
225
219
  constructor(options: WithAddress<Security2CCNetworkKeyGetOptions>);
226
220
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCNetworkKeyGet;
227
221
  requestedKey: SecurityClass;
228
- serialize(ctx: CCEncodingContext): Bytes;
222
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
229
223
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
230
224
  }
231
225
  export declare class Security2CCNetworkKeyVerify extends Security2CC {
@@ -239,7 +233,7 @@ export declare class Security2CCTransferEnd extends Security2CC {
239
233
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCTransferEnd;
240
234
  keyVerified: boolean;
241
235
  keyRequestComplete: boolean;
242
- serialize(ctx: CCEncodingContext): Bytes;
236
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
243
237
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
244
238
  }
245
239
  export interface Security2CCCommandsSupportedReportOptions {
@@ -249,7 +243,7 @@ export declare class Security2CCCommandsSupportedReport extends Security2CC {
249
243
  constructor(options: WithAddress<Security2CCCommandsSupportedReportOptions>);
250
244
  static from(raw: CCRaw, ctx: CCParsingContext): Security2CCCommandsSupportedReport;
251
245
  readonly supportedCCs: CommandClasses[];
252
- serialize(ctx: CCEncodingContext): Bytes;
246
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
253
247
  toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
254
248
  }
255
249
  export declare class Security2CCCommandsSupportedGet extends Security2CC {