homebridge-melcloud-control 4.0.0-beta.519 → 4.0.0-beta.520

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 CHANGED
@@ -199,7 +199,7 @@ class MelCloudPlatform {
199
199
  if (logLevel.success) log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, Published as external accessory.`);
200
200
 
201
201
  //start impulse generators\
202
- const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 600000 }, { name: 'checkDevicesList', sampling: deviceRefreshInterval }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
202
+ const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 900000 }, { name: 'checkDevicesList', sampling: deviceRefreshInterval }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
203
203
  await melCloud.impulseGenerator.state(true, timmers);
204
204
  await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
205
205
 
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.519",
4
+ "version": "4.0.0-beta.520",
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/melcloud.js CHANGED
@@ -306,7 +306,7 @@ class MelCloud extends EventEmitter {
306
306
 
307
307
  async connectToMelCloudHome() {
308
308
  if (this.logDebug) this.emit('debug', 'Connecting to MELCloud Home');
309
- const GLOBAL_TIMEOUT = 75000;
309
+ const GLOBAL_TIMEOUT = 90000;
310
310
 
311
311
  let browser;
312
312
  try {
@@ -469,7 +469,7 @@ class MelCloud extends EventEmitter {
469
469
  }
470
470
 
471
471
  async connect() {
472
- const TIMEOUT_MS = 90000;
472
+ const TIMEOUT_MS = 120000;
473
473
 
474
474
  try {
475
475
  const response = await Promise.race([