mclimate-payload-helper 1.0.35 → 1.0.37
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/README.md +0 -19
- package/dist/encoders/FanCoilThermostat.d.ts +61 -0
- package/dist/encoders/FanCoilThermostat.d.ts.map +1 -0
- package/dist/encoders/FanCoilThermostat.js +719 -0
- package/dist/encoders/FanCoilThermostat.js.map +1 -0
- package/dist/encoders/SetAqiLed.d.ts +6 -0
- package/dist/encoders/SetAqiLed.d.ts.map +1 -0
- package/dist/encoders/SetAqiLed.js +46 -0
- package/dist/encoders/SetAqiLed.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/deviceTypes.d.ts +19 -0
- package/dist/types/deviceTypes.d.ts.map +1 -0
- package/dist/types/deviceTypes.js +23 -0
- package/dist/types/deviceTypes.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/types.d.ts +13 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +9 -0
- package/dist/types/types.js.map +1 -0
- package/dist/validation.d.ts +3 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +8 -0
- package/dist/validation.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
1
|
# mclimate-payload-helper
|
|
2
|
-
|
|
3
|
-
## How to add decoders for new devices
|
|
4
|
-
|
|
5
|
-
- Add new device type in src/decoders/payloadParsers/types/allDevices.ts following the established naming convention
|
|
6
|
-
- Add new device payload parser in src/decoders/payloadParsers. Make sure to export the class in the index.ts file so that it can be imported later using absolute imports with @
|
|
7
|
-
- Add new device payload parser in src/decoders/payloadParsers
|
|
8
|
-
- Add the new parser to src/decoders/payloadParsers/uplinkPayLoadParser appending a new case DeviceType.NEW_DEVICE
|
|
9
|
-
- Add a new command (if needed) in src/decoders/commandsReadingHelper. Make sure to add a break statement after the new 'case' - follow the example from previous commands
|
|
10
|
-
|
|
11
|
-
## How to add new commands in encoder
|
|
12
|
-
|
|
13
|
-
- Add new device command class in src/encoders. By design each device command class extends GeneralCommands. If the new device extends further classes - .e.g. Temperature, use the applyMixins utility function - check out the bottom of CO2DisplayCommands for an example. In case you want to exclude certain commands - you can use the delMethods utility function - the CO2DisplayCommands class has an example of this as well. Make sure to add the new class to the index.ts file.
|
|
14
|
-
- Add a schema and type for the new device command class in src/encoders/types/schemas. Follow the example from other devices. By default all device schemas spread the GeneralCommandSchemas. Some devices also inherit from other schemas and you can spread these directly in the schema object. In case only certain commands from a schema are inherited (e.g. only a few from DisplayCommands) - these need to be copied explicitly into the schema. Once the schema is complete, add the typing namespace below it - you only need to add the types for the "set" commands as only they are typed in the device command class.
|
|
15
|
-
|
|
16
|
-
## How to publish a new version of the package
|
|
17
|
-
|
|
18
|
-
- Bump the version in package.json
|
|
19
|
-
- Run 'npm publish'
|
|
20
|
-
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BaseCommand } from '../encoders';
|
|
2
|
+
import { FanCoilThermostatCommandTypes } from '../encoders/types';
|
|
3
|
+
export declare class FanCoilThermostatCommands {
|
|
4
|
+
static setTargetTemperatureStep(params: FanCoilThermostatCommandTypes.SetTargetTemperatureStepParams): BaseCommand;
|
|
5
|
+
static getTargetTemperatureStep(): BaseCommand;
|
|
6
|
+
static setKeysLock(params: FanCoilThermostatCommandTypes.SetKeysLockParams): BaseCommand;
|
|
7
|
+
static getKeysLock(): BaseCommand;
|
|
8
|
+
static setFanCoilTarget(params: FanCoilThermostatCommandTypes.SetFanCoilTargetParams): BaseCommand;
|
|
9
|
+
static setTargetTemperature(params: FanCoilThermostatCommandTypes.SetTargetTemperatureFanCoilParams): BaseCommand;
|
|
10
|
+
static setFctOperationalMode(params: FanCoilThermostatCommandTypes.SetFctOperationalModeParams): BaseCommand;
|
|
11
|
+
static setValveOpenCloseTime(params: FanCoilThermostatCommandTypes.SetValveOpenCloseTimeParams): BaseCommand;
|
|
12
|
+
static getValveOpenCloseTime(): BaseCommand;
|
|
13
|
+
static setExtAutomaticTemperatureControl(params: FanCoilThermostatCommandTypes.SetExtAutomaticTemperatureControlParams): BaseCommand;
|
|
14
|
+
static getExtAutomaticTemperatureControl(): BaseCommand;
|
|
15
|
+
static setFanSpeed(params: FanCoilThermostatCommandTypes.SetFanSpeedParams): BaseCommand;
|
|
16
|
+
static getFanSpeed(): BaseCommand;
|
|
17
|
+
static setFanSpeedLimit(params: FanCoilThermostatCommandTypes.SetFanSpeedLimitParams): BaseCommand;
|
|
18
|
+
static getFanSpeedLimit(): BaseCommand;
|
|
19
|
+
static setEcmVoltageRange(params: FanCoilThermostatCommandTypes.SetEcmVoltageRangeParams): BaseCommand;
|
|
20
|
+
static getEcmVoltageRange(): BaseCommand;
|
|
21
|
+
static setEcmStartUpTime(params: FanCoilThermostatCommandTypes.SetEcmStartUpTimeParams): BaseCommand;
|
|
22
|
+
static getEcmStartUpTime(): BaseCommand;
|
|
23
|
+
static setEcmRelay(params: FanCoilThermostatCommandTypes.SetEcmRelayParams): BaseCommand;
|
|
24
|
+
static getEcmRelay(): BaseCommand;
|
|
25
|
+
static setFrostProtection(params: FanCoilThermostatCommandTypes.SetFrostProtectionParams): BaseCommand;
|
|
26
|
+
static getFrostProtection(): BaseCommand;
|
|
27
|
+
static setFrostProtectionSettings(params: FanCoilThermostatCommandTypes.SetFrostProtectionSettingsParams): BaseCommand;
|
|
28
|
+
static getFrostProtectionSettings(): BaseCommand;
|
|
29
|
+
static setAllowedOperationalModes(params: FanCoilThermostatCommandTypes.SetAllowedOperationalModesParams): BaseCommand;
|
|
30
|
+
static getAllowedOperationalModes(): BaseCommand;
|
|
31
|
+
static setCoolingSetpointNotOccupied(params: FanCoilThermostatCommandTypes.SetCoolingSetpointNotOccupiedParams): BaseCommand;
|
|
32
|
+
static getCoolingSetpointNotOccupied(): BaseCommand;
|
|
33
|
+
static setHeatingSetpointNotOccupied(params: FanCoilThermostatCommandTypes.SetHeatingSetpointNotOccupiedParams): BaseCommand;
|
|
34
|
+
static getHeatingSetpointNotOccupied(): BaseCommand;
|
|
35
|
+
static setTempSensorCompensation(params: FanCoilThermostatCommandTypes.SetTempSensorCompensationParams): BaseCommand;
|
|
36
|
+
static getTempSensorCompensation(): BaseCommand;
|
|
37
|
+
static setFanSpeedNotOccupied(params: FanCoilThermostatCommandTypes.SetFanSpeedNotOccupiedParams): BaseCommand;
|
|
38
|
+
static getFanSpeedNotOccupied(): BaseCommand;
|
|
39
|
+
static setAutomaticChangeover(params: FanCoilThermostatCommandTypes.SetAutomaticChangeoverParams): BaseCommand;
|
|
40
|
+
static getAutomaticChangeover(): BaseCommand;
|
|
41
|
+
static setWiringDiagram(params: FanCoilThermostatCommandTypes.SetWiringDiagramParams): BaseCommand;
|
|
42
|
+
static getWiringDiagram(): BaseCommand;
|
|
43
|
+
static setOccFunction(params: FanCoilThermostatCommandTypes.SetOccFunctionParams): BaseCommand;
|
|
44
|
+
static getOccFunction(): BaseCommand;
|
|
45
|
+
static setAutomaticChangeoverThreshold(params: FanCoilThermostatCommandTypes.SetAutomaticChangeoverThresholdParams): BaseCommand;
|
|
46
|
+
static getAutomaticChangeoverThreshold(): BaseCommand;
|
|
47
|
+
static setDeviceStatus(params: FanCoilThermostatCommandTypes.SetDeviceStatusParams): BaseCommand;
|
|
48
|
+
static getDeviceStatus(): BaseCommand;
|
|
49
|
+
static setReturnOfPowerOperation(params: FanCoilThermostatCommandTypes.SetReturnOfPowerOperationParams): BaseCommand;
|
|
50
|
+
static getReturnOfPowerOperation(): BaseCommand;
|
|
51
|
+
static setDeltaTemperature1(params: FanCoilThermostatCommandTypes.SetDeltaTemperature1Params): BaseCommand;
|
|
52
|
+
static getDeltaTemperature1(): BaseCommand;
|
|
53
|
+
static setDeltaTemperature2and3(params: FanCoilThermostatCommandTypes.SetDeltaTemperature2and3Params): BaseCommand;
|
|
54
|
+
static getDeltaTemperature2and3(): BaseCommand;
|
|
55
|
+
static getFrostProtectionStatus(): BaseCommand;
|
|
56
|
+
static getOccupancySensorStatusSetPoint(): BaseCommand;
|
|
57
|
+
static getOccupancySensorStatus(): BaseCommand;
|
|
58
|
+
static getDewPointSensorStatus(): BaseCommand;
|
|
59
|
+
static getFilterAlarm(): BaseCommand;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=FanCoilThermostat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FanCoilThermostat.d.ts","sourceRoot":"","sources":["../../src/encoders/FanCoilThermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAGxC,OAAO,EAAwB,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEtF,qBAAa,yBAAyB;IACrC,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,6BAA6B,CAAC,8BAA8B;IAsBpG,MAAM,CAAC,wBAAwB;IAI/B,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,6BAA6B,CAAC,iBAAiB;IAsB1E,MAAM,CAAC,WAAW;IAIlB,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,6BAA6B,CAAC,sBAAsB;IAsBpF,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,6BAA6B,CAAC,iCAAiC;IAsBnG,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,CAAC,2BAA2B;IAsB9F,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,6BAA6B,CAAC,2BAA2B;IAsB9F,MAAM,CAAC,qBAAqB;IAI5B,MAAM,CAAC,iCAAiC,CACvC,MAAM,EAAE,6BAA6B,CAAC,uCAAuC;IAuB9E,MAAM,CAAC,iCAAiC;IAIxC,MAAM,CAAC,WAAW,CAAC,MAAM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M,CAAC,gBAAgB,CAAC,MAAM,EAAE,6BAA6B,CAAC,sBAAsB;IAsBpF,MAAM,CAAC,gBAAgB;IAIvB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,6BAA6B,CAAC,oBAAoB;IAsBhF,MAAM,CAAC,cAAc;IAIrB,MAAM,CAAC,+BAA+B,CAAC,MAAM,EAAE,6BAA6B,CAAC,qCAAqC;IA2BlH,MAAM,CAAC,+BAA+B;IAItC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,6BAA6B,CAAC,qBAAqB;IAsBlF,MAAM,CAAC,eAAe;IAItB,MAAM,CAAC,yBAAyB,CAAC,MAAM,EAAE,6BAA6B,CAAC,+BAA+B;IAsBtG,MAAM,CAAC,yBAAyB;IAIhC,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,6BAA6B,CAAC,0BAA0B;IAsB5F,MAAM,CAAC,oBAAoB;IAI3B,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,6BAA6B,CAAC,8BAA8B;IA2BpG,MAAM,CAAC,wBAAwB;IAI/B,MAAM,CAAC,wBAAwB;IAI/B,MAAM,CAAC,gCAAgC;IAIvC,MAAM,CAAC,wBAAwB;IAI/B,MAAM,CAAC,uBAAuB;IAI9B,MAAM,CAAC,cAAc;CAGrB"}
|
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FanCoilThermostatCommands = void 0;
|
|
4
|
+
const encoders_1 = require("../encoders");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const types_1 = require("../encoders/types");
|
|
8
|
+
class FanCoilThermostatCommands {
|
|
9
|
+
static setTargetTemperatureStep(params) {
|
|
10
|
+
try {
|
|
11
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setTargetTemperatureStep.parse(params);
|
|
12
|
+
const { value } = params;
|
|
13
|
+
return new encoders_1.BaseCommand('SetTargetTemperatureStep', 0x03, (0, utils_1.decToHex)(value * 10));
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
if (e instanceof zod_1.ZodError) {
|
|
17
|
+
throw new utils_1.CustomError({
|
|
18
|
+
message: 'Zod validation error during SetTargetTemperatureStep execution',
|
|
19
|
+
command: 'SetTargetTemperatureStep',
|
|
20
|
+
originalError: e,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new utils_1.CustomError({
|
|
25
|
+
message: 'Error during SetTargetTemperatureStep execution',
|
|
26
|
+
command: 'SetTargetTemperatureStep',
|
|
27
|
+
originalError: e,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
static getTargetTemperatureStep() {
|
|
33
|
+
return new encoders_1.BaseCommand('GetTargetTemperatureStep', 0x05);
|
|
34
|
+
}
|
|
35
|
+
static setKeysLock(params) {
|
|
36
|
+
try {
|
|
37
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setKeysLock.parse(params);
|
|
38
|
+
const { value } = params;
|
|
39
|
+
return new encoders_1.BaseCommand('SetKeysLock', 0x07, (0, utils_1.decToHex)(value));
|
|
40
|
+
}
|
|
41
|
+
catch (e) {
|
|
42
|
+
if (e instanceof zod_1.ZodError) {
|
|
43
|
+
throw new utils_1.CustomError({
|
|
44
|
+
message: 'Zod validation error during SetKeysLock execution',
|
|
45
|
+
command: 'SetKeysLock',
|
|
46
|
+
originalError: e,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw new utils_1.CustomError({
|
|
51
|
+
message: 'Error during SetKeysLock execution',
|
|
52
|
+
command: 'SetKeysLock',
|
|
53
|
+
originalError: e,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
static getKeysLock() {
|
|
59
|
+
return new encoders_1.BaseCommand('GetKeysLock', 0x14);
|
|
60
|
+
}
|
|
61
|
+
static setFanCoilTarget(params) {
|
|
62
|
+
try {
|
|
63
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFanCoilTarget.parse(params);
|
|
64
|
+
const { value } = params;
|
|
65
|
+
return new encoders_1.BaseCommand('SetFanCoilTarget', 0x2e, (0, utils_1.dec2hex)(value * 10));
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
if (e instanceof zod_1.ZodError) {
|
|
69
|
+
throw new utils_1.CustomError({
|
|
70
|
+
message: 'Zod validation error during SetFanCoilTarget execution',
|
|
71
|
+
command: 'SetFanCoilTarget',
|
|
72
|
+
originalError: e,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
throw new utils_1.CustomError({
|
|
77
|
+
message: 'Error during SetFanCoilTarget execution',
|
|
78
|
+
command: 'SetFanCoilTarget',
|
|
79
|
+
originalError: e,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
static setTargetTemperature(params) {
|
|
85
|
+
try {
|
|
86
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setTargetTemperatureFanCoil.parse(params);
|
|
87
|
+
const { targetTemperature } = params;
|
|
88
|
+
return new encoders_1.BaseCommand('SetTargetTemperature', 0x2e, (0, utils_1.dec2hex)(targetTemperature * 10));
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
if (e instanceof zod_1.ZodError) {
|
|
92
|
+
throw new utils_1.CustomError({
|
|
93
|
+
message: 'Zod validation error during SetTargetTemperature execution',
|
|
94
|
+
command: 'SetTargetTemperature',
|
|
95
|
+
originalError: e,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw new utils_1.CustomError({
|
|
100
|
+
message: 'Error during SetTargetTemperature execution',
|
|
101
|
+
command: 'SetTargetTemperature',
|
|
102
|
+
originalError: e,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
static setFctOperationalMode(params) {
|
|
108
|
+
try {
|
|
109
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFctOperationalMode.parse(params);
|
|
110
|
+
const { value } = params;
|
|
111
|
+
return new encoders_1.BaseCommand('SetFctOperationalMode', 0x52, (0, utils_1.decToHex)(value));
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
if (e instanceof zod_1.ZodError) {
|
|
115
|
+
throw new utils_1.CustomError({
|
|
116
|
+
message: 'Zod validation error during SetFctOperationalMode execution',
|
|
117
|
+
command: 'SetFctOperationalMode',
|
|
118
|
+
originalError: e,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
throw new utils_1.CustomError({
|
|
123
|
+
message: 'Error during SetFctOperationalMode execution',
|
|
124
|
+
command: 'SetFctOperationalMode',
|
|
125
|
+
originalError: e,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
static setValveOpenCloseTime(params) {
|
|
131
|
+
try {
|
|
132
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setValveOpenCloseTime.parse(params);
|
|
133
|
+
const { value } = params;
|
|
134
|
+
return new encoders_1.BaseCommand('SetValveOpenCloseTime', 0x31, (0, utils_1.decToHex)(value));
|
|
135
|
+
}
|
|
136
|
+
catch (e) {
|
|
137
|
+
if (e instanceof zod_1.ZodError) {
|
|
138
|
+
throw new utils_1.CustomError({
|
|
139
|
+
message: 'Zod validation error during SetValveOpenCloseTime execution',
|
|
140
|
+
command: 'SetValveOpenCloseTime',
|
|
141
|
+
originalError: e,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
throw new utils_1.CustomError({
|
|
146
|
+
message: 'Error during SetValveOpenCloseTime execution',
|
|
147
|
+
command: 'SetValveOpenCloseTime',
|
|
148
|
+
originalError: e,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
static getValveOpenCloseTime() {
|
|
154
|
+
return new encoders_1.BaseCommand('GetValveOpenCloseTime', 0x32);
|
|
155
|
+
}
|
|
156
|
+
static setExtAutomaticTemperatureControl(params) {
|
|
157
|
+
try {
|
|
158
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setExtAutomaticTemperatureControl.parse(params);
|
|
159
|
+
const { value } = params;
|
|
160
|
+
return new encoders_1.BaseCommand('SetExtAutomaticTemperatureControl', 0x35, (0, utils_1.decToHex)(value));
|
|
161
|
+
}
|
|
162
|
+
catch (e) {
|
|
163
|
+
if (e instanceof zod_1.ZodError) {
|
|
164
|
+
throw new utils_1.CustomError({
|
|
165
|
+
message: 'Zod validation error during SetExtAutomaticTemperatureControl execution',
|
|
166
|
+
command: 'SetExtAutomaticTemperatureControl',
|
|
167
|
+
originalError: e,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
throw new utils_1.CustomError({
|
|
172
|
+
message: 'Error during SetExtAutomaticTemperatureControl execution',
|
|
173
|
+
command: 'SetExtAutomaticTemperatureControl',
|
|
174
|
+
originalError: e,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
static getExtAutomaticTemperatureControl() {
|
|
180
|
+
return new encoders_1.BaseCommand('GetExtAutomaticTemperatureControl', 0x36);
|
|
181
|
+
}
|
|
182
|
+
static setFanSpeed(params) {
|
|
183
|
+
try {
|
|
184
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFanSpeed.parse(params);
|
|
185
|
+
const { value } = params;
|
|
186
|
+
return new encoders_1.BaseCommand('SetFanSpeed', 0x44, (0, utils_1.decToHex)(value));
|
|
187
|
+
}
|
|
188
|
+
catch (e) {
|
|
189
|
+
if (e instanceof zod_1.ZodError) {
|
|
190
|
+
throw new utils_1.CustomError({
|
|
191
|
+
message: 'Zod validation error during SetFanSpeed execution',
|
|
192
|
+
command: 'SetFanSpeed',
|
|
193
|
+
originalError: e,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
throw new utils_1.CustomError({
|
|
198
|
+
message: 'Error during SetFanSpeed execution',
|
|
199
|
+
command: 'SetFanSpeed',
|
|
200
|
+
originalError: e,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
static getFanSpeed() {
|
|
206
|
+
return new encoders_1.BaseCommand('GetFanSpeed', 0x45);
|
|
207
|
+
}
|
|
208
|
+
static setFanSpeedLimit(params) {
|
|
209
|
+
try {
|
|
210
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFanSpeedLimit.parse(params);
|
|
211
|
+
const { value } = params;
|
|
212
|
+
return new encoders_1.BaseCommand('SetFanSpeedLimit', 0x46, (0, utils_1.decToHex)(value));
|
|
213
|
+
}
|
|
214
|
+
catch (e) {
|
|
215
|
+
if (e instanceof zod_1.ZodError) {
|
|
216
|
+
throw new utils_1.CustomError({
|
|
217
|
+
message: 'Zod validation error during SetFanSpeedLimit execution',
|
|
218
|
+
command: 'SetFanSpeedLimit',
|
|
219
|
+
originalError: e,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
throw new utils_1.CustomError({
|
|
224
|
+
message: 'Error during SetFanSpeedLimit execution',
|
|
225
|
+
command: 'SetFanSpeedLimit',
|
|
226
|
+
originalError: e,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
static getFanSpeedLimit() {
|
|
232
|
+
return new encoders_1.BaseCommand('GetFanSpeedLimit', 0x47);
|
|
233
|
+
}
|
|
234
|
+
static setEcmVoltageRange(params) {
|
|
235
|
+
try {
|
|
236
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setEcmVoltageRange.parse(params);
|
|
237
|
+
const { min, max } = params;
|
|
238
|
+
return new encoders_1.BaseCommand('SetEcmVoltageRange', 0x48, (0, utils_1.decToHex)(min * 10), (0, utils_1.decToHex)(max * 10));
|
|
239
|
+
}
|
|
240
|
+
catch (e) {
|
|
241
|
+
if (e instanceof zod_1.ZodError) {
|
|
242
|
+
throw new utils_1.CustomError({
|
|
243
|
+
message: 'Zod validation error during SetEcmVoltageRange execution',
|
|
244
|
+
command: 'SetEcmVoltageRange',
|
|
245
|
+
originalError: e,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
throw new utils_1.CustomError({
|
|
250
|
+
message: 'Error during SetEcmVoltageRange execution',
|
|
251
|
+
command: 'SetEcmVoltageRange',
|
|
252
|
+
originalError: e,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
static getEcmVoltageRange() {
|
|
258
|
+
return new encoders_1.BaseCommand('GetEcmVoltageRange', 0x49);
|
|
259
|
+
}
|
|
260
|
+
static setEcmStartUpTime(params) {
|
|
261
|
+
try {
|
|
262
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setEcmStartUpTime.parse(params);
|
|
263
|
+
const { value } = params;
|
|
264
|
+
return new encoders_1.BaseCommand('SetEcmStartUpTime', 0x4a, (0, utils_1.decToHex)(value));
|
|
265
|
+
}
|
|
266
|
+
catch (e) {
|
|
267
|
+
if (e instanceof zod_1.ZodError) {
|
|
268
|
+
throw new utils_1.CustomError({
|
|
269
|
+
message: 'Zod validation error during SetEcmStartUpTime execution',
|
|
270
|
+
command: 'SetEcmStartUpTime',
|
|
271
|
+
originalError: e,
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
throw new utils_1.CustomError({
|
|
276
|
+
message: 'Error during SetEcmStartUpTime execution',
|
|
277
|
+
command: 'SetEcmStartUpTime',
|
|
278
|
+
originalError: e,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
static getEcmStartUpTime() {
|
|
284
|
+
return new encoders_1.BaseCommand('GetEcmStartUpTime', 0x4b);
|
|
285
|
+
}
|
|
286
|
+
static setEcmRelay(params) {
|
|
287
|
+
try {
|
|
288
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setEcmRelay.parse(params);
|
|
289
|
+
const { value } = params;
|
|
290
|
+
return new encoders_1.BaseCommand('SetEcmRelay', 0x4c, (0, utils_1.decToHex)(value));
|
|
291
|
+
}
|
|
292
|
+
catch (e) {
|
|
293
|
+
if (e instanceof zod_1.ZodError) {
|
|
294
|
+
throw new utils_1.CustomError({
|
|
295
|
+
message: 'Zod validation error during SetEcmRelay execution',
|
|
296
|
+
command: 'SetEcmRelay',
|
|
297
|
+
originalError: e,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
throw new utils_1.CustomError({
|
|
302
|
+
message: 'Error during SetEcmRelay execution',
|
|
303
|
+
command: 'SetEcmRelay',
|
|
304
|
+
originalError: e,
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
static getEcmRelay() {
|
|
310
|
+
return new encoders_1.BaseCommand('GetEcmRelay', 0x4d);
|
|
311
|
+
}
|
|
312
|
+
static setFrostProtection(params) {
|
|
313
|
+
try {
|
|
314
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFrostProtection.parse(params);
|
|
315
|
+
const { value } = params;
|
|
316
|
+
return new encoders_1.BaseCommand('SetFrostProtection', 0x4e, (0, utils_1.decToHex)(value));
|
|
317
|
+
}
|
|
318
|
+
catch (e) {
|
|
319
|
+
if (e instanceof zod_1.ZodError) {
|
|
320
|
+
throw new utils_1.CustomError({
|
|
321
|
+
message: 'Zod validation error during SetFrostProtection execution',
|
|
322
|
+
command: 'SetFrostProtection',
|
|
323
|
+
originalError: e,
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
throw new utils_1.CustomError({
|
|
328
|
+
message: 'Error during SetFrostProtection execution',
|
|
329
|
+
command: 'SetFrostProtection',
|
|
330
|
+
originalError: e,
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
static getFrostProtection() {
|
|
336
|
+
return new encoders_1.BaseCommand('GetFrostProtection', 0x4f);
|
|
337
|
+
}
|
|
338
|
+
static setFrostProtectionSettings(params) {
|
|
339
|
+
try {
|
|
340
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFrostProtectionSettings.parse(params);
|
|
341
|
+
const { threshold, setpoint } = params;
|
|
342
|
+
return new encoders_1.BaseCommand('SetFrostProtectionSettings', 0x50, (0, utils_1.decToHex)(threshold), (0, utils_1.decToHex)(setpoint));
|
|
343
|
+
}
|
|
344
|
+
catch (e) {
|
|
345
|
+
if (e instanceof zod_1.ZodError) {
|
|
346
|
+
throw new utils_1.CustomError({
|
|
347
|
+
message: 'Zod validation error during SetFrostProtectionSettings execution',
|
|
348
|
+
command: 'SetFrostProtectionSettings',
|
|
349
|
+
originalError: e,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
throw new utils_1.CustomError({
|
|
354
|
+
message: 'Error during SetFrostProtectionSettings execution',
|
|
355
|
+
command: 'SetFrostProtectionSettings',
|
|
356
|
+
originalError: e,
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
static getFrostProtectionSettings() {
|
|
362
|
+
return new encoders_1.BaseCommand('GetFrostProtectionSettings', 0x51);
|
|
363
|
+
}
|
|
364
|
+
static setAllowedOperationalModes(params) {
|
|
365
|
+
try {
|
|
366
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setAllowedOperationalModes.parse(params);
|
|
367
|
+
const { value } = params;
|
|
368
|
+
return new encoders_1.BaseCommand('SetAllowedOperationalModes', 0x54, (0, utils_1.decToHex)(value));
|
|
369
|
+
}
|
|
370
|
+
catch (e) {
|
|
371
|
+
if (e instanceof zod_1.ZodError) {
|
|
372
|
+
throw new utils_1.CustomError({
|
|
373
|
+
message: 'Zod validation error during SetAllowedOperationalModes execution',
|
|
374
|
+
command: 'SetAllowedOperationalModes',
|
|
375
|
+
originalError: e,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
throw new utils_1.CustomError({
|
|
380
|
+
message: 'Error during SetAllowedOperationalModes execution',
|
|
381
|
+
command: 'SetAllowedOperationalModes',
|
|
382
|
+
originalError: e,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
static getAllowedOperationalModes() {
|
|
388
|
+
return new encoders_1.BaseCommand('GetAllowedOperationalModes', 0x55);
|
|
389
|
+
}
|
|
390
|
+
static setCoolingSetpointNotOccupied(params) {
|
|
391
|
+
try {
|
|
392
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setCoolingSetpointNotOccupied.parse(params);
|
|
393
|
+
const { value } = params;
|
|
394
|
+
return new encoders_1.BaseCommand('SetCoolingSetpointNotOccupied', 0x56, (0, utils_1.decToHex)(value));
|
|
395
|
+
}
|
|
396
|
+
catch (e) {
|
|
397
|
+
if (e instanceof zod_1.ZodError) {
|
|
398
|
+
throw new utils_1.CustomError({
|
|
399
|
+
message: 'Zod validation error during SetCoolingSetpointNotOccupied execution',
|
|
400
|
+
command: 'SetCoolingSetpointNotOccupied',
|
|
401
|
+
originalError: e,
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
throw new utils_1.CustomError({
|
|
406
|
+
message: 'Error during SetCoolingSetpointNotOccupied execution',
|
|
407
|
+
command: 'SetCoolingSetpointNotOccupied',
|
|
408
|
+
originalError: e,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
static getCoolingSetpointNotOccupied() {
|
|
414
|
+
return new encoders_1.BaseCommand('GetCoolingSetpointNotOccupied', 0x57);
|
|
415
|
+
}
|
|
416
|
+
static setHeatingSetpointNotOccupied(params) {
|
|
417
|
+
try {
|
|
418
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setHeatingSetpointNotOccupied.parse(params);
|
|
419
|
+
const { value } = params;
|
|
420
|
+
return new encoders_1.BaseCommand('SetHeatingSetpointNotOccupied', 0x58, (0, utils_1.decToHex)(value));
|
|
421
|
+
}
|
|
422
|
+
catch (e) {
|
|
423
|
+
if (e instanceof zod_1.ZodError) {
|
|
424
|
+
throw new utils_1.CustomError({
|
|
425
|
+
message: 'Zod validation error during SetHeatingSetpointNotOccupied execution',
|
|
426
|
+
command: 'SetHeatingSetpointNotOccupied',
|
|
427
|
+
originalError: e,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
throw new utils_1.CustomError({
|
|
432
|
+
message: 'Error during SetHeatingSetpointNotOccupied execution',
|
|
433
|
+
command: 'SetHeatingSetpointNotOccupied',
|
|
434
|
+
originalError: e,
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
static getHeatingSetpointNotOccupied() {
|
|
440
|
+
return new encoders_1.BaseCommand('GetHeatingSetpointNotOccupied', 0x59);
|
|
441
|
+
}
|
|
442
|
+
static setTempSensorCompensation(params) {
|
|
443
|
+
try {
|
|
444
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setTempSensorCompensation.parse(params);
|
|
445
|
+
const { compensation, temperature } = params;
|
|
446
|
+
return new encoders_1.BaseCommand('SetTempSensorCompensation', 0x5a, (0, utils_1.decToHex)(compensation), (0, utils_1.decToHex)(temperature * 10));
|
|
447
|
+
}
|
|
448
|
+
catch (e) {
|
|
449
|
+
if (e instanceof zod_1.ZodError) {
|
|
450
|
+
throw new utils_1.CustomError({
|
|
451
|
+
message: 'Zod validation error during SetTempSensorCompensation execution',
|
|
452
|
+
command: 'SetTempSensorCompensation',
|
|
453
|
+
originalError: e,
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
throw new utils_1.CustomError({
|
|
458
|
+
message: 'Error during SetTempSensorCompensation execution',
|
|
459
|
+
command: 'SetTempSensorCompensation',
|
|
460
|
+
originalError: e,
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
static getTempSensorCompensation() {
|
|
466
|
+
return new encoders_1.BaseCommand('GetTempSensorCompensation', 0x5b);
|
|
467
|
+
}
|
|
468
|
+
static setFanSpeedNotOccupied(params) {
|
|
469
|
+
try {
|
|
470
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setFanSpeedNotOccupied.parse(params);
|
|
471
|
+
const { value } = params;
|
|
472
|
+
return new encoders_1.BaseCommand('SetFanSpeedNotOccupied', 0x5c, (0, utils_1.decToHex)(value));
|
|
473
|
+
}
|
|
474
|
+
catch (e) {
|
|
475
|
+
if (e instanceof zod_1.ZodError) {
|
|
476
|
+
throw new utils_1.CustomError({
|
|
477
|
+
message: 'Zod validation error during SetFanSpeedNotOccupied execution',
|
|
478
|
+
command: 'SetFanSpeedNotOccupied',
|
|
479
|
+
originalError: e,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
throw new utils_1.CustomError({
|
|
484
|
+
message: 'Error during SetFanSpeedNotOccupied execution',
|
|
485
|
+
command: 'SetFanSpeedNotOccupied',
|
|
486
|
+
originalError: e,
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
static getFanSpeedNotOccupied() {
|
|
492
|
+
return new encoders_1.BaseCommand('GetFanSpeedNotOccupied', 0x5d);
|
|
493
|
+
}
|
|
494
|
+
static setAutomaticChangeover(params) {
|
|
495
|
+
try {
|
|
496
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setAutomaticChangeover.parse(params);
|
|
497
|
+
const { value } = params;
|
|
498
|
+
return new encoders_1.BaseCommand('SetAutomaticChangeover', 0x5e, (0, utils_1.decToHex)(value));
|
|
499
|
+
}
|
|
500
|
+
catch (e) {
|
|
501
|
+
if (e instanceof zod_1.ZodError) {
|
|
502
|
+
throw new utils_1.CustomError({
|
|
503
|
+
message: 'Zod validation error during SetAutomaticChangeover execution',
|
|
504
|
+
command: 'SetAutomaticChangeover',
|
|
505
|
+
originalError: e,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
throw new utils_1.CustomError({
|
|
510
|
+
message: 'Error during SetAutomaticChangeover execution',
|
|
511
|
+
command: 'SetAutomaticChangeover',
|
|
512
|
+
originalError: e,
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
static getAutomaticChangeover() {
|
|
518
|
+
return new encoders_1.BaseCommand('GetAutomaticChangeover', 0x5f);
|
|
519
|
+
}
|
|
520
|
+
static setWiringDiagram(params) {
|
|
521
|
+
try {
|
|
522
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setWiringDiagram.parse(params);
|
|
523
|
+
const { value } = params;
|
|
524
|
+
return new encoders_1.BaseCommand('SetWiringDiagram', 0x60, (0, utils_1.decToHex)(value));
|
|
525
|
+
}
|
|
526
|
+
catch (e) {
|
|
527
|
+
if (e instanceof zod_1.ZodError) {
|
|
528
|
+
throw new utils_1.CustomError({
|
|
529
|
+
message: 'Zod validation error during SetWiringDiagram execution',
|
|
530
|
+
command: 'SetWiringDiagram',
|
|
531
|
+
originalError: e,
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
throw new utils_1.CustomError({
|
|
536
|
+
message: 'Error during SetWiringDiagram execution',
|
|
537
|
+
command: 'SetWiringDiagram',
|
|
538
|
+
originalError: e,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
static getWiringDiagram() {
|
|
544
|
+
return new encoders_1.BaseCommand('GetWiringDiagram', 0x61);
|
|
545
|
+
}
|
|
546
|
+
static setOccFunction(params) {
|
|
547
|
+
try {
|
|
548
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setOccFunction.parse(params);
|
|
549
|
+
const { value } = params;
|
|
550
|
+
return new encoders_1.BaseCommand('SetOccFunction', 0x62, (0, utils_1.decToHex)(value));
|
|
551
|
+
}
|
|
552
|
+
catch (e) {
|
|
553
|
+
if (e instanceof zod_1.ZodError) {
|
|
554
|
+
throw new utils_1.CustomError({
|
|
555
|
+
message: 'Zod validation error during SetOccFunction execution',
|
|
556
|
+
command: 'SetOccFunction',
|
|
557
|
+
originalError: e,
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
throw new utils_1.CustomError({
|
|
562
|
+
message: 'Error during SetOccFunction execution',
|
|
563
|
+
command: 'SetOccFunction',
|
|
564
|
+
originalError: e,
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
static getOccFunction() {
|
|
570
|
+
return new encoders_1.BaseCommand('GetOccFunction', 0x63);
|
|
571
|
+
}
|
|
572
|
+
static setAutomaticChangeoverThreshold(params) {
|
|
573
|
+
try {
|
|
574
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setAutomaticChangeoverThreshold.parse(params);
|
|
575
|
+
const { coolingThreshold, heatingThreshold } = params;
|
|
576
|
+
return new encoders_1.BaseCommand('SetAutomaticChangeoverThreshold', 0x64, (0, utils_1.decToHex)(coolingThreshold), (0, utils_1.decToHex)(heatingThreshold));
|
|
577
|
+
}
|
|
578
|
+
catch (e) {
|
|
579
|
+
if (e instanceof zod_1.ZodError) {
|
|
580
|
+
throw new utils_1.CustomError({
|
|
581
|
+
message: 'Zod validation error during SetAutomaticChangeoverThreshold execution',
|
|
582
|
+
command: 'SetAutomaticChangeoverThreshold',
|
|
583
|
+
originalError: e,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
throw new utils_1.CustomError({
|
|
588
|
+
message: 'Error during SetAutomaticChangeoverThreshold execution',
|
|
589
|
+
command: 'SetAutomaticChangeoverThreshold',
|
|
590
|
+
originalError: e,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
static getAutomaticChangeoverThreshold() {
|
|
596
|
+
return new encoders_1.BaseCommand('GetAutomaticChangeoverThreshold', 0x65);
|
|
597
|
+
}
|
|
598
|
+
static setDeviceStatus(params) {
|
|
599
|
+
try {
|
|
600
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setDeviceStatus.parse(params);
|
|
601
|
+
const { value } = params;
|
|
602
|
+
return new encoders_1.BaseCommand('SetDeviceStatus', 0x66, (0, utils_1.decToHex)(value));
|
|
603
|
+
}
|
|
604
|
+
catch (e) {
|
|
605
|
+
if (e instanceof zod_1.ZodError) {
|
|
606
|
+
throw new utils_1.CustomError({
|
|
607
|
+
message: 'Zod validation error during SetDeviceStatus execution',
|
|
608
|
+
command: 'SetDeviceStatus',
|
|
609
|
+
originalError: e,
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
else {
|
|
613
|
+
throw new utils_1.CustomError({
|
|
614
|
+
message: 'Error during SetDeviceStatus execution',
|
|
615
|
+
command: 'SetDeviceStatus',
|
|
616
|
+
originalError: e,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
static getDeviceStatus() {
|
|
622
|
+
return new encoders_1.BaseCommand('GetDeviceStatus', 0x67);
|
|
623
|
+
}
|
|
624
|
+
static setReturnOfPowerOperation(params) {
|
|
625
|
+
try {
|
|
626
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setReturnOfPowerOperation.parse(params);
|
|
627
|
+
const { value } = params;
|
|
628
|
+
return new encoders_1.BaseCommand('SetReturnOfPowerOperation', 0x68, (0, utils_1.decToHex)(value));
|
|
629
|
+
}
|
|
630
|
+
catch (e) {
|
|
631
|
+
if (e instanceof zod_1.ZodError) {
|
|
632
|
+
throw new utils_1.CustomError({
|
|
633
|
+
message: 'Zod validation error during SetReturnOfPowerOperation execution',
|
|
634
|
+
command: 'SetReturnOfPowerOperation',
|
|
635
|
+
originalError: e,
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
throw new utils_1.CustomError({
|
|
640
|
+
message: 'Error during SetReturnOfPowerOperation execution',
|
|
641
|
+
command: 'SetReturnOfPowerOperation',
|
|
642
|
+
originalError: e,
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
static getReturnOfPowerOperation() {
|
|
648
|
+
return new encoders_1.BaseCommand('GetReturnOfPowerOperation', 0x69);
|
|
649
|
+
}
|
|
650
|
+
static setDeltaTemperature1(params) {
|
|
651
|
+
try {
|
|
652
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setDeltaTemperature1.parse(params);
|
|
653
|
+
const { value } = params;
|
|
654
|
+
return new encoders_1.BaseCommand('SetDeltaTemperature1', 0x6a, (0, utils_1.decToHex)(value * 10));
|
|
655
|
+
}
|
|
656
|
+
catch (e) {
|
|
657
|
+
if (e instanceof zod_1.ZodError) {
|
|
658
|
+
throw new utils_1.CustomError({
|
|
659
|
+
message: 'Zod validation error during SetDeltaTemperature1 execution',
|
|
660
|
+
command: 'SetDeltaTemperature1',
|
|
661
|
+
originalError: e,
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
throw new utils_1.CustomError({
|
|
666
|
+
message: 'Error during SetDeltaTemperature1 execution',
|
|
667
|
+
command: 'SetDeltaTemperature1',
|
|
668
|
+
originalError: e,
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
static getDeltaTemperature1() {
|
|
674
|
+
return new encoders_1.BaseCommand('GetDeltaTemperature1', 0x6b);
|
|
675
|
+
}
|
|
676
|
+
static setDeltaTemperature2and3(params) {
|
|
677
|
+
try {
|
|
678
|
+
types_1.DeviceCommandSchemas.FanCoilThermostatCommandSchemas.setDeltaTemperature2and3.parse(params);
|
|
679
|
+
const { deltaTemperature2, deltaTemperature3 } = params;
|
|
680
|
+
return new encoders_1.BaseCommand('SetDeltaTemperature2and3', 0x6c, (0, utils_1.decToHex)(deltaTemperature2 * 10), (0, utils_1.decToHex)(deltaTemperature3 * 10));
|
|
681
|
+
}
|
|
682
|
+
catch (e) {
|
|
683
|
+
if (e instanceof zod_1.ZodError) {
|
|
684
|
+
throw new utils_1.CustomError({
|
|
685
|
+
message: 'Zod validation error during SetDeltaTemperature2and3 execution',
|
|
686
|
+
command: 'SetDeltaTemperature2and3',
|
|
687
|
+
originalError: e,
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
throw new utils_1.CustomError({
|
|
692
|
+
message: 'Error during SetDeltaTemperature2and3 execution',
|
|
693
|
+
command: 'SetDeltaTemperature2and3',
|
|
694
|
+
originalError: e,
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
static getDeltaTemperature2and3() {
|
|
700
|
+
return new encoders_1.BaseCommand('GetDeltaTemperature2and3', 0x6d);
|
|
701
|
+
}
|
|
702
|
+
static getFrostProtectionStatus() {
|
|
703
|
+
return new encoders_1.BaseCommand('GetFrostProtectionStatus', 0x6e);
|
|
704
|
+
}
|
|
705
|
+
static getOccupancySensorStatusSetPoint() {
|
|
706
|
+
return new encoders_1.BaseCommand('GetOccupancySensorStatusSetPoint', 0x70);
|
|
707
|
+
}
|
|
708
|
+
static getOccupancySensorStatus() {
|
|
709
|
+
return new encoders_1.BaseCommand('GetOccupancySensorStatus', 0x71);
|
|
710
|
+
}
|
|
711
|
+
static getDewPointSensorStatus() {
|
|
712
|
+
return new encoders_1.BaseCommand('GetDewPointSensorStatus', 0x72);
|
|
713
|
+
}
|
|
714
|
+
static getFilterAlarm() {
|
|
715
|
+
return new encoders_1.BaseCommand('GetFilterAlarm', 0x73);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
exports.FanCoilThermostatCommands = FanCoilThermostatCommands;
|
|
719
|
+
//# sourceMappingURL=FanCoilThermostat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FanCoilThermostat.js","sourceRoot":"","sources":["../../src/encoders/FanCoilThermostat.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AACxC,mCAAwD;AACxD,6BAA8B;AAC9B,4CAAsF;AAEtF,MAAa,yBAAyB;IACrC,MAAM,CAAC,wBAAwB,CAAC,MAAoE;QACnG,IAAI,CAAC;YACJ,4BAAoB,CAAC,+BAA+B,CAAC,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;YAC3F,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;YACxB,OAAO,IAAI,sBAAW,CAAC,0BAA0B,EAAE,IAAI,EAAE,IAAA,gBAAQ,EAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAA;QAC/E,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,YAAY,cAAQ,EAAE,CAAC;gBAC3B,MAAM,IAAI,mBAAW,CAAC;oBACrB,OAAO,EAAE,gEAAgE;oBACzE,OAAO,EAAE,0BAA0B;oBACnC,aAAa,EAAE,CAAC;iBAChB,CAAC,CAAA;YACH,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,mBAAW,CAAC;oBACrB,OAAO,EAAE,iDAAiD;oBAC1D,OAAO,EAAE,0BAA0B;oBACnC,aAAa,EAAE,CAAU;iBACzB,CAAC,CAAA;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AAC,0BAA0B,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;IAED,MAAM,CAAC,gCAAgC;QACtC,OAAO,IAAI,sBAAW,CAAC,kCAAkC,EAAE,IAAI,CAAC,CAAA;IACjE,CAAC;IAED,MAAM,CAAC,wBAAwB;QAC9B,OAAO,IAAI,sBAAW,CAAC,0BAA0B,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;IAED,MAAM,CAAC,uBAAuB;QAC7B,OAAO,IAAI,sBAAW,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,cAAc;QACpB,OAAO,IAAI,sBAAW,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAA;IAC/C,CAAC;CACD;AAltBD,8DAktBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetAqiLed.d.ts","sourceRoot":"","sources":["../../src/encoders/SetAqiLed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAGxC,OAAO,EAAE,eAAe,EAAwB,MAAM,kBAAkB,CAAA;AAExE,qBAAa,SAAU,SAAQ,WAAW;gBAC7B,MAAM,EAAE,eAAe,CAAC,eAAe;CA8CnD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetAqiLed = void 0;
|
|
4
|
+
const encoders_1 = require("../encoders");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const utils_1 = require("../utils");
|
|
7
|
+
const types_1 = require("../encoders/types");
|
|
8
|
+
class SetAqiLed extends encoders_1.BaseCommand {
|
|
9
|
+
constructor(params) {
|
|
10
|
+
try {
|
|
11
|
+
types_1.DeviceCommandSchemas.AQICommandSchemas.setAqiLed.parse(params);
|
|
12
|
+
const { redBehavior, redDuration, greenBehavior, greenDuration, blueBehavior, blueDuration } = params;
|
|
13
|
+
const red = parseInt(redBehavior.toString(2).padStart(3, '0') +
|
|
14
|
+
Math.floor(redDuration / 10)
|
|
15
|
+
.toString(2)
|
|
16
|
+
.padStart(5, '0'), 2).toString(16);
|
|
17
|
+
const green = parseInt(greenBehavior.toString(2).padStart(3, '0') +
|
|
18
|
+
Math.floor(greenDuration / 10)
|
|
19
|
+
.toString(2)
|
|
20
|
+
.padStart(5, '0'), 2).toString(16);
|
|
21
|
+
const blue = parseInt(blueBehavior.toString(2).padStart(3, '0') +
|
|
22
|
+
Math.floor(blueDuration / 10)
|
|
23
|
+
.toString(2)
|
|
24
|
+
.padStart(5, '0'), 2).toString(16);
|
|
25
|
+
super('SetAqiLed', 0x05, red, green, blue);
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
if (e instanceof zod_1.ZodError) {
|
|
29
|
+
throw new utils_1.CustomError({
|
|
30
|
+
message: 'Zod validation error during SetAqiLed execution',
|
|
31
|
+
command: 'SetAqiLed',
|
|
32
|
+
originalError: e,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new utils_1.CustomError({
|
|
37
|
+
message: 'Error during SetAqiLed execution',
|
|
38
|
+
command: 'SetAqiLed',
|
|
39
|
+
originalError: e,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.SetAqiLed = SetAqiLed;
|
|
46
|
+
//# sourceMappingURL=SetAqiLed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetAqiLed.js","sourceRoot":"","sources":["../../src/encoders/SetAqiLed.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AACxC,6BAA8B;AAC9B,mCAAqC;AACrC,4CAAwE;AAExE,MAAa,SAAU,SAAQ,sBAAW;IACzC,YAAY,MAAuC;QAClD,IAAI,CAAC;YACJ,4BAAoB,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,C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CAAC;oBACrB,OAAO,EAAE,iDAAiD;oBAC1D,OAAO,EAAE,WAAW;oBACpB,aAAa,EAAE,CAAC;iBAChB,CAAC,CAAA;YACH,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,mBAAW,CAAC;oBACrB,OAAO,EAAE,kCAAkC;oBAC3C,OAAO,EAAE,WAAW;oBACpB,aAAa,EAAE,CAAU;iBACzB,CAAC,CAAA;YACH,CAAC;QACF,CAAC;IACF,CAAC;CACD;AA/CD,8BA+CC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { uplinkPayloadParser } from './decoders/payloadParsers';
|
|
2
2
|
export { DeviceType } from './decoders/payloadParsers/types';
|
|
3
|
-
export { CommandBuilder, VickiCommands, WirelessThermostatCommands, SetAqiLedCommands, Relay16Commands, TFloodCommands, OpenCloseSensorCommands, TringThermostatCommands, FanCoilThermostatCommands, TValveCommands, CO2SensorCommands, CO2DisplayCommands, DskDeviceCommands, ButtonCommands, HTSensorCommands, HTDisplayLite, CO2DisplayLiteCommands, } from './encoders';
|
|
3
|
+
export { CommandBuilder, VickiCommands, WirelessThermostatCommands, SetAqiLedCommands, Relay16Commands, TFloodCommands, OpenCloseSensorCommands, TringThermostatCommands, FanCoilThermostatCommands, TValveCommands, CO2SensorCommands, CO2DisplayCommands, DskDeviceCommands, ButtonCommands, HTSensorCommands, HTDisplayLite, CO2DisplayLiteCommands, Relay16DryCommands } from './encoders';
|
|
4
4
|
export { DeviceCommandSchemas } from './encoders/types';
|
|
5
5
|
export { CustomError } from './utils';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomError = exports.DeviceCommandSchemas = exports.CO2DisplayLiteCommands = exports.HTDisplayLite = exports.HTSensorCommands = exports.ButtonCommands = exports.DskDeviceCommands = exports.CO2DisplayCommands = exports.CO2SensorCommands = exports.TValveCommands = exports.FanCoilThermostatCommands = exports.TringThermostatCommands = exports.OpenCloseSensorCommands = exports.TFloodCommands = exports.Relay16Commands = exports.SetAqiLedCommands = exports.WirelessThermostatCommands = exports.VickiCommands = exports.CommandBuilder = exports.DeviceType = exports.uplinkPayloadParser = void 0;
|
|
3
|
+
exports.CustomError = exports.DeviceCommandSchemas = exports.Relay16DryCommands = exports.CO2DisplayLiteCommands = exports.HTDisplayLite = exports.HTSensorCommands = exports.ButtonCommands = exports.DskDeviceCommands = exports.CO2DisplayCommands = exports.CO2SensorCommands = exports.TValveCommands = exports.FanCoilThermostatCommands = exports.TringThermostatCommands = exports.OpenCloseSensorCommands = exports.TFloodCommands = exports.Relay16Commands = exports.SetAqiLedCommands = exports.WirelessThermostatCommands = exports.VickiCommands = exports.CommandBuilder = exports.DeviceType = exports.uplinkPayloadParser = void 0;
|
|
4
4
|
var payloadParsers_1 = require("./decoders/payloadParsers");
|
|
5
5
|
Object.defineProperty(exports, "uplinkPayloadParser", { enumerable: true, get: function () { return payloadParsers_1.uplinkPayloadParser; } });
|
|
6
6
|
var types_1 = require("./decoders/payloadParsers/types");
|
|
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "ButtonCommands", { enumerable: true, get: functi
|
|
|
23
23
|
Object.defineProperty(exports, "HTSensorCommands", { enumerable: true, get: function () { return encoders_1.HTSensorCommands; } });
|
|
24
24
|
Object.defineProperty(exports, "HTDisplayLite", { enumerable: true, get: function () { return encoders_1.HTDisplayLite; } });
|
|
25
25
|
Object.defineProperty(exports, "CO2DisplayLiteCommands", { enumerable: true, get: function () { return encoders_1.CO2DisplayLiteCommands; } });
|
|
26
|
+
Object.defineProperty(exports, "Relay16DryCommands", { enumerable: true, get: function () { return encoders_1.Relay16DryCommands; } });
|
|
26
27
|
var types_2 = require("./encoders/types");
|
|
27
28
|
Object.defineProperty(exports, "DeviceCommandSchemas", { enumerable: true, get: function () { return types_2.DeviceCommandSchemas; } });
|
|
28
29
|
var utils_1 = require("./utils");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAAtD,qHAAA,mBAAmB,OAAA;AAC5B,yDAA4D;AAAnD,mGAAA,UAAU,OAAA;AACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAAtD,qHAAA,mBAAmB,OAAA;AAC5B,yDAA4D;AAAnD,mGAAA,UAAU,OAAA;AACnB,uCAmBmB;AAlBlB,0GAAA,cAAc,OAAA;AACd,yGAAA,aAAa,OAAA;AACb,sHAAA,0BAA0B,OAAA;AAC1B,6GAAA,iBAAiB,OAAA;AACjB,2GAAA,eAAe,OAAA;AACf,0GAAA,cAAc,OAAA;AACd,mHAAA,uBAAuB,OAAA;AACvB,mHAAA,uBAAuB,OAAA;AACvB,qHAAA,yBAAyB,OAAA;AACzB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,0GAAA,cAAc,OAAA;AACd,4GAAA,gBAAgB,OAAA;AAChB,yGAAA,aAAa,OAAA;AACb,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,OAAA;AAEnB,0CAAuD;AAA9C,6GAAA,oBAAoB,OAAA;AAC7B,iCAAqC;AAA5B,oGAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum DeviceType {
|
|
2
|
+
Vicki = "vicki",
|
|
3
|
+
HTSensor = "ht_sensor",
|
|
4
|
+
TFlood = "t_flood",
|
|
5
|
+
AQISensor = "aqi_sensor",
|
|
6
|
+
TValve = "t_valve",
|
|
7
|
+
CO2Sensor = "co2_sensor",
|
|
8
|
+
Thermostat = "thermostat",
|
|
9
|
+
MCButton = "mc_button",
|
|
10
|
+
OpenCloseSensor = "open_close_sensor",
|
|
11
|
+
DskDevice = "dsk_device",
|
|
12
|
+
WirelessThermostat = "wireless_thermostat",
|
|
13
|
+
CO2Display = "co2_display",
|
|
14
|
+
FanCoilThermostat = "fan_coil_thermostat",
|
|
15
|
+
CO2DisplayLite = "co2_display_lite",
|
|
16
|
+
HTDisplayLite = "ht_display_lite",
|
|
17
|
+
Relay16 = "relay_16"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=deviceTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/types/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACrB,KAAK,UAAU;IACf,QAAQ,cAAc;IACtB,MAAM,YAAY;IAClB,SAAS,eAAe;IACxB,MAAM,YAAY;IAClB,SAAS,eAAe;IACxB,UAAU,eAAe;IACzB,QAAQ,cAAc;IACtB,eAAe,sBAAsB;IACrC,SAAS,eAAe;IACxB,kBAAkB,wBAAwB;IAC1C,UAAU,gBAAgB;IAC1B,iBAAiB,wBAAwB;IACzC,cAAc,qBAAqB;IACnC,aAAa,oBAAoB;IACjC,OAAO,aAAa;CACpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceType = void 0;
|
|
4
|
+
var DeviceType;
|
|
5
|
+
(function (DeviceType) {
|
|
6
|
+
DeviceType["Vicki"] = "vicki";
|
|
7
|
+
DeviceType["HTSensor"] = "ht_sensor";
|
|
8
|
+
DeviceType["TFlood"] = "t_flood";
|
|
9
|
+
DeviceType["AQISensor"] = "aqi_sensor";
|
|
10
|
+
DeviceType["TValve"] = "t_valve";
|
|
11
|
+
DeviceType["CO2Sensor"] = "co2_sensor";
|
|
12
|
+
DeviceType["Thermostat"] = "thermostat";
|
|
13
|
+
DeviceType["MCButton"] = "mc_button";
|
|
14
|
+
DeviceType["OpenCloseSensor"] = "open_close_sensor";
|
|
15
|
+
DeviceType["DskDevice"] = "dsk_device";
|
|
16
|
+
DeviceType["WirelessThermostat"] = "wireless_thermostat";
|
|
17
|
+
DeviceType["CO2Display"] = "co2_display";
|
|
18
|
+
DeviceType["FanCoilThermostat"] = "fan_coil_thermostat";
|
|
19
|
+
DeviceType["CO2DisplayLite"] = "co2_display_lite";
|
|
20
|
+
DeviceType["HTDisplayLite"] = "ht_display_lite";
|
|
21
|
+
DeviceType["Relay16"] = "relay_16";
|
|
22
|
+
})(DeviceType || (exports.DeviceType = DeviceType = {}));
|
|
23
|
+
//# sourceMappingURL=deviceTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../src/types/deviceTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACrB,6BAAe,CAAA;IACf,oCAAsB,CAAA;IACtB,gCAAkB,CAAA;IAClB,sCAAwB,CAAA;IACxB,gCAAkB,CAAA;IAClB,sCAAwB,CAAA;IACxB,uCAAyB,CAAA;IACzB,oCAAsB,CAAA;IACtB,mDAAqC,CAAA;IACrC,sCAAwB,CAAA;IACxB,wDAA0C,CAAA;IAC1C,wCAA0B,CAAA;IAC1B,uDAAyC,CAAA;IACzC,iDAAmC,CAAA;IACnC,+CAAiC,CAAA;IACjC,kCAAoB,CAAA;AACrB,CAAC,EAjBW,UAAU,0BAAV,UAAU,QAiBrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./deviceTypes"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const userSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
age: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
age: number;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
age: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type UserType = z.infer<typeof userSchema>;
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,UAAU;;;;;;;;;EAGrB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.userSchema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string(),
|
|
7
|
+
age: zod_1.z.number().min(18),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;CACvB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAEpD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateUser = validateUser;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
function validateUser(data) {
|
|
6
|
+
return types_1.userSchema.parse(data);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;AAEA,oCAEC;AAJD,mCAA8C;AAE9C,SAAgB,YAAY,CAAC,IAAa;IACzC,OAAO,kBAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC9B,CAAC"}
|
package/package.json
CHANGED