homebridge-melcloud-control 4.3.9-beta.11 → 4.3.9-beta.12

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.3.9-beta.11",
4
+ "version": "4.3.9-beta.12",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -35,7 +35,7 @@ class MelCloudAta extends EventEmitter {
35
35
  deviceData.Scenes = devicesData.Scenes ?? [];
36
36
 
37
37
  //update state
38
- if (!this.logDebug) this.emit('debug', `Request update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
38
+ if (!this.logDebug) this.emit('debug', `Request update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
39
39
  await this.updateState(deviceData);
40
40
  }).on('webSocket', async (parsedMessage) => {
41
41
  try {
@@ -54,21 +54,20 @@ class MelCloudAta extends EventEmitter {
54
54
  //update values
55
55
  for (const [key, value] of Object.entries(settings)) {
56
56
  if (!this.functions.isValidValue(value)) continue;
57
- let parsedValue = this.functions.convertValue(value);
58
57
 
59
58
  //update holiday mode
60
59
  if (key === 'HolidayMode') {
61
- deviceData.HolidayMode.Enabled = parsedValue;
60
+ deviceData.HolidayMode.Enabled = value;
62
61
  continue;
63
62
  }
64
63
 
65
64
  //update device settings
66
65
  if (key in deviceData.Device) {
67
- deviceData.Device[key] = parsedValue;
66
+ deviceData.Device[key] = value;
68
67
  }
69
68
  }
70
69
 
71
- if (!this.logDebug) this.emit('debug', `WS update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
70
+ if (!this.logDebug) this.emit('debug', `WS update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
72
71
  updateState = true;
73
72
  break;
74
73
  case 'unitHolidayModeTriggered':
@@ -35,7 +35,7 @@ class MelCloudAtw extends EventEmitter {
35
35
  deviceData.Scenes = devicesData.Scenes ?? [];
36
36
 
37
37
  //update state
38
- if (this.logDebug) this.emit('debug', `Request update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
38
+ if (this.logDebug) this.emit('debug', `Request update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
39
39
  await this.updateState(deviceData);
40
40
  }).on('webSocket', async (parsedMessage) => {
41
41
  try {
@@ -54,21 +54,20 @@ class MelCloudAtw extends EventEmitter {
54
54
  //update values
55
55
  for (const [key, value] of Object.entries(settings)) {
56
56
  if (!this.functions.isValidValue(value)) continue;
57
- let parsedValue = this.functions.convertValue(value);
58
57
 
59
58
  //update holiday mode
60
59
  if (key === 'HolidayMode') {
61
- deviceData.HolidayMode.Enabled = parsedValue;
60
+ deviceData.HolidayMode.Enabled = value;
62
61
  continue;
63
62
  }
64
63
 
65
64
  //update device settings
66
65
  if (key in deviceData.Device) {
67
- deviceData.Device[key] = parsedValue;
66
+ deviceData.Device[key] = value;
68
67
  }
69
68
  }
70
69
 
71
- if (this.logDebug) this.emit('debug', `WS update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
70
+ if (this.logDebug) this.emit('debug', `WS update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
72
71
  updateState = true;
73
72
  break;
74
73
  case 'unitHolidayModeTriggered':
@@ -35,7 +35,7 @@ class MelCloudErv extends EventEmitter {
35
35
  deviceData.Scenes = devicesData.Scenes ?? [];
36
36
 
37
37
  //update state
38
- if (this.logDebug) this.emit('debug', `Request update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
38
+ if (this.logDebug) this.emit('debug', `Request update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
39
39
  await this.updateState(deviceData);
40
40
  }).on('webSocket', async (parsedMessage) => {
41
41
  try {
@@ -54,21 +54,20 @@ class MelCloudErv extends EventEmitter {
54
54
  //update values
55
55
  for (const [key, value] of Object.entries(settings)) {
56
56
  if (!this.functions.isValidValue(value)) continue;
57
- let parsedValue = this.functions.convertValue(value);
58
57
 
59
58
  //update holiday mode
60
59
  if (key === 'HolidayMode') {
61
- deviceData.HolidayMode.Enabled = parsedValue;
60
+ deviceData.HolidayMode.Enabled = value;
62
61
  continue;
63
62
  }
64
63
 
65
64
  //update device settings
66
65
  if (key in deviceData.Device) {
67
- deviceData.Device[key] = parsedValue;
66
+ deviceData.Device[key] = value;
68
67
  }
69
68
  }
70
69
 
71
- if (this.logDebug) this.emit('debug', `WS update device settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
70
+ if (this.logDebug) this.emit('debug', `WS update settings: ${JSON.stringify(deviceData.Device, null, 2)}`);
72
71
  updateState = true;
73
72
  break;
74
73
  case 'unitHolidayModeTriggered':