homebridge-melcloud-control 3.1.0-beta.24 → 3.1.0-beta.26

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.
@@ -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"><br>
18
+ <input id="user" type="text" class="form-control">
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>
@@ -132,11 +132,10 @@
132
132
  //watch for click on the login button
133
133
  document.getElementById('logIn').addEventListener('click', async () => {
134
134
  homebridge.showSpinner();
135
+ document.getElementById('info').innerHTML = 'Connecting...';
136
+ await homebridge.updatePluginConfig(pluginConfig)
135
137
 
136
138
  try {
137
- await homebridge.updatePluginConfig(pluginConfig)
138
- document.getElementById('info').innerHTML = 'Connecting...';
139
-
140
139
  const accountName = pluginConfig[0].accounts[this.deviceIndex].name;
141
140
  const user = pluginConfig[0].accounts[this.deviceIndex].user;
142
141
  const passwd = pluginConfig[0].accounts[this.deviceIndex].passwd;
@@ -170,11 +169,11 @@
170
169
 
171
170
  //info text
172
171
  let textAta = 'ATA: 0';
173
- let textAtaPresets = 'Presets: 0';
172
+ let textAtaPresets = 'ATA Presets: 0';
174
173
  let textAtw = 'ATW: 0';
175
- let textAtwPresets = 'Presets: 0';
174
+ let textAtwPresets = 'ATW Presets: 0';
176
175
  let textErv = 'ERV: 0';
177
- let textErvPresets = 'Presets: 0';
176
+ let textErvPresets = 'ERV Presets: 0';
178
177
 
179
178
  //response status
180
179
  switch (status) {
@@ -368,7 +367,7 @@
368
367
  } else {
369
368
  document.getElementById('info').innerHTML = `Found in MELCloud, ${textAta}, ${textAtw}, ${textErv}.`;
370
369
  document.getElementById('info').style.color = 'green';
371
- document.getElementById('info1').innerHTML = `Found in MELCloud, ${textAtaPresets}, ${textAtwPresets}, ${textErvPresets}.`;
370
+ document.getElementById('info1').innerHTML = `${textAtaPresets}, ${textAtwPresets}, ${textErvPresets}.`;
372
371
  document.getElementById('info1').style.color = 'green';
373
372
  document.getElementById('info2').innerHTML = 'Now You can configure it.';
374
373
  document.getElementById('info2').style.color = 'green';
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.24",
4
+ "version": "3.1.0-beta.26",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",