homebridge-melcloud-control 4.3.7-beta.4 → 4.3.7-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/config.schema.json +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/deviceata.js +2 -0
- package/src/melcloudhome.js +3 -3
package/config.schema.json
CHANGED
package/index.js
CHANGED
|
@@ -119,7 +119,7 @@ class MelCloudPlatform {
|
|
|
119
119
|
}
|
|
120
120
|
if (logLevel.debug) log.info(melcloudDevicesList.Info);
|
|
121
121
|
await new Promise(r => setTimeout(r, 1000));
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
//start account impulse generator
|
|
124
124
|
await melcloud.impulseGenerator.state(true, timmers, false);
|
|
125
125
|
|
|
@@ -133,10 +133,10 @@ class MelCloudPlatform {
|
|
|
133
133
|
for (const [index, device] of devices.entries()) {
|
|
134
134
|
//chack device from config exist on melcloud
|
|
135
135
|
const displayType = device.displayType > 0;
|
|
136
|
+
device.id = String(device.id);
|
|
136
137
|
const deviceExistInMelCloud = melcloudDevicesList.Devices.some(dev => dev.DeviceID === device.id);
|
|
137
138
|
if (!deviceExistInMelCloud || !displayType) continue;
|
|
138
139
|
|
|
139
|
-
device.id = String(device.id);
|
|
140
140
|
const deviceName = device.name;
|
|
141
141
|
const deviceType = device.type;
|
|
142
142
|
const deviceTypeString = device.typeString;
|
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.7-beta.
|
|
4
|
+
"version": "4.3.7-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",
|
package/src/deviceata.js
CHANGED
package/src/melcloudhome.js
CHANGED
|
@@ -126,7 +126,7 @@ class MelCloudHome extends EventEmitter {
|
|
|
126
126
|
if (this.logDebug) this.emit('debug', `Buildings: ${JSON.stringify(buildingsList, null, 2)}`);
|
|
127
127
|
|
|
128
128
|
if (!buildingsList) {
|
|
129
|
-
devicesList.Info = 'No
|
|
129
|
+
devicesList.Info = 'No buildings found'
|
|
130
130
|
return devicesList;
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -214,9 +214,9 @@ class MelCloudHome extends EventEmitter {
|
|
|
214
214
|
let scenes = [];
|
|
215
215
|
try {
|
|
216
216
|
scenes = await this.checkScenesList();
|
|
217
|
-
if (this.logDebug) this.emit('debug', `Found ${scenes.length}
|
|
217
|
+
if (this.logDebug) this.emit('debug', `Found ${scenes.length} scenes`);
|
|
218
218
|
} catch (error) {
|
|
219
|
-
if (this.
|
|
219
|
+
if (this.logError) this.emit('error', `Get scenes error: ${error}`);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
//web cocket connection
|