homebridge-melcloud-control 4.0.0-beta.61 → 4.0.0-beta.62
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 +1 -1
- package/package.json +1 -1
- package/src/melcloudata.js +1 -1
package/index.js
CHANGED
|
@@ -134,7 +134,7 @@ class MelCloudPlatform {
|
|
|
134
134
|
//chack device from config exist on melcloud
|
|
135
135
|
const deviceId = device.id;
|
|
136
136
|
const displayMode = device.displayMode > 0;
|
|
137
|
-
const deviceExistInMelCloud = devicesInMelcloud.some(dev => dev.DeviceID
|
|
137
|
+
const deviceExistInMelCloud = devicesInMelcloud.some(dev => dev.DeviceID == deviceId);
|
|
138
138
|
if (!deviceExistInMelCloud || !displayMode) {
|
|
139
139
|
continue;
|
|
140
140
|
}
|
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.
|
|
4
|
+
"version": "4.0.0-beta.62",
|
|
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
|
@@ -8,7 +8,7 @@ import { ApiUrls } from './constants.js';
|
|
|
8
8
|
class MelCloudAta extends EventEmitter {
|
|
9
9
|
constructor(device, contextKey, devicesFile) {
|
|
10
10
|
super();
|
|
11
|
-
this.deviceId = device.id;
|
|
11
|
+
this.deviceId = parseInt(device.id);
|
|
12
12
|
this.logWarn = device.log?.warn;
|
|
13
13
|
this.logDebug = device.log?.debug;
|
|
14
14
|
this.devicesFile = devicesFile;
|