@zwave-js/cc 15.25.1 → 15.25.3

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 (314) hide show
  1. package/build/cjs/cc/AlarmSensorCC.js +15 -17
  2. package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
  3. package/build/cjs/cc/AssociationCC.d.ts +1 -1
  4. package/build/cjs/cc/AssociationCC.js +5 -2
  5. package/build/cjs/cc/AssociationCC.js.map +2 -2
  6. package/build/cjs/cc/AssociationGroupInfoCC.js +23 -18
  7. package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
  8. package/build/cjs/cc/BarrierOperatorCC.js +9 -7
  9. package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
  10. package/build/cjs/cc/BasicCC.js +3 -2
  11. package/build/cjs/cc/BasicCC.js.map +2 -2
  12. package/build/cjs/cc/BatteryCC.js +3 -2
  13. package/build/cjs/cc/BatteryCC.js.map +2 -2
  14. package/build/cjs/cc/BinarySensorCC.js +8 -6
  15. package/build/cjs/cc/BinarySensorCC.js.map +2 -2
  16. package/build/cjs/cc/BinarySwitchCC.js +3 -2
  17. package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
  18. package/build/cjs/cc/CentralSceneCC.js +9 -7
  19. package/build/cjs/cc/CentralSceneCC.js.map +2 -2
  20. package/build/cjs/cc/ClockCC.js +3 -2
  21. package/build/cjs/cc/ClockCC.js.map +2 -2
  22. package/build/cjs/cc/ColorSwitchCC.js +9 -6
  23. package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
  24. package/build/cjs/cc/ConfigurationCC.js +27 -27
  25. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  26. package/build/cjs/cc/DoorLockCC.js +49 -63
  27. package/build/cjs/cc/DoorLockCC.js.map +2 -2
  28. package/build/cjs/cc/DoorLockLoggingCC.js +3 -2
  29. package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
  30. package/build/cjs/cc/EnergyProductionCC.js +3 -2
  31. package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
  32. package/build/cjs/cc/EntryControlCC.js +5 -3
  33. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  34. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +2 -1
  35. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
  36. package/build/cjs/cc/HumidityControlModeCC.js +9 -8
  37. package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
  38. package/build/cjs/cc/HumidityControlOperatingStateCC.js +3 -2
  39. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
  40. package/build/cjs/cc/HumidityControlSetpointCC.js +19 -17
  41. package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
  42. package/build/cjs/cc/IndicatorCC.js +5 -2
  43. package/build/cjs/cc/IndicatorCC.js.map +2 -2
  44. package/build/cjs/cc/IrrigationCC.js +26 -27
  45. package/build/cjs/cc/IrrigationCC.js.map +2 -2
  46. package/build/cjs/cc/LanguageCC.js +3 -2
  47. package/build/cjs/cc/LanguageCC.js.map +2 -2
  48. package/build/cjs/cc/LockCC.js +3 -2
  49. package/build/cjs/cc/LockCC.js.map +2 -2
  50. package/build/cjs/cc/ManufacturerSpecificCC.js +4 -1
  51. package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
  52. package/build/cjs/cc/MeterCC.js +14 -13
  53. package/build/cjs/cc/MeterCC.js.map +2 -2
  54. package/build/cjs/cc/MultiChannelAssociationCC.js +5 -2
  55. package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
  56. package/build/cjs/cc/MultiChannelCC.d.ts +1 -1
  57. package/build/cjs/cc/MultiChannelCC.js +19 -22
  58. package/build/cjs/cc/MultiChannelCC.js.map +2 -2
  59. package/build/cjs/cc/MultilevelSensorCC.js +13 -8
  60. package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
  61. package/build/cjs/cc/MultilevelSwitchCC.js +5 -3
  62. package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
  63. package/build/cjs/cc/NodeNamingCC.js +3 -2
  64. package/build/cjs/cc/NodeNamingCC.js.map +2 -2
  65. package/build/cjs/cc/NotificationCC.js +11 -11
  66. package/build/cjs/cc/NotificationCC.js.map +2 -2
  67. package/build/cjs/cc/ProtectionCC.js +16 -15
  68. package/build/cjs/cc/ProtectionCC.js.map +2 -2
  69. package/build/cjs/cc/SceneControllerConfigurationCC.js +2 -1
  70. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
  71. package/build/cjs/cc/ScheduleEntryLockCC.js +2 -1
  72. package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
  73. package/build/cjs/cc/Security2CC.js +15 -24
  74. package/build/cjs/cc/Security2CC.js.map +2 -2
  75. package/build/cjs/cc/SecurityCC.js +10 -17
  76. package/build/cjs/cc/SecurityCC.js.map +2 -2
  77. package/build/cjs/cc/SoundSwitchCC.js +2 -1
  78. package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
  79. package/build/cjs/cc/ThermostatFanModeCC.js +9 -7
  80. package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
  81. package/build/cjs/cc/ThermostatFanStateCC.js +3 -2
  82. package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
  83. package/build/cjs/cc/ThermostatModeCC.js +9 -7
  84. package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
  85. package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -4
  86. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
  87. package/build/cjs/cc/ThermostatSetbackCC.js +3 -2
  88. package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
  89. package/build/cjs/cc/ThermostatSetpointCC.js +9 -5
  90. package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
  91. package/build/cjs/cc/TimeCC.js +2 -1
  92. package/build/cjs/cc/TimeCC.js.map +2 -2
  93. package/build/cjs/cc/TimeParametersCC.js +2 -1
  94. package/build/cjs/cc/TimeParametersCC.js.map +2 -2
  95. package/build/cjs/cc/UserCodeCC.js +6 -6
  96. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  97. package/build/cjs/cc/UserCredentialCC.js +5 -2
  98. package/build/cjs/cc/UserCredentialCC.js.map +2 -2
  99. package/build/cjs/cc/VersionCC.js +2 -1
  100. package/build/cjs/cc/VersionCC.js.map +2 -2
  101. package/build/cjs/cc/WakeUpCC.js +2 -1
  102. package/build/cjs/cc/WakeUpCC.js.map +2 -2
  103. package/build/cjs/cc/WindowCoveringCC.js +10 -7
  104. package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
  105. package/build/cjs/cc/ZWavePlusCC.js +2 -1
  106. package/build/cjs/cc/ZWavePlusCC.js.map +2 -2
  107. package/build/cjs/cc/_CCValues.generated.d.ts +4 -4
  108. package/build/cjs/cc/_CCValues.generated.js +2 -2
  109. package/build/cjs/cc/_CCValues.generated.js.map +1 -1
  110. package/build/cjs/cc/index.d.ts +3 -3
  111. package/build/cjs/cc/index.js.map +2 -2
  112. package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +1 -1
  113. package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +2 -2
  114. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +3 -2
  115. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
  116. package/build/cjs/lib/API.js.map +2 -2
  117. package/build/cjs/lib/CommandClass.d.ts +5 -1
  118. package/build/cjs/lib/CommandClass.js +25 -3
  119. package/build/cjs/lib/CommandClass.js.map +2 -2
  120. package/build/cjs/lib/CommandClassDecorators.d.ts +4 -4
  121. package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
  122. package/build/cjs/lib/Security2/Extension.d.ts +6 -4
  123. package/build/cjs/lib/Security2/Extension.js +22 -20
  124. package/build/cjs/lib/Security2/Extension.js.map +2 -2
  125. package/build/cjs/lib/_Types.js.map +1 -1
  126. package/build/cjs/lib/utils.js +14 -8
  127. package/build/cjs/lib/utils.js.map +2 -2
  128. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  129. package/build/esm/cc/AlarmSensorCC.js +14 -18
  130. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  131. package/build/esm/cc/AssociationCC.d.ts +1 -1
  132. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  133. package/build/esm/cc/AssociationCC.js +3 -0
  134. package/build/esm/cc/AssociationCC.js.map +1 -1
  135. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  136. package/build/esm/cc/AssociationGroupInfoCC.js +24 -22
  137. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  138. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  139. package/build/esm/cc/BarrierOperatorCC.js +8 -8
  140. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  141. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  142. package/build/esm/cc/BasicCC.js +2 -1
  143. package/build/esm/cc/BasicCC.js.map +1 -1
  144. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  145. package/build/esm/cc/BatteryCC.js +2 -1
  146. package/build/esm/cc/BatteryCC.js.map +1 -1
  147. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  148. package/build/esm/cc/BinarySensorCC.js +7 -7
  149. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  150. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  151. package/build/esm/cc/BinarySwitchCC.js +2 -1
  152. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  153. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  154. package/build/esm/cc/CentralSceneCC.js +9 -8
  155. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  156. package/build/esm/cc/ClockCC.d.ts.map +1 -1
  157. package/build/esm/cc/ClockCC.js +2 -1
  158. package/build/esm/cc/ClockCC.js.map +1 -1
  159. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  160. package/build/esm/cc/ColorSwitchCC.js +8 -7
  161. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  162. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  163. package/build/esm/cc/ConfigurationCC.js +32 -29
  164. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  165. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  166. package/build/esm/cc/DoorLockCC.js +73 -74
  167. package/build/esm/cc/DoorLockCC.js.map +1 -1
  168. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  169. package/build/esm/cc/DoorLockLoggingCC.js +2 -1
  170. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  171. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
  172. package/build/esm/cc/EnergyProductionCC.js +2 -1
  173. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  174. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  175. package/build/esm/cc/EntryControlCC.js +3 -1
  176. package/build/esm/cc/EntryControlCC.js.map +1 -1
  177. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  178. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1 -0
  179. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  180. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  181. package/build/esm/cc/HumidityControlModeCC.js +8 -9
  182. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  183. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  184. package/build/esm/cc/HumidityControlOperatingStateCC.js +2 -1
  185. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  186. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  187. package/build/esm/cc/HumidityControlSetpointCC.js +18 -23
  188. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  189. package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
  190. package/build/esm/cc/IndicatorCC.js +3 -0
  191. package/build/esm/cc/IndicatorCC.js.map +1 -1
  192. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  193. package/build/esm/cc/IrrigationCC.js +29 -24
  194. package/build/esm/cc/IrrigationCC.js.map +1 -1
  195. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  196. package/build/esm/cc/LanguageCC.js +2 -1
  197. package/build/esm/cc/LanguageCC.js.map +1 -1
  198. package/build/esm/cc/LockCC.d.ts.map +1 -1
  199. package/build/esm/cc/LockCC.js +2 -1
  200. package/build/esm/cc/LockCC.js.map +1 -1
  201. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  202. package/build/esm/cc/ManufacturerSpecificCC.js +4 -1
  203. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  204. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  205. package/build/esm/cc/MeterCC.js +15 -19
  206. package/build/esm/cc/MeterCC.js.map +1 -1
  207. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  208. package/build/esm/cc/MultiChannelAssociationCC.js +3 -0
  209. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  210. package/build/esm/cc/MultiChannelCC.d.ts +1 -1
  211. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  212. package/build/esm/cc/MultiChannelCC.js +19 -23
  213. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  214. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  215. package/build/esm/cc/MultilevelSensorCC.js +14 -19
  216. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  217. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  218. package/build/esm/cc/MultilevelSwitchCC.js +3 -1
  219. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  220. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  221. package/build/esm/cc/NodeNamingCC.js +2 -1
  222. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  223. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  224. package/build/esm/cc/NotificationCC.js +11 -14
  225. package/build/esm/cc/NotificationCC.js.map +1 -1
  226. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  227. package/build/esm/cc/ProtectionCC.js +15 -22
  228. package/build/esm/cc/ProtectionCC.js.map +1 -1
  229. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
  230. package/build/esm/cc/SceneControllerConfigurationCC.js +1 -0
  231. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  232. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  233. package/build/esm/cc/ScheduleEntryLockCC.js +1 -0
  234. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  235. package/build/esm/cc/Security2CC.d.ts.map +1 -1
  236. package/build/esm/cc/Security2CC.js +15 -32
  237. package/build/esm/cc/Security2CC.js.map +1 -1
  238. package/build/esm/cc/SecurityCC.d.ts.map +1 -1
  239. package/build/esm/cc/SecurityCC.js +10 -21
  240. package/build/esm/cc/SecurityCC.js.map +1 -1
  241. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  242. package/build/esm/cc/SoundSwitchCC.js +1 -0
  243. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  244. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  245. package/build/esm/cc/ThermostatFanModeCC.js +8 -8
  246. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  247. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  248. package/build/esm/cc/ThermostatFanStateCC.js +2 -1
  249. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  250. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  251. package/build/esm/cc/ThermostatModeCC.js +8 -8
  252. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  253. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  254. package/build/esm/cc/ThermostatOperatingStateCC.js +4 -5
  255. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  256. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
  257. package/build/esm/cc/ThermostatSetbackCC.js +2 -1
  258. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  259. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  260. package/build/esm/cc/ThermostatSetpointCC.js +8 -9
  261. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  262. package/build/esm/cc/TimeCC.d.ts.map +1 -1
  263. package/build/esm/cc/TimeCC.js +1 -0
  264. package/build/esm/cc/TimeCC.js.map +1 -1
  265. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  266. package/build/esm/cc/TimeParametersCC.js +1 -0
  267. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  268. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  269. package/build/esm/cc/UserCodeCC.js +5 -7
  270. package/build/esm/cc/UserCodeCC.js.map +1 -1
  271. package/build/esm/cc/UserCredentialCC.d.ts.map +1 -1
  272. package/build/esm/cc/UserCredentialCC.js +4 -1
  273. package/build/esm/cc/UserCredentialCC.js.map +1 -1
  274. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  275. package/build/esm/cc/VersionCC.js +1 -0
  276. package/build/esm/cc/VersionCC.js.map +1 -1
  277. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  278. package/build/esm/cc/WakeUpCC.js +1 -0
  279. package/build/esm/cc/WakeUpCC.js.map +1 -1
  280. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  281. package/build/esm/cc/WindowCoveringCC.js +9 -9
  282. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  283. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  284. package/build/esm/cc/ZWavePlusCC.js +1 -0
  285. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  286. package/build/esm/cc/_CCValues.generated.d.ts +4 -4
  287. package/build/esm/cc/_CCValues.generated.js +2 -2
  288. package/build/esm/cc/_CCValues.generated.js.map +1 -1
  289. package/build/esm/cc/index.d.ts +3 -3
  290. package/build/esm/cc/index.d.ts.map +1 -1
  291. package/build/esm/cc/index.js.map +1 -1
  292. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +1 -1
  293. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
  294. package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -1
  295. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
  296. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +2 -1
  297. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  298. package/build/esm/lib/API.js.map +1 -1
  299. package/build/esm/lib/CommandClass.d.ts +5 -1
  300. package/build/esm/lib/CommandClass.d.ts.map +1 -1
  301. package/build/esm/lib/CommandClass.js +30 -4
  302. package/build/esm/lib/CommandClass.js.map +1 -1
  303. package/build/esm/lib/CommandClassDecorators.d.ts +4 -4
  304. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
  305. package/build/esm/lib/CommandClassDecorators.js.map +1 -1
  306. package/build/esm/lib/Security2/Extension.d.ts +6 -4
  307. package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
  308. package/build/esm/lib/Security2/Extension.js +23 -21
  309. package/build/esm/lib/Security2/Extension.js.map +1 -1
  310. package/build/esm/lib/_Types.js +1 -1
  311. package/build/esm/lib/utils.d.ts.map +1 -1
  312. package/build/esm/lib/utils.js +15 -9
  313. package/build/esm/lib/utils.js.map +1 -1
  314. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src_gen/cc/ScheduleEntryLockCC.ts"],
