@zwave-js/cc 11.14.0 → 12.0.0-beta.1
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.js +19 -7
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.js +29 -11
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +32 -11
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.js +107 -92
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.js +63 -58
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.js +26 -7
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.js +16 -6
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.js +56 -50
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.js +9 -5
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.js +27 -10
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +31 -11
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.js +16 -5
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.js +33 -10
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.js +84 -24
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.js +6 -3
- package/build/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cc/DoorLockCC.js +63 -12
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +17 -7
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js +13 -5
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.d.ts.map +1 -1
- package/build/cc/EntryControlCC.js +39 -14
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +69 -14
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HailCC.js +2 -1
- package/build/cc/HailCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.js +17 -7
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +9 -4
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +41 -14
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.js +12 -4
- package/build/cc/InclusionControllerCC.js.map +1 -1
- package/build/cc/IndicatorCC.js +32 -11
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.js +112 -27
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.js +14 -5
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.js +12 -5
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +12 -3
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +19 -7
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.js +31 -10
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +30 -9
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/cc/MultiChannelCC.js +61 -22
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.js +8 -4
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/cc/MultilevelSensorCC.js +27 -9
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +111 -95
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NoOperationCC.js +4 -2
- package/build/cc/NoOperationCC.js.map +1 -1
- package/build/cc/NodeNamingCC.js +22 -10
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +43 -13
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.js +26 -8
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.js +41 -16
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.js +8 -3
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +17 -5
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +17 -5
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +109 -20
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.js +84 -32
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.js +47 -21
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/cc/SoundSwitchCC.js +38 -13
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.js +18 -6
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +19 -7
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +9 -4
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.js +22 -10
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js +9 -4
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +15 -5
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +36 -13
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.js +32 -9
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.js +13 -5
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.js +37 -15
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.d.ts.map +1 -1
- package/build/cc/UserCodeCC.js +77 -31
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.js +41 -14
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.js +27 -9
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.js +114 -97
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.js +13 -4
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +173 -48
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +19 -7
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/lib/API.js +10 -3
- package/build/lib/API.js.map +1 -1
- package/build/lib/CommandClass.js +28 -7
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/Security2/Extension.js +18 -6
- package/build/lib/Security2/Extension.js.map +1 -1
- package/package.json +33 -31
package/build/cc/IrrigationCC.js
CHANGED
|
@@ -462,7 +462,7 @@ const valveConfigPropertyKeys = [
|
|
|
462
462
|
"useRainSensor",
|
|
463
463
|
"useMoistureSensor",
|
|
464
464
|
];
|
|
465
|
-
let IrrigationCCAPI =
|
|
465
|
+
let IrrigationCCAPI = class IrrigationCCAPI extends API_1.CCAPI {
|
|
466
466
|
supportsCommand(cmd) {
|
|
467
467
|
switch (cmd) {
|
|
468
468
|
case _Types_1.IrrigationCommand.SystemInfoGet:
|
|
@@ -824,10 +824,11 @@ let IrrigationCCAPI = exports.IrrigationCCAPI = class IrrigationCCAPI extends AP
|
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
+
exports.IrrigationCCAPI = IrrigationCCAPI;
|
|
827
828
|
exports.IrrigationCCAPI = IrrigationCCAPI = __decorate([
|
|
828
829
|
(0, CommandClassDecorators_1.API)(safe_1.CommandClasses.Irrigation)
|
|
829
830
|
], IrrigationCCAPI);
|
|
830
|
-
let IrrigationCC =
|
|
831
|
+
let IrrigationCC = IrrigationCC_1 = class IrrigationCC extends CommandClass_1.CommandClass {
|
|
831
832
|
/**
|
|
832
833
|
* Returns the maximum number of valve table entries reported by the node.
|
|
833
834
|
* This only works AFTER the node has been interviewed.
|
|
@@ -982,12 +983,13 @@ moisture sensor polarity: ${(0, safe_2.getEnumMemberName)(_Types_1.IrrigationSen
|
|
|
982
983
|
return super.translateProperty(applHost, property, propertyKey);
|
|
983
984
|
}
|
|
984
985
|
};
|
|
986
|
+
exports.IrrigationCC = IrrigationCC;
|
|
985
987
|
exports.IrrigationCC = IrrigationCC = IrrigationCC_1 = __decorate([
|
|
986
988
|
(0, CommandClassDecorators_1.commandClass)(safe_1.CommandClasses.Irrigation),
|
|
987
989
|
(0, CommandClassDecorators_1.implementedVersion)(1),
|
|
988
990
|
(0, CommandClassDecorators_1.ccValues)(exports.IrrigationCCValues)
|
|
989
991
|
], IrrigationCC);
|
|
990
|
-
let IrrigationCCSystemInfoReport =
|
|
992
|
+
let IrrigationCCSystemInfoReport = class IrrigationCCSystemInfoReport extends IrrigationCC {
|
|
991
993
|
constructor(host, options) {
|
|
992
994
|
super(host, options);
|
|
993
995
|
(0, safe_1.validatePayload)(this.payload.length >= 4);
|
|
@@ -996,6 +998,10 @@ let IrrigationCCSystemInfoReport = exports.IrrigationCCSystemInfoReport = class
|
|
|
996
998
|
this.numValveTables = this.payload[2];
|
|
997
999
|
this.maxValveTableSize = this.payload[3] & 0b1111;
|
|
998
1000
|
}
|
|
1001
|
+
numValves;
|
|
1002
|
+
numValveTables;
|
|
1003
|
+
supportsMasterValve;
|
|
1004
|
+
maxValveTableSize;
|
|
999
1005
|
toLogEntry(applHost) {
|
|
1000
1006
|
return {
|
|
1001
1007
|
...super.toLogEntry(applHost),
|
|
@@ -1008,6 +1014,7 @@ let IrrigationCCSystemInfoReport = exports.IrrigationCCSystemInfoReport = class
|
|
|
1008
1014
|
};
|
|
1009
1015
|
}
|
|
1010
1016
|
};
|
|
1017
|
+
exports.IrrigationCCSystemInfoReport = IrrigationCCSystemInfoReport;
|
|
1011
1018
|
__decorate([
|
|
1012
1019
|
(0, CommandClassDecorators_1.ccValue)(exports.IrrigationCCValues.numValves)
|
|
1013
1020
|
], IrrigationCCSystemInfoReport.prototype, "numValves", void 0);
|
|
@@ -1023,13 +1030,14 @@ __decorate([
|
|
|
1023
1030
|
exports.IrrigationCCSystemInfoReport = IrrigationCCSystemInfoReport = __decorate([
|
|
1024
1031
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemInfoReport)
|
|
1025
1032
|
], IrrigationCCSystemInfoReport);
|
|
1026
|
-
let IrrigationCCSystemInfoGet =
|
|
1033
|
+
let IrrigationCCSystemInfoGet = class IrrigationCCSystemInfoGet extends IrrigationCC {
|
|
1027
1034
|
};
|
|
1035
|
+
exports.IrrigationCCSystemInfoGet = IrrigationCCSystemInfoGet;
|
|
1028
1036
|
exports.IrrigationCCSystemInfoGet = IrrigationCCSystemInfoGet = __decorate([
|
|
1029
1037
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemInfoGet),
|
|
1030
1038
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCSystemInfoReport)
|
|
1031
1039
|
], IrrigationCCSystemInfoGet);
|
|
1032
|
-
let IrrigationCCSystemStatusReport =
|
|
1040
|
+
let IrrigationCCSystemStatusReport = class IrrigationCCSystemStatusReport extends IrrigationCC {
|
|
1033
1041
|
constructor(host, options) {
|
|
1034
1042
|
super(host, options);
|
|
1035
1043
|
(0, safe_1.validatePayload)(this.payload.length >= 2);
|
|
@@ -1040,14 +1048,14 @@ let IrrigationCCSystemStatusReport = exports.IrrigationCCSystemStatusReport = cl
|
|
|
1040
1048
|
this.moistureSensorActive = !!(this.payload[1] & 0x08);
|
|
1041
1049
|
let offset = 2;
|
|
1042
1050
|
{
|
|
1043
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1051
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1044
1052
|
(0, safe_1.validatePayload)(scale === 0);
|
|
1045
1053
|
if (this.flowSensorActive)
|
|
1046
1054
|
this.flow = value;
|
|
1047
1055
|
offset += bytesRead;
|
|
1048
1056
|
}
|
|
1049
1057
|
{
|
|
1050
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1058
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1051
1059
|
(0, safe_1.validatePayload)(scale === 0);
|
|
1052
1060
|
if (this.pressureSensorActive)
|
|
1053
1061
|
this.pressure = value;
|
|
@@ -1065,6 +1073,21 @@ let IrrigationCCSystemStatusReport = exports.IrrigationCCSystemStatusReport = cl
|
|
|
1065
1073
|
this.firstOpenZoneId = this.payload[offset + 3];
|
|
1066
1074
|
}
|
|
1067
1075
|
}
|
|
1076
|
+
systemVoltage;
|
|
1077
|
+
flowSensorActive;
|
|
1078
|
+
pressureSensorActive;
|
|
1079
|
+
rainSensorActive;
|
|
1080
|
+
moistureSensorActive;
|
|
1081
|
+
flow;
|
|
1082
|
+
pressure;
|
|
1083
|
+
shutoffDuration;
|
|
1084
|
+
errorNotProgrammed;
|
|
1085
|
+
errorEmergencyShutdown;
|
|
1086
|
+
errorHighPressure;
|
|
1087
|
+
errorLowPressure;
|
|
1088
|
+
errorValve;
|
|
1089
|
+
masterValveOpen;
|
|
1090
|
+
firstOpenZoneId;
|
|
1068
1091
|
toLogEntry(applHost) {
|
|
1069
1092
|
const message = {
|
|
1070
1093
|
"system voltage": `${this.systemVoltage} V`,
|
|
@@ -1110,6 +1133,7 @@ let IrrigationCCSystemStatusReport = exports.IrrigationCCSystemStatusReport = cl
|
|
|
1110
1133
|
};
|
|
1111
1134
|
}
|
|
1112
1135
|
};
|
|
1136
|
+
exports.IrrigationCCSystemStatusReport = IrrigationCCSystemStatusReport;
|
|
1113
1137
|
__decorate([
|
|
1114
1138
|
(0, CommandClassDecorators_1.ccValue)(exports.IrrigationCCValues.systemVoltage)
|
|
1115
1139
|
], IrrigationCCSystemStatusReport.prototype, "systemVoltage", void 0);
|
|
@@ -1158,13 +1182,14 @@ __decorate([
|
|
|
1158
1182
|
exports.IrrigationCCSystemStatusReport = IrrigationCCSystemStatusReport = __decorate([
|
|
1159
1183
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemStatusReport)
|
|
1160
1184
|
], IrrigationCCSystemStatusReport);
|
|
1161
|
-
let IrrigationCCSystemStatusGet =
|
|
1185
|
+
let IrrigationCCSystemStatusGet = class IrrigationCCSystemStatusGet extends IrrigationCC {
|
|
1162
1186
|
};
|
|
1187
|
+
exports.IrrigationCCSystemStatusGet = IrrigationCCSystemStatusGet;
|
|
1163
1188
|
exports.IrrigationCCSystemStatusGet = IrrigationCCSystemStatusGet = __decorate([
|
|
1164
1189
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemStatusGet),
|
|
1165
1190
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCSystemStatusReport)
|
|
1166
1191
|
], IrrigationCCSystemStatusGet);
|
|
1167
|
-
let IrrigationCCSystemConfigSet =
|
|
1192
|
+
let IrrigationCCSystemConfigSet = class IrrigationCCSystemConfigSet extends IrrigationCC {
|
|
1168
1193
|
constructor(host, options) {
|
|
1169
1194
|
super(host, options);
|
|
1170
1195
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1179,6 +1204,11 @@ let IrrigationCCSystemConfigSet = exports.IrrigationCCSystemConfigSet = class Ir
|
|
|
1179
1204
|
this.moistureSensorPolarity = options.moistureSensorPolarity;
|
|
1180
1205
|
}
|
|
1181
1206
|
}
|
|
1207
|
+
masterValveDelay;
|
|
1208
|
+
highPressureThreshold;
|
|
1209
|
+
lowPressureThreshold;
|
|
1210
|
+
rainSensorPolarity;
|
|
1211
|
+
moistureSensorPolarity;
|
|
1182
1212
|
serialize() {
|
|
1183
1213
|
let polarity = 0;
|
|
1184
1214
|
if (this.rainSensorPolarity != undefined)
|
|
@@ -1216,24 +1246,25 @@ let IrrigationCCSystemConfigSet = exports.IrrigationCCSystemConfigSet = class Ir
|
|
|
1216
1246
|
};
|
|
1217
1247
|
}
|
|
1218
1248
|
};
|
|
1249
|
+
exports.IrrigationCCSystemConfigSet = IrrigationCCSystemConfigSet;
|
|
1219
1250
|
exports.IrrigationCCSystemConfigSet = IrrigationCCSystemConfigSet = __decorate([
|
|
1220
1251
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemConfigSet),
|
|
1221
1252
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1222
1253
|
], IrrigationCCSystemConfigSet);
|
|
1223
|
-
let IrrigationCCSystemConfigReport =
|
|
1254
|
+
let IrrigationCCSystemConfigReport = class IrrigationCCSystemConfigReport extends IrrigationCC {
|
|
1224
1255
|
constructor(host, options) {
|
|
1225
1256
|
super(host, options);
|
|
1226
1257
|
(0, safe_1.validatePayload)(this.payload.length >= 2);
|
|
1227
1258
|
this.masterValveDelay = this.payload[0];
|
|
1228
1259
|
let offset = 1;
|
|
1229
1260
|
{
|
|
1230
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1261
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1231
1262
|
(0, safe_1.validatePayload)(scale === 0 /* kPa */);
|
|
1232
1263
|
this.highPressureThreshold = value;
|
|
1233
1264
|
offset += bytesRead;
|
|
1234
1265
|
}
|
|
1235
1266
|
{
|
|
1236
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1267
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1237
1268
|
(0, safe_1.validatePayload)(scale === 0 /* kPa */);
|
|
1238
1269
|
this.lowPressureThreshold = value;
|
|
1239
1270
|
offset += bytesRead;
|
|
@@ -1246,6 +1277,11 @@ let IrrigationCCSystemConfigReport = exports.IrrigationCCSystemConfigReport = cl
|
|
|
1246
1277
|
this.moistureSensorPolarity = (polarity & 0b10) >>> 1;
|
|
1247
1278
|
}
|
|
1248
1279
|
}
|
|
1280
|
+
masterValveDelay;
|
|
1281
|
+
highPressureThreshold;
|
|
1282
|
+
lowPressureThreshold;
|
|
1283
|
+
rainSensorPolarity;
|
|
1284
|
+
moistureSensorPolarity;
|
|
1249
1285
|
toLogEntry(applHost) {
|
|
1250
1286
|
const message = {
|
|
1251
1287
|
"master valve delay": `${this.masterValveDelay} s`,
|
|
@@ -1264,6 +1300,7 @@ let IrrigationCCSystemConfigReport = exports.IrrigationCCSystemConfigReport = cl
|
|
|
1264
1300
|
};
|
|
1265
1301
|
}
|
|
1266
1302
|
};
|
|
1303
|
+
exports.IrrigationCCSystemConfigReport = IrrigationCCSystemConfigReport;
|
|
1267
1304
|
__decorate([
|
|
1268
1305
|
(0, CommandClassDecorators_1.ccValue)(exports.IrrigationCCValues.masterValveDelay)
|
|
1269
1306
|
], IrrigationCCSystemConfigReport.prototype, "masterValveDelay", void 0);
|
|
@@ -1282,13 +1319,14 @@ __decorate([
|
|
|
1282
1319
|
exports.IrrigationCCSystemConfigReport = IrrigationCCSystemConfigReport = __decorate([
|
|
1283
1320
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemConfigReport)
|
|
1284
1321
|
], IrrigationCCSystemConfigReport);
|
|
1285
|
-
let IrrigationCCSystemConfigGet =
|
|
1322
|
+
let IrrigationCCSystemConfigGet = class IrrigationCCSystemConfigGet extends IrrigationCC {
|
|
1286
1323
|
};
|
|
1324
|
+
exports.IrrigationCCSystemConfigGet = IrrigationCCSystemConfigGet;
|
|
1287
1325
|
exports.IrrigationCCSystemConfigGet = IrrigationCCSystemConfigGet = __decorate([
|
|
1288
1326
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemConfigGet),
|
|
1289
1327
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCSystemConfigReport)
|
|
1290
1328
|
], IrrigationCCSystemConfigGet);
|
|
1291
|
-
let IrrigationCCValveInfoReport =
|
|
1329
|
+
let IrrigationCCValveInfoReport = class IrrigationCCValveInfoReport extends IrrigationCC {
|
|
1292
1330
|
constructor(host, options) {
|
|
1293
1331
|
super(host, options);
|
|
1294
1332
|
(0, safe_1.validatePayload)(this.payload.length >= 4);
|
|
@@ -1309,6 +1347,15 @@ let IrrigationCCValveInfoReport = exports.IrrigationCCValveInfoReport = class Ir
|
|
|
1309
1347
|
this.errorLowFlow = !!(this.payload[3] & 32);
|
|
1310
1348
|
}
|
|
1311
1349
|
}
|
|
1350
|
+
valveId;
|
|
1351
|
+
connected;
|
|
1352
|
+
nominalCurrent;
|
|
1353
|
+
errorShortCircuit;
|
|
1354
|
+
errorHighCurrent;
|
|
1355
|
+
errorLowCurrent;
|
|
1356
|
+
errorMaximumFlow;
|
|
1357
|
+
errorHighFlow;
|
|
1358
|
+
errorLowFlow;
|
|
1312
1359
|
persistValues(applHost) {
|
|
1313
1360
|
if (!super.persistValues(applHost))
|
|
1314
1361
|
return false;
|
|
@@ -1372,13 +1419,14 @@ let IrrigationCCValveInfoReport = exports.IrrigationCCValveInfoReport = class Ir
|
|
|
1372
1419
|
};
|
|
1373
1420
|
}
|
|
1374
1421
|
};
|
|
1422
|
+
exports.IrrigationCCValveInfoReport = IrrigationCCValveInfoReport;
|
|
1375
1423
|
exports.IrrigationCCValveInfoReport = IrrigationCCValveInfoReport = __decorate([
|
|
1376
1424
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveInfoReport)
|
|
1377
1425
|
], IrrigationCCValveInfoReport);
|
|
1378
1426
|
function testResponseForIrrigationCommandWithValveId(sent, received) {
|
|
1379
1427
|
return received.valveId === sent.valveId;
|
|
1380
1428
|
}
|
|
1381
|
-
let IrrigationCCValveInfoGet =
|
|
1429
|
+
let IrrigationCCValveInfoGet = class IrrigationCCValveInfoGet extends IrrigationCC {
|
|
1382
1430
|
constructor(host, options) {
|
|
1383
1431
|
super(host, options);
|
|
1384
1432
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1389,6 +1437,7 @@ let IrrigationCCValveInfoGet = exports.IrrigationCCValveInfoGet = class Irrigati
|
|
|
1389
1437
|
this.valveId = options.valveId;
|
|
1390
1438
|
}
|
|
1391
1439
|
}
|
|
1440
|
+
valveId;
|
|
1392
1441
|
serialize() {
|
|
1393
1442
|
this.payload = Buffer.from([
|
|
1394
1443
|
this.valveId === "master" ? 1 : 0,
|
|
@@ -1405,11 +1454,12 @@ let IrrigationCCValveInfoGet = exports.IrrigationCCValveInfoGet = class Irrigati
|
|
|
1405
1454
|
};
|
|
1406
1455
|
}
|
|
1407
1456
|
};
|
|
1457
|
+
exports.IrrigationCCValveInfoGet = IrrigationCCValveInfoGet;
|
|
1408
1458
|
exports.IrrigationCCValveInfoGet = IrrigationCCValveInfoGet = __decorate([
|
|
1409
1459
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveInfoGet),
|
|
1410
1460
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCValveInfoReport, testResponseForIrrigationCommandWithValveId)
|
|
1411
1461
|
], IrrigationCCValveInfoGet);
|
|
1412
|
-
let IrrigationCCValveConfigSet =
|
|
1462
|
+
let IrrigationCCValveConfigSet = class IrrigationCCValveConfigSet extends IrrigationCC {
|
|
1413
1463
|
constructor(host, options) {
|
|
1414
1464
|
super(host, options);
|
|
1415
1465
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1429,6 +1479,14 @@ let IrrigationCCValveConfigSet = exports.IrrigationCCValveConfigSet = class Irri
|
|
|
1429
1479
|
this.useMoistureSensor = options.useMoistureSensor;
|
|
1430
1480
|
}
|
|
1431
1481
|
}
|
|
1482
|
+
valveId;
|
|
1483
|
+
nominalCurrentHighThreshold;
|
|
1484
|
+
nominalCurrentLowThreshold;
|
|
1485
|
+
maximumFlow;
|
|
1486
|
+
highFlowThreshold;
|
|
1487
|
+
lowFlowThreshold;
|
|
1488
|
+
useRainSensor;
|
|
1489
|
+
useMoistureSensor;
|
|
1432
1490
|
serialize() {
|
|
1433
1491
|
this.payload = Buffer.concat([
|
|
1434
1492
|
Buffer.from([
|
|
@@ -1463,11 +1521,12 @@ let IrrigationCCValveConfigSet = exports.IrrigationCCValveConfigSet = class Irri
|
|
|
1463
1521
|
};
|
|
1464
1522
|
}
|
|
1465
1523
|
};
|
|
1524
|
+
exports.IrrigationCCValveConfigSet = IrrigationCCValveConfigSet;
|
|
1466
1525
|
exports.IrrigationCCValveConfigSet = IrrigationCCValveConfigSet = __decorate([
|
|
1467
1526
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveConfigSet),
|
|
1468
1527
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1469
1528
|
], IrrigationCCValveConfigSet);
|
|
1470
|
-
let IrrigationCCValveConfigReport =
|
|
1529
|
+
let IrrigationCCValveConfigReport = class IrrigationCCValveConfigReport extends IrrigationCC {
|
|
1471
1530
|
constructor(host, options) {
|
|
1472
1531
|
super(host, options);
|
|
1473
1532
|
(0, safe_1.validatePayload)(this.payload.length >= 4);
|
|
@@ -1481,19 +1540,19 @@ let IrrigationCCValveConfigReport = exports.IrrigationCCValveConfigReport = clas
|
|
|
1481
1540
|
this.nominalCurrentLowThreshold = 10 * this.payload[3];
|
|
1482
1541
|
let offset = 4;
|
|
1483
1542
|
{
|
|
1484
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1543
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1485
1544
|
(0, safe_1.validatePayload)(scale === 0 /* l/h */);
|
|
1486
1545
|
this.maximumFlow = value;
|
|
1487
1546
|
offset += bytesRead;
|
|
1488
1547
|
}
|
|
1489
1548
|
{
|
|
1490
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1549
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1491
1550
|
(0, safe_1.validatePayload)(scale === 0 /* l/h */);
|
|
1492
1551
|
this.highFlowThreshold = value;
|
|
1493
1552
|
offset += bytesRead;
|
|
1494
1553
|
}
|
|
1495
1554
|
{
|
|
1496
|
-
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.
|
|
1555
|
+
const { value, scale, bytesRead } = (0, safe_1.parseFloatWithScale)(this.payload.subarray(offset));
|
|
1497
1556
|
(0, safe_1.validatePayload)(scale === 0 /* l/h */);
|
|
1498
1557
|
this.lowFlowThreshold = value;
|
|
1499
1558
|
offset += bytesRead;
|
|
@@ -1537,6 +1596,14 @@ let IrrigationCCValveConfigReport = exports.IrrigationCCValveConfigReport = clas
|
|
|
1537
1596
|
this.setValue(applHost, useMoistureSensorValue, this.useMoistureSensor);
|
|
1538
1597
|
return true;
|
|
1539
1598
|
}
|
|
1599
|
+
valveId;
|
|
1600
|
+
nominalCurrentHighThreshold;
|
|
1601
|
+
nominalCurrentLowThreshold;
|
|
1602
|
+
maximumFlow;
|
|
1603
|
+
highFlowThreshold;
|
|
1604
|
+
lowFlowThreshold;
|
|
1605
|
+
useRainSensor;
|
|
1606
|
+
useMoistureSensor;
|
|
1540
1607
|
toLogEntry(applHost) {
|
|
1541
1608
|
return {
|
|
1542
1609
|
...super.toLogEntry(applHost),
|
|
@@ -1553,10 +1620,11 @@ let IrrigationCCValveConfigReport = exports.IrrigationCCValveConfigReport = clas
|
|
|
1553
1620
|
};
|
|
1554
1621
|
}
|
|
1555
1622
|
};
|
|
1623
|
+
exports.IrrigationCCValveConfigReport = IrrigationCCValveConfigReport;
|
|
1556
1624
|
exports.IrrigationCCValveConfigReport = IrrigationCCValveConfigReport = __decorate([
|
|
1557
1625
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveConfigReport)
|
|
1558
1626
|
], IrrigationCCValveConfigReport);
|
|
1559
|
-
let IrrigationCCValveConfigGet =
|
|
1627
|
+
let IrrigationCCValveConfigGet = class IrrigationCCValveConfigGet extends IrrigationCC {
|
|
1560
1628
|
constructor(host, options) {
|
|
1561
1629
|
super(host, options);
|
|
1562
1630
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1567,6 +1635,7 @@ let IrrigationCCValveConfigGet = exports.IrrigationCCValveConfigGet = class Irri
|
|
|
1567
1635
|
this.valveId = options.valveId;
|
|
1568
1636
|
}
|
|
1569
1637
|
}
|
|
1638
|
+
valveId;
|
|
1570
1639
|
serialize() {
|
|
1571
1640
|
this.payload = Buffer.from([
|
|
1572
1641
|
this.valveId === "master" ? 1 : 0,
|
|
@@ -1583,11 +1652,12 @@ let IrrigationCCValveConfigGet = exports.IrrigationCCValveConfigGet = class Irri
|
|
|
1583
1652
|
};
|
|
1584
1653
|
}
|
|
1585
1654
|
};
|
|
1655
|
+
exports.IrrigationCCValveConfigGet = IrrigationCCValveConfigGet;
|
|
1586
1656
|
exports.IrrigationCCValveConfigGet = IrrigationCCValveConfigGet = __decorate([
|
|
1587
1657
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveConfigGet),
|
|
1588
1658
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCValveConfigReport, testResponseForIrrigationCommandWithValveId)
|
|
1589
1659
|
], IrrigationCCValveConfigGet);
|
|
1590
|
-
let IrrigationCCValveRun =
|
|
1660
|
+
let IrrigationCCValveRun = class IrrigationCCValveRun extends IrrigationCC {
|
|
1591
1661
|
constructor(host, options) {
|
|
1592
1662
|
super(host, options);
|
|
1593
1663
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1599,6 +1669,8 @@ let IrrigationCCValveRun = exports.IrrigationCCValveRun = class IrrigationCCValv
|
|
|
1599
1669
|
this.duration = options.duration;
|
|
1600
1670
|
}
|
|
1601
1671
|
}
|
|
1672
|
+
valveId;
|
|
1673
|
+
duration;
|
|
1602
1674
|
serialize() {
|
|
1603
1675
|
this.payload = Buffer.from([
|
|
1604
1676
|
this.valveId === "master" ? 1 : 0,
|
|
@@ -1625,11 +1697,12 @@ let IrrigationCCValveRun = exports.IrrigationCCValveRun = class IrrigationCCValv
|
|
|
1625
1697
|
};
|
|
1626
1698
|
}
|
|
1627
1699
|
};
|
|
1700
|
+
exports.IrrigationCCValveRun = IrrigationCCValveRun;
|
|
1628
1701
|
exports.IrrigationCCValveRun = IrrigationCCValveRun = __decorate([
|
|
1629
1702
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveRun),
|
|
1630
1703
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1631
1704
|
], IrrigationCCValveRun);
|
|
1632
|
-
let IrrigationCCValveTableSet =
|
|
1705
|
+
let IrrigationCCValveTableSet = class IrrigationCCValveTableSet extends IrrigationCC {
|
|
1633
1706
|
constructor(host, options) {
|
|
1634
1707
|
super(host, options);
|
|
1635
1708
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1641,6 +1714,8 @@ let IrrigationCCValveTableSet = exports.IrrigationCCValveTableSet = class Irriga
|
|
|
1641
1714
|
this.entries = options.entries;
|
|
1642
1715
|
}
|
|
1643
1716
|
}
|
|
1717
|
+
tableId;
|
|
1718
|
+
entries;
|
|
1644
1719
|
serialize() {
|
|
1645
1720
|
this.payload = Buffer.allocUnsafe(1 + this.entries.length * 3);
|
|
1646
1721
|
this.payload[0] = this.tableId;
|
|
@@ -1672,11 +1747,12 @@ let IrrigationCCValveTableSet = exports.IrrigationCCValveTableSet = class Irriga
|
|
|
1672
1747
|
};
|
|
1673
1748
|
}
|
|
1674
1749
|
};
|
|
1750
|
+
exports.IrrigationCCValveTableSet = IrrigationCCValveTableSet;
|
|
1675
1751
|
exports.IrrigationCCValveTableSet = IrrigationCCValveTableSet = __decorate([
|
|
1676
1752
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveTableSet),
|
|
1677
1753
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1678
1754
|
], IrrigationCCValveTableSet);
|
|
1679
|
-
let IrrigationCCValveTableReport =
|
|
1755
|
+
let IrrigationCCValveTableReport = class IrrigationCCValveTableReport extends IrrigationCC {
|
|
1680
1756
|
constructor(host, options) {
|
|
1681
1757
|
super(host, options);
|
|
1682
1758
|
(0, safe_1.validatePayload)((this.payload.length - 1) % 3 === 0);
|
|
@@ -1689,6 +1765,8 @@ let IrrigationCCValveTableReport = exports.IrrigationCCValveTableReport = class
|
|
|
1689
1765
|
});
|
|
1690
1766
|
}
|
|
1691
1767
|
}
|
|
1768
|
+
tableId;
|
|
1769
|
+
entries;
|
|
1692
1770
|
toLogEntry(applHost) {
|
|
1693
1771
|
const message = {
|
|
1694
1772
|
"table ID": this.tableId,
|
|
@@ -1709,13 +1787,14 @@ let IrrigationCCValveTableReport = exports.IrrigationCCValveTableReport = class
|
|
|
1709
1787
|
};
|
|
1710
1788
|
}
|
|
1711
1789
|
};
|
|
1790
|
+
exports.IrrigationCCValveTableReport = IrrigationCCValveTableReport;
|
|
1712
1791
|
exports.IrrigationCCValveTableReport = IrrigationCCValveTableReport = __decorate([
|
|
1713
1792
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveTableReport)
|
|
1714
1793
|
], IrrigationCCValveTableReport);
|
|
1715
1794
|
function testResponseForIrrigationValveTableGet(sent, received) {
|
|
1716
1795
|
return received.tableId === sent.tableId;
|
|
1717
1796
|
}
|
|
1718
|
-
let IrrigationCCValveTableGet =
|
|
1797
|
+
let IrrigationCCValveTableGet = class IrrigationCCValveTableGet extends IrrigationCC {
|
|
1719
1798
|
constructor(host, options) {
|
|
1720
1799
|
super(host, options);
|
|
1721
1800
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1726,6 +1805,7 @@ let IrrigationCCValveTableGet = exports.IrrigationCCValveTableGet = class Irriga
|
|
|
1726
1805
|
this.tableId = options.tableId;
|
|
1727
1806
|
}
|
|
1728
1807
|
}
|
|
1808
|
+
tableId;
|
|
1729
1809
|
serialize() {
|
|
1730
1810
|
this.payload = Buffer.from([this.tableId]);
|
|
1731
1811
|
return super.serialize();
|
|
@@ -1739,11 +1819,12 @@ let IrrigationCCValveTableGet = exports.IrrigationCCValveTableGet = class Irriga
|
|
|
1739
1819
|
};
|
|
1740
1820
|
}
|
|
1741
1821
|
};
|
|
1822
|
+
exports.IrrigationCCValveTableGet = IrrigationCCValveTableGet;
|
|
1742
1823
|
exports.IrrigationCCValveTableGet = IrrigationCCValveTableGet = __decorate([
|
|
1743
1824
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveTableGet),
|
|
1744
1825
|
(0, CommandClassDecorators_1.expectedCCResponse)(IrrigationCCValveTableReport, testResponseForIrrigationValveTableGet)
|
|
1745
1826
|
], IrrigationCCValveTableGet);
|
|
1746
|
-
let IrrigationCCValveTableRun =
|
|
1827
|
+
let IrrigationCCValveTableRun = class IrrigationCCValveTableRun extends IrrigationCC {
|
|
1747
1828
|
constructor(host, options) {
|
|
1748
1829
|
super(host, options);
|
|
1749
1830
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1757,6 +1838,7 @@ let IrrigationCCValveTableRun = exports.IrrigationCCValveTableRun = class Irriga
|
|
|
1757
1838
|
}
|
|
1758
1839
|
}
|
|
1759
1840
|
}
|
|
1841
|
+
tableIDs;
|
|
1760
1842
|
serialize() {
|
|
1761
1843
|
this.payload = Buffer.from(this.tableIDs);
|
|
1762
1844
|
return super.serialize();
|
|
@@ -1772,11 +1854,12 @@ let IrrigationCCValveTableRun = exports.IrrigationCCValveTableRun = class Irriga
|
|
|
1772
1854
|
};
|
|
1773
1855
|
}
|
|
1774
1856
|
};
|
|
1857
|
+
exports.IrrigationCCValveTableRun = IrrigationCCValveTableRun;
|
|
1775
1858
|
exports.IrrigationCCValveTableRun = IrrigationCCValveTableRun = __decorate([
|
|
1776
1859
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.ValveTableRun),
|
|
1777
1860
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1778
1861
|
], IrrigationCCValveTableRun);
|
|
1779
|
-
let IrrigationCCSystemShutoff =
|
|
1862
|
+
let IrrigationCCSystemShutoff = class IrrigationCCSystemShutoff extends IrrigationCC {
|
|
1780
1863
|
constructor(host, options) {
|
|
1781
1864
|
super(host, options);
|
|
1782
1865
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1787,6 +1870,7 @@ let IrrigationCCSystemShutoff = exports.IrrigationCCSystemShutoff = class Irriga
|
|
|
1787
1870
|
this.duration = options.duration;
|
|
1788
1871
|
}
|
|
1789
1872
|
}
|
|
1873
|
+
duration;
|
|
1790
1874
|
serialize() {
|
|
1791
1875
|
this.payload = Buffer.from([this.duration ?? 255]);
|
|
1792
1876
|
return super.serialize();
|
|
@@ -1804,6 +1888,7 @@ let IrrigationCCSystemShutoff = exports.IrrigationCCSystemShutoff = class Irriga
|
|
|
1804
1888
|
};
|
|
1805
1889
|
}
|
|
1806
1890
|
};
|
|
1891
|
+
exports.IrrigationCCSystemShutoff = IrrigationCCSystemShutoff;
|
|
1807
1892
|
exports.IrrigationCCSystemShutoff = IrrigationCCSystemShutoff = __decorate([
|
|
1808
1893
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.IrrigationCommand.SystemShutoff),
|
|
1809
1894
|
(0, CommandClassDecorators_1.useSupervision)()
|