homebridge-melcloud-control 4.3.0-beta.33 → 4.3.0-beta.34
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 +2 -2
package/index.js
CHANGED
|
@@ -194,7 +194,7 @@ class MelCloudPlatform {
|
|
|
194
194
|
|
|
195
195
|
//start impulse generators\
|
|
196
196
|
await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
|
|
197
|
-
const timmers = accountType === 'melcloudhome' ? [] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
|
|
197
|
+
const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 3600000 }, { name: 'checkDevicesList', sampling: 3000 }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
|
|
198
198
|
await melCloud.impulseGenerator.state(true, timmers, false);
|
|
199
199
|
|
|
200
200
|
//stop impulse generator
|
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.0-beta.
|
|
4
|
+
"version": "4.3.0-beta.34",
|
|
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
|
@@ -29,6 +29,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
29
29
|
this.socket = null;
|
|
30
30
|
this.connecting = false;
|
|
31
31
|
this.socketConnected = false;
|
|
32
|
+
this.reconnectDelay = 1000;
|
|
32
33
|
|
|
33
34
|
//lock flag
|
|
34
35
|
this.locks = false;
|
|
@@ -104,8 +105,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
104
105
|
deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
|
|
105
106
|
|
|
106
107
|
if (!this.connecting && !this.socketConnected) {
|
|
107
|
-
|
|
108
108
|
this.connecting = true;
|
|
109
|
+
|
|
109
110
|
const url = `${ApiUrlsHome.WebSocketURL}${devicesData.wsHeaders.hash}`;
|
|
110
111
|
try {
|
|
111
112
|
const socket = new WebSocket(url, { headers: devicesData.wsHeaders.headers })
|
|
@@ -120,7 +121,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
120
121
|
this.socket = socket;
|
|
121
122
|
this.socketConnected = true;
|
|
122
123
|
this.connecting = false;
|
|
123
|
-
this.reconnectDelay = 1000;
|
|
124
124
|
this.emit('success', `Socket Connect Success`);
|
|
125
125
|
|
|
126
126
|
// heartbeat
|