homebridge-melcloud-control 4.0.0-beta.185 → 4.0.0-beta.187
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 +4 -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.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.187",
|
|
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
|
@@ -240,7 +240,7 @@ class DeviceAta extends EventEmitter {
|
|
|
240
240
|
//prepare accessory
|
|
241
241
|
async prepareAccessory() {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
let deviceData = this.deviceData;
|
|
244
244
|
const deviceId = this.deviceId;
|
|
245
245
|
const deviceTypeText = this.deviceTypeText;
|
|
246
246
|
const deviceName = this.deviceName;
|
|
@@ -320,16 +320,18 @@ class DeviceAta extends EventEmitter {
|
|
|
320
320
|
switch (value) {
|
|
321
321
|
case 0: //AUTO - AUTO
|
|
322
322
|
value = autoDryFanMode;
|
|
323
|
+
deviceData.Device.OperationMode = value;
|
|
323
324
|
break;
|
|
324
325
|
case 1: //HEAT - HEAT
|
|
325
326
|
value = heatDryFanMode;
|
|
327
|
+
deviceData.Device.OperationMode = value;
|
|
326
328
|
break;
|
|
327
329
|
case 2: //COOL - COOL
|
|
328
330
|
value = coolDryFanMode;
|
|
331
|
+
deviceData.Device.OperationMode = value;
|
|
329
332
|
break;
|
|
330
333
|
};
|
|
331
334
|
|
|
332
|
-
deviceData.Device.OperationMode = value;
|
|
333
335
|
deviceData.Device.EffectiveFlags = AirConditioner.EffectiveFlags.OperationMode;
|
|
334
336
|
await this.melCloudAta.send(this.accountType, this.displayMode, deviceData);
|
|
335
337
|
if (this.logInfo) this.emit('info', `Set operation mode: ${AirConditioner.OperationModeMapEnumToString[value]}`);
|