homebridge-melcloud-control 3.9.10-beta.2 → 3.9.10
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 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -119,9 +119,6 @@ class MelCloudPlatform {
|
|
|
119
119
|
}
|
|
120
120
|
if (!devicesInMelcloud || !Array.isArray(devicesInMelcloud)) return;
|
|
121
121
|
|
|
122
|
-
//start account impulse generator
|
|
123
|
-
await melCloud.impulseGenerator.start([{ name: 'checkDevicesList', sampling: refreshInterval }]);
|
|
124
|
-
|
|
125
122
|
//configured devices
|
|
126
123
|
const ataDevices = account.ataDevices ?? [];
|
|
127
124
|
const atwDevices = account.atwDevices ?? [];
|
|
@@ -166,7 +163,7 @@ class MelCloudPlatform {
|
|
|
166
163
|
accountInfo[key] = value;
|
|
167
164
|
await melCloud.send(accountInfo);
|
|
168
165
|
} catch (error) {
|
|
169
|
-
if (logLevel.error) log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}.`);
|
|
166
|
+
if (logLevel.error) log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error.message ?? error}.`);
|
|
170
167
|
}
|
|
171
168
|
})
|
|
172
169
|
.on('devInfo', (info) => logLevel.devInfo && log.info(info))
|
|
@@ -181,6 +178,9 @@ class MelCloudPlatform {
|
|
|
181
178
|
api.publishExternalAccessories(PluginName, [accessory]);
|
|
182
179
|
if (logLevel.success) log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, Published as external accessory.`);
|
|
183
180
|
|
|
181
|
+
//start account impulse generator
|
|
182
|
+
await melCloud.impulseGenerator.start([{ name: 'checkDevicesList', sampling: refreshInterval }]);
|
|
183
|
+
|
|
184
184
|
await impulseGenerator.stop();
|
|
185
185
|
await configuredDevice.startImpulseGenerator();
|
|
186
186
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.9.10
|
|
4
|
+
"version": "3.9.10",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|