homebridge-melcloud-control 3.8.2 → 3.8.3-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 +8 -3
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.
|
|
4
|
+
"version": "3.8.3-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
|
@@ -1134,8 +1134,12 @@ class DeviceAta extends EventEmitter {
|
|
|
1134
1134
|
};
|
|
1135
1135
|
};
|
|
1136
1136
|
|
|
1137
|
+
//add obj to mielHvac
|
|
1138
|
+
this.mielHvac = obj;
|
|
1139
|
+
|
|
1137
1140
|
//update characteristics
|
|
1138
1141
|
if (this.melCloudService) {
|
|
1142
|
+
this.emit('warn', `Update characteristics: ${power ? 1 : 0}, ${obj.currentOperationMode}, ${obj.targetOperationMode}, ${roomTemperature}, ${obj.lockPhysicalControl}`);
|
|
1139
1143
|
this.melCloudService
|
|
1140
1144
|
.updateCharacteristic(Characteristic.Active, power ? 1 : 0)
|
|
1141
1145
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, obj.currentOperationMode)
|
|
@@ -1194,8 +1198,12 @@ class DeviceAta extends EventEmitter {
|
|
|
1194
1198
|
obj.operationModeSetPropsMaxValue = modelSupportsAuto && modelSupportsHeat ? 3 : !modelSupportsAuto && modelSupportsHeat ? 2 : modelSupportsAuto && !modelSupportsHeat ? 3 : 2;
|
|
1195
1199
|
obj.operationModeSetPropsValidValues = modelSupportsAuto && modelSupportsHeat ? [0, 1, 2, 3] : !modelSupportsAuto && modelSupportsHeat ? [0, 1, 2] : modelSupportsAuto && !modelSupportsHeat ? [0, 2, 3] : [0, 2];
|
|
1196
1200
|
|
|
1201
|
+
//add obj to mielHvac
|
|
1202
|
+
this.mielHvac = obj;
|
|
1203
|
+
|
|
1197
1204
|
//update characteristics
|
|
1198
1205
|
if (this.melCloudService) {
|
|
1206
|
+
this.emit('warn', `Update characteristics: ${power ? 1 : 0}, ${obj.currentOperationMode}, ${obj.targetOperationMode}, ${roomTemperature}, ${obj.useFahrenheit}`);
|
|
1199
1207
|
this.melCloudService
|
|
1200
1208
|
.updateCharacteristic(Characteristic.CurrentHeatingCoolingState, obj.currentOperationMode)
|
|
1201
1209
|
.updateCharacteristic(Characteristic.TargetHeatingCoolingState, obj.targetOperationMode)
|
|
@@ -1206,9 +1214,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1206
1214
|
break;
|
|
1207
1215
|
};
|
|
1208
1216
|
|
|
1209
|
-
//add obj to mielHvac
|
|
1210
|
-
this.mielHvac = obj;
|
|
1211
|
-
|
|
1212
1217
|
if (this.roomTemperatureSensorService) {
|
|
1213
1218
|
this.roomTemperatureSensorService
|
|
1214
1219
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|