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 +1 -1
- package/src/melcloudata.js +4 -5
- package/src/melcloudatw.js +4 -5
- package/src/melclouderv.js +4 -5
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.
|
|
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",
|
package/src/melcloudata.js
CHANGED
|
@@ -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
|
|
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 =
|
|
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] =
|
|
66
|
+
deviceData.Device[key] = value;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
if (!this.logDebug) this.emit('debug', `WS update
|
|
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':
|
package/src/melcloudatw.js
CHANGED
|
@@ -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
|
|
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 =
|
|
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] =
|
|
66
|
+
deviceData.Device[key] = value;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
if (this.logDebug) this.emit('debug', `WS update
|
|
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':
|
package/src/melclouderv.js
CHANGED
|
@@ -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
|
|
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 =
|
|
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] =
|
|
66
|
+
deviceData.Device[key] = value;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
if (this.logDebug) this.emit('debug', `WS update
|
|
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':
|