@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.
- package/build/cc/AlarmSensorCC.d.ts +54 -0
- package/build/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/cc/AlarmSensorCC.js +378 -0
- package/build/cc/AlarmSensorCC.js.map +1 -0
- package/build/cc/AssociationCC.d.ts +123 -0
- package/build/cc/AssociationCC.d.ts.map +1 -0
- package/build/cc/AssociationCC.js +615 -0
- package/build/cc/AssociationCC.js.map +1 -0
- package/build/cc/AssociationGroupInfoCC.d.ts +97 -0
- package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/cc/AssociationGroupInfoCC.js +530 -0
- package/build/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/cc/BarrierOperatorCC.d.ts +75 -0
- package/build/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/cc/BarrierOperatorCC.js +492 -0
- package/build/cc/BarrierOperatorCC.js.map +1 -0
- package/build/cc/BasicCC.d.ts +51 -0
- package/build/cc/BasicCC.d.ts.map +1 -0
- package/build/cc/BasicCC.js +344 -0
- package/build/cc/BasicCC.js.map +1 -0
- package/build/cc/BatteryCC.d.ts +56 -0
- package/build/cc/BatteryCC.d.ts.map +1 -0
- package/build/cc/BatteryCC.js +417 -0
- package/build/cc/BatteryCC.js.map +1 -0
- package/build/cc/BinarySensorCC.d.ts +52 -0
- package/build/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/cc/BinarySensorCC.js +321 -0
- package/build/cc/BinarySensorCC.js.map +1 -0
- package/build/cc/BinarySwitchCC.d.ts +55 -0
- package/build/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/cc/BinarySwitchCC.js +327 -0
- package/build/cc/BinarySwitchCC.js.map +1 -0
- package/build/cc/CRC16CC.d.ts +28 -0
- package/build/cc/CRC16CC.d.ts.map +1 -0
- package/build/cc/CRC16CC.js +109 -0
- package/build/cc/CRC16CC.js.map +1 -0
- package/build/cc/CentralSceneCC.d.ts +69 -0
- package/build/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/cc/CentralSceneCC.js +443 -0
- package/build/cc/CentralSceneCC.js.map +1 -0
- package/build/cc/ClimateControlScheduleCC.d.ts +78 -0
- package/build/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/cc/ClimateControlScheduleCC.js +417 -0
- package/build/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/cc/ClockCC.d.ts +40 -0
- package/build/cc/ClockCC.d.ts.map +1 -0
- package/build/cc/ClockCC.js +185 -0
- package/build/cc/ClockCC.js.map +1 -0
- package/build/cc/ColorSwitchCC.d.ts +98 -0
- package/build/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/cc/ColorSwitchCC.js +1045 -0
- package/build/cc/ColorSwitchCC.js.map +1 -0
- package/build/cc/ConfigurationCC.d.ts +315 -0
- package/build/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/cc/ConfigurationCC.js +2257 -0
- package/build/cc/ConfigurationCC.js.map +1 -0
- package/build/cc/DeviceResetLocallyCC.d.ts +9 -0
- package/build/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/cc/DeviceResetLocallyCC.js +28 -0
- package/build/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/cc/DoorLockCC.d.ts +116 -0
- package/build/cc/DoorLockCC.d.ts.map +1 -0
- package/build/cc/DoorLockCC.js +1112 -0
- package/build/cc/DoorLockCC.js.map +1 -0
- package/build/cc/DoorLockLoggingCC.d.ts +41 -0
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/cc/DoorLockLoggingCC.js +288 -0
- package/build/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/cc/EntryControlCC.d.ts +71 -0
- package/build/cc/EntryControlCC.d.ts.map +1 -0
- package/build/cc/EntryControlCC.js +492 -0
- package/build/cc/EntryControlCC.js.map +1 -0
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +148 -0
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/cc/FirmwareUpdateMetaDataCC.js +727 -0
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/cc/HailCC.d.ts +6 -0
- package/build/cc/HailCC.d.ts.map +1 -0
- package/build/cc/HailCC.js +23 -0
- package/build/cc/HailCC.js.map +1 -0
- package/build/cc/HumidityControlModeCC.d.ts +47 -0
- package/build/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/cc/HumidityControlModeCC.js +288 -0
- package/build/cc/HumidityControlModeCC.js.map +1 -0
- package/build/cc/HumidityControlOperatingStateCC.d.ts +24 -0
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/cc/HumidityControlOperatingStateCC.js +129 -0
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/cc/HumidityControlSetpointCC.d.ts +103 -0
- package/build/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/cc/HumidityControlSetpointCC.js +626 -0
- package/build/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/cc/IndicatorCC.d.ts +88 -0
- package/build/cc/IndicatorCC.d.ts.map +1 -0
- package/build/cc/IndicatorCC.js +758 -0
- package/build/cc/IndicatorCC.js.map +1 -0
- package/build/cc/IrrigationCC.d.ts +278 -0
- package/build/cc/IrrigationCC.d.ts.map +1 -0
- package/build/cc/IrrigationCC.js +2062 -0
- package/build/cc/IrrigationCC.js.map +1 -0
- package/build/cc/LanguageCC.d.ts +41 -0
- package/build/cc/LanguageCC.d.ts.map +1 -0
- package/build/cc/LanguageCC.js +220 -0
- package/build/cc/LanguageCC.js.map +1 -0
- package/build/cc/LockCC.d.ts +41 -0
- package/build/cc/LockCC.d.ts.map +1 -0
- package/build/cc/LockCC.js +185 -0
- package/build/cc/LockCC.js.map +1 -0
- package/build/cc/ManufacturerProprietaryCC.d.ts +31 -0
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/cc/ManufacturerProprietaryCC.js +275 -0
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/cc/ManufacturerSpecificCC.d.ts +59 -0
- package/build/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/cc/ManufacturerSpecificCC.js +285 -0
- package/build/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/cc/MeterCC.d.ts +100 -0
- package/build/cc/MeterCC.d.ts.map +1 -0
- package/build/cc/MeterCC.js +820 -0
- package/build/cc/MeterCC.js.map +1 -0
- package/build/cc/MultiChannelAssociationCC.d.ts +127 -0
- package/build/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/cc/MultiChannelAssociationCC.js +883 -0
- package/build/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/cc/MultiChannelCC.d.ts +164 -0
- package/build/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/cc/MultiChannelCC.js +1004 -0
- package/build/cc/MultiChannelCC.js.map +1 -0
- package/build/cc/MultiCommandCC.d.ts +28 -0
- package/build/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/cc/MultiCommandCC.js +137 -0
- package/build/cc/MultiCommandCC.js.map +1 -0
- package/build/cc/MultilevelSensorCC.d.ts +83 -0
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/cc/MultilevelSensorCC.js +633 -0
- package/build/cc/MultilevelSensorCC.js.map +1 -0
- package/build/cc/MultilevelSwitchCC.d.ts +86 -0
- package/build/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/cc/MultilevelSwitchCC.js +774 -0
- package/build/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/cc/NoOperationCC.d.ts +17 -0
- package/build/cc/NoOperationCC.d.ts.map +1 -0
- package/build/cc/NoOperationCC.js +50 -0
- package/build/cc/NoOperationCC.js.map +1 -0
- package/build/cc/NodeNamingCC.d.ts +57 -0
- package/build/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/cc/NodeNamingCC.js +313 -0
- package/build/cc/NodeNamingCC.js.map +1 -0
- package/build/cc/NotificationCC.d.ts +127 -0
- package/build/cc/NotificationCC.d.ts.map +1 -0
- package/build/cc/NotificationCC.js +1193 -0
- package/build/cc/NotificationCC.js.map +1 -0
- package/build/cc/PowerlevelCC.d.ts +63 -0
- package/build/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/cc/PowerlevelCC.js +262 -0
- package/build/cc/PowerlevelCC.js.map +1 -0
- package/build/cc/ProtectionCC.d.ts +94 -0
- package/build/cc/ProtectionCC.d.ts.map +1 -0
- package/build/cc/ProtectionCC.js +630 -0
- package/build/cc/ProtectionCC.js.map +1 -0
- package/build/cc/SceneActivationCC.d.ts +34 -0
- package/build/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/cc/SceneActivationCC.js +170 -0
- package/build/cc/SceneActivationCC.js.map +1 -0
- package/build/cc/SceneActuatorConfigurationCC.d.ts +52 -0
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/cc/SceneActuatorConfigurationCC.js +368 -0
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/cc/SceneControllerConfigurationCC.d.ts +61 -0
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/cc/SceneControllerConfigurationCC.js +444 -0
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/cc/Security2CC.d.ts +213 -0
- package/build/cc/Security2CC.d.ts.map +1 -0
- package/build/cc/Security2CC.js +1124 -0
- package/build/cc/Security2CC.js.map +1 -0
- package/build/cc/SecurityCC.d.ts +109 -0
- package/build/cc/SecurityCC.d.ts.map +1 -0
- package/build/cc/SecurityCC.js +609 -0
- package/build/cc/SecurityCC.js.map +1 -0
- package/build/cc/SoundSwitchCC.d.ts +87 -0
- package/build/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/cc/SoundSwitchCC.js +548 -0
- package/build/cc/SoundSwitchCC.js.map +1 -0
- package/build/cc/SupervisionCC.d.ts +63 -0
- package/build/cc/SupervisionCC.d.ts.map +1 -0
- package/build/cc/SupervisionCC.js +239 -0
- package/build/cc/SupervisionCC.js.map +1 -0
- package/build/cc/ThermostatFanModeCC.d.ts +53 -0
- package/build/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/cc/ThermostatFanModeCC.js +359 -0
- package/build/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/cc/ThermostatFanStateCC.d.ts +24 -0
- package/build/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/cc/ThermostatFanStateCC.js +131 -0
- package/build/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/cc/ThermostatModeCC.d.ts +58 -0
- package/build/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/cc/ThermostatModeCC.js +370 -0
- package/build/cc/ThermostatModeCC.js.map +1 -0
- package/build/cc/ThermostatOperatingStateCC.d.ts +24 -0
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/cc/ThermostatOperatingStateCC.js +127 -0
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/cc/ThermostatSetbackCC.d.ts +42 -0
- package/build/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/cc/ThermostatSetbackCC.js +237 -0
- package/build/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/cc/ThermostatSetpointCC.d.ts +98 -0
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/cc/ThermostatSetpointCC.js +707 -0
- package/build/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/cc/TimeCC.d.ts +78 -0
- package/build/cc/TimeCC.d.ts.map +1 -0
- package/build/cc/TimeCC.js +373 -0
- package/build/cc/TimeCC.js.map +1 -0
- package/build/cc/TimeParametersCC.d.ts +40 -0
- package/build/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/cc/TimeParametersCC.js +275 -0
- package/build/cc/TimeParametersCC.js.map +1 -0
- package/build/cc/TransportServiceCC.d.ts +101 -0
- package/build/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/cc/TransportServiceCC.js +404 -0
- package/build/cc/TransportServiceCC.js.map +1 -0
- package/build/cc/UserCodeCC.d.ts +219 -0
- package/build/cc/UserCodeCC.d.ts.map +1 -0
- package/build/cc/UserCodeCC.js +1526 -0
- package/build/cc/UserCodeCC.js.map +1 -0
- package/build/cc/VersionCC.d.ts +91 -0
- package/build/cc/VersionCC.d.ts.map +1 -0
- package/build/cc/VersionCC.js +654 -0
- package/build/cc/VersionCC.js.map +1 -0
- package/build/cc/WakeUpCC.d.ts +67 -0
- package/build/cc/WakeUpCC.d.ts.map +1 -0
- package/build/cc/WakeUpCC.js +425 -0
- package/build/cc/WakeUpCC.js.map +1 -0
- package/build/cc/ZWavePlusCC.d.ts +40 -0
- package/build/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/cc/ZWavePlusCC.js +269 -0
- package/build/cc/ZWavePlusCC.js.map +1 -0
- package/build/cc/index.d.ts +64 -0
- package/build/cc/index.d.ts.map +1 -0
- package/build/cc/index.js +496 -0
- package/build/cc/index.js.map +1 -0
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +62 -0
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/cc/manufacturerProprietary/FibaroCC.js +247 -0
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/index.d.ts +11 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +48 -0
- package/build/index.js.map +1 -0
- package/build/index_safe.d.ts +4 -0
- package/build/index_safe.d.ts.map +1 -0
- package/build/index_safe.js +30 -0
- package/build/index_safe.js.map +1 -0
- package/build/lib/API.d.ts +176 -0
- package/build/lib/API.d.ts.map +1 -0
- package/build/lib/API.js +325 -0
- package/build/lib/API.js.map +1 -0
- package/build/lib/CommandClass.d.ts +341 -0
- package/build/lib/CommandClass.d.ts.map +1 -0
- package/build/lib/CommandClass.js +1088 -0
- package/build/lib/CommandClass.js.map +1 -0
- package/build/lib/EncapsulatingCommandClass.d.ts +35 -0
- package/build/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/lib/EncapsulatingCommandClass.js +53 -0
- package/build/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/lib/ICommandClassContainer.d.ts +9 -0
- package/build/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/lib/ICommandClassContainer.js +12 -0
- package/build/lib/ICommandClassContainer.js.map +1 -0
- package/build/lib/NotificationEventPayload.d.ts +11 -0
- package/build/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/lib/NotificationEventPayload.js +11 -0
- package/build/lib/NotificationEventPayload.js.map +1 -0
- package/build/lib/Security2/Extension.d.ts +87 -0
- package/build/lib/Security2/Extension.d.ts.map +1 -0
- package/build/lib/Security2/Extension.js +235 -0
- package/build/lib/Security2/Extension.js.map +1 -0
- package/build/lib/Security2/shared.d.ts +31 -0
- package/build/lib/Security2/shared.d.ts.map +1 -0
- package/build/lib/Security2/shared.js +37 -0
- package/build/lib/Security2/shared.js.map +1 -0
- package/build/lib/_Types.d.ts +1446 -0
- package/build/lib/_Types.d.ts.map +1 -0
- package/build/lib/_Types.js +1334 -0
- package/build/lib/_Types.js.map +1 -0
- package/build/lib/serializers.d.ts +24 -0
- package/build/lib/serializers.d.ts.map +1 -0
- package/build/lib/serializers.js +66 -0
- package/build/lib/serializers.js.map +1 -0
- package/build/lib/utils.d.ts +13 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +675 -0
- package/build/lib/utils.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var _a, _b;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ProtectionCCTimeoutSet = exports.ProtectionCCTimeoutGet = exports.ProtectionCCTimeoutReport = exports.ProtectionCCExclusiveControlSet = exports.ProtectionCCExclusiveControlGet = exports.ProtectionCCExclusiveControlReport = exports.ProtectionCCSupportedGet = exports.ProtectionCCSupportedReport = exports.ProtectionCCGet = exports.ProtectionCCReport = exports.ProtectionCCSet = exports.ProtectionCC = exports.ProtectionCCAPI = exports.getSupportsTimeoutValueID = exports.getSupportsExclusiveControlValueID = exports.getTimeoutValueID = exports.getRFStateValueID = exports.getLocalStateValueID = exports.getExclusiveControlNodeIdValueID = void 0;
|
|
11
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
12
|
+
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
13
|
+
if (boundHasError()) {
|
|
14
|
+
throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const __assertType__LocalProtectionState = $o => {
|
|
18
|
+
function su__1__2__3_eu($o) {
|
|
19
|
+
return ![0, 1, 2].includes($o) ? {} : null;
|
|
20
|
+
}
|
|
21
|
+
return su__1__2__3_eu($o);
|
|
22
|
+
};
|
|
23
|
+
const __assertType__optional_RFProtectionState = $o => {
|
|
24
|
+
function su__1__2__3_eu($o) {
|
|
25
|
+
return ![0, 1, 2].includes($o) ? {} : null;
|
|
26
|
+
}
|
|
27
|
+
function optional_su__1__2__3_eu($o) {
|
|
28
|
+
if ($o !== undefined) {
|
|
29
|
+
const error = su__1__2__3_eu($o);
|
|
30
|
+
if (error)
|
|
31
|
+
return error;
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return optional_su__1__2__3_eu($o);
|
|
36
|
+
};
|
|
37
|
+
const __assertType__number = $o => {
|
|
38
|
+
function _number($o) {
|
|
39
|
+
return typeof $o !== "number" ? {} : null;
|
|
40
|
+
}
|
|
41
|
+
return _number($o);
|
|
42
|
+
};
|
|
43
|
+
const __assertType__Timeout = $o => {
|
|
44
|
+
function _0($o) {
|
|
45
|
+
return !($o instanceof require("@zwave-js/core/safe").Timeout) ? {} : null;
|
|
46
|
+
}
|
|
47
|
+
return _0($o);
|
|
48
|
+
};
|
|
49
|
+
const safe_1 = require("@zwave-js/core/safe");
|
|
50
|
+
const safe_2 = require("@zwave-js/shared/safe");
|
|
51
|
+
const strings_1 = require("alcalzone-shared/strings");
|
|
52
|
+
const API_1 = require("../lib/API");
|
|
53
|
+
const CommandClass_1 = require("../lib/CommandClass");
|
|
54
|
+
const _Types_1 = require("../lib/_Types");
|
|
55
|
+
function getExclusiveControlNodeIdValueID(endpoint) {
|
|
56
|
+
return {
|
|
57
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
58
|
+
endpoint,
|
|
59
|
+
property: "exclusiveControlNodeId",
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.getExclusiveControlNodeIdValueID = getExclusiveControlNodeIdValueID;
|
|
63
|
+
function getLocalStateValueID(endpoint) {
|
|
64
|
+
return {
|
|
65
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
66
|
+
endpoint,
|
|
67
|
+
property: "local",
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.getLocalStateValueID = getLocalStateValueID;
|
|
71
|
+
function getRFStateValueID(endpoint) {
|
|
72
|
+
return {
|
|
73
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
74
|
+
endpoint,
|
|
75
|
+
property: "rf",
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.getRFStateValueID = getRFStateValueID;
|
|
79
|
+
function getTimeoutValueID(endpoint) {
|
|
80
|
+
return {
|
|
81
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
82
|
+
endpoint,
|
|
83
|
+
property: "timeout",
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.getTimeoutValueID = getTimeoutValueID;
|
|
87
|
+
function getSupportsExclusiveControlValueID(endpoint) {
|
|
88
|
+
return {
|
|
89
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
90
|
+
endpoint,
|
|
91
|
+
property: "supportsExclusiveControl",
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
exports.getSupportsExclusiveControlValueID = getSupportsExclusiveControlValueID;
|
|
95
|
+
function getSupportsTimeoutValueID(endpoint) {
|
|
96
|
+
return {
|
|
97
|
+
commandClass: safe_1.CommandClasses.Protection,
|
|
98
|
+
endpoint,
|
|
99
|
+
property: "supportsTimeout",
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
exports.getSupportsTimeoutValueID = getSupportsTimeoutValueID;
|
|
103
|
+
let ProtectionCCAPI = class ProtectionCCAPI extends API_1.CCAPI {
|
|
104
|
+
constructor() {
|
|
105
|
+
super(...arguments);
|
|
106
|
+
this[_a] = async ({ property }, value) => {
|
|
107
|
+
const valueDB = this.tryGetValueDB();
|
|
108
|
+
if (property === "local") {
|
|
109
|
+
if (typeof value !== "number") {
|
|
110
|
+
(0, API_1.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
111
|
+
}
|
|
112
|
+
// We need to set both values together, so retrieve the other one from the value DB
|
|
113
|
+
const rf = valueDB === null || valueDB === void 0 ? void 0 : valueDB.getValue(getRFStateValueID(this.endpoint.index));
|
|
114
|
+
await this.set(value, rf);
|
|
115
|
+
}
|
|
116
|
+
else if (property === "rf") {
|
|
117
|
+
if (typeof value !== "number") {
|
|
118
|
+
(0, API_1.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
119
|
+
}
|
|
120
|
+
// We need to set both values together, so retrieve the other one from the value DB
|
|
121
|
+
const local = valueDB === null || valueDB === void 0 ? void 0 : valueDB.getValue(getLocalStateValueID(this.endpoint.index));
|
|
122
|
+
await this.set(local !== null && local !== void 0 ? local : _Types_1.LocalProtectionState.Unprotected, value);
|
|
123
|
+
}
|
|
124
|
+
else if (property === "exclusiveControlNodeId") {
|
|
125
|
+
if (typeof value !== "number") {
|
|
126
|
+
(0, API_1.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
127
|
+
}
|
|
128
|
+
await this.setExclusiveControl(value);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
(0, API_1.throwUnsupportedProperty)(this.ccId, property);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this[_b] = async ({ property, }) => {
|
|
135
|
+
var _c;
|
|
136
|
+
switch (property) {
|
|
137
|
+
case "local":
|
|
138
|
+
case "rf":
|
|
139
|
+
return (_c = (await this.get())) === null || _c === void 0 ? void 0 : _c[property];
|
|
140
|
+
case "exclusiveControlNodeId":
|
|
141
|
+
return this.getExclusiveControl();
|
|
142
|
+
default:
|
|
143
|
+
(0, API_1.throwUnsupportedProperty)(this.ccId, property);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
supportsCommand(cmd) {
|
|
148
|
+
var _c, _d, _e, _f;
|
|
149
|
+
switch (cmd) {
|
|
150
|
+
case _Types_1.ProtectionCommand.Get:
|
|
151
|
+
return this.isSinglecast();
|
|
152
|
+
case _Types_1.ProtectionCommand.Set:
|
|
153
|
+
return true; // This is mandatory
|
|
154
|
+
case _Types_1.ProtectionCommand.SupportedGet:
|
|
155
|
+
return this.version >= 2 && this.isSinglecast();
|
|
156
|
+
case _Types_1.ProtectionCommand.TimeoutGet:
|
|
157
|
+
case _Types_1.ProtectionCommand.TimeoutSet: {
|
|
158
|
+
return (this.isSinglecast() &&
|
|
159
|
+
((_d = (_c = this.tryGetValueDB()) === null || _c === void 0 ? void 0 : _c.getValue(getSupportsTimeoutValueID(this.endpoint.index))) !== null && _d !== void 0 ? _d : safe_1.unknownBoolean));
|
|
160
|
+
}
|
|
161
|
+
case _Types_1.ProtectionCommand.ExclusiveControlGet:
|
|
162
|
+
case _Types_1.ProtectionCommand.ExclusiveControlSet: {
|
|
163
|
+
return (this.isSinglecast() &&
|
|
164
|
+
((_f = (_e = this.tryGetValueDB()) === null || _e === void 0 ? void 0 : _e.getValue(getSupportsExclusiveControlValueID(this.endpoint.index))) !== null && _f !== void 0 ? _f : safe_1.unknownBoolean));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return super.supportsCommand(cmd);
|
|
168
|
+
}
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
170
|
+
async get() {
|
|
171
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.Get);
|
|
172
|
+
const cc = new ProtectionCCGet(this.applHost, {
|
|
173
|
+
nodeId: this.endpoint.nodeId,
|
|
174
|
+
endpoint: this.endpoint.index,
|
|
175
|
+
});
|
|
176
|
+
const response = await this.applHost.sendCommand(cc, this.commandOptions);
|
|
177
|
+
if (response) {
|
|
178
|
+
return (0, safe_2.pick)(response, ["local", "rf"]);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
async set(local, rf) {
|
|
182
|
+
__assertType("local", "LocalProtectionState", __assertType__LocalProtectionState.bind(void 0, local));
|
|
183
|
+
__assertType("rf", "(optional) RFProtectionState", __assertType__optional_RFProtectionState.bind(void 0, rf));
|
|
184
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.Set);
|
|
185
|
+
const cc = new ProtectionCCSet(this.applHost, {
|
|
186
|
+
nodeId: this.endpoint.nodeId,
|
|
187
|
+
endpoint: this.endpoint.index,
|
|
188
|
+
local,
|
|
189
|
+
rf,
|
|
190
|
+
});
|
|
191
|
+
await this.applHost.sendCommand(cc, this.commandOptions);
|
|
192
|
+
}
|
|
193
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
194
|
+
async getSupported() {
|
|
195
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.SupportedGet);
|
|
196
|
+
const cc = new ProtectionCCSupportedGet(this.applHost, {
|
|
197
|
+
nodeId: this.endpoint.nodeId,
|
|
198
|
+
endpoint: this.endpoint.index,
|
|
199
|
+
});
|
|
200
|
+
const response = await this.applHost.sendCommand(cc, this.commandOptions);
|
|
201
|
+
if (response) {
|
|
202
|
+
return (0, safe_2.pick)(response, [
|
|
203
|
+
"supportsExclusiveControl",
|
|
204
|
+
"supportsTimeout",
|
|
205
|
+
"supportedLocalStates",
|
|
206
|
+
"supportedRFStates",
|
|
207
|
+
]);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
async getExclusiveControl() {
|
|
211
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.ExclusiveControlGet);
|
|
212
|
+
const cc = new ProtectionCCExclusiveControlGet(this.applHost, {
|
|
213
|
+
nodeId: this.endpoint.nodeId,
|
|
214
|
+
endpoint: this.endpoint.index,
|
|
215
|
+
});
|
|
216
|
+
const response = await this.applHost.sendCommand(cc, this.commandOptions);
|
|
217
|
+
return response === null || response === void 0 ? void 0 : response.exclusiveControlNodeId;
|
|
218
|
+
}
|
|
219
|
+
async setExclusiveControl(nodeId) {
|
|
220
|
+
__assertType("nodeId", "number", __assertType__number.bind(void 0, nodeId));
|
|
221
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.ExclusiveControlSet);
|
|
222
|
+
const cc = new ProtectionCCExclusiveControlSet(this.applHost, {
|
|
223
|
+
nodeId: this.endpoint.nodeId,
|
|
224
|
+
endpoint: this.endpoint.index,
|
|
225
|
+
exclusiveControlNodeId: nodeId,
|
|
226
|
+
});
|
|
227
|
+
await this.applHost.sendCommand(cc, this.commandOptions);
|
|
228
|
+
}
|
|
229
|
+
async getTimeout() {
|
|
230
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.TimeoutGet);
|
|
231
|
+
const cc = new ProtectionCCTimeoutGet(this.applHost, {
|
|
232
|
+
nodeId: this.endpoint.nodeId,
|
|
233
|
+
endpoint: this.endpoint.index,
|
|
234
|
+
});
|
|
235
|
+
const response = await this.applHost.sendCommand(cc, this.commandOptions);
|
|
236
|
+
return response === null || response === void 0 ? void 0 : response.timeout;
|
|
237
|
+
}
|
|
238
|
+
async setTimeout(timeout) {
|
|
239
|
+
__assertType("timeout", "Timeout", __assertType__Timeout.bind(void 0, timeout));
|
|
240
|
+
this.assertSupportsCommand(_Types_1.ProtectionCommand, _Types_1.ProtectionCommand.TimeoutSet);
|
|
241
|
+
const cc = new ProtectionCCTimeoutSet(this.applHost, {
|
|
242
|
+
nodeId: this.endpoint.nodeId,
|
|
243
|
+
endpoint: this.endpoint.index,
|
|
244
|
+
timeout,
|
|
245
|
+
});
|
|
246
|
+
await this.applHost.sendCommand(cc, this.commandOptions);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
_a = API_1.SET_VALUE, _b = API_1.POLL_VALUE;
|
|
250
|
+
ProtectionCCAPI = __decorate([
|
|
251
|
+
(0, CommandClass_1.API)(safe_1.CommandClasses.Protection)
|
|
252
|
+
], ProtectionCCAPI);
|
|
253
|
+
exports.ProtectionCCAPI = ProtectionCCAPI;
|
|
254
|
+
let ProtectionCC = class ProtectionCC extends CommandClass_1.CommandClass {
|
|
255
|
+
async interview(applHost) {
|
|
256
|
+
const node = this.getNode(applHost);
|
|
257
|
+
const endpoint = this.getEndpoint(applHost);
|
|
258
|
+
const api = API_1.CCAPI.create(safe_1.CommandClasses.Protection, applHost, endpoint).withOptions({
|
|
259
|
+
priority: safe_1.MessagePriority.NodeQuery,
|
|
260
|
+
});
|
|
261
|
+
applHost.controllerLog.logNode(node.id, {
|
|
262
|
+
endpoint: this.endpointIndex,
|
|
263
|
+
message: `Interviewing ${this.ccName}...`,
|
|
264
|
+
direction: "none",
|
|
265
|
+
});
|
|
266
|
+
// We need to do some queries after a potential timeout
|
|
267
|
+
// In this case, do now mark this CC as interviewed completely
|
|
268
|
+
let hadCriticalTimeout = false;
|
|
269
|
+
// First find out what the device supports
|
|
270
|
+
if (this.version >= 2) {
|
|
271
|
+
applHost.controllerLog.logNode(node.id, {
|
|
272
|
+
message: "querying protection capabilities...",
|
|
273
|
+
direction: "outbound",
|
|
274
|
+
});
|
|
275
|
+
const resp = await api.getSupported();
|
|
276
|
+
if (resp) {
|
|
277
|
+
const logMessage = `received protection capabilities:
|
|
278
|
+
exclusive control: ${resp.supportsExclusiveControl}
|
|
279
|
+
timeout: ${resp.supportsTimeout}
|
|
280
|
+
local protection states: ${resp.supportedLocalStates
|
|
281
|
+
.map((local) => (0, safe_2.getEnumMemberName)(_Types_1.LocalProtectionState, local))
|
|
282
|
+
.map((str) => `\n· ${str}`)
|
|
283
|
+
.join("")}
|
|
284
|
+
RF protection states: ${resp.supportedRFStates
|
|
285
|
+
.map((local) => (0, safe_2.getEnumMemberName)(_Types_1.RFProtectionState, local))
|
|
286
|
+
.map((str) => `\n· ${str}`)
|
|
287
|
+
.join("")}`;
|
|
288
|
+
applHost.controllerLog.logNode(node.id, {
|
|
289
|
+
message: logMessage,
|
|
290
|
+
direction: "inbound",
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
hadCriticalTimeout = true;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
await this.refreshValues(applHost);
|
|
298
|
+
// Remember that the interview is complete
|
|
299
|
+
if (!hadCriticalTimeout)
|
|
300
|
+
this.setInterviewComplete(applHost, true);
|
|
301
|
+
}
|
|
302
|
+
async refreshValues(applHost) {
|
|
303
|
+
const node = this.getNode(applHost);
|
|
304
|
+
const endpoint = this.getEndpoint(applHost);
|
|
305
|
+
const api = API_1.CCAPI.create(safe_1.CommandClasses.Protection, applHost, endpoint).withOptions({
|
|
306
|
+
priority: safe_1.MessagePriority.NodeQuery,
|
|
307
|
+
});
|
|
308
|
+
const valueDB = this.getValueDB(applHost);
|
|
309
|
+
const supportsExclusiveControl = !!valueDB.getValue(getSupportsExclusiveControlValueID(this.endpointIndex));
|
|
310
|
+
const supportsTimeout = !!valueDB.getValue(getSupportsTimeoutValueID(this.endpointIndex));
|
|
311
|
+
// Query the current state
|
|
312
|
+
applHost.controllerLog.logNode(node.id, {
|
|
313
|
+
message: "querying protection status...",
|
|
314
|
+
direction: "outbound",
|
|
315
|
+
});
|
|
316
|
+
const protectionResp = await api.get();
|
|
317
|
+
if (protectionResp) {
|
|
318
|
+
let logMessage = `received protection status:
|
|
319
|
+
local: ${(0, safe_2.getEnumMemberName)(_Types_1.LocalProtectionState, protectionResp.local)}`;
|
|
320
|
+
if (protectionResp.rf != undefined) {
|
|
321
|
+
logMessage += `
|
|
322
|
+
rf ${(0, safe_2.getEnumMemberName)(_Types_1.RFProtectionState, protectionResp.rf)}`;
|
|
323
|
+
}
|
|
324
|
+
applHost.controllerLog.logNode(node.id, {
|
|
325
|
+
message: logMessage,
|
|
326
|
+
direction: "inbound",
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
if (supportsTimeout) {
|
|
330
|
+
// Query the current timeout
|
|
331
|
+
applHost.controllerLog.logNode(node.id, {
|
|
332
|
+
message: "querying protection timeout...",
|
|
333
|
+
direction: "outbound",
|
|
334
|
+
});
|
|
335
|
+
const timeout = await api.getTimeout();
|
|
336
|
+
if (timeout) {
|
|
337
|
+
applHost.controllerLog.logNode(node.id, {
|
|
338
|
+
message: `received timeout: ${timeout.toString()}`,
|
|
339
|
+
direction: "inbound",
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (supportsExclusiveControl) {
|
|
344
|
+
// Query the current timeout
|
|
345
|
+
applHost.controllerLog.logNode(node.id, {
|
|
346
|
+
message: "querying exclusive control node...",
|
|
347
|
+
direction: "outbound",
|
|
348
|
+
});
|
|
349
|
+
const nodeId = await api.getExclusiveControl();
|
|
350
|
+
if (nodeId != undefined) {
|
|
351
|
+
applHost.controllerLog.logNode(node.id, {
|
|
352
|
+
message: (nodeId !== 0
|
|
353
|
+
? `Node ${(0, strings_1.padStart)(nodeId.toString(), 3, "0")}`
|
|
354
|
+
: `no node`) + ` has exclusive control`,
|
|
355
|
+
direction: "inbound",
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
ProtectionCC = __decorate([
|
|
362
|
+
(0, CommandClass_1.commandClass)(safe_1.CommandClasses.Protection),
|
|
363
|
+
(0, CommandClass_1.implementedVersion)(2)
|
|
364
|
+
], ProtectionCC);
|
|
365
|
+
exports.ProtectionCC = ProtectionCC;
|
|
366
|
+
let ProtectionCCSet = class ProtectionCCSet extends ProtectionCC {
|
|
367
|
+
constructor(host, options) {
|
|
368
|
+
super(host, options);
|
|
369
|
+
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
370
|
+
// TODO: Deserialize payload
|
|
371
|
+
throw new safe_1.ZWaveError(`${this.constructor.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
this.local = options.local;
|
|
375
|
+
this.rf = options.rf;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
serialize() {
|
|
379
|
+
const payload = [this.local & 0b1111];
|
|
380
|
+
if (this.version >= 2 && this.rf != undefined) {
|
|
381
|
+
payload.push(this.rf & 0b1111);
|
|
382
|
+
}
|
|
383
|
+
this.payload = Buffer.from(payload);
|
|
384
|
+
return super.serialize();
|
|
385
|
+
}
|
|
386
|
+
toLogEntry(applHost) {
|
|
387
|
+
const message = {
|
|
388
|
+
local: (0, safe_2.getEnumMemberName)(_Types_1.LocalProtectionState, this.local),
|
|
389
|
+
};
|
|
390
|
+
if (this.rf != undefined) {
|
|
391
|
+
message.rf = (0, safe_2.getEnumMemberName)(_Types_1.RFProtectionState, this.rf);
|
|
392
|
+
}
|
|
393
|
+
return {
|
|
394
|
+
...super.toLogEntry(applHost),
|
|
395
|
+
message,
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
ProtectionCCSet = __decorate([
|
|
400
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.Set)
|
|
401
|
+
], ProtectionCCSet);
|
|
402
|
+
exports.ProtectionCCSet = ProtectionCCSet;
|
|
403
|
+
let ProtectionCCReport = class ProtectionCCReport extends ProtectionCC {
|
|
404
|
+
constructor(host, options) {
|
|
405
|
+
super(host, options);
|
|
406
|
+
(0, safe_1.validatePayload)(this.payload.length >= 1);
|
|
407
|
+
this.local = this.payload[0] & 0b1111;
|
|
408
|
+
if (this.payload.length >= 2) {
|
|
409
|
+
this.rf = this.payload[1] & 0b1111;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
toLogEntry(applHost) {
|
|
413
|
+
const message = {
|
|
414
|
+
local: (0, safe_2.getEnumMemberName)(_Types_1.LocalProtectionState, this.local),
|
|
415
|
+
};
|
|
416
|
+
if (this.rf != undefined) {
|
|
417
|
+
message.rf = (0, safe_2.getEnumMemberName)(_Types_1.RFProtectionState, this.rf);
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
...super.toLogEntry(applHost),
|
|
421
|
+
message,
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
__decorate([
|
|
426
|
+
(0, CommandClass_1.ccValue)(),
|
|
427
|
+
(0, CommandClass_1.ccValueMetadata)({
|
|
428
|
+
...safe_1.ValueMetadata.Number,
|
|
429
|
+
label: "Local protection state",
|
|
430
|
+
states: (0, safe_1.enumValuesToMetadataStates)(_Types_1.LocalProtectionState),
|
|
431
|
+
})
|
|
432
|
+
], ProtectionCCReport.prototype, "local", void 0);
|
|
433
|
+
__decorate([
|
|
434
|
+
(0, CommandClass_1.ccValue)({ minVersion: 2 }),
|
|
435
|
+
(0, CommandClass_1.ccValueMetadata)({
|
|
436
|
+
...safe_1.ValueMetadata.Number,
|
|
437
|
+
label: "RF protection state",
|
|
438
|
+
states: (0, safe_1.enumValuesToMetadataStates)(_Types_1.RFProtectionState),
|
|
439
|
+
})
|
|
440
|
+
], ProtectionCCReport.prototype, "rf", void 0);
|
|
441
|
+
ProtectionCCReport = __decorate([
|
|
442
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.Report)
|
|
443
|
+
], ProtectionCCReport);
|
|
444
|
+
exports.ProtectionCCReport = ProtectionCCReport;
|
|
445
|
+
let ProtectionCCGet = class ProtectionCCGet extends ProtectionCC {
|
|
446
|
+
};
|
|
447
|
+
ProtectionCCGet = __decorate([
|
|
448
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.Get),
|
|
449
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCReport)
|
|
450
|
+
], ProtectionCCGet);
|
|
451
|
+
exports.ProtectionCCGet = ProtectionCCGet;
|
|
452
|
+
let ProtectionCCSupportedReport = class ProtectionCCSupportedReport extends ProtectionCC {
|
|
453
|
+
constructor(host, options) {
|
|
454
|
+
super(host, options);
|
|
455
|
+
(0, safe_1.validatePayload)(this.payload.length >= 5);
|
|
456
|
+
this.supportsTimeout = !!(this.payload[0] & 0b1);
|
|
457
|
+
this.supportsExclusiveControl = !!(this.payload[0] & 0b10);
|
|
458
|
+
this.supportedLocalStates = (0, safe_1.parseBitMask)(this.payload.slice(1, 3), _Types_1.LocalProtectionState.Unprotected);
|
|
459
|
+
this.supportedRFStates = (0, safe_1.parseBitMask)(this.payload.slice(3, 5), _Types_1.RFProtectionState.Unprotected);
|
|
460
|
+
}
|
|
461
|
+
persistValues(applHost) {
|
|
462
|
+
if (!super.persistValues(applHost))
|
|
463
|
+
return false;
|
|
464
|
+
const valueDb = this.getValueDB(applHost);
|
|
465
|
+
// update metadata (partially) for the local and rf values
|
|
466
|
+
valueDb.setMetadata(getLocalStateValueID(this.endpointIndex), {
|
|
467
|
+
...safe_1.ValueMetadata.Number,
|
|
468
|
+
states: (0, safe_1.enumValuesToMetadataStates)(_Types_1.LocalProtectionState, this.supportedLocalStates),
|
|
469
|
+
});
|
|
470
|
+
// update metadata (partially) for the local and rf values
|
|
471
|
+
valueDb.setMetadata(getRFStateValueID(this.endpointIndex), {
|
|
472
|
+
...safe_1.ValueMetadata.Number,
|
|
473
|
+
states: (0, safe_1.enumValuesToMetadataStates)(_Types_1.RFProtectionState, this.supportedRFStates),
|
|
474
|
+
});
|
|
475
|
+
return true;
|
|
476
|
+
}
|
|
477
|
+
toLogEntry(applHost) {
|
|
478
|
+
return {
|
|
479
|
+
...super.toLogEntry(applHost),
|
|
480
|
+
message: {
|
|
481
|
+
"supports exclusive control": this.supportsExclusiveControl,
|
|
482
|
+
"supports timeout": this.supportsTimeout,
|
|
483
|
+
"local protection states": this.supportedLocalStates
|
|
484
|
+
.map((local) => (0, safe_2.getEnumMemberName)(_Types_1.LocalProtectionState, local))
|
|
485
|
+
.map((str) => `\n· ${str}`)
|
|
486
|
+
.join(""),
|
|
487
|
+
"RF protection states": this.supportedRFStates
|
|
488
|
+
.map((rf) => (0, safe_2.getEnumMemberName)(_Types_1.RFProtectionState, rf))
|
|
489
|
+
.map((str) => `\n· ${str}`)
|
|
490
|
+
.join(""),
|
|
491
|
+
},
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
__decorate([
|
|
496
|
+
(0, CommandClass_1.ccValue)({ internal: true })
|
|
497
|
+
], ProtectionCCSupportedReport.prototype, "supportsExclusiveControl", void 0);
|
|
498
|
+
__decorate([
|
|
499
|
+
(0, CommandClass_1.ccValue)({ internal: true })
|
|
500
|
+
], ProtectionCCSupportedReport.prototype, "supportsTimeout", void 0);
|
|
501
|
+
__decorate([
|
|
502
|
+
(0, CommandClass_1.ccValue)({ internal: true })
|
|
503
|
+
], ProtectionCCSupportedReport.prototype, "supportedLocalStates", void 0);
|
|
504
|
+
__decorate([
|
|
505
|
+
(0, CommandClass_1.ccValue)({ internal: true })
|
|
506
|
+
], ProtectionCCSupportedReport.prototype, "supportedRFStates", void 0);
|
|
507
|
+
ProtectionCCSupportedReport = __decorate([
|
|
508
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.SupportedReport)
|
|
509
|
+
], ProtectionCCSupportedReport);
|
|
510
|
+
exports.ProtectionCCSupportedReport = ProtectionCCSupportedReport;
|
|
511
|
+
let ProtectionCCSupportedGet = class ProtectionCCSupportedGet extends ProtectionCC {
|
|
512
|
+
};
|
|
513
|
+
ProtectionCCSupportedGet = __decorate([
|
|
514
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.SupportedGet),
|
|
515
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCSupportedReport)
|
|
516
|
+
], ProtectionCCSupportedGet);
|
|
517
|
+
exports.ProtectionCCSupportedGet = ProtectionCCSupportedGet;
|
|
518
|
+
let ProtectionCCExclusiveControlReport = class ProtectionCCExclusiveControlReport extends ProtectionCC {
|
|
519
|
+
constructor(host, options) {
|
|
520
|
+
super(host, options);
|
|
521
|
+
(0, safe_1.validatePayload)(this.payload.length >= 1);
|
|
522
|
+
this.exclusiveControlNodeId = this.payload[0];
|
|
523
|
+
}
|
|
524
|
+
toLogEntry(applHost) {
|
|
525
|
+
return {
|
|
526
|
+
...super.toLogEntry(applHost),
|
|
527
|
+
message: {
|
|
528
|
+
"exclusive control node id": this.exclusiveControlNodeId,
|
|
529
|
+
},
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
__decorate([
|
|
534
|
+
(0, CommandClass_1.ccValue)({ minVersion: 2 })
|
|
535
|
+
], ProtectionCCExclusiveControlReport.prototype, "exclusiveControlNodeId", void 0);
|
|
536
|
+
ProtectionCCExclusiveControlReport = __decorate([
|
|
537
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.ExclusiveControlReport)
|
|
538
|
+
], ProtectionCCExclusiveControlReport);
|
|
539
|
+
exports.ProtectionCCExclusiveControlReport = ProtectionCCExclusiveControlReport;
|
|
540
|
+
let ProtectionCCExclusiveControlGet = class ProtectionCCExclusiveControlGet extends ProtectionCC {
|
|
541
|
+
};
|
|
542
|
+
ProtectionCCExclusiveControlGet = __decorate([
|
|
543
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.ExclusiveControlGet),
|
|
544
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCExclusiveControlReport)
|
|
545
|
+
], ProtectionCCExclusiveControlGet);
|
|
546
|
+
exports.ProtectionCCExclusiveControlGet = ProtectionCCExclusiveControlGet;
|
|
547
|
+
let ProtectionCCExclusiveControlSet = class ProtectionCCExclusiveControlSet extends ProtectionCC {
|
|
548
|
+
constructor(host, options) {
|
|
549
|
+
super(host, options);
|
|
550
|
+
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
551
|
+
// TODO: Deserialize payload
|
|
552
|
+
throw new safe_1.ZWaveError(`${this.constructor.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
this.exclusiveControlNodeId = options.exclusiveControlNodeId;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
serialize() {
|
|
559
|
+
this.payload = Buffer.from([this.exclusiveControlNodeId]);
|
|
560
|
+
return super.serialize();
|
|
561
|
+
}
|
|
562
|
+
toLogEntry(applHost) {
|
|
563
|
+
return {
|
|
564
|
+
...super.toLogEntry(applHost),
|
|
565
|
+
message: {
|
|
566
|
+
"exclusive control node id": this.exclusiveControlNodeId,
|
|
567
|
+
},
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
ProtectionCCExclusiveControlSet = __decorate([
|
|
572
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.ExclusiveControlSet),
|
|
573
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCReport)
|
|
574
|
+
], ProtectionCCExclusiveControlSet);
|
|
575
|
+
exports.ProtectionCCExclusiveControlSet = ProtectionCCExclusiveControlSet;
|
|
576
|
+
let ProtectionCCTimeoutReport = class ProtectionCCTimeoutReport extends ProtectionCC {
|
|
577
|
+
constructor(host, options) {
|
|
578
|
+
super(host, options);
|
|
579
|
+
(0, safe_1.validatePayload)(this.payload.length >= 1);
|
|
580
|
+
this.timeout = safe_1.Timeout.parse(this.payload[0]);
|
|
581
|
+
}
|
|
582
|
+
toLogEntry(applHost) {
|
|
583
|
+
return {
|
|
584
|
+
...super.toLogEntry(applHost),
|
|
585
|
+
message: { timeout: this.timeout.toString() },
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
__decorate([
|
|
590
|
+
(0, CommandClass_1.ccValue)({ minVersion: 2 })
|
|
591
|
+
], ProtectionCCTimeoutReport.prototype, "timeout", void 0);
|
|
592
|
+
ProtectionCCTimeoutReport = __decorate([
|
|
593
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.TimeoutReport)
|
|
594
|
+
], ProtectionCCTimeoutReport);
|
|
595
|
+
exports.ProtectionCCTimeoutReport = ProtectionCCTimeoutReport;
|
|
596
|
+
let ProtectionCCTimeoutGet = class ProtectionCCTimeoutGet extends ProtectionCC {
|
|
597
|
+
};
|
|
598
|
+
ProtectionCCTimeoutGet = __decorate([
|
|
599
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.TimeoutGet),
|
|
600
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCTimeoutReport)
|
|
601
|
+
], ProtectionCCTimeoutGet);
|
|
602
|
+
exports.ProtectionCCTimeoutGet = ProtectionCCTimeoutGet;
|
|
603
|
+
let ProtectionCCTimeoutSet = class ProtectionCCTimeoutSet extends ProtectionCC {
|
|
604
|
+
constructor(host, options) {
|
|
605
|
+
super(host, options);
|
|
606
|
+
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
607
|
+
// TODO: Deserialize payload
|
|
608
|
+
throw new safe_1.ZWaveError(`${this.constructor.name}: deserialization not implemented`, safe_1.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
this.timeout = options.timeout;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
serialize() {
|
|
615
|
+
this.payload = Buffer.from([this.timeout.serialize()]);
|
|
616
|
+
return super.serialize();
|
|
617
|
+
}
|
|
618
|
+
toLogEntry(applHost) {
|
|
619
|
+
return {
|
|
620
|
+
...super.toLogEntry(applHost),
|
|
621
|
+
message: { timeout: this.timeout.toString() },
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
ProtectionCCTimeoutSet = __decorate([
|
|
626
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ProtectionCommand.TimeoutSet),
|
|
627
|
+
(0, CommandClass_1.expectedCCResponse)(ProtectionCCReport)
|
|
628
|
+
], ProtectionCCTimeoutSet);
|
|
629
|
+
exports.ProtectionCCTimeoutSet = ProtectionCCTimeoutSet;
|
|
630
|
+
//# sourceMappingURL=ProtectionCC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtectionCC.js","sourceRoot":"","sources":["../../src/cc/ProtectionCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,8CAY6B;AAE7B,gDAAgE;AAEhE,sDAAoD;AACpD,oCAQoB;AACpB,sDAY6B;AAC7B,0CAIuB;AAEvB,SAAgB,gCAAgC,CAAC,QAAgB;IAChE,OAAO;QACN,YAAY,EAAE,qBAAc,CAAC,UAAU;QACvC,QAAQ;QACR,QAAQ,EAAE,wBAAwB;KAClC,CAAC;AACH,CAAC;AAND,4EAMC;AAED,SAAgB,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