homebridge-melcloud-control 4.2.6-beta.15 → 4.2.6-beta.16
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 +1 -2
- package/src/deviceatw.js +9 -9
- package/src/deviceerv.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.2.6-beta.
|
|
4
|
+
"version": "4.2.6-beta.16",
|
|
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
|
@@ -1541,7 +1541,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1541
1541
|
obj.currentFanSpeed = speeds[setFanSpeed];
|
|
1542
1542
|
obj.fanSpeedSetPropsMaxValue = supportsAutomaticFanSpeed ? max + 1 : max;
|
|
1543
1543
|
}
|
|
1544
|
-
this.accessory = obj;
|
|
1545
1544
|
|
|
1546
1545
|
//create characteristics
|
|
1547
1546
|
characteristics.push(
|
|
@@ -1615,7 +1614,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1615
1614
|
obj.operationModeSetPropsMinValue = 0
|
|
1616
1615
|
obj.operationModeSetPropsMaxValue = supportsAuto && supportsHeat ? 3 : !supportsAuto && supportsHeat ? 2 : supportsAuto && !supportsHeat ? 3 : 2;
|
|
1617
1616
|
obj.operationModeSetPropsValidValues = supportsAuto && supportsHeat ? [0, 1, 2, 3] : !supportsAuto && supportsHeat ? [0, 1, 2] : supportsAuto && !supportsHeat ? [0, 2, 3] : [0, 2];
|
|
1618
|
-
this.accessory = obj;
|
|
1619
1617
|
|
|
1620
1618
|
//create characteristics
|
|
1621
1619
|
characteristics.push(
|
|
@@ -1627,6 +1625,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1627
1625
|
);
|
|
1628
1626
|
break;
|
|
1629
1627
|
};
|
|
1628
|
+
this.accessory = obj;
|
|
1630
1629
|
|
|
1631
1630
|
//update services
|
|
1632
1631
|
for (const { type, value } of characteristics) {
|
package/src/deviceatw.js
CHANGED
|
@@ -99,9 +99,9 @@ class DeviceAtw extends EventEmitter {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
this.functions = new Functions(this.logWarn, this.logError, this.logDebug)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
.on('warn', warn => this.emit('warn', warn))
|
|
103
|
+
.on('error', error => this.emit('error', error))
|
|
104
|
+
.on('debug', debug => this.emit('debug', debug));
|
|
105
105
|
|
|
106
106
|
//device data
|
|
107
107
|
this.deviceData = {};
|
|
@@ -1913,12 +1913,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1913
1913
|
break;
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
|
-
//update services
|
|
1917
|
-
for (const { type, value } of characteristics) {
|
|
1918
|
-
if (!this.functions.isValidValue(value)) continue;
|
|
1919
|
-
this.melCloudService?.[i]?.updateCharacteristic(type, value);
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
1916
|
//add every zone to array
|
|
1923
1917
|
const zone = {
|
|
1924
1918
|
name: name,
|
|
@@ -2061,6 +2055,12 @@ class DeviceAtw extends EventEmitter {
|
|
|
2061
2055
|
};
|
|
2062
2056
|
this.accessory = obj;
|
|
2063
2057
|
|
|
2058
|
+
//update services
|
|
2059
|
+
for (const { type, value } of characteristics) {
|
|
2060
|
+
if (!this.functions.isValidValue(value)) continue;
|
|
2061
|
+
this.melCloudService?.[i]?.updateCharacteristic(type, value);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
2064
|
//other sensors
|
|
2065
2065
|
this.inStandbyService?.updateCharacteristic(Characteristic.ContactSensorState, inStandbyMode);
|
|
2066
2066
|
this.connectService?.updateCharacteristic(Characteristic.ContactSensorState, isConnected);
|
package/src/deviceerv.js
CHANGED
|
@@ -1320,7 +1320,6 @@ class DeviceErv extends EventEmitter {
|
|
|
1320
1320
|
obj.fanSpeed = speeds[setFanSpeed];
|
|
1321
1321
|
obj.fanSpeedSetPropsMaxValue = supportsAutomaticFanSpeed ? max + 1 : max;
|
|
1322
1322
|
}
|
|
1323
|
-
this.accessory = obj;
|
|
1324
1323
|
|
|
1325
1324
|
//create characteristics
|
|
1326
1325
|
characteristics.push(
|
|
@@ -1371,7 +1370,6 @@ class DeviceErv extends EventEmitter {
|
|
|
1371
1370
|
obj.operationModeSetPropsMinValue = supportsAutoVentilationMode ? 0 : 0;
|
|
1372
1371
|
obj.operationModeSetPropsMaxValue = supportsAutoVentilationMode ? 3 : 2;
|
|
1373
1372
|
obj.operationModeSetPropsValidValues = supportsAutoVentilationMode ? (supportsBypassVentilationMode ? [0, 1, 2, 3] : [0, 2, 3]) : (supportsBypassVentilationMode ? [0, 1, 2] : [0, 2]);
|
|
1374
|
-
this.accessory = obj;
|
|
1375
1373
|
|
|
1376
1374
|
//update characteristics
|
|
1377
1375
|
this.melCloudService
|
|
@@ -1392,6 +1390,8 @@ class DeviceErv extends EventEmitter {
|
|
|
1392
1390
|
break;
|
|
1393
1391
|
};
|
|
1394
1392
|
|
|
1393
|
+
this.accessory = obj;
|
|
1394
|
+
|
|
1395
1395
|
//update services
|
|
1396
1396
|
for (const { type, value } of characteristics) {
|
|
1397
1397
|
if (!this.functions.isValidValue(value)) continue;
|