homebridge-melcloud-control 3.8.2-beta.3 → 3.8.3-beta.0
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 +7 -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.0",
|
|
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}, ${obj.roomTemperature}, ${obj.lockPhysicalControl}`);
|
|
1139
1143
|
this.melCloudService
|
|
1140
1144
|
.updateCharacteristic(Characteristic.Active, power ? 1 : 0)
|
|
1141
1145
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, obj.currentOperationMode)
|
|
@@ -1194,6 +1198,9 @@ 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) {
|
|
1199
1206
|
this.melCloudService
|
|
@@ -1206,9 +1213,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1206
1213
|
break;
|
|
1207
1214
|
};
|
|
1208
1215
|
|
|
1209
|
-
//add obj to mielHvac
|
|
1210
|
-
this.mielHvac = obj;
|
|
1211
|
-
|
|
1212
1216
|
if (this.roomTemperatureSensorService) {
|
|
1213
1217
|
this.roomTemperatureSensorService
|
|
1214
1218
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|