homebridge-melcloud-control 3.1.0-beta.26 → 3.1.0-beta.27
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/homebridge-ui/public/index.html +15 -12
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<label for="name">Name</label>
|
|
16
16
|
<input id="name" type="text" class="form-control"><br>
|
|
17
17
|
<label for="user">User Name</label>
|
|
18
|
-
<input id="user" type="text" class="form-control">
|
|
18
|
+
<input id="user" type="text" class="form-control"><br>
|
|
19
19
|
<label for="passwd">Password</label>
|
|
20
20
|
<input id="passwd" type="password" class="form-control"><br>
|
|
21
21
|
<label for="language">Language</label>
|
|
@@ -346,32 +346,35 @@
|
|
|
346
346
|
};
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
const newDevicesCount = newDevices.ata.length + newDevices.atw.length + newDevices.erv.length;
|
|
350
|
-
const newPresetsCount = newDevices.ataPresets.length + newDevices.atwPresets.length + newDevices.ervPresets.length;
|
|
351
|
-
|
|
349
|
+
const newDevicesCount = newDevices.ata.length + newDevices.atw.length + newDevices.erv.length ?? 0;
|
|
350
|
+
const newPresetsCount = newDevices.ataPresets.length + newDevices.atwPresets.length + newDevices.ervPresets.length ?? 0;
|
|
352
351
|
if (newDevicesCount === 0 && newPresetsCount === 0) {
|
|
353
352
|
document.getElementById('info').innerHTML = 'No new devices found in MELCloud.';
|
|
354
353
|
document.getElementById('info').style.color = 'white';
|
|
355
354
|
};
|
|
355
|
+
|
|
356
|
+
if (newDevicesCount > 0 && newPresetsCount > 0) {
|
|
357
|
+
document.getElementById('info').innerHTML = `Found in MELCloud, ${textAta}, ${textAtw}, ${textErv}.`;
|
|
358
|
+
document.getElementById('info').style.color = 'green';
|
|
359
|
+
document.getElementById('info1').innerHTML = `${textAtaPresets}, ${textAtwPresets}, ${textErvPresets}.`;
|
|
360
|
+
document.getElementById('info1').style.color = 'green';
|
|
361
|
+
document.getElementById('info2').innerHTML = 'Now You can configure it.';
|
|
362
|
+
document.getElementById('info2').style.color = 'green';
|
|
363
|
+
};
|
|
364
|
+
|
|
356
365
|
if (newDevicesCount > 0 && newPresetsCount === 0) {
|
|
357
366
|
document.getElementById('info').innerHTML = `Found in MELCloud, ${textAta}, ${textAtw}, ${textErv}.`;
|
|
358
367
|
document.getElementById('info').style.color = 'green';
|
|
359
368
|
document.getElementById('info1').innerHTML = 'Now You can configure it.';
|
|
360
369
|
document.getElementById('info1').style.color = 'green';
|
|
361
370
|
};
|
|
371
|
+
|
|
362
372
|
if (newDevicesCount === 0 && newPresetsCount > 0) {
|
|
363
373
|
document.getElementById('info').innerHTML = `Found in MELCloud, ${textAtaPresets}, ${textAtwPresets}, ${textErvPresets}.`;
|
|
364
374
|
document.getElementById('info').style.color = 'green';
|
|
365
375
|
document.getElementById('info1').innerHTML = 'Now You can configure it.';
|
|
366
376
|
document.getElementById('info1').style.color = 'green';
|
|
367
|
-
}
|
|
368
|
-
document.getElementById('info').innerHTML = `Found in MELCloud, ${textAta}, ${textAtw}, ${textErv}.`;
|
|
369
|
-
document.getElementById('info').style.color = 'green';
|
|
370
|
-
document.getElementById('info1').innerHTML = `${textAtaPresets}, ${textAtwPresets}, ${textErvPresets}.`;
|
|
371
|
-
document.getElementById('info1').style.color = 'green';
|
|
372
|
-
document.getElementById('info2').innerHTML = 'Now You can configure it.';
|
|
373
|
-
document.getElementById('info2').style.color = 'green';
|
|
374
|
-
};
|
|
377
|
+
}
|
|
375
378
|
|
|
376
379
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
377
380
|
await homebridge.savePluginConfig(pluginConfig);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.0-beta.
|
|
4
|
+
"version": "3.1.0-beta.27",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|