@zwave-js/cc 9.3.1-0-pr-4662-79458fb

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 (297) hide show
  1. package/build/cc/AlarmSensorCC.d.ts +54 -0
  2. package/build/cc/AlarmSensorCC.d.ts.map +1 -0
  3. package/build/cc/AlarmSensorCC.js +378 -0
  4. package/build/cc/AlarmSensorCC.js.map +1 -0
  5. package/build/cc/AssociationCC.d.ts +123 -0
  6. package/build/cc/AssociationCC.d.ts.map +1 -0
  7. package/build/cc/AssociationCC.js +615 -0
  8. package/build/cc/AssociationCC.js.map +1 -0
  9. package/build/cc/AssociationGroupInfoCC.d.ts +97 -0
  10. package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -0
  11. package/build/cc/AssociationGroupInfoCC.js +530 -0
  12. package/build/cc/AssociationGroupInfoCC.js.map +1 -0
  13. package/build/cc/BarrierOperatorCC.d.ts +75 -0
  14. package/build/cc/BarrierOperatorCC.d.ts.map +1 -0
  15. package/build/cc/BarrierOperatorCC.js +492 -0
  16. package/build/cc/BarrierOperatorCC.js.map +1 -0
  17. package/build/cc/BasicCC.d.ts +51 -0
  18. package/build/cc/BasicCC.d.ts.map +1 -0
  19. package/build/cc/BasicCC.js +344 -0
  20. package/build/cc/BasicCC.js.map +1 -0
  21. package/build/cc/BatteryCC.d.ts +56 -0
  22. package/build/cc/BatteryCC.d.ts.map +1 -0
  23. package/build/cc/BatteryCC.js +417 -0
  24. package/build/cc/BatteryCC.js.map +1 -0
  25. package/build/cc/BinarySensorCC.d.ts +52 -0
  26. package/build/cc/BinarySensorCC.d.ts.map +1 -0
  27. package/build/cc/BinarySensorCC.js +321 -0
  28. package/build/cc/BinarySensorCC.js.map +1 -0
  29. package/build/cc/BinarySwitchCC.d.ts +55 -0
  30. package/build/cc/BinarySwitchCC.d.ts.map +1 -0
  31. package/build/cc/BinarySwitchCC.js +327 -0
  32. package/build/cc/BinarySwitchCC.js.map +1 -0
  33. package/build/cc/CRC16CC.d.ts +28 -0
  34. package/build/cc/CRC16CC.d.ts.map +1 -0
  35. package/build/cc/CRC16CC.js +109 -0
  36. package/build/cc/CRC16CC.js.map +1 -0
  37. package/build/cc/CentralSceneCC.d.ts +69 -0
  38. package/build/cc/CentralSceneCC.d.ts.map +1 -0
  39. package/build/cc/CentralSceneCC.js +443 -0
  40. package/build/cc/CentralSceneCC.js.map +1 -0
  41. package/build/cc/ClimateControlScheduleCC.d.ts +78 -0
  42. package/build/cc/ClimateControlScheduleCC.d.ts.map +1 -0
  43. package/build/cc/ClimateControlScheduleCC.js +417 -0
  44. package/build/cc/ClimateControlScheduleCC.js.map +1 -0
  45. package/build/cc/ClockCC.d.ts +40 -0
  46. package/build/cc/ClockCC.d.ts.map +1 -0
  47. package/build/cc/ClockCC.js +185 -0
  48. package/build/cc/ClockCC.js.map +1 -0
  49. package/build/cc/ColorSwitchCC.d.ts +98 -0
  50. package/build/cc/ColorSwitchCC.d.ts.map +1 -0
  51. package/build/cc/ColorSwitchCC.js +1045 -0
  52. package/build/cc/ColorSwitchCC.js.map +1 -0
  53. package/build/cc/ConfigurationCC.d.ts +315 -0
  54. package/build/cc/ConfigurationCC.d.ts.map +1 -0
  55. package/build/cc/ConfigurationCC.js +2257 -0
  56. package/build/cc/ConfigurationCC.js.map +1 -0
  57. package/build/cc/DeviceResetLocallyCC.d.ts +9 -0
  58. package/build/cc/DeviceResetLocallyCC.d.ts.map +1 -0
  59. package/build/cc/DeviceResetLocallyCC.js +28 -0
  60. package/build/cc/DeviceResetLocallyCC.js.map +1 -0
  61. package/build/cc/DoorLockCC.d.ts +116 -0
  62. package/build/cc/DoorLockCC.d.ts.map +1 -0
  63. package/build/cc/DoorLockCC.js +1112 -0
  64. package/build/cc/DoorLockCC.js.map +1 -0
  65. package/build/cc/DoorLockLoggingCC.d.ts +41 -0
  66. package/build/cc/DoorLockLoggingCC.d.ts.map +1 -0
  67. package/build/cc/DoorLockLoggingCC.js +288 -0
  68. package/build/cc/DoorLockLoggingCC.js.map +1 -0
  69. package/build/cc/EntryControlCC.d.ts +71 -0
  70. package/build/cc/EntryControlCC.d.ts.map +1 -0
  71. package/build/cc/EntryControlCC.js +492 -0
  72. package/build/cc/EntryControlCC.js.map +1 -0
  73. package/build/cc/FirmwareUpdateMetaDataCC.d.ts +148 -0
  74. package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
  75. package/build/cc/FirmwareUpdateMetaDataCC.js +727 -0
  76. package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
  77. package/build/cc/HailCC.d.ts +6 -0
  78. package/build/cc/HailCC.d.ts.map +1 -0
  79. package/build/cc/HailCC.js +23 -0
  80. package/build/cc/HailCC.js.map +1 -0
  81. package/build/cc/HumidityControlModeCC.d.ts +47 -0
  82. package/build/cc/HumidityControlModeCC.d.ts.map +1 -0
  83. package/build/cc/HumidityControlModeCC.js +288 -0
  84. package/build/cc/HumidityControlModeCC.js.map +1 -0
  85. package/build/cc/HumidityControlOperatingStateCC.d.ts +24 -0
  86. package/build/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
  87. package/build/cc/HumidityControlOperatingStateCC.js +129 -0
  88. package/build/cc/HumidityControlOperatingStateCC.js.map +1 -0
  89. package/build/cc/HumidityControlSetpointCC.d.ts +103 -0
  90. package/build/cc/HumidityControlSetpointCC.d.ts.map +1 -0
  91. package/build/cc/HumidityControlSetpointCC.js +626 -0
  92. package/build/cc/HumidityControlSetpointCC.js.map +1 -0
  93. package/build/cc/IndicatorCC.d.ts +88 -0
  94. package/build/cc/IndicatorCC.d.ts.map +1 -0
  95. package/build/cc/IndicatorCC.js +758 -0
  96. package/build/cc/IndicatorCC.js.map +1 -0
  97. package/build/cc/IrrigationCC.d.ts +278 -0
  98. package/build/cc/IrrigationCC.d.ts.map +1 -0
  99. package/build/cc/IrrigationCC.js +2062 -0
  100. package/build/cc/IrrigationCC.js.map +1 -0
  101. package/build/cc/LanguageCC.d.ts +41 -0
  102. package/build/cc/LanguageCC.d.ts.map +1 -0
  103. package/build/cc/LanguageCC.js +220 -0
  104. package/build/cc/LanguageCC.js.map +1 -0
  105. package/build/cc/LockCC.d.ts +41 -0
  106. package/build/cc/LockCC.d.ts.map +1 -0
  107. package/build/cc/LockCC.js +185 -0
  108. package/build/cc/LockCC.js.map +1 -0
  109. package/build/cc/ManufacturerProprietaryCC.d.ts +31 -0
  110. package/build/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
  111. package/build/cc/ManufacturerProprietaryCC.js +275 -0
  112. package/build/cc/ManufacturerProprietaryCC.js.map +1 -0
  113. package/build/cc/ManufacturerSpecificCC.d.ts +59 -0
  114. package/build/cc/ManufacturerSpecificCC.d.ts.map +1 -0
  115. package/build/cc/ManufacturerSpecificCC.js +285 -0
  116. package/build/cc/ManufacturerSpecificCC.js.map +1 -0
  117. package/build/cc/MeterCC.d.ts +100 -0
  118. package/build/cc/MeterCC.d.ts.map +1 -0
  119. package/build/cc/MeterCC.js +820 -0
  120. package/build/cc/MeterCC.js.map +1 -0
  121. package/build/cc/MultiChannelAssociationCC.d.ts +127 -0
  122. package/build/cc/MultiChannelAssociationCC.d.ts.map +1 -0
  123. package/build/cc/MultiChannelAssociationCC.js +883 -0
  124. package/build/cc/MultiChannelAssociationCC.js.map +1 -0
  125. package/build/cc/MultiChannelCC.d.ts +164 -0
  126. package/build/cc/MultiChannelCC.d.ts.map +1 -0
  127. package/build/cc/MultiChannelCC.js +1004 -0
  128. package/build/cc/MultiChannelCC.js.map +1 -0
  129. package/build/cc/MultiCommandCC.d.ts +28 -0
  130. package/build/cc/MultiCommandCC.d.ts.map +1 -0
  131. package/build/cc/MultiCommandCC.js +137 -0
  132. package/build/cc/MultiCommandCC.js.map +1 -0
  133. package/build/cc/MultilevelSensorCC.d.ts +83 -0
  134. package/build/cc/MultilevelSensorCC.d.ts.map +1 -0
  135. package/build/cc/MultilevelSensorCC.js +633 -0
  136. package/build/cc/MultilevelSensorCC.js.map +1 -0
  137. package/build/cc/MultilevelSwitchCC.d.ts +86 -0
  138. package/build/cc/MultilevelSwitchCC.d.ts.map +1 -0
  139. package/build/cc/MultilevelSwitchCC.js +774 -0
  140. package/build/cc/MultilevelSwitchCC.js.map +1 -0
  141. package/build/cc/NoOperationCC.d.ts +17 -0
  142. package/build/cc/NoOperationCC.d.ts.map +1 -0
  143. package/build/cc/NoOperationCC.js +50 -0
  144. package/build/cc/NoOperationCC.js.map +1 -0
  145. package/build/cc/NodeNamingCC.d.ts +57 -0
  146. package/build/cc/NodeNamingCC.d.ts.map +1 -0
  147. package/build/cc/NodeNamingCC.js +313 -0
  148. package/build/cc/NodeNamingCC.js.map +1 -0
  149. package/build/cc/NotificationCC.d.ts +127 -0
  150. package/build/cc/NotificationCC.d.ts.map +1 -0
  151. package/build/cc/NotificationCC.js +1193 -0
  152. package/build/cc/NotificationCC.js.map +1 -0
  153. package/build/cc/PowerlevelCC.d.ts +63 -0
  154. package/build/cc/PowerlevelCC.d.ts.map +1 -0
  155. package/build/cc/PowerlevelCC.js +262 -0
  156. package/build/cc/PowerlevelCC.js.map +1 -0
  157. package/build/cc/ProtectionCC.d.ts +94 -0
  158. package/build/cc/ProtectionCC.d.ts.map +1 -0
  159. package/build/cc/ProtectionCC.js +630 -0
  160. package/build/cc/ProtectionCC.js.map +1 -0
  161. package/build/cc/SceneActivationCC.d.ts +34 -0
  162. package/build/cc/SceneActivationCC.d.ts.map +1 -0
  163. package/build/cc/SceneActivationCC.js +170 -0
  164. package/build/cc/SceneActivationCC.js.map +1 -0
  165. package/build/cc/SceneActuatorConfigurationCC.d.ts +52 -0
  166. package/build/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
  167. package/build/cc/SceneActuatorConfigurationCC.js +368 -0
  168. package/build/cc/SceneActuatorConfigurationCC.js.map +1 -0
  169. package/build/cc/SceneControllerConfigurationCC.d.ts +61 -0
  170. package/build/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
  171. package/build/cc/SceneControllerConfigurationCC.js +444 -0
  172. package/build/cc/SceneControllerConfigurationCC.js.map +1 -0
  173. package/build/cc/Security2CC.d.ts +213 -0
  174. package/build/cc/Security2CC.d.ts.map +1 -0
  175. package/build/cc/Security2CC.js +1124 -0
  176. package/build/cc/Security2CC.js.map +1 -0
  177. package/build/cc/SecurityCC.d.ts +109 -0
  178. package/build/cc/SecurityCC.d.ts.map +1 -0
  179. package/build/cc/SecurityCC.js +609 -0
  180. package/build/cc/SecurityCC.js.map +1 -0
  181. package/build/cc/SoundSwitchCC.d.ts +87 -0
  182. package/build/cc/SoundSwitchCC.d.ts.map +1 -0
  183. package/build/cc/SoundSwitchCC.js +548 -0
  184. package/build/cc/SoundSwitchCC.js.map +1 -0
  185. package/build/cc/SupervisionCC.d.ts +63 -0
  186. package/build/cc/SupervisionCC.d.ts.map +1 -0
  187. package/build/cc/SupervisionCC.js +239 -0
  188. package/build/cc/SupervisionCC.js.map +1 -0
  189. package/build/cc/ThermostatFanModeCC.d.ts +53 -0
  190. package/build/cc/ThermostatFanModeCC.d.ts.map +1 -0
  191. package/build/cc/ThermostatFanModeCC.js +359 -0
  192. package/build/cc/ThermostatFanModeCC.js.map +1 -0
  193. package/build/cc/ThermostatFanStateCC.d.ts +24 -0
  194. package/build/cc/ThermostatFanStateCC.d.ts.map +1 -0
  195. package/build/cc/ThermostatFanStateCC.js +131 -0
  196. package/build/cc/ThermostatFanStateCC.js.map +1 -0
  197. package/build/cc/ThermostatModeCC.d.ts +58 -0
  198. package/build/cc/ThermostatModeCC.d.ts.map +1 -0
  199. package/build/cc/ThermostatModeCC.js +370 -0
  200. package/build/cc/ThermostatModeCC.js.map +1 -0
  201. package/build/cc/ThermostatOperatingStateCC.d.ts +24 -0
  202. package/build/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
  203. package/build/cc/ThermostatOperatingStateCC.js +127 -0
  204. package/build/cc/ThermostatOperatingStateCC.js.map +1 -0
  205. package/build/cc/ThermostatSetbackCC.d.ts +42 -0
  206. package/build/cc/ThermostatSetbackCC.d.ts.map +1 -0
  207. package/build/cc/ThermostatSetbackCC.js +237 -0
  208. package/build/cc/ThermostatSetbackCC.js.map +1 -0
  209. package/build/cc/ThermostatSetpointCC.d.ts +98 -0
  210. package/build/cc/ThermostatSetpointCC.d.ts.map +1 -0
  211. package/build/cc/ThermostatSetpointCC.js +707 -0
  212. package/build/cc/ThermostatSetpointCC.js.map +1 -0
  213. package/build/cc/TimeCC.d.ts +78 -0
  214. package/build/cc/TimeCC.d.ts.map +1 -0
  215. package/build/cc/TimeCC.js +373 -0
  216. package/build/cc/TimeCC.js.map +1 -0
  217. package/build/cc/TimeParametersCC.d.ts +40 -0
  218. package/build/cc/TimeParametersCC.d.ts.map +1 -0
  219. package/build/cc/TimeParametersCC.js +275 -0
  220. package/build/cc/TimeParametersCC.js.map +1 -0
  221. package/build/cc/TransportServiceCC.d.ts +101 -0
  222. package/build/cc/TransportServiceCC.d.ts.map +1 -0
  223. package/build/cc/TransportServiceCC.js +404 -0
  224. package/build/cc/TransportServiceCC.js.map +1 -0
  225. package/build/cc/UserCodeCC.d.ts +219 -0
  226. package/build/cc/UserCodeCC.d.ts.map +1 -0
  227. package/build/cc/UserCodeCC.js +1526 -0
  228. package/build/cc/UserCodeCC.js.map +1 -0
  229. package/build/cc/VersionCC.d.ts +91 -0
  230. package/build/cc/VersionCC.d.ts.map +1 -0
  231. package/build/cc/VersionCC.js +654 -0
  232. package/build/cc/VersionCC.js.map +1 -0
  233. package/build/cc/WakeUpCC.d.ts +67 -0
  234. package/build/cc/WakeUpCC.d.ts.map +1 -0
  235. package/build/cc/WakeUpCC.js +425 -0
  236. package/build/cc/WakeUpCC.js.map +1 -0
  237. package/build/cc/ZWavePlusCC.d.ts +40 -0
  238. package/build/cc/ZWavePlusCC.d.ts.map +1 -0
  239. package/build/cc/ZWavePlusCC.js +269 -0
  240. package/build/cc/ZWavePlusCC.js.map +1 -0
  241. package/build/cc/index.d.ts +64 -0
  242. package/build/cc/index.d.ts.map +1 -0
  243. package/build/cc/index.js +496 -0
  244. package/build/cc/index.js.map +1 -0
  245. package/build/cc/manufacturerProprietary/FibaroCC.d.ts +62 -0
  246. package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
  247. package/build/cc/manufacturerProprietary/FibaroCC.js +247 -0
  248. package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
  249. package/build/index.d.ts +11 -0
  250. package/build/index.d.ts.map +1 -0
  251. package/build/index.js +48 -0
  252. package/build/index.js.map +1 -0
  253. package/build/index_safe.d.ts +4 -0
  254. package/build/index_safe.d.ts.map +1 -0
  255. package/build/index_safe.js +30 -0
  256. package/build/index_safe.js.map +1 -0
  257. package/build/lib/API.d.ts +176 -0
  258. package/build/lib/API.d.ts.map +1 -0
  259. package/build/lib/API.js +325 -0
  260. package/build/lib/API.js.map +1 -0
  261. package/build/lib/CommandClass.d.ts +341 -0
  262. package/build/lib/CommandClass.d.ts.map +1 -0
  263. package/build/lib/CommandClass.js +1088 -0
  264. package/build/lib/CommandClass.js.map +1 -0
  265. package/build/lib/EncapsulatingCommandClass.d.ts +35 -0
  266. package/build/lib/EncapsulatingCommandClass.d.ts.map +1 -0
  267. package/build/lib/EncapsulatingCommandClass.js +53 -0
  268. package/build/lib/EncapsulatingCommandClass.js.map +1 -0
  269. package/build/lib/ICommandClassContainer.d.ts +9 -0
  270. package/build/lib/ICommandClassContainer.d.ts.map +1 -0
  271. package/build/lib/ICommandClassContainer.js +12 -0
  272. package/build/lib/ICommandClassContainer.js.map +1 -0
  273. package/build/lib/NotificationEventPayload.d.ts +11 -0
  274. package/build/lib/NotificationEventPayload.d.ts.map +1 -0
  275. package/build/lib/NotificationEventPayload.js +11 -0
  276. package/build/lib/NotificationEventPayload.js.map +1 -0
  277. package/build/lib/Security2/Extension.d.ts +87 -0
  278. package/build/lib/Security2/Extension.d.ts.map +1 -0
  279. package/build/lib/Security2/Extension.js +235 -0
  280. package/build/lib/Security2/Extension.js.map +1 -0
  281. package/build/lib/Security2/shared.d.ts +31 -0
  282. package/build/lib/Security2/shared.d.ts.map +1 -0
  283. package/build/lib/Security2/shared.js +37 -0
  284. package/build/lib/Security2/shared.js.map +1 -0
  285. package/build/lib/_Types.d.ts +1446 -0
  286. package/build/lib/_Types.d.ts.map +1 -0
  287. package/build/lib/_Types.js +1334 -0
  288. package/build/lib/_Types.js.map +1 -0
  289. package/build/lib/serializers.d.ts +24 -0
  290. package/build/lib/serializers.d.ts.map +1 -0
  291. package/build/lib/serializers.js +66 -0
  292. package/build/lib/serializers.js.map +1 -0
  293. package/build/lib/utils.d.ts +13 -0
  294. package/build/lib/utils.d.ts.map +1 -0
  295. package/build/lib/utils.js +675 -0
  296. package/build/lib/utils.js.map +1 -0
  297. package/package.json +77 -0