4
- "sourcesContent": ["import * as __validateArgs from \"./ScheduleEntryLockCC._validateArgs.js\";\nconst { validateArgs_ScheduleEntryLockCCAPI_setEnabled, validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_setTimezone } = __validateArgs;\nimport { CommandClasses, type EndpointId, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type SupervisionResult, type WithAddress, ZWaveError, ZWaveErrorCodes, encodeBitMask, getDSTInfo, isUnsupervisedOrSucceeded, parseBitMask, validatePayload, } from \"@zwave-js/core\";\nimport { type AllOrNone, Bytes, formatDate, formatTime, getEnumMemberName, pick, } from \"@zwave-js/shared\";\nimport { CCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { ScheduleEntryLockCommand, type ScheduleEntryLockDailyRepeatingSchedule, ScheduleEntryLockScheduleKind, ScheduleEntryLockSetAction, type ScheduleEntryLockSlotId, type ScheduleEntryLockWeekDaySchedule, ScheduleEntryLockWeekday, type ScheduleEntryLockYearDaySchedule, type Timezone, } from \"../lib/_Types.js\";\nimport { encodeTimezone, parseTimezone } from \"../lib/serializers.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { UserCodeCC } from \"./UserCodeCC.js\";\nimport { ScheduleEntryLockCCValues } from \"./_CCValues.generated.js\";\nexport { ScheduleEntryLockCCValues };\n/** Caches information about a schedule */\nfunction persistSchedule(this: ScheduleEntryLockCC, ctx: GetValueDB, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number, schedule: ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false | undefined): void {\n const scheduleValue = ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId);\n if (schedule != undefined) {\n this.setValue(ctx, scheduleValue, schedule);\n }\n else {\n this.removeValue(ctx, scheduleValue);\n }\n}\n/** Updates the schedule kind assumed to be active for user in the cache */\nfunction setUserCodeScheduleKindCached(ctx: GetValueDB, endpoint: EndpointId, userId: number, scheduleKind: ScheduleEntryLockScheduleKind): void {\n ctx\n .getValueDB(endpoint.nodeId)\n .setValue(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index), scheduleKind);\n}\n/** Updates whether scheduling is active for one or all user(s) in the cache */\nfunction setUserCodeScheduleEnabledCached(ctx: GetValueDB, endpoint: EndpointId, userId: number | undefined, enabled: boolean): void {\n const setEnabled = (userId: number) => {\n ctx\n .getValueDB(endpoint.nodeId)\n .setValue(ScheduleEntryLockCCValues.userEnabled(userId).endpoint(endpoint.index), enabled);\n };\n if (userId == undefined) {\n // Enable/disable all users\n const numUsers = UserCodeCC.getSupportedUsersCached(ctx, endpoint)\n ?? 0;\n for (let userId = 1; userId <= numUsers; userId++) {\n setEnabled(userId);\n }\n }\n else {\n setEnabled(userId);\n }\n}\n@API(CommandClasses[\"Schedule Entry Lock\"])\nexport class ScheduleEntryLockCCAPI extends CCAPI {\n public supportsCommand(cmd: ScheduleEntryLockCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case ScheduleEntryLockCommand.EnableSet:\n case ScheduleEntryLockCommand.EnableAllSet:\n case ScheduleEntryLockCommand.WeekDayScheduleSet:\n case ScheduleEntryLockCommand.WeekDayScheduleGet:\n case ScheduleEntryLockCommand.YearDayScheduleSet:\n case ScheduleEntryLockCommand.YearDayScheduleGet:\n case ScheduleEntryLockCommand.SupportedGet:\n return true; // V1\n case ScheduleEntryLockCommand.TimeOffsetSet:\n case ScheduleEntryLockCommand.TimeOffsetGet:\n return this.version >= 2;\n case ScheduleEntryLockCommand.DailyRepeatingScheduleSet:\n case ScheduleEntryLockCommand.DailyRepeatingScheduleGet:\n return this.version >= 3;\n }\n return super.supportsCommand(cmd);\n }\n /**\n * Enables or disables schedules. If a user ID is given, that user's\n * schedules will be enabled or disabled. If no user ID is given, all schedules\n * will be affected.\n */\n @validateArgs_ScheduleEntryLockCCAPI_setEnabled()\n public async setEnabled(enabled: boolean, userId?: number): Promise<SupervisionResult | undefined> {\n let result: SupervisionResult | undefined;\n if (userId != undefined) {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.EnableSet);\n const cc = new ScheduleEntryLockCCEnableSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n userId,\n enabled,\n });\n result = await this.host.sendCommand(cc, this.commandOptions);\n }\n else {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.EnableAllSet);\n const cc = new ScheduleEntryLockCCEnableAllSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n enabled,\n });\n result = await this.host.sendCommand(cc, this.commandOptions);\n }\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Remember the new state in the cache\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, userId, enabled);\n }\n return result;\n }\n // oxlint-disable-next-line typescript/explicit-module-boundary-types\n public async getNumSlots() {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.SupportedGet);\n const cc = new ScheduleEntryLockCCSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCSupportedReport>(cc, this.commandOptions);\n if (result) {\n return pick(result, [\n \"numWeekDaySlots\",\n \"numYearDaySlots\",\n \"numDailyRepeatingSlots\",\n ]);\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule()\n public async setWeekDaySchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockWeekDaySchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.WeekDayScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC.getNumWeekDaySlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-week slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n if (schedule) {\n if (schedule.stopHour < schedule.startHour\n || schedule.stopHour === schedule.startHour\n && schedule.stopMinute <= schedule.startMinute) {\n throw new ZWaveError(`The stop time must be after the start time.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCWeekDayScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.WeekDay);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.WeekDay, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule()\n public async getWeekDaySchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockWeekDaySchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.WeekDayScheduleSet);\n const cc = new ScheduleEntryLockCCWeekDayScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCWeekDayScheduleReport>(cc, this.commandOptions);\n if (result?.weekday != undefined) {\n return {\n weekday: result.weekday,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n stopHour: result.stopHour!,\n stopMinute: result.stopMinute!,\n };\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule()\n public async setYearDaySchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockYearDaySchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.YearDayScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC.getNumYearDaySlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-year slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n if (schedule) {\n const startDate = new Date(schedule.startYear, schedule.startMonth - 1, schedule.startDay, schedule.startHour, schedule.startMinute);\n const stopDate = new Date(schedule.stopYear, schedule.stopMonth - 1, schedule.stopDay, schedule.stopHour, schedule.stopMinute);\n if (stopDate <= startDate) {\n throw new ZWaveError(`The stop date must be after the start date.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCYearDayScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.YearDay);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.YearDay, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule()\n public async getYearDaySchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockYearDaySchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.YearDayScheduleSet);\n const cc = new ScheduleEntryLockCCYearDayScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCYearDayScheduleReport>(cc, this.commandOptions);\n if (result?.startYear != undefined) {\n return {\n startYear: result.startYear,\n startMonth: result.startMonth!,\n startDay: result.startDay!,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n stopYear: result.stopYear!,\n stopMonth: result.stopMonth!,\n stopDay: result.stopDay!,\n stopHour: result.stopHour!,\n stopMinute: result.stopMinute!,\n };\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule()\n public async setDailyRepeatingSchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockDailyRepeatingSchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.DailyRepeatingScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC\n .getNumDailyRepeatingSlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported daily repeating slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCDailyRepeatingScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.DailyRepeating);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.DailyRepeating, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule()\n public async getDailyRepeatingSchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.DailyRepeatingScheduleSet);\n const cc = new ScheduleEntryLockCCDailyRepeatingScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCDailyRepeatingScheduleReport>(cc, this.commandOptions);\n if (result?.weekdays != undefined) {\n return {\n weekdays: result.weekdays,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n durationHour: result.durationHour!,\n durationMinute: result.durationMinute!,\n };\n }\n }\n public async getTimezone(): Promise<MaybeNotKnown<Timezone>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.TimeOffsetGet);\n const cc = new ScheduleEntryLockCCTimeOffsetGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCTimeOffsetReport>(cc, this.commandOptions);\n if (result) {\n return pick(result, [\"standardOffset\", \"dstOffset\"]);\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setTimezone()\n public async setTimezone(timezone: Timezone): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.TimeOffsetSet);\n const cc = new ScheduleEntryLockCCTimeOffsetSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...timezone,\n });\n return this.host.sendCommand(cc, this.commandOptions);\n }\n}\n@commandClass(CommandClasses[\"Schedule Entry Lock\"])\n@implementedVersion(3)\n@ccValues(ScheduleEntryLockCCValues)\nexport class ScheduleEntryLockCC extends CommandClass {\n declare ccCommand: ScheduleEntryLockCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Schedule Entry Lock\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Querying supported number of schedule slots...\",\n direction: \"outbound\",\n });\n const slotsResp = await api.getNumSlots();\n if (slotsResp) {\n let logMessage = `received supported number of schedule slots:\nday of week: ${slotsResp.numWeekDaySlots}\nday of year: ${slotsResp.numYearDaySlots}`;\n if (slotsResp.numDailyRepeatingSlots != undefined) {\n logMessage += `\ndaily repeating: ${slotsResp.numDailyRepeatingSlots}`;\n }\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: logMessage,\n direction: \"inbound\",\n });\n }\n // If the timezone is not configured with the Time CC, do it here\n if (api.supportsCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n && (!endpoint.supportsCC(CommandClasses.Time)\n || endpoint.getCCVersion(CommandClasses.Time) < 2)) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"setting timezone information...\",\n direction: \"outbound\",\n });\n // Set the correct timezone on this node\n const timezone = getDSTInfo();\n await api.setTimezone(timezone);\n }\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n /**\n * Returns the number of supported day-of-week slots.\n * This only works AFTER the interview process\n */\n public static getNumWeekDaySlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numWeekDaySlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns the number of supported day-of-year slots.\n * This only works AFTER the interview process\n */\n public static getNumYearDaySlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numYearDaySlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns the number of supported daily-repeating slots.\n * This only works AFTER the interview process\n */\n public static getNumDailyRepeatingSlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numDailyRepeatingSlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns whether scheduling for a given user ID (most likely) enabled. Since the Schedule Entry Lock CC\n * provides no way to query the enabled state, Z-Wave JS tracks this in its own cache.\n *\n * This only works AFTER the interview process and is likely to be wrong if a device\n * with existing schedules is queried. To be sure, disable scheduling for all users and enable\n * only the desired ones.\n */\n public static getUserCodeScheduleEnabledCached(ctx: GetValueDB, endpoint: EndpointId, userId: number): boolean {\n return !!ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.userEnabled(userId).endpoint(endpoint.index));\n }\n /**\n * Returns which scheduling kind is (most likely) enabled for a given user ID . Since the Schedule Entry Lock CC\n * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n *\n * This only works AFTER the interview process and is likely to be wrong if a device\n * with existing schedules is queried. To be sure, edit a schedule of the desired kind\n * which will automatically switch the user to that scheduling kind.\n */\n public static getUserCodeScheduleKindCached(ctx: GetValueDB, endpoint: EndpointId, userId: number): MaybeNotKnown<ScheduleEntryLockScheduleKind> {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue<ScheduleEntryLockScheduleKind>(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index));\n }\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.WeekDay, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | false>;\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.YearDay, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockYearDaySchedule | false>;\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.DailyRepeating, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule | false>;\n // Catch-all overload for applications which haven't narrowed `scheduleKind`\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false>;\n /**\n * Returns the assumed state of a schedule. Since the Schedule Entry Lock CC\n * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n *\n * A return value of `false` means the slot is empty, a return value of `undefined` means the information is not cached yet.\n *\n * This only works AFTER the interview process.\n */\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false> {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId).endpoint(endpoint.index));\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableSetOptions {\n userId: number;\n enabled: boolean;\n}\n@CCCommand(ScheduleEntryLockCommand.EnableSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCEnableSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.enabled = options.enabled;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCEnableSet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const enabled: boolean = raw.payload[1] === 0x01;\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n enabled,\n });\n }\n public userId: number;\n public enabled: boolean;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.enabled ? 0x01 : 0x00]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n action: this.enabled ? \"enable\" : \"disable\",\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableAllSetOptions {\n enabled: boolean;\n}\n@CCCommand(ScheduleEntryLockCommand.EnableAllSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableAllSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCEnableAllSetOptions>) {\n super(options);\n this.enabled = options.enabled;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCEnableAllSet {\n validatePayload(raw.payload.length >= 1);\n const enabled: boolean = raw.payload[0] === 0x01;\n return new this({\n nodeId: ctx.sourceNodeId,\n enabled,\n });\n }\n public enabled: boolean;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.enabled ? 0x01 : 0x00]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n action: this.enabled ? \"enable all\" : \"disable all\",\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCSupportedReportOptions {\n numWeekDaySlots: number;\n numYearDaySlots: number;\n numDailyRepeatingSlots?: number;\n}\n@CCCommand(ScheduleEntryLockCommand.SupportedReport)\n@ccValueProperty(\"numWeekDaySlots\", ScheduleEntryLockCCValues.numWeekDaySlots)\n@ccValueProperty(\"numYearDaySlots\", ScheduleEntryLockCCValues.numYearDaySlots)\n@ccValueProperty(\"numDailyRepeatingSlots\", ScheduleEntryLockCCValues.numDailyRepeatingSlots)\nexport class ScheduleEntryLockCCSupportedReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCSupportedReportOptions>) {\n super(options);\n this.numWeekDaySlots = options.numWeekDaySlots;\n this.numYearDaySlots = options.numYearDaySlots;\n this.numDailyRepeatingSlots = options.numDailyRepeatingSlots;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCSupportedReport {\n validatePayload(raw.payload.length >= 2);\n const numWeekDaySlots = raw.payload[0];\n const numYearDaySlots = raw.payload[1];\n let numDailyRepeatingSlots: number | undefined;\n if (raw.payload.length >= 3) {\n numDailyRepeatingSlots = raw.payload[2];\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n numWeekDaySlots,\n numYearDaySlots,\n numDailyRepeatingSlots,\n });\n }\n public numWeekDaySlots: number;\n public numYearDaySlots: number;\n public numDailyRepeatingSlots: number | undefined;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.numWeekDaySlots,\n this.numYearDaySlots,\n this.numDailyRepeatingSlots ?? 0,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n const message: MessageRecord = {\n \"no. of weekday schedule slots\": this.numWeekDaySlots,\n \"no. of day-of-year schedule slots\": this.numYearDaySlots,\n };\n if (this.numDailyRepeatingSlots != undefined) {\n message[\"no. of daily repeating schedule slots\"] =\n this.numDailyRepeatingSlots;\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n@CCCommand(ScheduleEntryLockCommand.SupportedGet)\n@expectedCCResponse(ScheduleEntryLockCCSupportedReport)\nexport class ScheduleEntryLockCCSupportedGet extends ScheduleEntryLockCC {\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCWeekDayScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockWeekDaySchedule));\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCWeekDayScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.weekday = options.weekday;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 8);\n const weekday: ScheduleEntryLockWeekday = raw.payload[3];\n const startHour = raw.payload[4];\n const startMinute = raw.payload[5];\n const stopHour = raw.payload[6];\n const stopMinute = raw.payload[7];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n weekday,\n startHour,\n startMinute,\n stopHour,\n stopMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public weekday?: ScheduleEntryLockWeekday;\n public startHour?: number;\n public startMinute?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.action,\n this.userId,\n this.slotId,\n // The report should have these fields set to 0xff\n // if the slot is erased. The specs don't mention anything\n // for the Set command, so we just assume the same is okay\n this.weekday ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekday: getEnumMemberName(ScheduleEntryLockWeekday, this.weekday!),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n \"end time\": formatTime(this.stopHour ?? 0, this.stopMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockWeekDaySchedule>;\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.weekday = options.weekday;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n let ccOptions: ScheduleEntryLockCCWeekDayScheduleReportOptions = {\n userId,\n slotId,\n };\n let weekday: ScheduleEntryLockWeekday | undefined;\n let startHour: number | undefined;\n let startMinute: number | undefined;\n let stopHour: number | undefined;\n let stopMinute: number | undefined;\n if (raw.payload.length >= 7) {\n if (raw.payload[2] !== 0xff) {\n weekday = raw.payload[2];\n }\n if (raw.payload[3] !== 0xff) {\n startHour = raw.payload[3];\n }\n if (raw.payload[4] !== 0xff) {\n startMinute = raw.payload[4];\n }\n if (raw.payload[5] !== 0xff) {\n stopHour = raw.payload[5];\n }\n if (raw.payload[6] !== 0xff) {\n stopMinute = raw.payload[6];\n }\n }\n validatePayload(weekday == undefined\n || weekday <= ScheduleEntryLockWeekday.Saturday, startHour == undefined || startHour <= 23, startMinute == undefined || startMinute <= 59, stopHour == undefined || stopHour <= 23, stopMinute == undefined || stopMinute <= 59);\n if (weekday != undefined\n && startHour != undefined\n && startMinute != undefined\n && stopHour != undefined\n && stopMinute != undefined) {\n ccOptions = {\n ...ccOptions,\n weekday,\n startHour,\n startMinute,\n stopHour,\n stopMinute,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n ...ccOptions,\n });\n }\n public userId: number;\n public slotId: number;\n public weekday?: ScheduleEntryLockWeekday;\n public startHour?: number;\n public startMinute?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.WeekDay, this.userId, this.slotId, this.weekday != undefined\n ? {\n weekday: this.weekday,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n stopHour: this.stopHour!,\n stopMinute: this.stopMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.userId,\n this.slotId,\n this.weekday ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.weekday == undefined) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n weekday: getEnumMemberName(ScheduleEntryLockWeekday, this.weekday),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n \"end time\": formatTime(this.stopHour ?? 0, this.stopMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCWeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCYearDayScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockYearDaySchedule));\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCYearDayScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.startYear = options.startYear;\n this.startMonth = options.startMonth;\n this.startDay = options.startDay;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopYear = options.stopYear;\n this.stopMonth = options.stopMonth;\n this.stopDay = options.stopDay;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 13);\n const startYear = raw.payload[3];\n const startMonth = raw.payload[4];\n const startDay = raw.payload[5];\n const startHour = raw.payload[6];\n const startMinute = raw.payload[7];\n const stopYear = raw.payload[8];\n const stopMonth = raw.payload[9];\n const stopDay = raw.payload[10];\n const stopHour = raw.payload[11];\n const stopMinute = raw.payload[12];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n startYear,\n startMonth,\n startDay,\n startHour,\n startMinute,\n stopYear,\n stopMonth,\n stopDay,\n stopHour,\n stopMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public startYear?: number;\n public startMonth?: number;\n public startDay?: number;\n public startHour?: number;\n public startMinute?: number;\n public stopYear?: number;\n public stopMonth?: number;\n public stopDay?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.action,\n this.userId,\n this.slotId,\n // The report should have these fields set to 0xff\n // if the slot is erased. The specs don't mention anything\n // for the Set command, so we just assume the same is okay\n this.startYear ?? 0xff,\n this.startMonth ?? 0xff,\n this.startDay ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopYear ?? 0xff,\n this.stopMonth ?? 0xff,\n this.stopDay ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n \"start date\": `${formatDate(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n \"end date\": `${formatDate(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockYearDaySchedule>;\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.startYear = options.startYear;\n this.startMonth = options.startMonth;\n this.startDay = options.startDay;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopYear = options.stopYear;\n this.stopMonth = options.stopMonth;\n this.stopDay = options.stopDay;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n let ccOptions: ScheduleEntryLockCCYearDayScheduleReportOptions = {\n userId,\n slotId,\n };\n let startYear: number | undefined;\n let startMonth: number | undefined;\n let startDay: number | undefined;\n let startHour: number | undefined;\n let startMinute: number | undefined;\n let stopYear: number | undefined;\n let stopMonth: number | undefined;\n let stopDay: number | undefined;\n let stopHour: number | undefined;\n let stopMinute: number | undefined;\n if (raw.payload.length >= 12) {\n if (raw.payload[2] !== 0xff) {\n startYear = raw.payload[2];\n }\n if (raw.payload[3] !== 0xff) {\n startMonth = raw.payload[3];\n }\n if (raw.payload[4] !== 0xff) {\n startDay = raw.payload[4];\n }\n if (raw.payload[5] !== 0xff) {\n startHour = raw.payload[5];\n }\n if (raw.payload[6] !== 0xff) {\n startMinute = raw.payload[6];\n }\n if (raw.payload[7] !== 0xff) {\n stopYear = raw.payload[7];\n }\n if (raw.payload[8] !== 0xff) {\n stopMonth = raw.payload[8];\n }\n if (raw.payload[9] !== 0xff) {\n stopDay = raw.payload[9];\n }\n if (raw.payload[10] !== 0xff) {\n stopHour = raw.payload[10];\n }\n if (raw.payload[11] !== 0xff) {\n stopMinute = raw.payload[11];\n }\n }\n validatePayload(startMonth == undefined\n || (startMonth >= 1 && startMonth <= 12), startDay == undefined || (startDay >= 1 && startDay <= 31), startHour == undefined || startHour <= 23, startMinute == undefined || startMinute <= 59, stopMonth == undefined || (stopMonth >= 1 && stopMonth <= 12), stopDay == undefined || (stopDay >= 1 && stopDay <= 31), stopHour == undefined || stopHour <= 23, stopMinute == undefined || stopMinute <= 59);\n if (startYear != undefined\n && startMonth != undefined\n && startDay != undefined\n && startHour != undefined\n && startMinute != undefined\n && stopYear != undefined\n && stopMonth != undefined\n && stopDay != undefined\n && stopHour != undefined\n && stopMinute != undefined) {\n ccOptions = {\n ...ccOptions,\n startYear,\n startMonth,\n startDay,\n startHour,\n startMinute,\n stopYear,\n stopMonth,\n stopDay,\n stopHour,\n stopMinute,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n ...ccOptions,\n });\n }\n public userId: number;\n public slotId: number;\n public startYear?: number;\n public startMonth?: number;\n public startDay?: number;\n public startHour?: number;\n public startMinute?: number;\n public stopYear?: number;\n public stopMonth?: number;\n public stopDay?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.YearDay, this.userId, this.slotId, this.startYear != undefined\n ? {\n startYear: this.startYear,\n startMonth: this.startMonth!,\n startDay: this.startDay!,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n stopYear: this.stopYear!,\n stopMonth: this.stopMonth!,\n stopDay: this.stopDay!,\n stopHour: this.stopHour!,\n stopMinute: this.stopMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.userId,\n this.slotId,\n this.startYear ?? 0xff,\n this.startMonth ?? 0xff,\n this.startDay ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopYear ?? 0xff,\n this.stopMonth ?? 0xff,\n this.stopDay ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.startYear !== undefined) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n \"start date\": `${formatDate(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n \"end date\": `${formatDate(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCYearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetSetOptions {\n standardOffset: number;\n dstOffset: number;\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n@useSupervision()\nexport class ScheduleEntryLockCCTimeOffsetSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCTimeOffsetSetOptions>) {\n super(options);\n this.standardOffset = options.standardOffset;\n this.dstOffset = options.dstOffset;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCTimeOffsetSet {\n const { standardOffset, dstOffset } = parseTimezone(raw.payload);\n return new this({\n nodeId: ctx.sourceNodeId,\n standardOffset,\n dstOffset,\n });\n }\n public standardOffset: number;\n public dstOffset: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = encodeTimezone({\n standardOffset: this.standardOffset,\n dstOffset: this.dstOffset,\n });\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"standard time offset\": `${this.standardOffset} minutes`,\n \"DST offset\": `${this.dstOffset} minutes`,\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetReportOptions {\n standardOffset: number;\n dstOffset: number;\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCTimeOffsetReportOptions>) {\n super(options);\n this.standardOffset = options.standardOffset;\n this.dstOffset = options.dstOffset;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCTimeOffsetReport {\n const { standardOffset, dstOffset } = parseTimezone(raw.payload);\n return new this({\n nodeId: ctx.sourceNodeId,\n standardOffset,\n dstOffset,\n });\n }\n public standardOffset: number;\n public dstOffset: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = encodeTimezone({\n standardOffset: this.standardOffset,\n dstOffset: this.dstOffset,\n });\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"standard time offset\": `${this.standardOffset} minutes`,\n \"DST offset\": `${this.dstOffset} minutes`,\n },\n };\n }\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetGet)\n@expectedCCResponse(ScheduleEntryLockCCTimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetGet extends ScheduleEntryLockCC {\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCDailyRepeatingScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockDailyRepeatingSchedule));\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCDailyRepeatingScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.weekdays = options.weekdays;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.durationHour = options.durationHour;\n this.durationMinute = options.durationMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 8);\n const weekdays: ScheduleEntryLockWeekday[] = parseBitMask(raw.payload.subarray(3, 4), ScheduleEntryLockWeekday.Sunday);\n const startHour = raw.payload[4];\n const startMinute = raw.payload[5];\n const durationHour = raw.payload[6];\n const durationMinute = raw.payload[7];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n weekdays,\n startHour,\n startMinute,\n durationHour,\n durationMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public weekdays?: ScheduleEntryLockWeekday[];\n public startHour?: number;\n public startMinute?: number;\n public durationHour?: number;\n public durationMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.action, this.userId, this.slotId]);\n if (this.action === ScheduleEntryLockSetAction.Set) {\n this.payload = Bytes.concat([\n this.payload,\n encodeBitMask(this.weekdays!, ScheduleEntryLockWeekday.Saturday, ScheduleEntryLockWeekday.Sunday),\n [\n this.startHour!,\n this.startMinute!,\n this.durationHour!,\n this.durationMinute!,\n ],\n ]);\n }\n else {\n // Not sure if this is correct\n this.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0xff)]);\n }\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekdays: this.weekdays!.map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w)).join(\", \"),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n duration: formatTime(this.durationHour ?? 0, this.durationMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockDailyRepeatingSchedule>;\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.weekdays = options.weekdays;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.durationHour = options.durationHour;\n this.durationMinute = options.durationMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n if (raw.payload.length >= 7 && raw.payload[2] !== 0) {\n // Only parse the schedule if it is present and some weekday is selected\n const weekdays: ScheduleEntryLockWeekday[] = parseBitMask(raw.payload.subarray(2, 3), ScheduleEntryLockWeekday.Sunday);\n const startHour = raw.payload[3];\n const startMinute = raw.payload[4];\n const durationHour = raw.payload[5];\n const durationMinute = raw.payload[6];\n validatePayload(startHour <= 23, startMinute <= 59, durationHour <= 23, durationMinute <= 59);\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n weekdays,\n startHour,\n startMinute,\n durationHour,\n durationMinute,\n });\n }\n else {\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n }\n public userId: number;\n public slotId: number;\n public weekdays?: ScheduleEntryLockWeekday[];\n public startHour?: number;\n public startMinute?: number;\n public durationHour?: number;\n public durationMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.DailyRepeating, this.userId, this.slotId, this.weekdays?.length\n ? {\n weekdays: this.weekdays,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n durationHour: this.durationHour!,\n durationMinute: this.durationMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n if (this.weekdays) {\n this.payload = Bytes.concat([\n this.payload,\n encodeBitMask(this.weekdays, ScheduleEntryLockWeekday.Saturday, ScheduleEntryLockWeekday.Sunday),\n [\n this.startHour!,\n this.startMinute!,\n this.durationHour!,\n this.durationMinute!,\n ],\n ]);\n }\n else {\n // Not sure if this is correct, but at least we won't parse it incorrectly ourselves when setting everything to 0\n this.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0)]);\n }\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.weekdays) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekdays: this.weekdays\n .map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w))\n .join(\", \"),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n duration: formatTime(this.durationHour ?? 0, this.durationMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCDailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,QAAQ;IAC1B;IACO,OAAO,KAAK,KAAY,KAAqB;AAChD,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,SAAS,IAAI,QAAQ,CAAC;AAC5B,YAAM,SAAS,IAAI,QAAQ,CAAC;AAC5B,aAAO,IAAI,KAAK;QACZ,QAAQ,IAAI;QACZ;QACA;OACH;IACL;IACO;IACA;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,QAAQ,KAAK,MAAM,CAAC;AACpD,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,WAAW,KAAK;UAChB,UAAU,KAAK;;;IAG3B;;;;",
4
+ "sourcesContent": ["import * as __validateArgs from \"./ScheduleEntryLockCC._validateArgs.js\";\nconst { validateArgs_ScheduleEntryLockCCAPI_setEnabled, validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_setTimezone } = __validateArgs;\nimport { CommandClasses, type EndpointId, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type SupervisionResult, type WithAddress, ZWaveError, ZWaveErrorCodes, encodeBitMask, getDSTInfo, isUnsupervisedOrSucceeded, parseBitMask, validatePayload, } from \"@zwave-js/core\";\nimport { type AllOrNone, Bytes, formatDate, formatTime, getEnumMemberName, pick, } from \"@zwave-js/shared\";\nimport { CCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { ScheduleEntryLockCommand, type ScheduleEntryLockDailyRepeatingSchedule, ScheduleEntryLockScheduleKind, ScheduleEntryLockSetAction, type ScheduleEntryLockSlotId, type ScheduleEntryLockWeekDaySchedule, ScheduleEntryLockWeekday, type ScheduleEntryLockYearDaySchedule, type Timezone, } from \"../lib/_Types.js\";\nimport { encodeTimezone, parseTimezone } from \"../lib/serializers.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { UserCodeCC } from \"./UserCodeCC.js\";\nimport { ScheduleEntryLockCCValues } from \"./_CCValues.generated.js\";\nexport { ScheduleEntryLockCCValues };\n/** Caches information about a schedule */\nfunction persistSchedule(this: ScheduleEntryLockCC, ctx: GetValueDB, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number, schedule: ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false | undefined): void {\n const scheduleValue = ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId);\n if (schedule != undefined) {\n this.setValue(ctx, scheduleValue, schedule);\n }\n else {\n this.removeValue(ctx, scheduleValue);\n }\n}\n/** Updates the schedule kind assumed to be active for user in the cache */\nfunction setUserCodeScheduleKindCached(ctx: GetValueDB, endpoint: EndpointId, userId: number, scheduleKind: ScheduleEntryLockScheduleKind): void {\n ctx\n .getValueDB(endpoint.nodeId)\n .setValue(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index), scheduleKind);\n}\n/** Updates whether scheduling is active for one or all user(s) in the cache */\nfunction setUserCodeScheduleEnabledCached(ctx: GetValueDB, endpoint: EndpointId, userId: number | undefined, enabled: boolean): void {\n const setEnabled = (userId: number) => {\n ctx\n .getValueDB(endpoint.nodeId)\n .setValue(ScheduleEntryLockCCValues.userEnabled(userId).endpoint(endpoint.index), enabled);\n };\n if (userId == undefined) {\n // Enable/disable all users\n const numUsers = UserCodeCC.getSupportedUsersCached(ctx, endpoint)\n ?? 0;\n for (let userId = 1; userId <= numUsers; userId++) {\n setEnabled(userId);\n }\n }\n else {\n setEnabled(userId);\n }\n}\n@API(CommandClasses[\"Schedule Entry Lock\"])\nexport class ScheduleEntryLockCCAPI extends CCAPI {\n public supportsCommand(cmd: ScheduleEntryLockCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case ScheduleEntryLockCommand.EnableSet:\n case ScheduleEntryLockCommand.EnableAllSet:\n case ScheduleEntryLockCommand.WeekDayScheduleSet:\n case ScheduleEntryLockCommand.WeekDayScheduleGet:\n case ScheduleEntryLockCommand.YearDayScheduleSet:\n case ScheduleEntryLockCommand.YearDayScheduleGet:\n case ScheduleEntryLockCommand.SupportedGet:\n return true; // V1\n case ScheduleEntryLockCommand.TimeOffsetSet:\n case ScheduleEntryLockCommand.TimeOffsetGet:\n return this.version >= 2;\n case ScheduleEntryLockCommand.DailyRepeatingScheduleSet:\n case ScheduleEntryLockCommand.DailyRepeatingScheduleGet:\n return this.version >= 3;\n }\n return super.supportsCommand(cmd);\n }\n /**\n * Enables or disables schedules. If a user ID is given, that user's\n * schedules will be enabled or disabled. If no user ID is given, all schedules\n * will be affected.\n */\n @validateArgs_ScheduleEntryLockCCAPI_setEnabled()\n public async setEnabled(enabled: boolean, userId?: number): Promise<SupervisionResult | undefined> {\n let result: SupervisionResult | undefined;\n if (userId != undefined) {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.EnableSet);\n const cc = new ScheduleEntryLockCCEnableSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n userId,\n enabled,\n });\n result = await this.host.sendCommand(cc, this.commandOptions);\n }\n else {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.EnableAllSet);\n const cc = new ScheduleEntryLockCCEnableAllSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n enabled,\n });\n result = await this.host.sendCommand(cc, this.commandOptions);\n }\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Remember the new state in the cache\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, userId, enabled);\n }\n return result;\n }\n // oxlint-disable-next-line typescript/explicit-module-boundary-types\n public async getNumSlots() {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.SupportedGet);\n const cc = new ScheduleEntryLockCCSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCSupportedReport>(cc, this.commandOptions);\n if (result) {\n return pick(result, [\n \"numWeekDaySlots\",\n \"numYearDaySlots\",\n \"numDailyRepeatingSlots\",\n ]);\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule()\n public async setWeekDaySchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockWeekDaySchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.WeekDayScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC.getNumWeekDaySlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-week slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n if (schedule) {\n if (schedule.stopHour < schedule.startHour\n || schedule.stopHour === schedule.startHour\n && schedule.stopMinute <= schedule.startMinute) {\n throw new ZWaveError(`The stop time must be after the start time.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCWeekDayScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.WeekDay);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.WeekDay, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule()\n public async getWeekDaySchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockWeekDaySchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.WeekDayScheduleSet);\n const cc = new ScheduleEntryLockCCWeekDayScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCWeekDayScheduleReport>(cc, this.commandOptions);\n if (result?.weekday != undefined) {\n return {\n weekday: result.weekday,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n stopHour: result.stopHour!,\n stopMinute: result.stopMinute!,\n };\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule()\n public async setYearDaySchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockYearDaySchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.YearDayScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC.getNumYearDaySlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-year slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n if (schedule) {\n const startDate = new Date(schedule.startYear, schedule.startMonth - 1, schedule.startDay, schedule.startHour, schedule.startMinute);\n const stopDate = new Date(schedule.stopYear, schedule.stopMonth - 1, schedule.stopDay, schedule.stopHour, schedule.stopMinute);\n if (stopDate <= startDate) {\n throw new ZWaveError(`The stop date must be after the start date.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCYearDayScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.YearDay);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.YearDay, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule()\n public async getYearDaySchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockYearDaySchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.YearDayScheduleSet);\n const cc = new ScheduleEntryLockCCYearDayScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCYearDayScheduleReport>(cc, this.commandOptions);\n if (result?.startYear != undefined) {\n return {\n startYear: result.startYear,\n startMonth: result.startMonth!,\n startDay: result.startDay!,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n stopYear: result.stopYear!,\n stopMonth: result.stopMonth!,\n stopDay: result.stopDay!,\n stopHour: result.stopHour!,\n stopMinute: result.stopMinute!,\n };\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule()\n public async setDailyRepeatingSchedule(slot: ScheduleEntryLockSlotId, schedule?: ScheduleEntryLockDailyRepeatingSchedule): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.DailyRepeatingScheduleSet);\n if (this.isSinglecast()) {\n const numSlots = ScheduleEntryLockCC\n .getNumDailyRepeatingSlotsCached(this.host, this.endpoint);\n if (slot.slotId < 1 || slot.slotId > numSlots) {\n throw new ZWaveError(`The schedule slot # must be between 1 and the number of supported daily repeating slots ${numSlots}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n const cc = new ScheduleEntryLockCCDailyRepeatingScheduleSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n ...(schedule\n ? {\n action: ScheduleEntryLockSetAction.Set,\n ...schedule,\n }\n : {\n action: ScheduleEntryLockSetAction.Erase,\n }),\n });\n const result = await this.host.sendCommand(cc, this.commandOptions);\n if (this.isSinglecast() && isUnsupervisedOrSucceeded(result)) {\n // Editing (but not erasing) a schedule will enable scheduling for that user\n // and switch it to the current scheduling kind\n if (!!schedule) {\n setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);\n setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, ScheduleEntryLockScheduleKind.DailyRepeating);\n }\n // And cache the schedule\n persistSchedule.call(cc, this.host, ScheduleEntryLockScheduleKind.DailyRepeating, slot.userId, slot.slotId, schedule ?? false);\n }\n return result;\n }\n @validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule()\n public async getDailyRepeatingSchedule(slot: ScheduleEntryLockSlotId): Promise<MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.DailyRepeatingScheduleSet);\n const cc = new ScheduleEntryLockCCDailyRepeatingScheduleGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...slot,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCDailyRepeatingScheduleReport>(cc, this.commandOptions);\n if (result?.weekdays != undefined) {\n return {\n weekdays: result.weekdays,\n startHour: result.startHour!,\n startMinute: result.startMinute!,\n durationHour: result.durationHour!,\n durationMinute: result.durationMinute!,\n };\n }\n }\n public async getTimezone(): Promise<MaybeNotKnown<Timezone>> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.TimeOffsetGet);\n const cc = new ScheduleEntryLockCCTimeOffsetGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const result = await this.host.sendCommand<ScheduleEntryLockCCTimeOffsetReport>(cc, this.commandOptions);\n if (result) {\n return pick(result, [\"standardOffset\", \"dstOffset\"]);\n }\n }\n @validateArgs_ScheduleEntryLockCCAPI_setTimezone()\n public async setTimezone(timezone: Timezone): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(ScheduleEntryLockCommand, ScheduleEntryLockCommand.TimeOffsetSet);\n const cc = new ScheduleEntryLockCCTimeOffsetSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n ...timezone,\n });\n return this.host.sendCommand(cc, this.commandOptions);\n }\n}\n@commandClass(CommandClasses[\"Schedule Entry Lock\"])\n@implementedVersion(3)\n@ccValues(ScheduleEntryLockCCValues)\nexport class ScheduleEntryLockCC extends CommandClass {\n declare ccCommand: ScheduleEntryLockCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Schedule Entry Lock\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n tag: \"interview\",\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Querying supported number of schedule slots...\",\n direction: \"outbound\",\n });\n const slotsResp = await api.getNumSlots();\n if (slotsResp) {\n let logMessage = `received supported number of schedule slots:\nday of week: ${slotsResp.numWeekDaySlots}\nday of year: ${slotsResp.numYearDaySlots}`;\n if (slotsResp.numDailyRepeatingSlots != undefined) {\n logMessage += `\ndaily repeating: ${slotsResp.numDailyRepeatingSlots}`;\n }\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: logMessage,\n direction: \"inbound\",\n });\n }\n // If the timezone is not configured with the Time CC, do it here\n if (api.supportsCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n && (!endpoint.supportsCC(CommandClasses.Time)\n || endpoint.getCCVersion(CommandClasses.Time) < 2)) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"setting timezone information...\",\n direction: \"outbound\",\n });\n // Set the correct timezone on this node\n const timezone = getDSTInfo();\n await api.setTimezone(timezone);\n }\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n /**\n * Returns the number of supported day-of-week slots.\n * This only works AFTER the interview process\n */\n public static getNumWeekDaySlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numWeekDaySlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns the number of supported day-of-year slots.\n * This only works AFTER the interview process\n */\n public static getNumYearDaySlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numYearDaySlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns the number of supported daily-repeating slots.\n * This only works AFTER the interview process\n */\n public static getNumDailyRepeatingSlotsCached(ctx: GetValueDB, endpoint: EndpointId): number {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.numDailyRepeatingSlots.endpoint(endpoint.index)) || 0;\n }\n /**\n * Returns whether scheduling for a given user ID (most likely) enabled. Since the Schedule Entry Lock CC\n * provides no way to query the enabled state, Z-Wave JS tracks this in its own cache.\n *\n * This only works AFTER the interview process and is likely to be wrong if a device\n * with existing schedules is queried. To be sure, disable scheduling for all users and enable\n * only the desired ones.\n */\n public static getUserCodeScheduleEnabledCached(ctx: GetValueDB, endpoint: EndpointId, userId: number): boolean {\n return !!ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.userEnabled(userId).endpoint(endpoint.index));\n }\n /**\n * Returns which scheduling kind is (most likely) enabled for a given user ID . Since the Schedule Entry Lock CC\n * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n *\n * This only works AFTER the interview process and is likely to be wrong if a device\n * with existing schedules is queried. To be sure, edit a schedule of the desired kind\n * which will automatically switch the user to that scheduling kind.\n */\n public static getUserCodeScheduleKindCached(ctx: GetValueDB, endpoint: EndpointId, userId: number): MaybeNotKnown<ScheduleEntryLockScheduleKind> {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue<ScheduleEntryLockScheduleKind>(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index));\n }\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.WeekDay, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | false>;\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.YearDay, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockYearDaySchedule | false>;\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind.DailyRepeating, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockDailyRepeatingSchedule | false>;\n // Catch-all overload for applications which haven't narrowed `scheduleKind`\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false>;\n /**\n * Returns the assumed state of a schedule. Since the Schedule Entry Lock CC\n * provides no way to query the current state, Z-Wave JS tracks this in its own cache.\n *\n * A return value of `false` means the slot is empty, a return value of `undefined` means the information is not cached yet.\n *\n * This only works AFTER the interview process.\n */\n public static getScheduleCached(ctx: GetValueDB, endpoint: EndpointId, scheduleKind: ScheduleEntryLockScheduleKind, userId: number, slotId: number): MaybeNotKnown<ScheduleEntryLockWeekDaySchedule | ScheduleEntryLockYearDaySchedule | ScheduleEntryLockDailyRepeatingSchedule | false> {\n return ctx\n .getValueDB(endpoint.nodeId)\n .getValue(ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId).endpoint(endpoint.index));\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableSetOptions {\n userId: number;\n enabled: boolean;\n}\n@CCCommand(ScheduleEntryLockCommand.EnableSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCEnableSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.enabled = options.enabled;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCEnableSet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const enabled: boolean = raw.payload[1] === 0x01;\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n enabled,\n });\n }\n public userId: number;\n public enabled: boolean;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.enabled ? 0x01 : 0x00]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n action: this.enabled ? \"enable\" : \"disable\",\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCEnableAllSetOptions {\n enabled: boolean;\n}\n@CCCommand(ScheduleEntryLockCommand.EnableAllSet)\n@useSupervision()\nexport class ScheduleEntryLockCCEnableAllSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCEnableAllSetOptions>) {\n super(options);\n this.enabled = options.enabled;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCEnableAllSet {\n validatePayload(raw.payload.length >= 1);\n const enabled: boolean = raw.payload[0] === 0x01;\n return new this({\n nodeId: ctx.sourceNodeId,\n enabled,\n });\n }\n public enabled: boolean;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.enabled ? 0x01 : 0x00]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n action: this.enabled ? \"enable all\" : \"disable all\",\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCSupportedReportOptions {\n numWeekDaySlots: number;\n numYearDaySlots: number;\n numDailyRepeatingSlots?: number;\n}\n@CCCommand(ScheduleEntryLockCommand.SupportedReport)\n@ccValueProperty(\"numWeekDaySlots\", ScheduleEntryLockCCValues.numWeekDaySlots)\n@ccValueProperty(\"numYearDaySlots\", ScheduleEntryLockCCValues.numYearDaySlots)\n@ccValueProperty(\"numDailyRepeatingSlots\", ScheduleEntryLockCCValues.numDailyRepeatingSlots)\nexport class ScheduleEntryLockCCSupportedReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCSupportedReportOptions>) {\n super(options);\n this.numWeekDaySlots = options.numWeekDaySlots;\n this.numYearDaySlots = options.numYearDaySlots;\n this.numDailyRepeatingSlots = options.numDailyRepeatingSlots;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCSupportedReport {\n validatePayload(raw.payload.length >= 2);\n const numWeekDaySlots = raw.payload[0];\n const numYearDaySlots = raw.payload[1];\n let numDailyRepeatingSlots: number | undefined;\n if (raw.payload.length >= 3) {\n numDailyRepeatingSlots = raw.payload[2];\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n numWeekDaySlots,\n numYearDaySlots,\n numDailyRepeatingSlots,\n });\n }\n public numWeekDaySlots: number;\n public numYearDaySlots: number;\n public numDailyRepeatingSlots: number | undefined;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.numWeekDaySlots,\n this.numYearDaySlots,\n this.numDailyRepeatingSlots ?? 0,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n const message: MessageRecord = {\n \"no. of weekday schedule slots\": this.numWeekDaySlots,\n \"no. of day-of-year schedule slots\": this.numYearDaySlots,\n };\n if (this.numDailyRepeatingSlots != undefined) {\n message[\"no. of daily repeating schedule slots\"] =\n this.numDailyRepeatingSlots;\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n@CCCommand(ScheduleEntryLockCommand.SupportedGet)\n@expectedCCResponse(ScheduleEntryLockCCSupportedReport)\nexport class ScheduleEntryLockCCSupportedGet extends ScheduleEntryLockCC {\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCWeekDayScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockWeekDaySchedule));\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCWeekDayScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.weekday = options.weekday;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 8);\n const weekday: ScheduleEntryLockWeekday = raw.payload[3];\n const startHour = raw.payload[4];\n const startMinute = raw.payload[5];\n const stopHour = raw.payload[6];\n const stopMinute = raw.payload[7];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n weekday,\n startHour,\n startMinute,\n stopHour,\n stopMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public weekday?: ScheduleEntryLockWeekday;\n public startHour?: number;\n public startMinute?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.action,\n this.userId,\n this.slotId,\n // The report should have these fields set to 0xff\n // if the slot is erased. The specs don't mention anything\n // for the Set command, so we just assume the same is okay\n this.weekday ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekday: getEnumMemberName(ScheduleEntryLockWeekday, this.weekday!),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n \"end time\": formatTime(this.stopHour ?? 0, this.stopMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockWeekDaySchedule>;\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.weekday = options.weekday;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n let ccOptions: ScheduleEntryLockCCWeekDayScheduleReportOptions = {\n userId,\n slotId,\n };\n let weekday: ScheduleEntryLockWeekday | undefined;\n let startHour: number | undefined;\n let startMinute: number | undefined;\n let stopHour: number | undefined;\n let stopMinute: number | undefined;\n if (raw.payload.length >= 7) {\n if (raw.payload[2] !== 0xff) {\n weekday = raw.payload[2];\n }\n if (raw.payload[3] !== 0xff) {\n startHour = raw.payload[3];\n }\n if (raw.payload[4] !== 0xff) {\n startMinute = raw.payload[4];\n }\n if (raw.payload[5] !== 0xff) {\n stopHour = raw.payload[5];\n }\n if (raw.payload[6] !== 0xff) {\n stopMinute = raw.payload[6];\n }\n }\n validatePayload(weekday == undefined\n || weekday <= ScheduleEntryLockWeekday.Saturday, startHour == undefined || startHour <= 23, startMinute == undefined || startMinute <= 59, stopHour == undefined || stopHour <= 23, stopMinute == undefined || stopMinute <= 59);\n if (weekday != undefined\n && startHour != undefined\n && startMinute != undefined\n && stopHour != undefined\n && stopMinute != undefined) {\n ccOptions = {\n ...ccOptions,\n weekday,\n startHour,\n startMinute,\n stopHour,\n stopMinute,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n ...ccOptions,\n });\n }\n public userId: number;\n public slotId: number;\n public weekday?: ScheduleEntryLockWeekday;\n public startHour?: number;\n public startMinute?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.WeekDay, this.userId, this.slotId, this.weekday != undefined\n ? {\n weekday: this.weekday,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n stopHour: this.stopHour!,\n stopMinute: this.stopMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.userId,\n this.slotId,\n this.weekday ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.weekday == undefined) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n weekday: getEnumMemberName(ScheduleEntryLockWeekday, this.weekday),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n \"end time\": formatTime(this.stopHour ?? 0, this.stopMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCWeekDayScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.WeekDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCWeekDayScheduleReport)\nexport class ScheduleEntryLockCCWeekDayScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCWeekDayScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCWeekDayScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCYearDayScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockYearDaySchedule));\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCYearDayScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.startYear = options.startYear;\n this.startMonth = options.startMonth;\n this.startDay = options.startDay;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopYear = options.stopYear;\n this.stopMonth = options.stopMonth;\n this.stopDay = options.stopDay;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 13);\n const startYear = raw.payload[3];\n const startMonth = raw.payload[4];\n const startDay = raw.payload[5];\n const startHour = raw.payload[6];\n const startMinute = raw.payload[7];\n const stopYear = raw.payload[8];\n const stopMonth = raw.payload[9];\n const stopDay = raw.payload[10];\n const stopHour = raw.payload[11];\n const stopMinute = raw.payload[12];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n startYear,\n startMonth,\n startDay,\n startHour,\n startMinute,\n stopYear,\n stopMonth,\n stopDay,\n stopHour,\n stopMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public startYear?: number;\n public startMonth?: number;\n public startDay?: number;\n public startHour?: number;\n public startMinute?: number;\n public stopYear?: number;\n public stopMonth?: number;\n public stopDay?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.action,\n this.userId,\n this.slotId,\n // The report should have these fields set to 0xff\n // if the slot is erased. The specs don't mention anything\n // for the Set command, so we just assume the same is okay\n this.startYear ?? 0xff,\n this.startMonth ?? 0xff,\n this.startDay ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopYear ?? 0xff,\n this.stopMonth ?? 0xff,\n this.stopDay ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n \"start date\": `${formatDate(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n \"end date\": `${formatDate(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockYearDaySchedule>;\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.startYear = options.startYear;\n this.startMonth = options.startMonth;\n this.startDay = options.startDay;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.stopYear = options.stopYear;\n this.stopMonth = options.stopMonth;\n this.stopDay = options.stopDay;\n this.stopHour = options.stopHour;\n this.stopMinute = options.stopMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n let ccOptions: ScheduleEntryLockCCYearDayScheduleReportOptions = {\n userId,\n slotId,\n };\n let startYear: number | undefined;\n let startMonth: number | undefined;\n let startDay: number | undefined;\n let startHour: number | undefined;\n let startMinute: number | undefined;\n let stopYear: number | undefined;\n let stopMonth: number | undefined;\n let stopDay: number | undefined;\n let stopHour: number | undefined;\n let stopMinute: number | undefined;\n if (raw.payload.length >= 12) {\n if (raw.payload[2] !== 0xff) {\n startYear = raw.payload[2];\n }\n if (raw.payload[3] !== 0xff) {\n startMonth = raw.payload[3];\n }\n if (raw.payload[4] !== 0xff) {\n startDay = raw.payload[4];\n }\n if (raw.payload[5] !== 0xff) {\n startHour = raw.payload[5];\n }\n if (raw.payload[6] !== 0xff) {\n startMinute = raw.payload[6];\n }\n if (raw.payload[7] !== 0xff) {\n stopYear = raw.payload[7];\n }\n if (raw.payload[8] !== 0xff) {\n stopMonth = raw.payload[8];\n }\n if (raw.payload[9] !== 0xff) {\n stopDay = raw.payload[9];\n }\n if (raw.payload[10] !== 0xff) {\n stopHour = raw.payload[10];\n }\n if (raw.payload[11] !== 0xff) {\n stopMinute = raw.payload[11];\n }\n }\n validatePayload(startMonth == undefined\n || (startMonth >= 1 && startMonth <= 12), startDay == undefined || (startDay >= 1 && startDay <= 31), startHour == undefined || startHour <= 23, startMinute == undefined || startMinute <= 59, stopMonth == undefined || (stopMonth >= 1 && stopMonth <= 12), stopDay == undefined || (stopDay >= 1 && stopDay <= 31), stopHour == undefined || stopHour <= 23, stopMinute == undefined || stopMinute <= 59);\n if (startYear != undefined\n && startMonth != undefined\n && startDay != undefined\n && startHour != undefined\n && startMinute != undefined\n && stopYear != undefined\n && stopMonth != undefined\n && stopDay != undefined\n && stopHour != undefined\n && stopMinute != undefined) {\n ccOptions = {\n ...ccOptions,\n startYear,\n startMonth,\n startDay,\n startHour,\n startMinute,\n stopYear,\n stopMonth,\n stopDay,\n stopHour,\n stopMinute,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n ...ccOptions,\n });\n }\n public userId: number;\n public slotId: number;\n public startYear?: number;\n public startMonth?: number;\n public startDay?: number;\n public startHour?: number;\n public startMinute?: number;\n public stopYear?: number;\n public stopMonth?: number;\n public stopDay?: number;\n public stopHour?: number;\n public stopMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.YearDay, this.userId, this.slotId, this.startYear != undefined\n ? {\n startYear: this.startYear,\n startMonth: this.startMonth!,\n startDay: this.startDay!,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n stopYear: this.stopYear!,\n stopMonth: this.stopMonth!,\n stopDay: this.stopDay!,\n stopHour: this.stopHour!,\n stopMinute: this.stopMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.userId,\n this.slotId,\n this.startYear ?? 0xff,\n this.startMonth ?? 0xff,\n this.startDay ?? 0xff,\n this.startHour ?? 0xff,\n this.startMinute ?? 0xff,\n this.stopYear ?? 0xff,\n this.stopMonth ?? 0xff,\n this.stopDay ?? 0xff,\n this.stopHour ?? 0xff,\n this.stopMinute ?? 0xff,\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.startYear !== undefined) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n \"start date\": `${formatDate(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${formatTime(this.startHour ?? 0, this.startMinute ?? 0)}`,\n \"end date\": `${formatDate(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${formatTime(this.stopHour ?? 0, this.stopMinute ?? 0)}`,\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCYearDayScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.YearDayScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCYearDayScheduleReport)\nexport class ScheduleEntryLockCCYearDayScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCYearDayScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCYearDayScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetSetOptions {\n standardOffset: number;\n dstOffset: number;\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetSet)\n@useSupervision()\nexport class ScheduleEntryLockCCTimeOffsetSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCTimeOffsetSetOptions>) {\n super(options);\n this.standardOffset = options.standardOffset;\n this.dstOffset = options.dstOffset;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCTimeOffsetSet {\n const { standardOffset, dstOffset } = parseTimezone(raw.payload);\n return new this({\n nodeId: ctx.sourceNodeId,\n standardOffset,\n dstOffset,\n });\n }\n public standardOffset: number;\n public dstOffset: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = encodeTimezone({\n standardOffset: this.standardOffset,\n dstOffset: this.dstOffset,\n });\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"standard time offset\": `${this.standardOffset} minutes`,\n \"DST offset\": `${this.dstOffset} minutes`,\n },\n };\n }\n}\n// @publicAPI\nexport interface ScheduleEntryLockCCTimeOffsetReportOptions {\n standardOffset: number;\n dstOffset: number;\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCTimeOffsetReportOptions>) {\n super(options);\n this.standardOffset = options.standardOffset;\n this.dstOffset = options.dstOffset;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCTimeOffsetReport {\n const { standardOffset, dstOffset } = parseTimezone(raw.payload);\n return new this({\n nodeId: ctx.sourceNodeId,\n standardOffset,\n dstOffset,\n });\n }\n public standardOffset: number;\n public dstOffset: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = encodeTimezone({\n standardOffset: this.standardOffset,\n dstOffset: this.dstOffset,\n });\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"standard time offset\": `${this.standardOffset} minutes`,\n \"DST offset\": `${this.dstOffset} minutes`,\n },\n };\n }\n}\n@CCCommand(ScheduleEntryLockCommand.TimeOffsetGet)\n@expectedCCResponse(ScheduleEntryLockCCTimeOffsetReport)\nexport class ScheduleEntryLockCCTimeOffsetGet extends ScheduleEntryLockCC {\n}\n/** @publicAPI */\nexport type ScheduleEntryLockCCDailyRepeatingScheduleSetOptions = ScheduleEntryLockSlotId & ({\n action: ScheduleEntryLockSetAction.Erase;\n} | ({\n action: ScheduleEntryLockSetAction.Set;\n} & ScheduleEntryLockDailyRepeatingSchedule));\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleSet)\n@useSupervision()\nexport class ScheduleEntryLockCCDailyRepeatingScheduleSet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleSetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.action = options.action;\n if (options.action === ScheduleEntryLockSetAction.Set) {\n this.weekdays = options.weekdays;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.durationHour = options.durationHour;\n this.durationMinute = options.durationMinute;\n }\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleSet {\n validatePayload(raw.payload.length >= 3);\n const action: ScheduleEntryLockSetAction = raw.payload[0];\n validatePayload(action === ScheduleEntryLockSetAction.Set\n || action === ScheduleEntryLockSetAction.Erase);\n const userId = raw.payload[1];\n const slotId = raw.payload[2];\n if (action !== ScheduleEntryLockSetAction.Set) {\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n });\n }\n validatePayload(raw.payload.length >= 8);\n const weekdays: ScheduleEntryLockWeekday[] = parseBitMask(raw.payload.subarray(3, 4), ScheduleEntryLockWeekday.Sunday);\n const startHour = raw.payload[4];\n const startMinute = raw.payload[5];\n const durationHour = raw.payload[6];\n const durationMinute = raw.payload[7];\n return new this({\n nodeId: ctx.sourceNodeId,\n action,\n userId,\n slotId,\n weekdays,\n startHour,\n startMinute,\n durationHour,\n durationMinute,\n });\n }\n public userId: number;\n public slotId: number;\n public action: ScheduleEntryLockSetAction;\n public weekdays?: ScheduleEntryLockWeekday[];\n public startHour?: number;\n public startMinute?: number;\n public durationHour?: number;\n public durationMinute?: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.action, this.userId, this.slotId]);\n if (this.action === ScheduleEntryLockSetAction.Set) {\n this.payload = Bytes.concat([\n this.payload,\n encodeBitMask(this.weekdays!, ScheduleEntryLockWeekday.Saturday, ScheduleEntryLockWeekday.Sunday),\n [\n this.startHour!,\n this.startMinute!,\n this.durationHour!,\n this.durationMinute!,\n ],\n ]);\n }\n else {\n // Not sure if this is correct\n this.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0xff)]);\n }\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (this.action === ScheduleEntryLockSetAction.Erase) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"erase\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekdays: this.weekdays!.map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w)).join(\", \"),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n duration: formatTime(this.durationHour ?? 0, this.durationMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleReportOptions = ScheduleEntryLockSlotId & AllOrNone<ScheduleEntryLockDailyRepeatingSchedule>;\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleReport extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleReportOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n this.weekdays = options.weekdays;\n this.startHour = options.startHour;\n this.startMinute = options.startMinute;\n this.durationHour = options.durationHour;\n this.durationMinute = options.durationMinute;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleReport {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n if (raw.payload.length >= 7 && raw.payload[2] !== 0) {\n // Only parse the schedule if it is present and some weekday is selected\n const weekdays: ScheduleEntryLockWeekday[] = parseBitMask(raw.payload.subarray(2, 3), ScheduleEntryLockWeekday.Sunday);\n const startHour = raw.payload[3];\n const startMinute = raw.payload[4];\n const durationHour = raw.payload[5];\n const durationMinute = raw.payload[6];\n validatePayload(startHour <= 23, startMinute <= 59, durationHour <= 23, durationMinute <= 59);\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n weekdays,\n startHour,\n startMinute,\n durationHour,\n durationMinute,\n });\n }\n else {\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n }\n public userId: number;\n public slotId: number;\n public weekdays?: ScheduleEntryLockWeekday[];\n public startHour?: number;\n public startMinute?: number;\n public durationHour?: number;\n public durationMinute?: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n persistSchedule.call(this, ctx, ScheduleEntryLockScheduleKind.DailyRepeating, this.userId, this.slotId, this.weekdays?.length\n ? {\n weekdays: this.weekdays,\n startHour: this.startHour!,\n startMinute: this.startMinute!,\n durationHour: this.durationHour!,\n durationMinute: this.durationMinute!,\n }\n : false);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n if (this.weekdays) {\n this.payload = Bytes.concat([\n this.payload,\n encodeBitMask(this.weekdays, ScheduleEntryLockWeekday.Saturday, ScheduleEntryLockWeekday.Sunday),\n [\n this.startHour!,\n this.startMinute!,\n this.durationHour!,\n this.durationMinute!,\n ],\n ]);\n }\n else {\n // Not sure if this is correct, but at least we won't parse it incorrectly ourselves when setting everything to 0\n this.payload = Bytes.concat([this.payload, Bytes.alloc(5, 0)]);\n }\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.weekdays) {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n schedule: \"(empty)\",\n };\n }\n else {\n message = {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n action: \"set\",\n weekdays: this.weekdays\n .map((w) => getEnumMemberName(ScheduleEntryLockWeekday, w))\n .join(\", \"),\n \"start time\": formatTime(this.startHour ?? 0, this.startMinute ?? 0),\n duration: formatTime(this.durationHour ?? 0, this.durationMinute ?? 0),\n };\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport type ScheduleEntryLockCCDailyRepeatingScheduleGetOptions = ScheduleEntryLockSlotId;\n@CCCommand(ScheduleEntryLockCommand.DailyRepeatingScheduleGet)\n@expectedCCResponse(ScheduleEntryLockCCDailyRepeatingScheduleReport)\nexport class ScheduleEntryLockCCDailyRepeatingScheduleGet extends ScheduleEntryLockCC {\n public constructor(options: WithAddress<ScheduleEntryLockCCDailyRepeatingScheduleGetOptions>) {\n super(options);\n this.userId = options.userId;\n this.slotId = options.slotId;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): ScheduleEntryLockCCDailyRepeatingScheduleGet {\n validatePayload(raw.payload.length >= 2);\n const userId = raw.payload[0];\n const slotId = raw.payload[1];\n return new this({\n nodeId: ctx.sourceNodeId,\n userId,\n slotId,\n });\n }\n public userId: number;\n public slotId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.userId, this.slotId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"user ID\": this.userId,\n \"slot #\": this.slotId,\n },\n };\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAAiT;AACjT,oBAAwF;AACxF,iBAAsB;AACtB,0BAA4F;AAC5F,oCAAiI;AAEjI,mBAAwS;AACxS,yBAA8C;AAE9C,wBAA2B;AAC3B,gCAA0C;AAX1C,MAAM,EAAE,gDAAgD,wDAAwD,wDAAwD,wDAAwD,wDAAwD,+DAA+D,+DAA+D,gDAA+C,IAAK;AAc1c,SAAS,gBAA2C,KAAiB,cAA6C,QAAgB,QAAgB,UAA2I;AACzR,QAAM,gBAAgB,oDAA0B,SAAS,cAAc,QAAQ,MAAM;AACrF,MAAI,YAAY,QAAW;AACvB,SAAK,SAAS,KAAK,eAAe,QAAQ;EAC9C,OACK;AACD,SAAK,YAAY,KAAK,aAAa;EACvC;AACJ;AARS;AAUT,SAAS,8BAA8B,KAAiB,UAAsB,QAAgB,cAA2C;AACrI,MACK,WAAW,SAAS,MAAM,EAC1B,SAAS,oDAA0B,aAAa,M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point(ctx);
606
606
  const api = import_API.CCAPI.create(import_core.CommandClasses["Security 2"], ctx, endpoint).withOptions({
607
- priority: import_core.MessagePriority.NodeQuery
607
+ priority: import_core.MessagePriority.NodeQuery,
608
+ tag: "interview"
608
609
  });
609
610
  const secClass = node.getHighestSecurityClass();
610
611
  let hasReceivedSecureCommands = false;
@@ -703,16 +704,14 @@ let Security2CC = (() => {
703
704
  }
704
705
  if (!hasReceivedSecureCommands && supportedCCs.length > 0) {
705
706
  hasReceivedSecureCommands = true;
706
- const logLines = [
707
- `received secure commands (${(0, import_shared.getEnumMemberName)(import_core.SecurityClass, secClass2)})`,
708
- "supported CCs:"
709
- ];
710
- for (const cc of supportedCCs) {
711
- logLines.push(`\xB7 ${(0, import_core.getCCName)(cc)}`);
712
- }
713
707
  ctx.logNode(node.id, {
714
708
  endpoint: endpoint.index,
715
- message: logLines.join("\n"),
709
+ message: (0, import_core.logText)([
710
+ `received secure commands (${(0, import_shared.getEnumMemberName)(import_core.SecurityClass, secClass2)})`,
711
+ "supported CCs:"
712
+ ], {
713
+ nested: (0, import_core.logList)(supportedCCs.map((cc) => (0, import_core.getCCName)(cc)))
714
+ }),
716
715
  direction: "inbound"
717
716
  });
718
717
  for (const cc of supportedCCs) {
@@ -948,7 +947,7 @@ let Security2CCMessageEncapsulation = (() => {
948
947
  iv,
949
948
  securityClass: decryptionSecurityClass
950
949
  } = await decrypt());
951
- if (!!authOK && !!plaintext)
950
+ if (authOK && !!plaintext)
952
951
  break;
953
952
  if (!!getSenderEI(extensions))
954
953
  break;
@@ -1128,9 +1127,6 @@ let Security2CCMessageEncapsulation = (() => {
1128
1127
  const message = {
1129
1128
  "sequence number": this.sequenceNumber ?? "(not set)"
1130
1129
  };
1131
- if (this.extensions.length > 0) {
1132
- message.extensions = this.extensions.map((e) => e.toLogEntry()).join("");
1133
- }
1134
1130
  if (process.env.NODE_ENV === "test" || process.env.NODE_ENV === "development") {
1135
1131
  if (this.key) {
1136
1132
  message.key = (0, import_shared.buffer2hex)(this.key);
@@ -1155,7 +1151,7 @@ let Security2CCMessageEncapsulation = (() => {
1155
1151
  }
1156
1152
  return {
1157
1153
  ...super.toLogEntry(ctx),
1158
- message
1154
+ message: (0, import_core.logDict)(message, this.extensions.map((e) => e.toLogEntry()))
1159
1155
  };
1160
1156
  }
1161
1157
  };
@@ -1385,13 +1381,10 @@ let Security2CCKEXReport = (() => {
1385
1381
  ...super.toLogEntry(ctx),
1386
1382
  message: {
1387
1383
  echo: this.echo,
1388
- "supported schemes": this.supportedKEXSchemes.map((s) => `
1389
- \xB7 ${(0, import_shared.getEnumMemberName)(import_shared2.KEXSchemes, s)}`).join(""),
1390
- "supported ECDH profiles": this.supportedECDHProfiles.map((s) => `
1391
- \xB7 ${(0, import_shared.getEnumMemberName)(import_shared2.ECDHProfiles, s)}`).join(""),
1384
+ "supported schemes": (0, import_core.logList)(this.supportedKEXSchemes.map((s) => (0, import_shared.getEnumMemberName)(import_shared2.KEXSchemes, s))),
1385
+ "supported ECDH profiles": (0, import_core.logList)(this.supportedECDHProfiles.map((s) => (0, import_shared.getEnumMemberName)(import_shared2.ECDHProfiles, s))),
1392
1386
  "CSA requested": this.requestCSA,
1393
- "requested security classes": this.requestedKeys.map((s) => `
1394
- \xB7 ${(0, import_shared.getEnumMemberName)(import_core.SecurityClass, s)}`).join("")
1387
+ "requested security classes": (0, import_core.logList)(this.requestedKeys.map((s) => (0, import_shared.getEnumMemberName)(import_core.SecurityClass, s)))
1395
1388
  }
1396
1389
  };
1397
1390
  }
@@ -1517,8 +1510,7 @@ let Security2CCKEXSet = (() => {
1517
1510
  "selected scheme": (0, import_shared.getEnumMemberName)(import_shared2.KEXSchemes, this.selectedKEXScheme),
1518
1511
  "selected ECDH profile": (0, import_shared.getEnumMemberName)(import_shared2.ECDHProfiles, this.selectedECDHProfile),
1519
1512
  "CSA permitted": this.permitCSA,
1520
- "granted security classes": this.grantedKeys.map((s) => `
1521
- \xB7 ${(0, import_shared.getEnumMemberName)(import_core.SecurityClass, s)}`).join("")
1513
+ "granted security classes": (0, import_core.logList)(this.grantedKeys.map((s) => (0, import_shared.getEnumMemberName)(import_core.SecurityClass, s)))
1522
1514
  }
1523
1515
  };
1524
1516
  }
@@ -1851,8 +1843,7 @@ let Security2CCCommandsSupportedReport = (() => {
1851
1843
  return {
1852
1844
  ...super.toLogEntry(ctx),
1853
1845
  message: {
1854
- "supported CCs": this.supportedCCs.map((cc) => (0, import_core.getCCName)(cc)).map((cc) => `
1855
- \xB7 ${cc}`).join("")
1846
+ "supported CCs": (0, import_core.logList)(this.supportedCCs.map((cc) => (0, import_core.getCCName)(cc)))
1856
1847
  }
1857
1848
  };
1858
1849
  }