homebridge-melcloud-control 4.0.0-beta.147 → 4.0.0-beta.149

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.147",
4
+ "version": "4.0.0-beta.149",
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/constants.js CHANGED
@@ -40,7 +40,7 @@ export const AirConditioner = {
40
40
  VaneVertical: ["AUTO", "UP", "UP CENTER", "CENTER", "DOWN CENTER", "DOWN", "6", "SWING"],
41
41
  VaneHorizontal: ["AUTO", "LEFT", "LEFT CENTER", "CENTER", "RIGHT CENTER", "RIGHT", "6", "7", "SPLIT", "9", "10", "11", "SWING"],
42
42
  AirDirection: ["AUTO", "SWING"],
43
- FanSpeedMapHomekit: ["AUTO", "1", "QUIET", "WEAK", "4", "STRONG", "VERY STRONG", "OFF"],
43
+ FanSpeedMapHomekit: ["AUTO", "VERY QUIT", "QUIET", "WEAK", "MIDDLE", "STRONG", "VERY STRONG", "OFF"],
44
44
  CurrentOperationModeHeatherCooler: ["INACTIVE", "IDLE", "HEATING", "COOLING"],
45
45
  CurrentOperationModeThermostat: ["INACTIVE", "HEATING", "COOLING"],
46
46
  EffectiveFlags: {
@@ -305,7 +305,9 @@ class MelCloudAta extends EventEmitter {
305
305
  };
306
306
 
307
307
  deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode];
308
- deviceData.Device.SetFanSpeed = AirConditioner.FanSpeedMapEnumToString[deviceData.Device.SetFanSpeed];
308
+ deviceData.Device.SetFanSpeed = deviceData.Device.SetFanSpeed.toString();
309
+ deviceData.Device.VaneHorizontalDirection = deviceData.Device.VaneHorizontalDirection.toString();
310
+ deviceData.Device.VaneVerticalDirection = deviceData.Device.VaneVerticalDirection.toString();
309
311
  this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
310
312
 
311
313
  const payload = {