@@ -0,0 +1,443 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || function (mod) {
25
+ if (mod && mod.__esModule) return mod;
26
+ var result = {};
27
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
+ __setModuleDefault(result, mod);
29
+ return result;
30
+ };
31
+ var _a, _b;
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.CentralSceneCCConfigurationSet = exports.CentralSceneCCConfigurationGet = exports.CentralSceneCCConfigurationReport = exports.CentralSceneCCSupportedGet = exports.CentralSceneCCSupportedReport = exports.CentralSceneCCNotification = exports.CentralSceneCC = exports.CentralSceneCCAPI = exports.getSlowRefreshValueId = exports.getSceneValueId = void 0;
34
+ function __assertType(argName, typeName, boundHasError) {
35
+ const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
36
+ if (boundHasError()) {
37
+ throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
38
+ }
39
+ }
40
+ const __assertType__boolean = $o => {
41
+ function _boolean($o) {
42
+ return typeof $o !== "boolean" ? {} : null;
43
+ }
44
+ return _boolean($o);
45
+ };
46
+ const safe_1 = require("@zwave-js/core/safe");
47
+ const safe_2 = require("@zwave-js/shared/safe");
48
+ const strings_1 = require("alcalzone-shared/strings");
49
+ const API_1 = require("../lib/API");
50
+ const CommandClass_1 = require("../lib/CommandClass");
51
+ const ccUtils = __importStar(require("../lib/utils"));
52
+ const _Types_1 = require("../lib/_Types");
53
+ const AssociationGroupInfoCC_1 = require("./AssociationGroupInfoCC");
54
+ /** Returns the ValueID used to store the current value of a Central Scene */
55
+ function getSceneValueId(sceneNumber) {
56
+ return {
57
+ commandClass: safe_1.CommandClasses["Central Scene"],
58
+ property: "scene",
59
+ propertyKey: (0, strings_1.padStart)(sceneNumber.toString(), 3, "0"),
60
+ };
61
+ }
62
+ exports.getSceneValueId = getSceneValueId;
63
+ function getSceneLabel(sceneNumber) {
64
+ return `Scene ${(0, strings_1.padStart)(sceneNumber.toString(), 3, "0")}`;
65
+ }
66
+ function getSlowRefreshValueId() {
67
+ return {
68
+ commandClass: safe_1.CommandClasses["Central Scene"],
69
+ property: "slowRefresh",
70
+ };
71
+ }
72
+ exports.getSlowRefreshValueId = getSlowRefreshValueId;
73
+ let CentralSceneCCAPI = class CentralSceneCCAPI extends API_1.CCAPI {
74
+ constructor() {
75
+ super(...arguments);
76
+ this[_a] = async ({ property }, value) => {
77
+ if (property !== "slowRefresh") {
78
+ (0, API_1.throwUnsupportedProperty)(this.ccId, property);
79
+ }
80
+ if (typeof value !== "boolean") {
81
+ (0, API_1.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
82
+ }
83
+ await this.setConfiguration(value);
84
+ };
85
+ this[_b] = async ({ property, }) => {
86
+ var _c;
87
+ if (property === "slowRefresh") {
88
+ return (_c = (await this.getConfiguration())) === null || _c === void 0 ? void 0 : _c[property];
89
+ }
90
+ (0, API_1.throwUnsupportedProperty)(this.ccId, property);
91
+ };
92
+ }
93
+ supportsCommand(cmd) {
94
+ switch (cmd) {
95
+ case _Types_1.CentralSceneCommand.SupportedGet:
96
+ return this.isSinglecast(); // this is mandatory
97
+ case _Types_1.CentralSceneCommand.ConfigurationGet:
98
+ return this.version >= 3 && this.isSinglecast();
99
+ case _Types_1.CentralSceneCommand.ConfigurationSet:
100
+ return this.version >= 3;
101
+ }
102
+ return super.supportsCommand(cmd);
103
+ }
104
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
105
+ async getSupported() {
106
+ this.assertSupportsCommand(_Types_1.CentralSceneCommand, _Types_1.CentralSceneCommand.SupportedGet);
107
+ const cc = new CentralSceneCCSupportedGet(this.applHost, {
108
+ nodeId: this.endpoint.nodeId,
109
+ endpoint: this.endpoint.index,
110
+ });
111
+ const response = await this.applHost.sendCommand(cc, this.commandOptions);
112
+ if (response) {
113
+ return (0, safe_2.pick)(response, [
114
+ "sceneCount",
115
+ "supportsSlowRefresh",
116
+ "supportedKeyAttributes",
117
+ ]);
118
+ }
119
+ }
120
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
121
+ async getConfiguration() {
122
+ this.assertSupportsCommand(_Types_1.CentralSceneCommand, _Types_1.CentralSceneCommand.ConfigurationGet);
123
+ const cc = new CentralSceneCCConfigurationGet(this.applHost, {
124
+ nodeId: this.endpoint.nodeId,
125
+ endpoint: this.endpoint.index,
126
+ });
127
+ const response = await this.applHost.sendCommand(cc, this.commandOptions);
128
+ if (response) {
129
+ return (0, safe_2.pick)(response, ["slowRefresh"]);
130
+ }
131
+ }
132
+ async setConfiguration(slowRefresh) {
133
+ __assertType("slowRefresh", "boolean", __assertType__boolean.bind(void 0, slowRefresh));
134
+ this.assertSupportsCommand(_Types_1.CentralSceneCommand, _Types_1.CentralSceneCommand.ConfigurationSet);
135
+ const cc = new CentralSceneCCConfigurationSet(this.applHost, {
136
+ nodeId: this.endpoint.nodeId,
137
+ endpoint: this.endpoint.index,
138
+ slowRefresh,
139
+ });
140
+ await this.applHost.sendCommand(cc, this.commandOptions);
141
+ }
142
+ };
143
+ _a = API_1.SET_VALUE, _b = API_1.POLL_VALUE;
144
+ CentralSceneCCAPI = __decorate([
145
+ (0, CommandClass_1.API)(safe_1.CommandClasses["Central Scene"])
146
+ ], CentralSceneCCAPI);
147
+ exports.CentralSceneCCAPI = CentralSceneCCAPI;
148
+ let CentralSceneCC = class CentralSceneCC extends CommandClass_1.CommandClass {
149
+ determineRequiredCCInterviews() {
150
+ return [
151
+ ...super.determineRequiredCCInterviews(),
152
+ safe_1.CommandClasses.Association,
153
+ safe_1.CommandClasses["Multi Channel Association"],
154
+ safe_1.CommandClasses["Association Group Information"],
155
+ ];
156
+ }
157
+ skipEndpointInterview() {
158
+ // Central scene notifications are issued by the root device
159
+ return true;
160
+ }
161
+ async interview(applHost) {
162
+ var _c;
163
+ const node = this.getNode(applHost);
164
+ const endpoint = this.getEndpoint(applHost);
165
+ const api = API_1.CCAPI.create(safe_1.CommandClasses["Central Scene"], applHost, endpoint).withOptions({
166
+ priority: safe_1.MessagePriority.NodeQuery,
167
+ });
168
+ applHost.controllerLog.logNode(node.id, {
169
+ endpoint: this.endpointIndex,
170
+ message: `Interviewing ${this.ccName}...`,
171
+ direction: "none",
172
+ });
173
+ // If one Association group issues CentralScene notifications,
174
+ // we need to associate ourselves with that channel
175
+ if (node.supportsCC(safe_1.CommandClasses["Association Group Information"]) &&
176
+ (node.supportsCC(safe_1.CommandClasses.Association) ||
177
+ node.supportsCC(safe_1.CommandClasses["Multi Channel Association"]))) {
178
+ const groupsIssueingNotifications = AssociationGroupInfoCC_1.AssociationGroupInfoCC.findGroupsForIssuedCommand(applHost, node, this.ccId, _Types_1.CentralSceneCommand.Notification);
179
+ if (groupsIssueingNotifications.length > 0) {
180
+ // We always grab the first group - usually it should be the lifeline
181
+ const groupId = groupsIssueingNotifications[0];
182
+ const existingAssociations = (_c = ccUtils.getAssociations(applHost, node).get(groupId)) !== null && _c !== void 0 ? _c : [];
183
+ if (!existingAssociations.some((a) => a.nodeId === applHost.ownNodeId)) {
184
+ applHost.controllerLog.logNode(node.id, {
185
+ endpoint: this.endpointIndex,
186
+ message: "Configuring associations to receive Central Scene notifications...",
187
+ direction: "outbound",
188
+ });
189
+ await ccUtils.addAssociations(applHost, node, groupId, [
190
+ { nodeId: applHost.ownNodeId },
191
+ ]);
192
+ }
193
+ }
194
+ }
195
+ applHost.controllerLog.logNode(node.id, {
196
+ endpoint: this.endpointIndex,
197
+ message: "Querying supported scenes...",
198
+ direction: "outbound",
199
+ });
200
+ const ccSupported = await api.getSupported();
201
+ if (ccSupported) {
202
+ const logMessage = `received supported scenes:
203
+ # of scenes: ${ccSupported.sceneCount}
204
+ supports slow refresh: ${ccSupported.supportsSlowRefresh}`;
205
+ applHost.controllerLog.logNode(node.id, {
206
+ endpoint: this.endpointIndex,
207
+ message: logMessage,
208
+ direction: "inbound",
209
+ });
210
+ }
211
+ else {
212
+ applHost.controllerLog.logNode(node.id, {
213
+ endpoint: this.endpointIndex,
214
+ message: "Querying supported scenes timed out, skipping interview...",
215
+ level: "warn",
216
+ });
217
+ return;
218
+ }
219
+ // The slow refresh capability should be enabled whenever possible
220
+ if (this.version >= 3 && (ccSupported === null || ccSupported === void 0 ? void 0 : ccSupported.supportsSlowRefresh)) {
221
+ applHost.controllerLog.logNode(node.id, {
222
+ endpoint: this.endpointIndex,
223
+ message: "Enabling slow refresh capability...",
224
+ direction: "outbound",
225
+ });
226
+ await api.setConfiguration(true);
227
+ }
228
+ // Remember that the interview is complete
229
+ this.setInterviewComplete(applHost, true);
230
+ }
231
+ };
232
+ CentralSceneCC = __decorate([
233
+ (0, CommandClass_1.commandClass)(safe_1.CommandClasses["Central Scene"]),
234
+ (0, CommandClass_1.implementedVersion)(3)
235
+ ], CentralSceneCC);
236
+ exports.CentralSceneCC = CentralSceneCC;
237
+ let CentralSceneCCNotification = class CentralSceneCCNotification extends CentralSceneCC {
238
+ constructor(host, options) {
239
+ super(host, options);
240
+ (0, safe_1.validatePayload)(this.payload.length >= 3);
241
+ this._sequenceNumber = this.payload[0];
242
+ this._keyAttribute = this.payload[1] & 0b111;
243
+ this._sceneNumber = this.payload[2];
244
+ if (this._keyAttribute === _Types_1.CentralSceneKeys.KeyHeldDown &&
245
+ this.version >= 3) {
246
+ // A receiving node MUST ignore this field if the command is not
247
+ // carrying the Key Held Down key attribute.
248
+ this._slowRefresh = !!(this.payload[1] & 128);
249
+ }
250
+ }
251
+ persistValues(applHost) {
252
+ if (!super.persistValues(applHost))
253
+ return false;
254
+ const valueDB = this.getValueDB(applHost);
255
+ // In case the interview is not yet completed, we still create some basic metadata
256
+ const valueId = getSceneValueId(this._sceneNumber);
257
+ if (!valueDB.hasMetadata(valueId)) {
258
+ valueDB.setMetadata(valueId, {
259
+ ...safe_1.ValueMetadata.ReadOnlyUInt8,
260
+ label: getSceneLabel(this._sceneNumber),
261
+ });
262
+ }
263
+ // The spec behavior is pretty complicated, so we cannot just store
264
+ // the value and call it a day. Handling of these notifications will
265
+ // happen in the receiving node class
266
+ return true;
267
+ }
268
+ get sequenceNumber() {
269
+ return this._sequenceNumber;
270
+ }
271
+ get keyAttribute() {
272
+ return this._keyAttribute;
273
+ }
274
+ get sceneNumber() {
275
+ return this._sceneNumber;
276
+ }
277
+ get slowRefresh() {
278
+ return this._slowRefresh;
279
+ }
280
+ toLogEntry(applHost) {
281
+ const message = {
282
+ "sequence number": this.sequenceNumber,
283
+ "key attribute": (0, safe_2.getEnumMemberName)(_Types_1.CentralSceneKeys, this.keyAttribute),
284
+ "scene number": this.sceneNumber,
285
+ };
286
+ if (this.slowRefresh != undefined) {
287
+ message["slow refresh"] = this.slowRefresh;
288
+ }
289
+ return {
290
+ ...super.toLogEntry(applHost),
291
+ message,
292
+ };
293
+ }
294
+ };
295
+ CentralSceneCCNotification = __decorate([
296
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.Notification)
297
+ ], CentralSceneCCNotification);
298
+ exports.CentralSceneCCNotification = CentralSceneCCNotification;
299
+ let CentralSceneCCSupportedReport = class CentralSceneCCSupportedReport extends CentralSceneCC {
300
+ constructor(host, options) {
301
+ super(host, options);
302
+ this._supportedKeyAttributes = new Map();
303
+ (0, safe_1.validatePayload)(this.payload.length >= 2);
304
+ this._sceneCount = this.payload[0];
305
+ this._supportsSlowRefresh =
306
+ this.version >= 3 ? !!(this.payload[1] & 128) : undefined;
307
+ const bitMaskBytes = (this.payload[1] & 0b110) >>> 1;
308
+ const identicalKeyAttributes = !!(this.payload[1] & 0b1);
309
+ const numEntries = identicalKeyAttributes ? 1 : this.sceneCount;
310
+ (0, safe_1.validatePayload)(this.payload.length >= 2 + bitMaskBytes * numEntries);
311
+ for (let i = 0; i < numEntries; i++) {
312
+ const mask = this.payload.slice(2 + i * bitMaskBytes, 2 + (i + 1) * bitMaskBytes);
313
+ this._supportedKeyAttributes.set(i + 1, (0, safe_1.parseBitMask)(mask, _Types_1.CentralSceneKeys.KeyPressed));
314
+ }
315
+ if (identicalKeyAttributes) {
316
+ // The key attributes are only transmitted for scene 1, copy them to the others
317
+ for (let i = 2; i <= this._sceneCount; i++) {
318
+ this._supportedKeyAttributes.set(i, this._supportedKeyAttributes.get(1));
319
+ }
320
+ }
321
+ }
322
+ persistValues(applHost) {
323
+ if (!super.persistValues(applHost))
324
+ return false;
325
+ // Create metadata for all scenes
326
+ const valueDB = this.getValueDB(applHost);
327
+ for (let i = 1; i <= this._sceneCount; i++) {
328
+ const valueId = getSceneValueId(i);
329
+ valueDB.setMetadata(valueId, {
330
+ ...safe_1.ValueMetadata.ReadOnlyUInt8,
331
+ label: getSceneLabel(i),
332
+ states: (0, safe_1.enumValuesToMetadataStates)(_Types_1.CentralSceneKeys, this._supportedKeyAttributes.get(i)),
333
+ });
334
+ }
335
+ return true;
336
+ }
337
+ get sceneCount() {
338
+ return this._sceneCount;
339
+ }
340
+ get supportsSlowRefresh() {
341
+ return this._supportsSlowRefresh;
342
+ }
343
+ get supportedKeyAttributes() {
344
+ return this._supportedKeyAttributes;
345
+ }
346
+ toLogEntry(applHost) {
347
+ const message = {
348
+ "scene count": this.sceneCount,
349
+ "supports slow refresh": this.supportsSlowRefresh,
350
+ };
351
+ for (const [scene, keys] of this.supportedKeyAttributes) {
352
+ message[`supported attributes (scene #${scene})`] = keys
353
+ .map((k) => `\n· ${(0, safe_2.getEnumMemberName)(_Types_1.CentralSceneKeys, k)}`)
354
+ .join("");
355
+ }
356
+ return {
357
+ ...super.toLogEntry(applHost),
358
+ message,
359
+ };
360
+ }
361
+ };
362
+ __decorate([
363
+ (0, CommandClass_1.ccValue)({ internal: true })
364
+ ], CentralSceneCCSupportedReport.prototype, "sceneCount", null);
365
+ __decorate([
366
+ (0, CommandClass_1.ccValue)({ internal: true })
367
+ ], CentralSceneCCSupportedReport.prototype, "supportsSlowRefresh", null);
368
+ __decorate([
369
+ (0, CommandClass_1.ccValue)({ internal: true })
370
+ ], CentralSceneCCSupportedReport.prototype, "supportedKeyAttributes", null);
371
+ CentralSceneCCSupportedReport = __decorate([
372
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.SupportedReport)
373
+ ], CentralSceneCCSupportedReport);
374
+ exports.CentralSceneCCSupportedReport = CentralSceneCCSupportedReport;
375
+ let CentralSceneCCSupportedGet = class CentralSceneCCSupportedGet extends CentralSceneCC {
376
+ };
377
+ CentralSceneCCSupportedGet = __decorate([
378
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.SupportedGet),
379
+ (0, CommandClass_1.expectedCCResponse)(CentralSceneCCSupportedReport)
380
+ ], CentralSceneCCSupportedGet);
381
+ exports.CentralSceneCCSupportedGet = CentralSceneCCSupportedGet;
382
+ let CentralSceneCCConfigurationReport = class CentralSceneCCConfigurationReport extends CentralSceneCC {
383
+ constructor(host, options) {
384
+ super(host, options);
385
+ (0, safe_1.validatePayload)(this.payload.length >= 1);
386
+ this._slowRefresh = !!(this.payload[0] & 128);
387
+ }
388
+ get slowRefresh() {
389
+ return this._slowRefresh;
390
+ }
391
+ toLogEntry(applHost) {
392
+ return {
393
+ ...super.toLogEntry(applHost),
394
+ message: { "slow refresh": this._slowRefresh },
395
+ };
396
+ }
397
+ };
398
+ __decorate([
399
+ (0, CommandClass_1.ccValue)(),
400
+ (0, CommandClass_1.ccValueMetadata)({
401
+ ...safe_1.ValueMetadata.Boolean,
402
+ label: "Send held down notifications at a slow rate",
403
+ description: "When this is true, KeyHeldDown notifications are sent every 55s. " +
404
+ "When this is false, the notifications are sent every 200ms.",
405
+ })
406
+ ], CentralSceneCCConfigurationReport.prototype, "slowRefresh", null);
407
+ CentralSceneCCConfigurationReport = __decorate([
408
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.ConfigurationReport)
409
+ ], CentralSceneCCConfigurationReport);
410
+ exports.CentralSceneCCConfigurationReport = CentralSceneCCConfigurationReport;
411
+ let CentralSceneCCConfigurationGet = class CentralSceneCCConfigurationGet extends CentralSceneCC {
412
+ };
413
+ CentralSceneCCConfigurationGet = __decorate([
414
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.ConfigurationGet),
415
+ (0, CommandClass_1.expectedCCResponse)(CentralSceneCCConfigurationReport)
416
+ ], CentralSceneCCConfigurationGet);
417
+ exports.CentralSceneCCConfigurationGet = CentralSceneCCConfigurationGet;
418
+ let CentralSceneCCConfigurationSet = class CentralSceneCCConfigurationSet extends CentralSceneCC {
419
+ constructor(host, options) {
420
+ super(host, options);
421
+ if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
422
+ throw new safe_1.ZWaveError(`${this.constructor.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
423
+ }
424
+ else {
425
+ this.slowRefresh = options.slowRefresh;
426
+ }
427
+ }
428
+ serialize() {
429
+ this.payload = Buffer.from([this.slowRefresh ? 128 : 0]);
430
+ return super.serialize();
431
+ }
432
+ toLogEntry(applHost) {
433
+ return {
434
+ ...super.toLogEntry(applHost),
435
+ message: { "slow refresh": this.slowRefresh },
436
+ };
437
+ }
438
+ };
439
+ CentralSceneCCConfigurationSet = __decorate([
440
+ (0, CommandClass_1.CCCommand)(_Types_1.CentralSceneCommand.ConfigurationSet)
441
+ ], CentralSceneCCConfigurationSet);
442
+ exports.CentralSceneCCConfigurationSet = CentralSceneCCConfigurationSet;
443
+ //# sourceMappingURL=CentralSceneCC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CentralSceneCC.js","sourceRoot":"","sources":["../../src/cc/CentralSceneCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,8CAU6B;AAE7B,gDAAgE;AAEhE,sDAAoD;AACpD,oCAQoB;AACpB,sDAY6B;AAC7B,sDAAwC;AACxC,0CAAsE;AACtE,qEAAkE;AAElE,6EAA6E;AAC7E,SAAgB,eAAe,CAAC,WAAmB;IA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AC,IAAI,mCAAmC,EAC3D,sBAAe,CAAC,8BAA8B,CAC9C,CAAC;SACF;aAAM;YACN,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;SACvC;IACF,CAAC;IAIM,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IAEM,UAAU,CAAC,QAA8B;QAC/C,OAAO;YACN,GAAG,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,OAAO,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,WAAW,EAAE;SAC7C,CAAC;IACH,CAAC;CACD,CAAA;AA/BY,8BAA8B;IAD1C,IAAA,wBAAS,EAAC,4BAAmB,CAAC,gBAAgB,CAAC;GACnC,8BAA8B,CA+B1C;AA/BY,wEAA8B"}
@@ -0,0 +1,78 @@
1
+ /// <reference types="node" />
2
+ import type { Maybe, MessageOrCCLogEntry } from "@zwave-js/core/safe";
3
+ import type { ZWaveApplicationHost, ZWaveHost } from "@zwave-js/host/safe";
4
+ import { CCAPI } from "../lib/API";
5
+ import { CommandClass, type CCCommandOptions, type CommandClassDeserializationOptions } from "../lib/CommandClass";
6
+ import { ClimateControlScheduleCommand, ScheduleOverrideType, SetbackState, Switchpoint, Weekday } from "../lib/_Types";
7
+ export declare class ClimateControlScheduleCCAPI extends CCAPI {
8
+ supportsCommand(cmd: ClimateControlScheduleCommand): Maybe<boolean>;
9
+ set(weekday: Weekday, switchPoints: Switchpoint[]): Promise<void>;
10
+ get(weekday: Weekday): Promise<readonly Switchpoint[] | undefined>;
11
+ getChangeCounter(): Promise<number | undefined>;
12
+ getOverride(): Promise<{
13
+ type: ScheduleOverrideType;
14
+ state: SetbackState;
15
+ } | undefined>;
16
+ setOverride(type: ScheduleOverrideType, state: SetbackState): Promise<void>;
17
+ }
18
+ export declare class ClimateControlScheduleCC extends CommandClass {
19
+ ccCommand: ClimateControlScheduleCommand;
20
+ }
21
+ interface ClimateControlScheduleCCSetOptions extends CCCommandOptions {
22
+ weekday: Weekday;
23
+ switchPoints: Switchpoint[];
24
+ }
25
+ export declare class ClimateControlScheduleCCSet extends ClimateControlScheduleCC {
26
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions | ClimateControlScheduleCCSetOptions);
27
+ switchPoints: Switchpoint[];
28
+ weekday: Weekday;
29
+ serialize(): Buffer;
30
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
31
+ }
32
+ export declare class ClimateControlScheduleCCReport extends ClimateControlScheduleCC {
33
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions);
34
+ private schedule;
35
+ get switchPoints(): readonly Switchpoint[];
36
+ get weekday(): Weekday;
37
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
38
+ }
39
+ interface ClimateControlScheduleCCGetOptions extends CCCommandOptions {
40
+ weekday: Weekday;
41
+ }
42
+ export declare class ClimateControlScheduleCCGet extends ClimateControlScheduleCC {
43
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions | ClimateControlScheduleCCGetOptions);
44
+ weekday: Weekday;
45
+ serialize(): Buffer;
46
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
47
+ }
48
+ export declare class ClimateControlScheduleCCChangedReport extends ClimateControlScheduleCC {
49
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions);
50
+ private _changeCounter;
51
+ get changeCounter(): number;
52
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
53
+ }
54
+ export declare class ClimateControlScheduleCCChangedGet extends ClimateControlScheduleCC {
55
+ }
56
+ export declare class ClimateControlScheduleCCOverrideReport extends ClimateControlScheduleCC {
57
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions);
58
+ private _overrideType;
59
+ get overrideType(): ScheduleOverrideType;
60
+ private _overrideState;
61
+ get overrideState(): SetbackState;
62
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
63
+ }
64
+ export declare class ClimateControlScheduleCCOverrideGet extends ClimateControlScheduleCC {
65
+ }
66
+ interface ClimateControlScheduleCCOverrideSetOptions extends CCCommandOptions {
67
+ overrideType: ScheduleOverrideType;
68
+ overrideState: SetbackState;
69
+ }
70
+ export declare class ClimateControlScheduleCCOverrideSet extends ClimateControlScheduleCC {
71
+ constructor(host: ZWaveHost, options: CommandClassDeserializationOptions | ClimateControlScheduleCCOverrideSetOptions);
72
+ overrideType: ScheduleOverrideType;
73
+ overrideState: SetbackState;
74
+ serialize(): Buffer;
75
+ toLogEntry(applHost: ZWaveApplicationHost): MessageOrCCLogEntry;
76
+ }
77
+ export {};
78
+ //# sourceMappingURL=ClimateControlScheduleCC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClimateControlScheduleCC.d.ts","sourceRoot":"","sources":["../../src/cc/ClimateControlScheduleCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAOtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAI3E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAMN,YAAY,EAIZ,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACvC,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EACN,6BAA6B,EAC7B,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,MAAM,eAAe,CAAC;AAEvB,qBACa,2BAA4B,SAAQ,KAAK;IAC9C,eAAe,CAAC,GAAG,EAAE,6BAA6B,GAAG,KAAK,CAAC,OAAO,CAAC;IAc7D,GAAG,CACf,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,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