homebridge-melcloud-control 3.1.0-beta.26 → 3.1.0-beta.28
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/CHANGELOG.md +11 -1
- package/config.schema.json +3 -3
- package/homebridge-ui/public/index.html +18 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
15
|
- v3 After update to v3 from previous versions the plugin need to be configured using Config UI X.
|
|
16
16
|
- do not configure it manually, always using Config UI X
|
|
17
17
|
|
|
18
|
+
## [3.1.0] - (31.08.2024)
|
|
19
|
+
|
|
20
|
+
## Changes
|
|
21
|
+
|
|
22
|
+
- improvements in plugin config UI
|
|
23
|
+
- added possibility indyvidual presets control
|
|
24
|
+
- config schema update
|
|
25
|
+
- bump dependencies
|
|
26
|
+
- cleanup
|
|
27
|
+
|
|
18
28
|
## [3.0.7] - (30.08.2024)
|
|
19
29
|
|
|
20
30
|
## Changes
|
|
@@ -29,7 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
39
|
|
|
30
40
|
- added homebridge UI server
|
|
31
41
|
- whole new concept get all devices from melcloud usin config UI X
|
|
32
|
-
- added
|
|
42
|
+
- added individual configuration of every device
|
|
33
43
|
- config schema updated
|
|
34
44
|
- cleanup
|
|
35
45
|
|
package/config.schema.json
CHANGED
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
"condition": {
|
|
458
|
-
"functionBody": "const presets = model.accounts[arrayIndices]?.ataDevices[arrayIndices]?.presets || []; return
|
|
458
|
+
"functionBody": "const presets = model.accounts[arrayIndices]?.ataDevices[arrayIndices]?.presets || []; return presets.length > 0 && presets.every(preset => preset.id != null && preset.id !== '');"
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
"buttonsSensors": {
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
"condition": {
|
|
953
|
-
"functionBody": "const presets = model.accounts[arrayIndices]?.atwDevices[arrayIndices]?.presets || []; return
|
|
953
|
+
"functionBody": "const presets = model.accounts[arrayIndices]?.atwDevices[arrayIndices]?.presets || []; return presets.length > 0 && presets.every(preset => preset.id != null && preset.id !== '');"
|
|
954
954
|
}
|
|
955
955
|
},
|
|
956
956
|
"buttonsSensors": {
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
}
|
|
1327
1327
|
},
|
|
1328
1328
|
"condition": {
|
|
1329
|
-
"functionBody": "const presets = model.accounts[arrayIndices]?.ervDevices[arrayIndices]?.presets || []; return
|
|
1329
|
+
"functionBody": "const presets = model.accounts[arrayIndices]?.ervDevices[arrayIndices]?.presets || []; return presets.length > 0 && presets.every(preset => preset.id != null && preset.id !== '');"
|
|
1330
1330
|
}
|
|
1331
1331
|
},
|
|
1332
1332
|
"buttonsSensors": {
|
|
@@ -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
|
-
document.getElementById('info').innerHTML = 'No new devices found
|
|
352
|
+
document.getElementById('info').innerHTML = 'No new devices found.';
|
|
354
353
|
document.getElementById('info').style.color = 'white';
|
|
355
354
|
};
|
|
355
|
+
|
|
356
|
+
if (newDevicesCount > 0 && newPresetsCount > 0) {
|
|
357
|
+
document.getElementById('info').innerHTML = `Found, ${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
|
-
document.getElementById('info').innerHTML = `Found
|
|
366
|
+
document.getElementById('info').innerHTML = `Found, ${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
|
-
document.getElementById('info').innerHTML = `Found
|
|
373
|
+
document.getElementById('info').innerHTML = `Found, ${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.28",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|