mclimate-payload-helper 1.0.41 → 1.0.42
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.
|
@@ -1397,7 +1397,7 @@ const commandsReadingHelper = (hexData, payloadLength, deviceType) => {
|
|
|
1397
1397
|
try {
|
|
1398
1398
|
command_len = 2;
|
|
1399
1399
|
let data = {
|
|
1400
|
-
valveOpennessRangeInPercentage: {
|
|
1400
|
+
valveOpennessRangeInPercentage: { max: 100 - parseInt(commands[i + 1], 16), min: 100 - parseInt(commands[i + 2], 16) },
|
|
1401
1401
|
};
|
|
1402
1402
|
Object.assign(resultToPass, Object.assign({}, resultToPass), Object.assign({}, data));
|
|
1403
1403
|
}
|
package/package.json
CHANGED
|
@@ -1313,7 +1313,7 @@ export const commandsReadingHelper = (hexData: string, payloadLength: number, de
|
|
|
1313
1313
|
try {
|
|
1314
1314
|
command_len = 2
|
|
1315
1315
|
let data = {
|
|
1316
|
-
valveOpennessRangeInPercentage: {
|
|
1316
|
+
valveOpennessRangeInPercentage: { max: 100 - parseInt(commands[i + 1], 16), min: 100 - parseInt(commands[i + 2], 16) },
|
|
1317
1317
|
}
|
|
1318
1318
|
Object.assign(resultToPass, { ...resultToPass }, { ...data })
|
|
1319
1319
|
} catch (e) {
|