homebridge-melcloud-control 3.0.7-beta.17 → 3.0.7-beta.18
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<img src="homebridge-melcloud-control.png"
|
|
1
|
+
<div style="text-align: center;"></divstyle>
|
|
2
|
+
<img src="homebridge-melcloud-control.png" alt="Image" height="150" />
|
|
3
3
|
</div>
|
|
4
4
|
<div id="accounts">
|
|
5
5
|
</div>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
button.setAttribute("id", `button${i}`);
|
|
76
76
|
button.setAttribute("class", "btn btn-primary");
|
|
77
77
|
button.innerText = pluginConfig[0].accounts[i].name;
|
|
78
|
-
document.getElementById("
|
|
78
|
+
document.getElementById("melCloudAccount").appendChild(button);
|
|
79
79
|
|
|
80
80
|
//get actuall value on account select
|
|
81
81
|
document.getElementById(`button${i}`).addEventListener('click', async () => {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
const pushTypeAta = ataDeviceIdExist ? false : ataDevices.push(deviceAta);
|
|
191
191
|
const pushNewDevice = ataDeviceIdExist ? false : newDevices.ata.push(device);
|
|
192
192
|
const devicesCount = newDevices.ata.length;
|
|
193
|
-
textAta = `ATA: ${devicesCount}
|
|
193
|
+
textAta = `ATA: ${devicesCount}`
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
//devices atw
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
const pushTypeatw = atwDeviceIdExist ? false : atwDevices.push(deviceAtw);
|
|
221
221
|
const pushNewDevice = atwDeviceIdExist ? false : newDevices.atw.push(device);
|
|
222
222
|
const devicesCount = newDevices.ata.length;
|
|
223
|
-
textAtw = `ATW: ${devicesCount}
|
|
223
|
+
textAtw = `ATW: ${devicesCount}`
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
//devices erv
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
const newDevicesCount = newDevices.ata.length + newDevices.atw.length + newDevices.erv.length;
|
|
252
|
-
document.getElementById('info').innerHTML = `Found
|
|
252
|
+
document.getElementById('info').innerHTML = `Found in MELCloud, ${textAta}, ${textAtw}, ${textErv}. ${newDevicesCount === 0 ? '' : 'Now You can start to configure it.'}`;
|
|
253
253
|
document.getElementById('info').style.color = 'green';
|
|
254
254
|
|
|
255
255
|
await homebridge.updatePluginConfig(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.0.7-beta.
|
|
4
|
+
"version": "3.0.7-beta.18",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|