homebridge-melcloud-control 4.2.5-beta.17 → 4.2.5-beta.18
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/melcloudhome.js +0 -8
package/index.js
CHANGED
|
@@ -202,7 +202,7 @@ class MelCloudPlatform {
|
|
|
202
202
|
if (logLevel.success) log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, Published as external accessory.`);
|
|
203
203
|
|
|
204
204
|
//start impulse generators\
|
|
205
|
-
const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling:
|
|
205
|
+
const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 3000000 }, { name: 'checkDevicesList', sampling: deviceRefreshInterval }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
|
|
206
206
|
await melCloud.impulseGenerator.state(true, timmers, false);
|
|
207
207
|
await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
|
|
208
208
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.2.5-beta.
|
|
4
|
+
"version": "4.2.5-beta.18",
|
|
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/melcloudhome.js
CHANGED
|
@@ -276,14 +276,6 @@ class MelCloud extends EventEmitter {
|
|
|
276
276
|
page.setDefaultTimeout(GLOBAL_TIMEOUT);
|
|
277
277
|
page.setDefaultNavigationTimeout(GLOBAL_TIMEOUT);
|
|
278
278
|
|
|
279
|
-
// Clear cookies before navigation
|
|
280
|
-
try {
|
|
281
|
-
const client = await page.createCDPSession();
|
|
282
|
-
await client.send('Network.clearBrowserCookies');
|
|
283
|
-
} catch (error) {
|
|
284
|
-
if (this.logError) this.emit('error', `Clear cookies error: ${error.message}`);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
279
|
try {
|
|
288
280
|
await page.goto(ApiUrlsHome.BaseURL, { waitUntil: ['domcontentloaded', 'networkidle2'], timeout: GLOBAL_TIMEOUT });
|
|
289
281
|
} catch (error) {
|