homebridge-melcloud-control 4.0.0-beta.38 → 4.0.0-beta.39
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.
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
<div class="mb-2">
|
|
80
|
-
<label for="
|
|
81
|
-
<select id="
|
|
80
|
+
<label for="displayType" class="form-label">Account Type</label>
|
|
81
|
+
<select id="displayType" name="displayType" class="form-control">
|
|
82
82
|
<option value="0">None/Disabled</option>
|
|
83
83
|
<option value="1">MELCloud</option>
|
|
84
84
|
<option value="2">MELCloud Home</option>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
document.getElementById('user').value = acc.user || '';
|
|
129
129
|
document.getElementById('passwd').value = acc.passwd || '';
|
|
130
130
|
document.getElementById('language').value = acc.language || '';
|
|
131
|
-
document.getElementById('
|
|
131
|
+
document.getElementById('displayType').value = acc.displayType || '';
|
|
132
132
|
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.language && acc.displayType);
|
|
133
133
|
this.deviceIndex = i;
|
|
134
134
|
});
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
acc.user = document.querySelector('#user').value;
|
|
145
145
|
acc.passwd = document.querySelector('#passwd').value;
|
|
146
146
|
acc.language = document.querySelector('#language').value;
|
|
147
|
-
acc.displayType = document.querySelector('#
|
|
147
|
+
acc.displayType = document.querySelector('#displayType').value;
|
|
148
148
|
|
|
149
149
|
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.languaged && acc.displayType);
|
|
150
150
|
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
|
|
204
204
|
try {
|
|
205
205
|
const acc = pluginConfig[0].accounts[this.deviceIndex];
|
|
206
|
-
const payload = { accountName: acc.name, user: acc.user, passwd: acc.passwd, language: acc.language,
|
|
206
|
+
const payload = { accountName: acc.name, user: acc.user, passwd: acc.passwd, language: acc.language, displayType: acc.displayType };
|
|
207
207
|
const devicesInMelCloud = await homebridge.request('/connect', payload);
|
|
208
208
|
|
|
209
209
|
// Initialize devices arrays
|
package/homebridge-ui/server.js
CHANGED
|
@@ -17,11 +17,11 @@ class PluginUiServer extends HomebridgePluginUiServer {
|
|
|
17
17
|
const user = payload.user;
|
|
18
18
|
const passwd = payload.passwd;
|
|
19
19
|
const language = payload.language;
|
|
20
|
-
const
|
|
20
|
+
const displayType = payload.displayType;
|
|
21
21
|
const accountFile = `${this.homebridgeStoragePath}/melcloud/${accountName}_Account`;
|
|
22
22
|
const buildingsFile = `${this.homebridgeStoragePath}/melcloud/${accountName}_Buildings`;
|
|
23
23
|
const devicesFile = `${this.homebridgeStoragePath}/melcloud/${accountName}_Devices`;
|
|
24
|
-
const melCloud = new MelCloud(
|
|
24
|
+
const melCloud = new MelCloud(displayType, user, passwd, language, accountFile, buildingsFile, devicesFile, false, true);
|
|
25
25
|
|
|
26
26
|
try {
|
|
27
27
|
const response = await melCloud.connect();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.39",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|