homebridge-melcloud-control 4.0.0-beta.106 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.106",
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",
@@ -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(displayType, deviceData, displayMode) {
241
- switch (displayType) {
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,7 +340,7 @@ class MelCloudAta extends EventEmitter {
340
340
  break;
341
341
  };
342
342
 
343
- deviceData.Device.OperationMode = ApiUrlsHome.OperationModeMapEnumToString[deviceData.Device.OperationMode];
343
+ deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode];
344
344
  const payload = {
345
345
  data: {
346
346
  power: deviceData.Device.Power,