homebridge-melcloud-control 3.1.4-beta.3 → 3.1.4-beta.5
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/index.js +2 -2
- package/package.json +2 -2
- package/src/melcloudata.js +2 -2
package/index.js
CHANGED
|
@@ -106,12 +106,12 @@ class MelCloudPlatform {
|
|
|
106
106
|
//Air Conditioner 0
|
|
107
107
|
for (const device of account.ataDevices) {
|
|
108
108
|
//chack device from config exist on melcloud
|
|
109
|
-
const
|
|
109
|
+
const deviceId = device.id;
|
|
110
|
+
const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === deviceId);
|
|
110
111
|
if (!deviceExistInMelCloud || device.displayMode === 0) {
|
|
111
112
|
continue;
|
|
112
113
|
};
|
|
113
114
|
|
|
114
|
-
const deviceId = device.id.toString();
|
|
115
115
|
const deviceName = device.name;
|
|
116
116
|
const deviceTypeText = device.typeString;
|
|
117
117
|
const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountInfoFile, devicesFile, deviceRefreshInterval)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.4-beta.
|
|
4
|
+
"version": "3.1.4-beta.5",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"engines": {
|
|
31
31
|
"homebridge": "^1.6.0 || ^2.0.0-beta.0",
|
|
32
|
-
"node": "^18.20.4 || ^20.15.1
|
|
32
|
+
"node": "^18.20.4 || ^20.15.1 || ^22.7.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@homebridge/plugin-ui-utils": "^1.0.3",
|
package/src/melcloudata.js
CHANGED
|
@@ -58,7 +58,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
58
58
|
|
|
59
59
|
//read device info from file
|
|
60
60
|
const devicesData = await this.readData(devicesFile);
|
|
61
|
-
const debug1 = debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;
|
|
61
|
+
const debug1 = !debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;
|
|
62
62
|
const deviceData = devicesData.find((device) => device.DeviceID === deviceId);
|
|
63
63
|
|
|
64
64
|
if (!deviceData) {
|
|
@@ -324,7 +324,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
324
324
|
|
|
325
325
|
//device state
|
|
326
326
|
const deviceState = {
|
|
327
|
-
DeviceId: deviceId
|
|
327
|
+
DeviceId: deviceId,
|
|
328
328
|
EffectiveFlags: effectiveFlags,
|
|
329
329
|
RoomTemperature: roomTemperature,
|
|
330
330
|
SetTemperature: setTemperature,
|