homebridge-melcloud-control 4.8.1 → 4.8.2
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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -32,8 +32,10 @@ class MelCloudPlatform {
|
|
|
32
32
|
//loop through accounts
|
|
33
33
|
for (const account of config.accounts) {
|
|
34
34
|
const { name, user, passwd, language, type } = account;
|
|
35
|
-
if (
|
|
36
|
-
|
|
35
|
+
if (type === 'disabled') continue;
|
|
36
|
+
|
|
37
|
+
if (!name || accountsName.includes(name) || !user || !passwd || !language) {
|
|
38
|
+
log.warn(`Account ${!name ? 'name missing' : (accountsName.includes(name) ? 'name duplicated' : name)} ${!user ? ', user missing' : ''}${!passwd ? ', password missing' : ''}${!language ? ', language missing' : ''} in config, will not be published in the Home app`);
|
|
37
39
|
continue;
|
|
38
40
|
}
|
|
39
41
|
accountsName.push(name);
|
|
@@ -75,7 +77,7 @@ class MelCloudPlatform {
|
|
|
75
77
|
//melcloud account
|
|
76
78
|
let melCloudClass;
|
|
77
79
|
let timmers = []
|
|
78
|
-
switch (
|
|
80
|
+
switch (type) {
|
|
79
81
|
case 'melcloud':
|
|
80
82
|
timmers = [{ name: 'checkDevicesList', sampling: accountRefreshInterval }];
|
|
81
83
|
melCloudClass = new MelCloud(account, true);
|
|
@@ -181,6 +183,7 @@ class MelCloudPlatform {
|
|
|
181
183
|
deviceClass = new DeviceErv(api, account, device, presets, schedules, scenes, buttons, defaultTempsFile, melCloudClass, melCloudAccountData, melCloudDeviceData);
|
|
182
184
|
break;
|
|
183
185
|
default:
|
|
186
|
+
if (logLevel.warn) log.warn(`${name}, ${deviceTypeString}, ${deviceName}, received unknown device type: ${deviceType}.`);
|
|
184
187
|
continue;
|
|
185
188
|
}
|
|
186
189
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.2",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|