homebridge-melcloud-control 3.8.2-beta.0 → 3.8.2-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/package.json +1 -1
- package/src/deviceata.js +9 -3
- package/src/deviceatw.js +24 -18
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.8.2-beta.
|
|
4
|
+
"version": "3.8.2-beta.1",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/deviceata.js
CHANGED
|
@@ -45,8 +45,8 @@ class DeviceAta extends EventEmitter {
|
|
|
45
45
|
this.mqttConnected = false;
|
|
46
46
|
|
|
47
47
|
//variables
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
this.useFahrenheit = useFahrenheit ? 1 : 0;
|
|
49
|
+
this.temperatureUnit = TemperatureDisplayUnits[this.useFahrenheit];
|
|
50
50
|
|
|
51
51
|
//function
|
|
52
52
|
this.melCloud = melCloud; //function
|
|
@@ -1044,6 +1044,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1044
1044
|
setTemperature: setTemperature,
|
|
1045
1045
|
defaultHeatingSetTemperature: defaultHeatingSetTemperature,
|
|
1046
1046
|
defaultCoolingSetTemperature: defaultCoolingSetTemperature,
|
|
1047
|
+
fanSpeed: 0,
|
|
1047
1048
|
actualFanSpeed: actualFanSpeed,
|
|
1048
1049
|
automaticFanSpeed: automaticFanSpeed,
|
|
1049
1050
|
vaneVerticalSwing: vaneVerticalSwing,
|
|
@@ -1052,7 +1053,12 @@ class DeviceAta extends EventEmitter {
|
|
|
1052
1053
|
lockPhysicalControl: prohibitSetTemperature && prohibitOperationMode && prohibitPower ? 1 : 0,
|
|
1053
1054
|
useFahrenheit: this.useFahrenheit,
|
|
1054
1055
|
temperatureUnit: this.useFahrenheit,
|
|
1055
|
-
temperatureIncrement: temperatureIncrement
|
|
1056
|
+
temperatureIncrement: temperatureIncrement,
|
|
1057
|
+
operationModeSetPropsMinValue: 0,
|
|
1058
|
+
operationModeSetPropsMaxValue: 2,
|
|
1059
|
+
operationModeSetPropsValidValues: [0, 1, 2],
|
|
1060
|
+
fanSpeedSetPropsMaxValue: 6
|
|
1061
|
+
|
|
1056
1062
|
};
|
|
1057
1063
|
|
|
1058
1064
|
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
|
package/src/deviceatw.js
CHANGED
|
@@ -1679,19 +1679,22 @@ class DeviceAtw extends EventEmitter {
|
|
|
1679
1679
|
break;
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
|
-
//add
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1682
|
+
//add obj to zones arrays
|
|
1683
|
+
const objZ = {
|
|
1684
|
+
name: name,
|
|
1685
|
+
operationMode: operationModeZone,
|
|
1686
|
+
currentOperationMode: currentOperationMode,
|
|
1687
|
+
targetOperationMode: targetOperationMode,
|
|
1688
|
+
roomTemperature: roomTemperature,
|
|
1689
|
+
setTemperature: setTemperature,
|
|
1690
|
+
lockPhysicalControl: lockPhysicalControl,
|
|
1691
|
+
temperaturesSetPropsMinValue: temperatureSetPropsMinValue,
|
|
1692
|
+
temperaturesSetPropsMaxValue: temperatureSetPropsMaxValue,
|
|
1693
|
+
operationModesSetPropsMinValue: operationModeSetPropsMinValue,
|
|
1694
|
+
operationModesSetPropsMaxValue: operationModeSetPropsMaxValue,
|
|
1695
|
+
operationModesSetPropsValidValues: operationModeSetPropsValidValues,
|
|
1696
|
+
};
|
|
1697
|
+
obj.zones[i] = objZ;
|
|
1695
1698
|
|
|
1696
1699
|
//log current state
|
|
1697
1700
|
if (!this.disableLogInfo) {
|
|
@@ -1825,11 +1828,14 @@ class DeviceAtw extends EventEmitter {
|
|
|
1825
1828
|
break;
|
|
1826
1829
|
};
|
|
1827
1830
|
|
|
1828
|
-
//add
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1831
|
+
//add obj to sensors arrays
|
|
1832
|
+
const objS = {
|
|
1833
|
+
name: name,
|
|
1834
|
+
roomTemperature: roomTemperature,
|
|
1835
|
+
flowTemperature: flowTemperature,
|
|
1836
|
+
returnTemperature: returnTemperature
|
|
1837
|
+
};
|
|
1838
|
+
obj.zonesSensors[i] = objS;
|
|
1833
1839
|
|
|
1834
1840
|
//log current state
|
|
1835
1841
|
if (!this.disableLogInfo) {
|