homebridge-melcloud-control 3.10.0-beta.29 → 3.10.0-beta.30
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 +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -180,11 +180,12 @@ class MelCloudPlatform {
|
|
|
180
180
|
api.publishExternalAccessories(PluginName, [accessory]);
|
|
181
181
|
if (logLevel.success) log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, Published as external accessory.`);
|
|
182
182
|
|
|
183
|
-
//start
|
|
183
|
+
//start impulse generators
|
|
184
184
|
await melCloud.impulseGenerator.state(true, [{ name: 'checkDevicesList', sampling: refreshInterval }]);
|
|
185
|
+
await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
|
|
185
186
|
|
|
187
|
+
//stop impulse generator
|
|
186
188
|
await impulseGenerator.state(false);
|
|
187
|
-
await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
191
|
} catch (error) {
|
|
@@ -195,7 +196,7 @@ class MelCloudPlatform {
|
|
|
195
196
|
});
|
|
196
197
|
|
|
197
198
|
//start impulse generator
|
|
198
|
-
await impulseGenerator.state(true, [{ name: 'start', sampling:
|
|
199
|
+
await impulseGenerator.state(true, [{ name: 'start', sampling: 120000 }]);
|
|
199
200
|
} catch (error) {
|
|
200
201
|
if (logLevel.error) log.error(`${accountName}, Did finish launching error: ${error.message ?? error}.`);
|
|
201
202
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.10.0-beta.
|
|
4
|
+
"version": "3.10.0-beta.30",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|