homebridge-melcloud-control 3.8.5 → 3.8.7

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
@@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
16
  - do not configure it manually, always using Config UI X
17
17
  - required Homebridge v2.0.0 and above
18
18
 
19
+ ## [3.8.6] - (24.05.2025)
20
+
21
+ ## Changes
22
+
23
+ - fix [#200](https://github.com/grzegorz914/homebridge-melcloud-control/issues/200)
24
+ - cleanup
25
+
19
26
  ## [3.8.5] - (24.05.2025)
20
27
 
21
28
  ## Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.8.5",
4
+ "version": "3.8.7",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceata.js CHANGED
@@ -130,8 +130,8 @@ class DeviceAta extends EventEmitter {
130
130
  this.mqtt1 = new Mqtt({
131
131
  host: this.mqtt.host,
132
132
  port: this.mqtt.port || 1883,
133
- clientId: this.mqtt.clientId ? `${this.mqtt.clientId}_${this.deviceId}` : `${this.deviceTypeText}_${this.deviceName}_${this.deviceId}`,
134
- prefix: this.mqtt.prefix ? `${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
133
+ clientId: this.mqtt.clientId || `melcloud_${Math.random().toString(16).slice(3)}`,
134
+ prefix: this.mqtt.prefix || `melcloud/${this.deviceTypeText}/${this.deviceName}`,
135
135
  user: this.mqtt.user,
136
136
  passwd: this.mqtt.pass,
137
137
  debug: this.mqtt.debug || false
package/src/deviceatw.js CHANGED
@@ -32,7 +32,6 @@ class DeviceAtw extends EventEmitter {
32
32
  this.disableLogInfo = account.disableLogInfo || false;
33
33
  this.disableLogDeviceInfo = account.disableLogDeviceInfo || false;
34
34
  this.enableDebugMode = account.enableDebugMode || false;
35
- this.accountInfo = accountInfo;
36
35
  this.contextKey = contextKey;
37
36
  this.accountName = accountName;
38
37
  this.deviceId = deviceId;
@@ -136,8 +135,8 @@ class DeviceAtw extends EventEmitter {
136
135
  this.mqtt1 = new Mqtt({
137
136
  host: this.mqtt.host,
138
137
  port: this.mqtt.port || 1883,
139
- clientId: this.mqtt.clientId ? `${this.mqtt.clientId}_${this.deviceId}` : `${this.deviceTypeText}_${this.deviceName}_${this.deviceId}`,
140
- prefix: this.mqtt.prefix ? `${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
138
+ clientId: this.mqtt.clientId || `melcloud_${Math.random().toString(16).slice(3)}`,
139
+ prefix: this.mqtt.prefix || `melcloud/${this.deviceTypeText}/${this.deviceName}`,
141
140
  user: this.mqtt.user,
142
141
  passwd: this.mqtt.pass,
143
142
  debug: this.mqtt.debug || false
package/src/deviceerv.js CHANGED
@@ -25,7 +25,6 @@ class DeviceErv extends EventEmitter {
25
25
  this.disableLogInfo = account.disableLogInfo || false;
26
26
  this.disableLogDeviceInfo = account.disableLogDeviceInfo || false;
27
27
  this.enableDebugMode = account.enableDebugMode || false;
28
- this.accountInfo = accountInfo;
29
28
  this.contextKey = contextKey;
30
29
  this.accountName = accountName;
31
30
  this.deviceId = deviceId;
@@ -129,8 +128,8 @@ class DeviceErv extends EventEmitter {
129
128
  this.mqtt1 = new Mqtt({
130
129
  host: this.mqtt.host,
131
130
  port: this.mqtt.port || 1883,
132
- clientId: this.mqtt.clientId ? `${this.mqtt.clientId}_${this.deviceId}` : `${this.deviceTypeText}_${this.deviceName}_${this.deviceId}`,
133
- prefix: this.mqtt.prefix ? `${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
131
+ clientId: this.mqtt.clientId || `melcloud_${Math.random().toString(16).slice(3)}`,
132
+ prefix: this.mqtt.prefix || `melcloud/${this.deviceTypeText}/${this.deviceName}`,
134
133
  user: this.mqtt.user,
135
134
  passwd: this.mqtt.pass,
136
135
  debug: this.mqtt.debug || false