homebridge-melcloud-control 4.0.0-beta.138 → 4.0.0-beta.139

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.138",
4
+ "version": "4.0.0-beta.139",
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
@@ -36,23 +36,12 @@ export const TemperatureDisplayUnits = ["°C", "°F"];
36
36
 
37
37
  export const AirConditioner = {
38
38
  System: ["AIR CONDITIONER OFF", "AIR CONDITIONER ON", "AIR CONDITIONER OFFLINE"],
39
- OperationMode: [
40
- "0", "HEAT", "DRY", "COOL", "4", "5", "6", "FAN", "AUTO",
41
- "ISEE HEAT", "ISEE DRY", "ISEE COOL"
42
- ],
43
- VerticalVane: ["AUTO", "1", "2", "3", "4", "5", "6", "SWING"],
44
- HorizontalVane: [
45
- "AUTO", "LL", "L", "C", "R", "RR", "6", "7",
46
- "SPLIT", "9", "10", "11", "SWING"
47
- ],
39
+ OperationMode: ["0", "HEAT", "DRY", "COOL", "4", "5", "6", "FAN", "AUTO", "ISEE HEAT", "ISEE DRY", "ISEE COOL"],
40
+ VaneVertical: ["AUTO", "1", "2", "3", "4", "5", "6", "SWING"],
41
+ VaneHorizontal: ["AUTO", "LL", "L", "C", "R", "RR", "6", "7", "SPLIT", "9", "10", "11", "SWING"],
48
42
  AirDirection: ["AUTO", "SWING"],
49
- FanSpeedMapHomekit: [
50
- "AUTO", "1", "QUIET", "WEAK", "4",
51
- "STRONG", "VERY STRONG", "OFF"
52
- ],
53
- CurrentOperationModeHeatherCooler: [
54
- "INACTIVE", "IDLE", "HEATING", "COOLING"
55
- ],
43
+ FanSpeedMapHomekit: ["AUTO", "1", "QUIET", "WEAK", "4", "STRONG", "VERY STRONG", "OFF"],
44
+ CurrentOperationModeHeatherCooler: ["INACTIVE", "IDLE", "HEATING", "COOLING"],
56
45
  CurrentOperationModeThermostat: ["INACTIVE", "HEATING", "COOLING"],
57
46
  EffectiveFlags: {
58
47
  Power: 1,
@@ -79,7 +68,7 @@ export const AirConditioner = {
79
68
  FanSpeedMapStringToEnum: { "Auto": 0, "One": 1, "Two": 2, "Three": 3, "Four": 4, "Five": 5, "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, },
80
69
  FanSpeedMapEnumToString: { 0: "Auto", 1: "One", 2: "Two", 3: "Three", 4: "Four", 5: "Five" },
81
70
  VaneVerticalDirectionMapStringToEnum: { "Auto": 0, "One": 1, "Two": 2, "Three": 3, "Four": 4, "Five": 5, "Six": 6, "Swing": 7 },
82
- VaneHorizontalDirectionMapStringToEnum: { "Auto": 0, "One": 1, "Two": 2, "Three": 3, "Four": 4, "Five": 5, "Six": 6, "Seven": 7, "Split": 8, "9": 9, "10": 10, "11": 11, "Swing": 12 },
71
+ VaneHorizontalDirectionMapStringToEnum: { "Auto": 0, "One": 1, "Two": 2, "Three": 3, "Four": 4, "Five": 5, "Six": 6, "Seven": 7, "Split": 8, "Nine": 9, "Ten": 10, "Eleven": 11, "Swing": 12 },
83
72
  };
84
73
 
85
74
  export const HeatPump = {
package/src/deviceata.js CHANGED
@@ -1328,8 +1328,8 @@ class DeviceAta extends EventEmitter {
1328
1328
  if (supportsOutdoorTemperature && outdoorTemperature !== null) this.emit('info', `Outdoor temperature: ${outdoorTemperature}${obj.temperatureUnit}`);
1329
1329
  if (supportsFanSpeed) this.emit('info', `Target fan speed: ${AirConditioner.FanSpeedMapHomekit[fanSpeed]}`);
1330
1330
  if (supportsFanSpeed) this.emit('info', `Current fan speed: ${AirConditioner.FanSpeedMapHomekit[actualFanSpeed]}`);
1331
- if (vaneHorizontalDirection !== null) this.emit('info', `Vane horizontal: ${AirConditioner.HorizontalVane[vaneHorizontalDirection] ?? vaneHorizontalDirection}`);
1332
- if (vaneVerticalDirection !== null) this.emit('info', `Vane vertical: ${AirConditioner.VerticalVane[vaneVerticalDirection] ?? vaneVerticalDirection}`);
1331
+ if (vaneHorizontalDirection !== null) this.emit('info', `Vane horizontal: ${AirConditioner.VaneHorizontal[vaneHorizontalDirection]}`);
1332
+ if (vaneVerticalDirection !== null) this.emit('info', `Vane vertical: ${AirConditioner.VaneVertical[vaneVerticalDirection]}`);
1333
1333
  if (supportsSwingFunction) this.emit('info', `Air direction: ${AirConditioner.AirDirection[obj.swingMode]}`);
1334
1334
  this.emit('info', `Temperature display unit: ${obj.temperatureUnit}`);
1335
1335
  this.emit('info', `Lock physical controls: ${obj.lockPhysicalControl ? 'LOCKED' : 'UNLOCKED'}`);