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.
@@ -3094,7 +3094,7 @@
3094
3094
  "title": "{{ value.name }}",
3095
3095
  "items": [
3096
3096
  {
3097
- "title": "Account Data Refresh",
3097
+ "title": "Account",
3098
3098
  "items": [
3099
3099
  "accounts[].refreshInterval"
3100
3100
  ]
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",
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
@@ -189,6 +189,8 @@ class DeviceAta extends EventEmitter {
189
189
  this.emit('warn', `MQTT integration start error: ${error}`);
190
190
  };
191
191
  }
192
+
193
+ return true;
192
194
  }
193
195
 
194
196
  async setOverExternalIntegration(integration, deviceData, key, value) {
@@ -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 building found'
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} svenes`);
217
+ if (this.logDebug) this.emit('debug', `Found ${scenes.length} scenes`);
218
218
  } catch (error) {
219
- if (this.logDebug) this.emit('debug', `Get scenes error: ${error} `);
219
+ if (this.logError) this.emit('error', `Get scenes error: ${error}`);
220
220
  }
221
221
 
222
222
  //web cocket connection