zwave-js 9.0.4 → 9.0.7
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/CommandClass_safe.d.ts.map +1 -1
- package/build/CommandClass_safe.js +1 -0
- package/build/CommandClass_safe.js.map +1 -1
- package/build/Utils_safe.d.ts +1 -1
- package/build/Utils_safe.d.ts.map +1 -1
- package/build/Utils_safe.js +13 -6
- package/build/Utils_safe.js.map +1 -1
- package/build/Values.d.ts +2 -2
- package/build/Values.d.ts.map +1 -1
- package/build/Values.js +2 -1
- package/build/Values.js.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.d.ts +3 -25
- package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.js +26 -44
- package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
- package/build/lib/commandclass/AssociationCC.d.ts +1 -9
- package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationCC.js +17 -38
- package/build/lib/commandclass/AssociationCC.js.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +1 -203
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.js +15 -204
- package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.d.ts +1 -28
- package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.js +53 -84
- package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
- package/build/lib/commandclass/BasicCC.d.ts +2 -6
- package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
- package/build/lib/commandclass/BasicCC.js +9 -14
- package/build/lib/commandclass/BasicCC.js.map +1 -1
- package/build/lib/commandclass/BatteryCC.d.ts +1 -22
- package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
- package/build/lib/commandclass/BatteryCC.js +19 -43
- package/build/lib/commandclass/BatteryCC.js.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.d.ts +2 -34
- package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.js +28 -55
- package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.d.ts +1 -5
- package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.js +9 -18
- package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
- package/build/lib/commandclass/CRC16CC.d.ts +1 -3
- package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
- package/build/lib/commandclass/CRC16CC.js +4 -8
- package/build/lib/commandclass/CRC16CC.js.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.d.ts +1 -20
- package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.js +20 -41
- package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +1 -19
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.js +38 -52
- package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
- package/build/lib/commandclass/ClockCC.d.ts +1 -18
- package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClockCC.js +22 -42
- package/build/lib/commandclass/ClockCC.js.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.d.ts +2 -41
- package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.js +66 -141
- package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.d.ts +1 -17
- package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.js +35 -80
- package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/DeviceResetLocallyCC.d.ts +1 -3
- package/build/lib/commandclass/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/lib/commandclass/DeviceResetLocallyCC.js +3 -6
- package/build/lib/commandclass/DeviceResetLocallyCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockCC.d.ts +1 -25
- package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockCC.js +46 -78
- package/build/lib/commandclass/DoorLockCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts +1 -51
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.js +14 -63
- package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
- package/build/lib/commandclass/EntryControlCC.d.ts +1 -11
- package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
- package/build/lib/commandclass/EntryControlCC.js +17 -29
- package/build/lib/commandclass/EntryControlCC.js.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +1 -64
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +27 -93
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/lib/commandclass/HailCC.d.ts +1 -3
- package/build/lib/commandclass/HailCC.d.ts.map +1 -1
- package/build/lib/commandclass/HailCC.js +3 -6
- package/build/lib/commandclass/HailCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.d.ts +1 -13
- package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.js +28 -43
- package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +1 -9
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js +9 -20
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +2 -36
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.js +33 -52
- package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
- package/build/lib/commandclass/IndicatorCC.d.ts +2 -17
- package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/IndicatorCC.js +13 -24
- package/build/lib/commandclass/IndicatorCC.js.map +1 -1
- package/build/lib/commandclass/IrrigationCC.d.ts +1 -33
- package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
- package/build/lib/commandclass/IrrigationCC.js +56 -110
- package/build/lib/commandclass/IrrigationCC.js.map +1 -1
- package/build/lib/commandclass/LanguageCC.d.ts +1 -5
- package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
- package/build/lib/commandclass/LanguageCC.js +9 -14
- package/build/lib/commandclass/LanguageCC.js.map +1 -1
- package/build/lib/commandclass/LockCC.d.ts +1 -5
- package/build/lib/commandclass/LockCC.d.ts.map +1 -1
- package/build/lib/commandclass/LockCC.js +9 -15
- package/build/lib/commandclass/LockCC.js.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +1 -14
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.js +13 -28
- package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
- package/build/lib/commandclass/MeterCC.d.ts +2 -26
- package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
- package/build/lib/commandclass/MeterCC.js +24 -59
- package/build/lib/commandclass/MeterCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +1 -24
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.js +16 -31
- package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.d.ts +1 -14
- package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.js +29 -45
- package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.d.ts +1 -3
- package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.js +4 -7
- package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.d.ts +2 -25
- package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.js +16 -27
- package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts +3 -31
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.js +15 -45
- package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.d.ts +1 -8
- package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.js +14 -23
- package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
- package/build/lib/commandclass/NotificationCC.d.ts +3 -19
- package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
- package/build/lib/commandclass/NotificationCC.js +21 -38
- package/build/lib/commandclass/NotificationCC.js.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.d.ts +1 -9
- package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.js +17 -63
- package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
- package/build/lib/commandclass/ProtectionCC.d.ts +1 -23
- package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
- package/build/lib/commandclass/ProtectionCC.js +46 -104
- package/build/lib/commandclass/ProtectionCC.js.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.d.ts +1 -3
- package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.js +4 -11
- package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +1 -5
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js +10 -16
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +1 -5
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.js +11 -17
- package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/Security2CC.d.ts +1 -16
- package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
- package/build/lib/commandclass/Security2CC.js +34 -51
- package/build/lib/commandclass/Security2CC.js.map +1 -1
- package/build/lib/commandclass/SecurityCC.d.ts +1 -13
- package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
- package/build/lib/commandclass/SecurityCC.js +21 -35
- package/build/lib/commandclass/SecurityCC.js.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.d.ts +1 -16
- package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.js +25 -44
- package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
- package/build/lib/commandclass/SupervisionCC.d.ts +1 -16
- package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
- package/build/lib/commandclass/SupervisionCC.js +11 -24
- package/build/lib/commandclass/SupervisionCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts +1 -24
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.js +22 -90
- package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts +1 -15
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.js +9 -26
- package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.d.ts +1 -28
- package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.js +25 -109
- package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +1 -21
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.js +9 -37
- package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts +1 -13
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.js +12 -26
- package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts +2 -45
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.js +33 -109
- package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
- package/build/lib/commandclass/TimeCC.d.ts +1 -9
- package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeCC.js +17 -27
- package/build/lib/commandclass/TimeCC.js.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.d.ts +1 -5
- package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.js +9 -15
- package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.d.ts +1 -7
- package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.js +9 -17
- package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
- package/build/lib/commandclass/UserCodeCC.d.ts +1 -34
- package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
- package/build/lib/commandclass/UserCodeCC.js +78 -142
- package/build/lib/commandclass/UserCodeCC.js.map +1 -1
- package/build/lib/commandclass/VersionCC.d.ts +1 -10
- package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
- package/build/lib/commandclass/VersionCC.js +18 -28
- package/build/lib/commandclass/VersionCC.js.map +1 -1
- package/build/lib/commandclass/WakeUpCC.d.ts +1 -9
- package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
- package/build/lib/commandclass/WakeUpCC.js +17 -26
- package/build/lib/commandclass/WakeUpCC.js.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.d.ts +1 -24
- package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.js +10 -36
- package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
- package/build/lib/commandclass/_Types.d.ts +1235 -1
- package/build/lib/commandclass/_Types.d.ts.map +1 -1
- package/build/lib/commandclass/_Types.js +1203 -1
- package/build/lib/commandclass/_Types.js.map +1 -1
- package/build/lib/commandclass/index.d.ts +30 -45
- package/build/lib/commandclass/index.d.ts.map +1 -1
- package/build/lib/commandclass/index.js +55 -49
- package/build/lib/commandclass/index.js.map +1 -1
- package/build/lib/controller/Controller.d.ts +1 -2
- package/build/lib/controller/Controller.d.ts.map +1 -1
- package/build/lib/controller/Controller.js.map +1 -1
- package/build/lib/driver/Driver.d.ts +2 -1
- package/build/lib/driver/Driver.d.ts.map +1 -1
- package/build/lib/driver/Driver.js +25 -24
- package/build/lib/driver/Driver.js.map +1 -1
- package/build/lib/node/Endpoint.d.ts.map +1 -1
- package/build/lib/node/Endpoint.js.map +1 -1
- package/build/lib/node/Node.d.ts +1 -3
- package/build/lib/node/Node.d.ts.map +1 -1
- package/build/lib/node/Node.js +54 -44
- package/build/lib/node/Node.js.map +1 -1
- package/build/lib/node/_Types.d.ts +1 -2
- package/build/lib/node/_Types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupervisionCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/SupervisionCC.ts"],"names":[],"mappings":";AAAA,OAAO,EAEN,QAAQ,EAER,KAAK,EACL,mBAAmB,EAKnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAGN,gBAAgB,EAChB,YAAY,EAEZ,kCAAkC,EAIlC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"SupervisionCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/SupervisionCC.ts"],"names":[],"mappings":";AAAA,OAAO,EAEN,QAAQ,EAER,KAAK,EACL,mBAAmB,EAKnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAGN,gBAAgB,EAChB,YAAY,EAEZ,kCAAkC,EAIlC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAMjE,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC;AAID,qBACa,gBAAiB,SAAQ,aAAa;IAC3C,eAAe,CAAC,GAAG,EAAE,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAAC;IASlD,gBAAgB,CAC5B,YAAY,EAAE,YAAY,EAE1B,oBAAoB,G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AAM;IAmBnB,UAAU,IAAI,mBAAmB;CAcxC;AAED,UAAU,uBAAwB,SAAQ,gBAAgB;IACzD,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,YAAY,CAAC;CAC3B;AASD,qBAEa,gBAAiB,SAAQ,aAAa;gBAEjD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,kCAAkC,GAAG,uBAAuB;IAuB/D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;IAE3B,SAAS,IAAI,MAAM;IAa1B,SAAS,CAAC,4BAA4B,IAAI,MAAM;IAKzC,UAAU,IAAI,mBAAmB;CASxC"}
|
|
@@ -6,28 +6,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SupervisionCCGet = exports.SupervisionCCReport = exports.SupervisionCC = exports.SupervisionCCAPI = exports.getNextSessionId =
|
|
9
|
+
exports.SupervisionCCGet = exports.SupervisionCCReport = exports.SupervisionCC = exports.SupervisionCCAPI = exports.getNextSessionId = void 0;
|
|
10
10
|
const core_1 = require("@zwave-js/core");
|
|
11
11
|
const shared_1 = require("@zwave-js/shared");
|
|
12
12
|
const Constants_1 = require("../message/Constants");
|
|
13
13
|
const API_1 = require("./API");
|
|
14
14
|
const CommandClass_1 = require("./CommandClass");
|
|
15
|
+
const _Types_1 = require("./_Types");
|
|
15
16
|
// @noSetValueAPI - This CC has no values to set
|
|
16
17
|
// @noInterview - This CC is only used for encapsulation
|
|
17
|
-
// All the supported commands
|
|
18
|
-
var SupervisionCommand;
|
|
19
|
-
(function (SupervisionCommand) {
|
|
20
|
-
SupervisionCommand[SupervisionCommand["Get"] = 1] = "Get";
|
|
21
|
-
SupervisionCommand[SupervisionCommand["Report"] = 2] = "Report";
|
|
22
|
-
})(SupervisionCommand = exports.SupervisionCommand || (exports.SupervisionCommand = {}));
|
|
23
|
-
/** @publicAPI */
|
|
24
|
-
var SupervisionStatus;
|
|
25
|
-
(function (SupervisionStatus) {
|
|
26
|
-
SupervisionStatus[SupervisionStatus["NoSupport"] = 0] = "NoSupport";
|
|
27
|
-
SupervisionStatus[SupervisionStatus["Working"] = 1] = "Working";
|
|
28
|
-
SupervisionStatus[SupervisionStatus["Fail"] = 2] = "Fail";
|
|
29
|
-
SupervisionStatus[SupervisionStatus["Success"] = 255] = "Success";
|
|
30
|
-
})(SupervisionStatus = exports.SupervisionStatus || (exports.SupervisionStatus = {}));
|
|
31
18
|
let sessionId = 0;
|
|
32
19
|
/** Returns the next session ID to be used for supervision */
|
|
33
20
|
function getNextSessionId() {
|
|
@@ -43,8 +30,8 @@ exports.getNextSessionId = getNextSessionId;
|
|
|
43
30
|
let SupervisionCCAPI = class SupervisionCCAPI extends API_1.PhysicalCCAPI {
|
|
44
31
|
supportsCommand(cmd) {
|
|
45
32
|
switch (cmd) {
|
|
46
|
-
case SupervisionCommand.Get:
|
|
47
|
-
case SupervisionCommand.Report:
|
|
33
|
+
case _Types_1.SupervisionCommand.Get:
|
|
34
|
+
case _Types_1.SupervisionCommand.Report:
|
|
48
35
|
return true; // This is mandatory
|
|
49
36
|
}
|
|
50
37
|
return super.supportsCommand(cmd);
|
|
@@ -52,7 +39,7 @@ let SupervisionCCAPI = class SupervisionCCAPI extends API_1.PhysicalCCAPI {
|
|
|
52
39
|
async sendEncapsulated(encapsulated,
|
|
53
40
|
// If possible, keep us updated about the progress
|
|
54
41
|
requestStatusUpdates = true) {
|
|
55
|
-
this.assertSupportsCommand(SupervisionCommand, SupervisionCommand.Get);
|
|
42
|
+
this.assertSupportsCommand(_Types_1.SupervisionCommand, _Types_1.SupervisionCommand.Get);
|
|
56
43
|
const cc = new SupervisionCCGet(this.driver, {
|
|
57
44
|
nodeId: this.endpoint.nodeId,
|
|
58
45
|
requestStatusUpdates,
|
|
@@ -125,8 +112,8 @@ let SupervisionCC = class SupervisionCC extends CommandClass_1.CommandClass {
|
|
|
125
112
|
* Returns `undefined` when there is no session ID or the command was sent as multicast.
|
|
126
113
|
*/
|
|
127
114
|
static getSessionId(command) {
|
|
128
|
-
if (command.isEncapsulatedWith(core_1.CommandClasses.Supervision, SupervisionCommand.Get)) {
|
|
129
|
-
const supervisionEncapsulation = command.getEncapsulatingCC(core_1.CommandClasses.Supervision, SupervisionCommand.Get);
|
|
115
|
+
if (command.isEncapsulatedWith(core_1.CommandClasses.Supervision, _Types_1.SupervisionCommand.Get)) {
|
|
116
|
+
const supervisionEncapsulation = command.getEncapsulatingCC(core_1.CommandClasses.Supervision, _Types_1.SupervisionCommand.Get);
|
|
130
117
|
if (!supervisionEncapsulation.isMulticast()) {
|
|
131
118
|
return supervisionEncapsulation.sessionId;
|
|
132
119
|
}
|
|
@@ -155,7 +142,7 @@ let SupervisionCCReport = class SupervisionCCReport extends SupervisionCC {
|
|
|
155
142
|
this.requestWakeUpOnDemand = !!options.requestWakeUpOnDemand;
|
|
156
143
|
this.sessionId = options.sessionId;
|
|
157
144
|
this.status = options.status;
|
|
158
|
-
if (options.status === SupervisionStatus.Working) {
|
|
145
|
+
if (options.status === _Types_1.SupervisionStatus.Working) {
|
|
159
146
|
this.duration = options.duration;
|
|
160
147
|
}
|
|
161
148
|
else {
|
|
@@ -184,7 +171,7 @@ let SupervisionCCReport = class SupervisionCCReport extends SupervisionCC {
|
|
|
184
171
|
const message = {
|
|
185
172
|
"session id": this.sessionId,
|
|
186
173
|
"more updates follow": this.moreUpdatesFollow,
|
|
187
|
-
status: (0, shared_1.getEnumMemberName)(SupervisionStatus, this.status),
|
|
174
|
+
status: (0, shared_1.getEnumMemberName)(_Types_1.SupervisionStatus, this.status),
|
|
188
175
|
};
|
|
189
176
|
if (this.duration) {
|
|
190
177
|
message.duration = this.duration.toString();
|
|
@@ -196,7 +183,7 @@ let SupervisionCCReport = class SupervisionCCReport extends SupervisionCC {
|
|
|
196
183
|
}
|
|
197
184
|
};
|
|
198
185
|
SupervisionCCReport = __decorate([
|
|
199
|
-
(0, CommandClass_1.CCCommand)(SupervisionCommand.Report)
|
|
186
|
+
(0, CommandClass_1.CCCommand)(_Types_1.SupervisionCommand.Report)
|
|
200
187
|
], SupervisionCCReport);
|
|
201
188
|
exports.SupervisionCCReport = SupervisionCCReport;
|
|
202
189
|
function testResponseForSupervisionCCGet(sent, received) {
|
|
@@ -252,7 +239,7 @@ let SupervisionCCGet = class SupervisionCCGet extends SupervisionCC {
|
|
|
252
239
|
}
|
|
253
240
|
};
|
|
254
241
|
SupervisionCCGet = __decorate([
|
|
255
|
-
(0, CommandClass_1.CCCommand)(SupervisionCommand.Get),
|
|
242
|
+
(0, CommandClass_1.CCCommand)(_Types_1.SupervisionCommand.Get),
|
|
256
243
|
(0, CommandClass_1.expectedCCResponse)(SupervisionCCReport, testResponseForSupervisionCCGet)
|
|
257
244
|
], SupervisionCCGet);
|
|
258
245
|
exports.SupervisionCCGet = SupervisionCCGet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupervisionCC.js","sourceRoot":"","sources":["../../../src/lib/commandclass/SupervisionCC.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAUwB;AACxB,6CAAqD;AAErD,oDAAuD;AACvD,+BAAsC;AACtC,iDAUwB;
|
|
1
|
+
{"version":3,"file":"SupervisionCC.js","sourceRoot":"","sources":["../../../src/lib/commandclass/SupervisionCC.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAUwB;AACxB,6CAAqD;AAErD,oDAAuD;AACvD,+BAAsC;AACtC,iDAUwB;AACxB,qCAAiE;AAEjE,gDAAgD;AAChD,wDAAwD;AAExD,IAAI,SAAS,GAAG,CAAC,CAAC;AAClB,6DAA6D;AAC7D,SAAgB,gBAAgB;IAC/B,+DAA+D;IAC/D,SAAS,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,QAAQ,CA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gBAAgB;IAF5B,IAAA,wBAAS,EAAC,2BAAkB,CAAC,GAAG,CAAC;IACjC,IAAA,iCAAkB,EAAC,mBAAmB,EAAE,+BAA+B,CAAC;GAC5D,gBAAgB,CAyD5B;AAzDY,4CAAgB"}
|
|
@@ -3,30 +3,7 @@ import type { Maybe, MessageOrCCLogEntry, ValueID } from "@zwave-js/core";
|
|
|
3
3
|
import type { Driver } from "../driver/Driver";
|
|
4
4
|
import { CCAPI, PollValueImplementation, POLL_VALUE, SetValueImplementation, SET_VALUE } from "./API";
|
|
5
5
|
import { CCCommandOptions, CommandClass, CommandClassDeserializationOptions } from "./CommandClass";
|
|
6
|
-
|
|
7
|
-
Set = 1,
|
|
8
|
-
Get = 2,
|
|
9
|
-
Report = 3,
|
|
10
|
-
SupportedGet = 4,
|
|
11
|
-
SupportedReport = 5
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @publicAPI
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ThermostatFanMode {
|
|
17
|
-
"Auto low" = 0,
|
|
18
|
-
"Low" = 1,
|
|
19
|
-
"Auto high" = 2,
|
|
20
|
-
"High" = 3,
|
|
21
|
-
"Auto medium" = 4,
|
|
22
|
-
"Medium" = 5,
|
|
23
|
-
"Circulation" = 6,
|
|
24
|
-
"Humidity circulation" = 7,
|
|
25
|
-
"Left and right" = 8,
|
|
26
|
-
"Up and down" = 9,
|
|
27
|
-
"Quiet" = 10,
|
|
28
|
-
"External circulation" = 11
|
|
29
|
-
}
|
|
6
|
+
import { ThermostatFanMode, ThermostatFanModeCommand } from "./_Types";
|
|
30
7
|
export declare function getOffStateValueID(endpoint: number): ValueID;
|
|
31
8
|
export declare function getModeStateValueID(endpoint: number): ValueID;
|
|
32
9
|
export declare class ThermostatFanModeCCAPI extends CCAPI {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThermostatFanModeCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanModeCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACX,KAAK,EACL,mBAAmB,EAEnB,OAAO,EACP,MAAM,gBAAgB,CAAC;AAYxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACN,KAAK,EACL,uBAAuB,EACvB,UAAU,EACV,sBAAsB,EACtB,SAAS,EAGT,MAAM,OAAO,CAAC;AACf,OAAO,EAGN,gBAAgB,EAGhB,YAAY,EAEZ,kCAAkC,EAIlC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThermostatFanModeCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanModeCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACX,KAAK,EACL,mBAAmB,EAEnB,OAAO,EACP,MAAM,gBAAgB,CAAC;AAYxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACN,KAAK,EACL,uBAAuB,EACvB,UAAU,EACV,sBAAsB,EACtB,SAAS,EAGT,MAAM,OAAO,CAAC;AACf,OAAO,EAGN,gBAAgB,EAGhB,YAAY,EAEZ,kCAAkC,EAIlC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM5D;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM7D;AAED,qBACa,sBAAuB,SAAQ,KAAK;IACzC,eAAe,CAAC,GAAG,EAAE,wBAAwB,GAAG,KAAK,CAAC,OAAO,CAAC;IAWrE,SAAS,CAAC,CAAC,SAAS,CAAC,EAAE,sBAAsB,CAgD3C;IAEF,SAAS,CAAC,CAAC,UAAU,CAAC,EAAE,uBAAuB,CAW7C;IAGW,GAAG;IAqBH,GAAG,CAAC,IAAI,EAAE,iBAAiB,E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7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
var _a, _b;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ThermostatFanModeCCSupportedGet = exports.ThermostatFanModeCCSupportedReport = exports.ThermostatFanModeCCGet = exports.ThermostatFanModeCCReport = exports.ThermostatFanModeCCSet = exports.ThermostatFanModeCC = exports.ThermostatFanModeCCAPI = exports.getModeStateValueID = exports.getOffStateValueID =
|
|
10
|
+
exports.ThermostatFanModeCCSupportedGet = exports.ThermostatFanModeCCSupportedReport = exports.ThermostatFanModeCCGet = exports.ThermostatFanModeCCReport = exports.ThermostatFanModeCCSet = exports.ThermostatFanModeCC = exports.ThermostatFanModeCCAPI = exports.getModeStateValueID = exports.getOffStateValueID = void 0;
|
|
11
11
|
function __assertType(argName, typeName, boundHasError) {
|
|
12
12
|
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
13
13
|
if (boundHasError()) {
|
|
@@ -15,50 +15,8 @@ function __assertType(argName, typeName, boundHasError) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const __assertType__ThermostatFanMode = $o => {
|
|
18
|
-
function _1($o) {
|
|
19
|
-
return $o !== 0 ? {} : null;
|
|
20
|
-
}
|
|
21
|
-
function _2($o) {
|
|
22
|
-
return $o !== 1 ? {} : null;
|
|
23
|
-
}
|
|
24
|
-
function _3($o) {
|
|
25
|
-
return $o !== 2 ? {} : null;
|
|
26
|
-
}
|
|
27
|
-
function _4($o) {
|
|
28
|
-
return $o !== 3 ? {} : null;
|
|
29
|
-
}
|
|
30
|
-
function _5($o) {
|
|
31
|
-
return $o !== 4 ? {} : null;
|
|
32
|
-
}
|
|
33
|
-
function _6($o) {
|
|
34
|
-
return $o !== 5 ? {} : null;
|
|
35
|
-
}
|
|
36
|
-
function _7($o) {
|
|
37
|
-
return $o !== 6 ? {} : null;
|
|
38
|
-
}
|
|
39
|
-
function _8($o) {
|
|
40
|
-
return $o !== 7 ? {} : null;
|
|
41
|
-
}
|
|
42
|
-
function _9($o) {
|
|
43
|
-
return $o !== 8 ? {} : null;
|
|
44
|
-
}
|
|
45
|
-
function _10($o) {
|
|
46
|
-
return $o !== 9 ? {} : null;
|
|
47
|
-
}
|
|
48
|
-
function _11($o) {
|
|
49
|
-
return $o !== 10 ? {} : null;
|
|
50
|
-
}
|
|
51
|
-
function _12($o) {
|
|
52
|
-
return $o !== 11 ? {} : null;
|
|
53
|
-
}
|
|
54
18
|
function su__1__2__3__4__5__6__7__8__9__10__11__12_eu($o) {
|
|
55
|
-
|
|
56
|
-
for (const condition of conditions) {
|
|
57
|
-
const error = condition($o);
|
|
58
|
-
if (!error)
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return {};
|
|
19
|
+
return ![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes($o) ? {} : null;
|
|
62
20
|
}
|
|
63
21
|
return su__1__2__3__4__5__6__7__8__9__10__11__12_eu($o);
|
|
64
22
|
};
|
|
@@ -81,33 +39,7 @@ const shared_1 = require("@zwave-js/shared");
|
|
|
81
39
|
const Constants_1 = require("../message/Constants");
|
|
82
40
|
const API_1 = require("./API");
|
|
83
41
|
const CommandClass_1 = require("./CommandClass");
|
|
84
|
-
|
|
85
|
-
var ThermostatFanModeCommand;
|
|
86
|
-
(function (ThermostatFanModeCommand) {
|
|
87
|
-
ThermostatFanModeCommand[ThermostatFanModeCommand["Set"] = 1] = "Set";
|
|
88
|
-
ThermostatFanModeCommand[ThermostatFanModeCommand["Get"] = 2] = "Get";
|
|
89
|
-
ThermostatFanModeCommand[ThermostatFanModeCommand["Report"] = 3] = "Report";
|
|
90
|
-
ThermostatFanModeCommand[ThermostatFanModeCommand["SupportedGet"] = 4] = "SupportedGet";
|
|
91
|
-
ThermostatFanModeCommand[ThermostatFanModeCommand["SupportedReport"] = 5] = "SupportedReport";
|
|
92
|
-
})(ThermostatFanModeCommand = exports.ThermostatFanModeCommand || (exports.ThermostatFanModeCommand = {}));
|
|
93
|
-
/**
|
|
94
|
-
* @publicAPI
|
|
95
|
-
*/
|
|
96
|
-
var ThermostatFanMode;
|
|
97
|
-
(function (ThermostatFanMode) {
|
|
98
|
-
ThermostatFanMode[ThermostatFanMode["Auto low"] = 0] = "Auto low";
|
|
99
|
-
ThermostatFanMode[ThermostatFanMode["Low"] = 1] = "Low";
|
|
100
|
-
ThermostatFanMode[ThermostatFanMode["Auto high"] = 2] = "Auto high";
|
|
101
|
-
ThermostatFanMode[ThermostatFanMode["High"] = 3] = "High";
|
|
102
|
-
ThermostatFanMode[ThermostatFanMode["Auto medium"] = 4] = "Auto medium";
|
|
103
|
-
ThermostatFanMode[ThermostatFanMode["Medium"] = 5] = "Medium";
|
|
104
|
-
ThermostatFanMode[ThermostatFanMode["Circulation"] = 6] = "Circulation";
|
|
105
|
-
ThermostatFanMode[ThermostatFanMode["Humidity circulation"] = 7] = "Humidity circulation";
|
|
106
|
-
ThermostatFanMode[ThermostatFanMode["Left and right"] = 8] = "Left and right";
|
|
107
|
-
ThermostatFanMode[ThermostatFanMode["Up and down"] = 9] = "Up and down";
|
|
108
|
-
ThermostatFanMode[ThermostatFanMode["Quiet"] = 10] = "Quiet";
|
|
109
|
-
ThermostatFanMode[ThermostatFanMode["External circulation"] = 11] = "External circulation";
|
|
110
|
-
})(ThermostatFanMode = exports.ThermostatFanMode || (exports.ThermostatFanMode = {}));
|
|
42
|
+
const _Types_1 = require("./_Types");
|
|
111
43
|
function getOffStateValueID(endpoint) {
|
|
112
44
|
return {
|
|
113
45
|
commandClass: core_1.CommandClasses["Thermostat Fan Mode"],
|
|
@@ -170,17 +102,17 @@ let ThermostatFanModeCCAPI = class ThermostatFanModeCCAPI extends API_1.CCAPI {
|
|
|
170
102
|
}
|
|
171
103
|
supportsCommand(cmd) {
|
|
172
104
|
switch (cmd) {
|
|
173
|
-
case ThermostatFanModeCommand.Get:
|
|
174
|
-
case ThermostatFanModeCommand.SupportedGet:
|
|
105
|
+
case _Types_1.ThermostatFanModeCommand.Get:
|
|
106
|
+
case _Types_1.ThermostatFanModeCommand.SupportedGet:
|
|
175
107
|
return this.isSinglecast();
|
|
176
|
-
case ThermostatFanModeCommand.Set:
|
|
108
|
+
case _Types_1.ThermostatFanModeCommand.Set:
|
|
177
109
|
return true; // This is mandatory
|
|
178
110
|
}
|
|
179
111
|
return super.supportsCommand(cmd);
|
|
180
112
|
}
|
|
181
113
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
182
114
|
async get() {
|
|
183
|
-
this.assertSupportsCommand(ThermostatFanModeCommand, ThermostatFanModeCommand.Get);
|
|
115
|
+
this.assertSupportsCommand(_Types_1.ThermostatFanModeCommand, _Types_1.ThermostatFanModeCommand.Get);
|
|
184
116
|
const cc = new ThermostatFanModeCCGet(this.driver, {
|
|
185
117
|
nodeId: this.endpoint.nodeId,
|
|
186
118
|
endpoint: this.endpoint.index,
|
|
@@ -193,7 +125,7 @@ let ThermostatFanModeCCAPI = class ThermostatFanModeCCAPI extends API_1.CCAPI {
|
|
|
193
125
|
async set(mode, off) {
|
|
194
126
|
__assertType("mode", "ThermostatFanMode", __assertType__ThermostatFanMode.bind(void 0, mode));
|
|
195
127
|
__assertType("off", "(optional) boolean", __assertType__optional_boolean.bind(void 0, off));
|
|
196
|
-
this.assertSupportsCommand(ThermostatFanModeCommand, ThermostatFanModeCommand.Set);
|
|
128
|
+
this.assertSupportsCommand(_Types_1.ThermostatFanModeCommand, _Types_1.ThermostatFanModeCommand.Set);
|
|
197
129
|
const cc = new ThermostatFanModeCCSet(this.driver, {
|
|
198
130
|
nodeId: this.endpoint.nodeId,
|
|
199
131
|
endpoint: this.endpoint.index,
|
|
@@ -203,7 +135,7 @@ let ThermostatFanModeCCAPI = class ThermostatFanModeCCAPI extends API_1.CCAPI {
|
|
|
203
135
|
await this.driver.sendCommand(cc, this.commandOptions);
|
|
204
136
|
}
|
|
205
137
|
async getSupportedModes() {
|
|
206
|
-
this.assertSupportsCommand(ThermostatFanModeCommand, ThermostatFanModeCommand.SupportedGet);
|
|
138
|
+
this.assertSupportsCommand(_Types_1.ThermostatFanModeCommand, _Types_1.ThermostatFanModeCommand.SupportedGet);
|
|
207
139
|
const cc = new ThermostatFanModeCCSupportedGet(this.driver, {
|
|
208
140
|
nodeId: this.endpoint.nodeId,
|
|
209
141
|
endpoint: this.endpoint.index,
|
|
@@ -238,7 +170,7 @@ let ThermostatFanModeCC = class ThermostatFanModeCC extends CommandClass_1.Comma
|
|
|
238
170
|
const supportedModes = await api.getSupportedModes();
|
|
239
171
|
if (supportedModes) {
|
|
240
172
|
const logMessage = `received supported thermostat fan modes:${supportedModes
|
|
241
|
-
.map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(ThermostatFanMode, mode)}`)
|
|
173
|
+
.map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanMode, mode)}`)
|
|
242
174
|
.join("")}`;
|
|
243
175
|
this.driver.controllerLog.logNode(node.id, {
|
|
244
176
|
endpoint: this.endpointIndex,
|
|
@@ -271,7 +203,7 @@ let ThermostatFanModeCC = class ThermostatFanModeCC extends CommandClass_1.Comma
|
|
|
271
203
|
});
|
|
272
204
|
const currentStatus = await api.get();
|
|
273
205
|
if (currentStatus) {
|
|
274
|
-
let logMessage = `received current thermostat fan mode: ${(0, shared_1.getEnumMemberName)(ThermostatFanMode, currentStatus.mode)}`;
|
|
206
|
+
let logMessage = `received current thermostat fan mode: ${(0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanMode, currentStatus.mode)}`;
|
|
275
207
|
if (currentStatus.off != undefined) {
|
|
276
208
|
logMessage += ` (turned off)`;
|
|
277
209
|
}
|
|
@@ -309,7 +241,7 @@ let ThermostatFanModeCCSet = class ThermostatFanModeCCSet extends ThermostatFanM
|
|
|
309
241
|
}
|
|
310
242
|
toLogEntry() {
|
|
311
243
|
const message = {
|
|
312
|
-
mode: (0, shared_1.getEnumMemberName)(ThermostatFanMode, this.mode),
|
|
244
|
+
mode: (0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanMode, this.mode),
|
|
313
245
|
};
|
|
314
246
|
return {
|
|
315
247
|
...super.toLogEntry(),
|
|
@@ -318,7 +250,7 @@ let ThermostatFanModeCCSet = class ThermostatFanModeCCSet extends ThermostatFanM
|
|
|
318
250
|
}
|
|
319
251
|
};
|
|
320
252
|
ThermostatFanModeCCSet = __decorate([
|
|
321
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanModeCommand.Set)
|
|
253
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanModeCommand.Set)
|
|
322
254
|
], ThermostatFanModeCCSet);
|
|
323
255
|
exports.ThermostatFanModeCCSet = ThermostatFanModeCCSet;
|
|
324
256
|
let ThermostatFanModeCCReport = class ThermostatFanModeCCReport extends ThermostatFanModeCC {
|
|
@@ -339,7 +271,7 @@ let ThermostatFanModeCCReport = class ThermostatFanModeCCReport extends Thermost
|
|
|
339
271
|
}
|
|
340
272
|
toLogEntry() {
|
|
341
273
|
const message = {
|
|
342
|
-
mode: (0, shared_1.getEnumMemberName)(ThermostatFanMode, this.mode),
|
|
274
|
+
mode: (0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanMode, this.mode),
|
|
343
275
|
};
|
|
344
276
|
if (this.off != undefined) {
|
|
345
277
|
message.off = this.off;
|
|
@@ -354,7 +286,7 @@ __decorate([
|
|
|
354
286
|
(0, CommandClass_1.ccValue)(),
|
|
355
287
|
(0, CommandClass_1.ccValueMetadata)({
|
|
356
288
|
...core_1.ValueMetadata.UInt8,
|
|
357
|
-
states: (0, core_1.enumValuesToMetadataStates)(ThermostatFanMode),
|
|
289
|
+
states: (0, core_1.enumValuesToMetadataStates)(_Types_1.ThermostatFanMode),
|
|
358
290
|
label: "Thermostat fan mode",
|
|
359
291
|
})
|
|
360
292
|
], ThermostatFanModeCCReport.prototype, "mode", null);
|
|
@@ -366,20 +298,20 @@ __decorate([
|
|
|
366
298
|
})
|
|
367
299
|
], ThermostatFanModeCCReport.prototype, "off", null);
|
|
368
300
|
ThermostatFanModeCCReport = __decorate([
|
|
369
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanModeCommand.Report)
|
|
301
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanModeCommand.Report)
|
|
370
302
|
], ThermostatFanModeCCReport);
|
|
371
303
|
exports.ThermostatFanModeCCReport = ThermostatFanModeCCReport;
|
|
372
304
|
let ThermostatFanModeCCGet = class ThermostatFanModeCCGet extends ThermostatFanModeCC {
|
|
373
305
|
};
|
|
374
306
|
ThermostatFanModeCCGet = __decorate([
|
|
375
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanModeCommand.Get),
|
|
307
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanModeCommand.Get),
|
|
376
308
|
(0, CommandClass_1.expectedCCResponse)(ThermostatFanModeCCReport)
|
|
377
309
|
], ThermostatFanModeCCGet);
|
|
378
310
|
exports.ThermostatFanModeCCGet = ThermostatFanModeCCGet;
|
|
379
311
|
let ThermostatFanModeCCSupportedReport = class ThermostatFanModeCCSupportedReport extends ThermostatFanModeCC {
|
|
380
312
|
constructor(driver, options) {
|
|
381
313
|
super(driver, options);
|
|
382
|
-
this._supportedModes = (0, core_1.parseBitMask)(this.payload, ThermostatFanMode["Auto low"]);
|
|
314
|
+
this._supportedModes = (0, core_1.parseBitMask)(this.payload, _Types_1.ThermostatFanMode["Auto low"]);
|
|
383
315
|
// Use this information to create the metadata for the mode property
|
|
384
316
|
const valueId = {
|
|
385
317
|
commandClass: this.ccId,
|
|
@@ -389,7 +321,7 @@ let ThermostatFanModeCCSupportedReport = class ThermostatFanModeCCSupportedRepor
|
|
|
389
321
|
// Only update the dynamic part
|
|
390
322
|
this.getValueDB().setMetadata(valueId, {
|
|
391
323
|
...core_1.ValueMetadata.UInt8,
|
|
392
|
-
states: (0, core_1.enumValuesToMetadataStates)(ThermostatFanMode, this._supportedModes),
|
|
324
|
+
states: (0, core_1.enumValuesToMetadataStates)(_Types_1.ThermostatFanMode, this._supportedModes),
|
|
393
325
|
});
|
|
394
326
|
this.persistValues();
|
|
395
327
|
}
|
|
@@ -401,7 +333,7 @@ let ThermostatFanModeCCSupportedReport = class ThermostatFanModeCCSupportedRepor
|
|
|
401
333
|
...super.toLogEntry(),
|
|
402
334
|
message: {
|
|
403
335
|
"supported modes": this.supportedModes
|
|
404
|
-
.map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(ThermostatFanMode, mode)}`)
|
|
336
|
+
.map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanMode, mode)}`)
|
|
405
337
|
.join(""),
|
|
406
338
|
},
|
|
407
339
|
};
|
|
@@ -411,13 +343,13 @@ __decorate([
|
|
|
411
343
|
(0, CommandClass_1.ccValue)({ internal: true })
|
|
412
344
|
], ThermostatFanModeCCSupportedReport.prototype, "supportedModes", null);
|
|
413
345
|
ThermostatFanModeCCSupportedReport = __decorate([
|
|
414
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanModeCommand.SupportedReport)
|
|
346
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanModeCommand.SupportedReport)
|
|
415
347
|
], ThermostatFanModeCCSupportedReport);
|
|
416
348
|
exports.ThermostatFanModeCCSupportedReport = ThermostatFanModeCCSupportedReport;
|
|
417
349
|
let ThermostatFanModeCCSupportedGet = class ThermostatFanModeCCSupportedGet extends ThermostatFanModeCC {
|
|
418
350
|
};
|
|
419
351
|
ThermostatFanModeCCSupportedGet = __decorate([
|
|
420
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanModeCommand.SupportedGet),
|
|
352
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanModeCommand.SupportedGet),
|
|
421
353
|
(0, CommandClass_1.expectedCCResponse)(ThermostatFanModeCCSupportedReport)
|
|
422
354
|
], ThermostatFanModeCCSupportedGet);
|
|
423
355
|
exports.ThermostatFanModeCCSupportedGet = ThermostatFanModeCCSupportedGet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThermostatFanModeCC.js","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanModeCC.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThermostatFanModeCC.js","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanModeCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,yCAQwB;AACxB,6CAA2D;AAG3D,oDAAuD;AACvD,+BAQe;AACf,iDAYwB;AACxB,qCAAuE;AAEvE,SAAgB,kBAAkB,CAAC,QAAgB;IAClD,OAAO;QACN,YAAY,EAAE,qBAAc,CAAC,qBAAqB,CAAC;QACnD,QAAQ;QACR,QAAQ,EAAE,KAAK;KACf,CAAC;AACH,CAAC;AAND,gDAMC;AAED,SAAgB,mBAAmB,CAAC,QAAgB;IACnD,OAAO;QACN,YAAY,EAAE,qBAAc,CAAC,qBAAqB,CAAC;QACnD,QAAQ;QACR,QAAQ,EAAE,MAAM;KAChB,CAAC;AACH,CAAC;AAND,kDAMC;AAGD,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,WAAK;IAAjD;;QAYW,QAAW,GAA2B,KAAK,EACpD,EAAE,QAAQ,EAAE,EACZ,KAAK,EACW,EAAE;YAClB,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAG,CAAC,OAAO,CAAC;YACvD,IAAI,QAAQ,KAAK,MAAM,EAAE;gBACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;oBAC9B,IAAA,yBAAmB,EAClB,IAAI,CAAC,IAAI,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,KAAK,CACZ,CAAC;iBACF;gBACD,uCAAuC;gBACvC,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,CAC3B,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC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AAC;GAC1C,+BAA+B,CAA+B;AAA9D,0EAA+B"}
|
|
@@ -2,21 +2,7 @@ import { Maybe, MessageOrCCLogEntry } from "@zwave-js/core";
|
|
|
2
2
|
import type { Driver } from "../driver/Driver";
|
|
3
3
|
import { CCAPI, PollValueImplementation, POLL_VALUE } from "./API";
|
|
4
4
|
import { CommandClass, CommandClassDeserializationOptions } from "./CommandClass";
|
|
5
|
-
|
|
6
|
-
Get = 2,
|
|
7
|
-
Report = 3
|
|
8
|
-
}
|
|
9
|
-
export declare enum ThermostatFanState {
|
|
10
|
-
"Idle / off" = 0,
|
|
11
|
-
"Running / running low" = 1,
|
|
12
|
-
"Running high" = 2,
|
|
13
|
-
"Running medium" = 3,
|
|
14
|
-
"Circulation mode" = 4,
|
|
15
|
-
"Humidity circulation mode" = 5,
|
|
16
|
-
"Right - left circulation mode" = 6,
|
|
17
|
-
"Up - down circulation mode" = 7,
|
|
18
|
-
"Quiet circulation mode" = 8
|
|
19
|
-
}
|
|
5
|
+
import { ThermostatFanState, ThermostatFanStateCommand } from "./_Types";
|
|
20
6
|
export declare class ThermostatFanStateCCAPI extends CCAPI {
|
|
21
7
|
supportsCommand(cmd: ThermostatFanStateCommand): Maybe<boolean>;
|
|
22
8
|
protected [POLL_VALUE]: PollValueImplementation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThermostatFanStateCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanStateCC.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,EACL,mBAAmB,EAInB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACN,KAAK,EACL,uBAAuB,EACvB,UAAU,EAEV,MAAM,OAAO,CAAC;AACf,OAAO,EAKN,YAAY,EAEZ,kCAAkC,EAGlC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThermostatFanStateCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanStateCC.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,EACL,mBAAmB,EAInB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACN,KAAK,EACL,uBAAuB,EACvB,UAAU,EAEV,MAAM,OAAO,CAAC;AACf,OAAO,EAKN,YAAY,EAEZ,kCAAkC,EAGlC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEzE,qBACa,uBAAwB,SAAQ,KAAK;IAC1C,eAAe,CAAC,GAAG,EAAE,yBAAyB,GAAG,KAAK,CAAC,OAAO,CAAC;IAQtE,SAAS,CAAC,CAAC,UAAU,CAAC,EAAE,uBAAuB,CAU7C;IAGW,GAAG;CAmBhB;AAED,qBAEa,oBAAqB,SAAQ,YAAY;IAC7C,SAAS,EAAE,yBAAyB,CAAC;IAEhC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAe1B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;CA0B3C;AAED,qBACa,0BAA2B,SAAQ,oBAAoB;gBAElE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,kCAAkC;IAU5C,OAAO,CAAC,MAAM,CAAqB;IACnC,IAMW,KAAK,IAAI,kBAAkB,CAErC;IAEM,UAAU,IAAI,mBAAmB;CASxC;AAED,qBAEa,uBAAwB,SAAQ,oBAAoB;CAAG"}
|
|
@@ -7,30 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
var _a;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ThermostatFanStateCCGet = exports.ThermostatFanStateCCReport = exports.ThermostatFanStateCC = exports.ThermostatFanStateCCAPI =
|
|
10
|
+
exports.ThermostatFanStateCCGet = exports.ThermostatFanStateCCReport = exports.ThermostatFanStateCC = exports.ThermostatFanStateCCAPI = void 0;
|
|
11
11
|
const core_1 = require("@zwave-js/core");
|
|
12
12
|
const shared_1 = require("@zwave-js/shared");
|
|
13
13
|
const Constants_1 = require("../message/Constants");
|
|
14
14
|
const API_1 = require("./API");
|
|
15
15
|
const CommandClass_1 = require("./CommandClass");
|
|
16
|
-
|
|
17
|
-
var ThermostatFanStateCommand;
|
|
18
|
-
(function (ThermostatFanStateCommand) {
|
|
19
|
-
ThermostatFanStateCommand[ThermostatFanStateCommand["Get"] = 2] = "Get";
|
|
20
|
-
ThermostatFanStateCommand[ThermostatFanStateCommand["Report"] = 3] = "Report";
|
|
21
|
-
})(ThermostatFanStateCommand = exports.ThermostatFanStateCommand || (exports.ThermostatFanStateCommand = {}));
|
|
22
|
-
var ThermostatFanState;
|
|
23
|
-
(function (ThermostatFanState) {
|
|
24
|
-
ThermostatFanState[ThermostatFanState["Idle / off"] = 0] = "Idle / off";
|
|
25
|
-
ThermostatFanState[ThermostatFanState["Running / running low"] = 1] = "Running / running low";
|
|
26
|
-
ThermostatFanState[ThermostatFanState["Running high"] = 2] = "Running high";
|
|
27
|
-
ThermostatFanState[ThermostatFanState["Running medium"] = 3] = "Running medium";
|
|
28
|
-
ThermostatFanState[ThermostatFanState["Circulation mode"] = 4] = "Circulation mode";
|
|
29
|
-
ThermostatFanState[ThermostatFanState["Humidity circulation mode"] = 5] = "Humidity circulation mode";
|
|
30
|
-
ThermostatFanState[ThermostatFanState["Right - left circulation mode"] = 6] = "Right - left circulation mode";
|
|
31
|
-
ThermostatFanState[ThermostatFanState["Up - down circulation mode"] = 7] = "Up - down circulation mode";
|
|
32
|
-
ThermostatFanState[ThermostatFanState["Quiet circulation mode"] = 8] = "Quiet circulation mode";
|
|
33
|
-
})(ThermostatFanState = exports.ThermostatFanState || (exports.ThermostatFanState = {}));
|
|
16
|
+
const _Types_1 = require("./_Types");
|
|
34
17
|
let ThermostatFanStateCCAPI = class ThermostatFanStateCCAPI extends API_1.CCAPI {
|
|
35
18
|
constructor() {
|
|
36
19
|
super(...arguments);
|
|
@@ -45,14 +28,14 @@ let ThermostatFanStateCCAPI = class ThermostatFanStateCCAPI extends API_1.CCAPI
|
|
|
45
28
|
}
|
|
46
29
|
supportsCommand(cmd) {
|
|
47
30
|
switch (cmd) {
|
|
48
|
-
case ThermostatFanStateCommand.Get:
|
|
31
|
+
case _Types_1.ThermostatFanStateCommand.Get:
|
|
49
32
|
return this.isSinglecast();
|
|
50
33
|
}
|
|
51
34
|
return super.supportsCommand(cmd);
|
|
52
35
|
}
|
|
53
36
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
54
37
|
async get() {
|
|
55
|
-
this.assertSupportsCommand(ThermostatFanStateCommand, ThermostatFanStateCommand.Get);
|
|
38
|
+
this.assertSupportsCommand(_Types_1.ThermostatFanStateCommand, _Types_1.ThermostatFanStateCommand.Get);
|
|
56
39
|
const cc = new ThermostatFanStateCCGet(this.driver, {
|
|
57
40
|
nodeId: this.endpoint.nodeId,
|
|
58
41
|
endpoint: this.endpoint.index,
|
|
@@ -97,7 +80,7 @@ let ThermostatFanStateCC = class ThermostatFanStateCC extends CommandClass_1.Com
|
|
|
97
80
|
this.driver.controllerLog.logNode(node.id, {
|
|
98
81
|
endpoint: this.endpointIndex,
|
|
99
82
|
message: "received current thermostat fan state: " +
|
|
100
|
-
(0, shared_1.getEnumMemberName)(ThermostatFanState, currentStatus),
|
|
83
|
+
(0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanState, currentStatus),
|
|
101
84
|
direction: "inbound",
|
|
102
85
|
});
|
|
103
86
|
}
|
|
@@ -120,7 +103,7 @@ let ThermostatFanStateCCReport = class ThermostatFanStateCCReport extends Thermo
|
|
|
120
103
|
}
|
|
121
104
|
toLogEntry() {
|
|
122
105
|
const message = {
|
|
123
|
-
state: (0, shared_1.getEnumMemberName)(ThermostatFanState, this.state),
|
|
106
|
+
state: (0, shared_1.getEnumMemberName)(_Types_1.ThermostatFanState, this.state),
|
|
124
107
|
};
|
|
125
108
|
return {
|
|
126
109
|
...super.toLogEntry(),
|
|
@@ -132,18 +115,18 @@ __decorate([
|
|
|
132
115
|
(0, CommandClass_1.ccValue)(),
|
|
133
116
|
(0, CommandClass_1.ccValueMetadata)({
|
|
134
117
|
...core_1.ValueMetadata.ReadOnlyUInt8,
|
|
135
|
-
states: (0, core_1.enumValuesToMetadataStates)(ThermostatFanState),
|
|
118
|
+
states: (0, core_1.enumValuesToMetadataStates)(_Types_1.ThermostatFanState),
|
|
136
119
|
label: "Thermostat fan state",
|
|
137
120
|
})
|
|
138
121
|
], ThermostatFanStateCCReport.prototype, "state", null);
|
|
139
122
|
ThermostatFanStateCCReport = __decorate([
|
|
140
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanStateCommand.Report)
|
|
123
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanStateCommand.Report)
|
|
141
124
|
], ThermostatFanStateCCReport);
|
|
142
125
|
exports.ThermostatFanStateCCReport = ThermostatFanStateCCReport;
|
|
143
126
|
let ThermostatFanStateCCGet = class ThermostatFanStateCCGet extends ThermostatFanStateCC {
|
|
144
127
|
};
|
|
145
128
|
ThermostatFanStateCCGet = __decorate([
|
|
146
|
-
(0, CommandClass_1.CCCommand)(ThermostatFanStateCommand.Get),
|
|
129
|
+
(0, CommandClass_1.CCCommand)(_Types_1.ThermostatFanStateCommand.Get),
|
|
147
130
|
(0, CommandClass_1.expectedCCResponse)(ThermostatFanStateCCReport)
|
|
148
131
|
], ThermostatFanStateCCGet);
|
|
149
132
|
exports.ThermostatFanStateCCGet = ThermostatFanStateCCGet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThermostatFanStateCC.js","sourceRoot":"","sources":["../../../src/lib/commandclass/ThermostatFanStateCC.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAQwB;AACxB,6CAAqD;AAErD,oDAAuD;AACvD,+BAKe;A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