homebridge-melcloud-control 4.3.2-beta.6 → 4.3.2-beta.7
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 +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -57,7 +57,7 @@ class MelCloudPlatform {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
if (logLevel.debug) {
|
|
60
|
-
log.
|
|
60
|
+
log.debug(`${accountName}, debug: did finish launching.`);
|
|
61
61
|
const safeConfig = {
|
|
62
62
|
...account,
|
|
63
63
|
passwd: 'removed',
|
|
@@ -88,7 +88,7 @@ class MelCloudPlatform {
|
|
|
88
88
|
const melCloud = account.type === 'melcloud' ? new MelCloud(account, accountFile, buildingsFile, devicesFile, true) : new MelCloudHome(account, accountFile, buildingsFile, devicesFile, true)
|
|
89
89
|
.on('success', (msg) => log.success(`${accountName}, ${msg}`))
|
|
90
90
|
.on('info', (msg) => log.info(`${accountName}, ${msg}`))
|
|
91
|
-
.on('debug', (msg) => log.
|
|
91
|
+
.on('debug', (msg) => log.debug(`${accountName}, debug: ${msg}`))
|
|
92
92
|
.on('warn', (msg) => log.warn(`${accountName}, ${msg}`))
|
|
93
93
|
.on('error', (msg) => log.error(`${accountName}, ${msg}`));
|
|
94
94
|
|
|
@@ -125,7 +125,7 @@ class MelCloudPlatform {
|
|
|
125
125
|
const atwDevices = (account.atwDevices || []).filter(device => device.id != null && String(device.id) !== '0');
|
|
126
126
|
const ervDevices = (account.ervDevices || []).filter(device => device.id != null && String(device.id) !== '0');
|
|
127
127
|
const devices = [...ataDevices, ...atwDevices, ...ervDevices];
|
|
128
|
-
if (logLevel.debug) log.
|
|
128
|
+
if (logLevel.debug) log.debug(`Found configured devices ATA: ${ataDevices.length}, ATW: ${atwDevices.length}, ERV: ${ervDevices.length}.`);
|
|
129
129
|
|
|
130
130
|
for (const [index, device] of devices.entries()) {
|
|
131
131
|
//chack device from config exist on melcloud
|
|
@@ -183,7 +183,7 @@ class MelCloudPlatform {
|
|
|
183
183
|
configuredDevice.on('devInfo', (info) => logLevel.devInfo && log.info(info))
|
|
184
184
|
.on('success', (msg) => log.success(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
|
|
185
185
|
.on('info', (msg) => log.info(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
|
|
186
|
-
.on('debug', (msg) => log.
|
|
186
|
+
.on('debug', (msg) => log.debug(`${accountName}, ${deviceTypeString}, ${deviceName}, debug: ${msg}`))
|
|
187
187
|
.on('warn', (msg) => log.warn(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
|
|
188
188
|
.on('error', (msg) => log.error(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`));
|
|
189
189
|
|
|
@@ -205,7 +205,7 @@ class MelCloudPlatform {
|
|
|
205
205
|
if (logLevel.error) log.error(`${accountName}, Start impulse generator error, ${error.message ?? error}, trying again.`);
|
|
206
206
|
}
|
|
207
207
|
}).on('state', (state) => {
|
|
208
|
-
if (logLevel.debug) log.
|
|
208
|
+
if (logLevel.debug) log.debug(`${accountName}, Start impulse generator ${state ? 'started' : 'stopped'}.`);
|
|
209
209
|
});
|
|
210
210
|
|
|
211
211
|
//start 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.2-beta.
|
|
4
|
+
"version": "4.3.2-beta.7",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|