homebridge-melcloud-control 4.0.0-beta.105 → 4.0.0-beta.107
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 +0 -1
- package/src/melcloudata.js +4 -3
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.107",
|
|
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
|
@@ -327,7 +327,6 @@ class DeviceAta extends EventEmitter {
|
|
|
327
327
|
break;
|
|
328
328
|
};
|
|
329
329
|
|
|
330
|
-
if (this.accountDisplayType === 'melcloudhome') deviceData.Device.OperationMode = ApiUrlsHome.OperationModeMapEnumToString[deviceData.Device.OperationMode];
|
|
331
330
|
deviceData.Device.EffectiveFlags = AirConditioner.EffectiveFlags.OperationModeSetTemperature;
|
|
332
331
|
await this.melCloudAta.send(this.accountDisplayType, deviceData, this.displayMode);
|
|
333
332
|
const operationModeText = AirConditioner.OperationMode[deviceData.Device.OperationMode];
|
package/src/melcloudata.js
CHANGED
|
@@ -3,7 +3,7 @@ import axios from 'axios';
|
|
|
3
3
|
import EventEmitter from 'events';
|
|
4
4
|
import ImpulseGenerator from './impulsegenerator.js';
|
|
5
5
|
import Functions from './functions.js';
|
|
6
|
-
import { ApiUrls, ApiUrlsHome } from './constants.js';
|
|
6
|
+
import { ApiUrls, ApiUrlsHome, AirConditioner } from './constants.js';
|
|
7
7
|
|
|
8
8
|
class MelCloudAta extends EventEmitter {
|
|
9
9
|
constructor(device, contextKey, devicesFile) {
|
|
@@ -237,8 +237,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
237
237
|
}, 500);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
async send(
|
|
241
|
-
switch (
|
|
240
|
+
async send(accountDisplayType, deviceData, displayMode) {
|
|
241
|
+
switch (accountDisplayType) {
|
|
242
242
|
case "melcloud":
|
|
243
243
|
try {
|
|
244
244
|
//set target temp based on display mode and operation mode
|
|
@@ -340,6 +340,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
340
340
|
break;
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
+
deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode];
|
|
343
344
|
const payload = {
|
|
344
345
|
data: {
|
|
345
346
|
power: deviceData.Device.Power,
|