homebridge-melcloud-control 3.0.0-beta.0 → 3.0.1-beta.0

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 CHANGED
@@ -11,8 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  - v0.4.0 Main control mode, buttons and presets need to be configured again!!!
12
12
  - v1 After update to v1 and above from v0 the devices need to be added to the Home app again and the old unresponsive remove!!! This devices will be removed from all automations and scenes!!!
13
13
  - v2 After update to v2 from v1 only RESTFull and MQTT config settings need to be updated in config.
14
- - v2.4 and above require upcomming homebridge v2
14
+ - v2.4 and above require upcomming homebridge v2
15
15
  - v3 After update to v3 from previous versions the plugin need to be configured using Config UI X.
16
+ - do not configure it manually, always using Config UI X
16
17
 
17
18
  ## [3.0.0] - (29.08.2024)
18
19
 
@@ -83,8 +83,6 @@
83
83
  const setRemoveAtribute = j === i ? document.getElementById(`button${j}`).setAttribute("class", "btn btn-secondary") : document.getElementById(`button${j}`).setAttribute("class", "btn btn-primary");
84
84
  }
85
85
 
86
- //const devicesCount = pluginConfig[0].accounts[i].devicesAta.length ?? 0;
87
- //document.getElementById('info').innerHTML = `MELCloud configured ${devicesCount} ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}.`;
88
86
  document.getElementById('accountName').innerHTML = pluginConfig[0].accounts[i].name || '';
89
87
  document.getElementById('name').value = pluginConfig[0].accounts[i].name || '';
90
88
  document.getElementById('user').value = pluginConfig[0].accounts[i].user || '';
@@ -92,8 +90,8 @@
92
90
  document.getElementById('language').value = pluginConfig[0].accounts[i].language || '';
93
91
 
94
92
  const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
95
- const setButtonState = accountConfigured ? document.getElementById('logIn').removeAttribute('disabled') : document.getElementById('logIn').setAttribute('disabled');
96
- document.getElementById('configButton').setAttribute('disabled');
93
+ const setButtonState = accountConfigured ? document.getElementById('logIn').disabled = false : document.getElementById('logIn').disabled = true;
94
+
97
95
  await homebridge.updatePluginConfig(pluginConfig);
98
96
  this.deviceIndex = i;
99
97
  });
@@ -112,7 +110,7 @@
112
110
  pluginConfig[0].accounts[this.deviceIndex].language = document.querySelector('#language').value;
113
111
 
114
112
  const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
115
- const setButtonState = accountConfigured ? document.getElementById('logIn').removeAttribute('disabled') : document.getElementById('logIn').setAttribute('disabled');
113
+ const setButtonState = accountConfigured ? document.getElementById('logIn').disabled = false : document.getElementById('logIn').disabled = true;
116
114
 
117
115
  await homebridge.updatePluginConfig(pluginConfig);
118
116
  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.0.0-beta.0",
4
+ "version": "3.0.1-beta.0",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",