homebridge-melcloud-control 3.8.14 → 3.8.16

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.8.14",
4
+ "version": "3.8.16",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@homebridge/plugin-ui-utils": "^2.1.0",
39
39
  "async-mqtt": "^2.6.3",
40
- "axios": "^1.10.0",
40
+ "axios": "^1.11.0",
41
41
  "express": "^5.1.0"
42
42
  },
43
43
  "keywords": [
package/src/deviceata.js CHANGED
@@ -131,7 +131,7 @@ class DeviceAta extends EventEmitter {
131
131
  host: this.mqtt.host,
132
132
  port: this.mqtt.port || 1883,
133
133
  clientId: this.mqtt.clientId ? `melcloud_${this.mqtt.clientId}_${Math.random().toString(16).slice(3)}` : `melcloud_${Math.random().toString(16).slice(3)}`,
134
- prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
134
+ prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
135
135
  user: this.mqtt.user,
136
136
  passwd: this.mqtt.passwd,
137
137
  debug: this.mqtt.debug || false
@@ -943,31 +943,30 @@ class DeviceAta extends EventEmitter {
943
943
  devicesFile: this.devicesFile,
944
944
  deviceId: this.deviceId,
945
945
  enableDebugMode: this.enableDebugMode
946
- });
947
-
948
- this.melCloudAta.on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
949
- if (!this.displayDeviceInfo) {
950
- return;
951
- }
946
+ })
947
+ .on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
948
+ if (!this.displayDeviceInfo) {
949
+ return;
950
+ }
952
951
 
953
- if (!this.disableLogDeviceInfo) {
954
- this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
955
- this.emit('devInfo', `Account: ${this.accountName}`);
956
- const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
957
- const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false
958
- this.emit('devInfo', `Serial: ${serialNumber}`);
959
- this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
960
- this.emit('devInfo', `Manufacturer: ${manufacturer}`);
961
- this.emit('devInfo', '----------------------------------');
962
- };
952
+ if (!this.disableLogDeviceInfo) {
953
+ this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
954
+ this.emit('devInfo', `Account: ${this.accountName}`);
955
+ const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
956
+ const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false
957
+ this.emit('devInfo', `Serial: ${serialNumber}`);
958
+ this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
959
+ this.emit('devInfo', `Manufacturer: ${manufacturer}`);
960
+ this.emit('devInfo', '----------------------------------');
961
+ };
963
962
 
964
- //accessory info
965
- this.manufacturer = manufacturer;
966
- this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
967
- this.serialNumber = serialNumber;
968
- this.firmwareRevision = firmwareAppVersion;
969
- this.displayDeviceInfo = false;
970
- })
963
+ //accessory info
964
+ this.manufacturer = manufacturer;
965
+ this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
966
+ this.serialNumber = serialNumber;
967
+ this.firmwareRevision = firmwareAppVersion;
968
+ this.displayDeviceInfo = false;
969
+ })
971
970
  .on('deviceState', async (deviceData) => {
972
971
  this.deviceData = deviceData;
973
972
 
package/src/deviceatw.js CHANGED
@@ -136,7 +136,7 @@ class DeviceAtw extends EventEmitter {
136
136
  host: this.mqtt.host,
137
137
  port: this.mqtt.port || 1883,
138
138
  clientId: this.mqtt.clientId ? `melcloud_${this.mqtt.clientId}_${Math.random().toString(16).slice(3)}` : `melcloud_${Math.random().toString(16).slice(3)}`,
139
- prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
139
+ prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
140
140
  user: this.mqtt.user,
141
141
  passwd: this.mqtt.passwd,
142
142
  debug: this.mqtt.debug || false
@@ -1310,35 +1310,34 @@ class DeviceAtw extends EventEmitter {
1310
1310
  devicesFile: this.devicesFile,
1311
1311
  deviceId: this.deviceId,
1312
1312
  enableDebugMode: this.enableDebugMode
1313
- });
1313
+ })
1314
+ .on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion, hasHotWaterTank, hasZone2) => {
1315
+ if (!this.displayDeviceInfo) {
1316
+ return;
1317
+ }
1314
1318
 
1315
- this.melCloudAtw.on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion, hasHotWaterTank, hasZone2) => {
1316
- if (!this.displayDeviceInfo) {
1317
- return;
1318
- }
1319
+ if (!this.disableLogDeviceInfo) {
1320
+ this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
1321
+ this.emit('devInfo', `Account: ${this.accountName}`);
1322
+ const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
1323
+ const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false
1324
+ this.emit('devInfo', `Serial: ${serialNumber}`)
1325
+ this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
1326
+ this.emit('devInfo', `Manufacturer: ${manufacturer}`);
1327
+ this.emit('devInfo', '----------------------------------');
1328
+ this.emit('devInfo', `Zone 1: Yes`);
1329
+ this.emit('devInfo', `Hot Water Tank: ${hasHotWaterTank ? 'Yes' : 'No'}`);
1330
+ this.emit('devInfo', `Zone 2: ${hasZone2 ? 'Yes' : 'No'}`);
1331
+ this.emit('devInfo', '----------------------------------');
1332
+ };
1319
1333
 
1320
- if (!this.disableLogDeviceInfo) {
1321
- this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
1322
- this.emit('devInfo', `Account: ${this.accountName}`);
1323
- const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
1324
- const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false
1325
- this.emit('devInfo', `Serial: ${serialNumber}`)
1326
- this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
1327
- this.emit('devInfo', `Manufacturer: ${manufacturer}`);
1328
- this.emit('devInfo', '----------------------------------');
1329
- this.emit('devInfo', `Zone 1: Yes`);
1330
- this.emit('devInfo', `Hot Water Tank: ${hasHotWaterTank ? 'Yes' : 'No'}`);
1331
- this.emit('devInfo', `Zone 2: ${hasZone2 ? 'Yes' : 'No'}`);
1332
- this.emit('devInfo', '----------------------------------');
1333
- };
1334
-
1335
- //accessory info
1336
- this.manufacturer = manufacturer;
1337
- this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
1338
- this.serialNumber = serialNumber;
1339
- this.firmwareRevision = firmwareAppVersion;
1340
- this.displayDeviceInfo = false;
1341
- })
1334
+ //accessory info
1335
+ this.manufacturer = manufacturer;
1336
+ this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
1337
+ this.serialNumber = serialNumber;
1338
+ this.firmwareRevision = firmwareAppVersion;
1339
+ this.displayDeviceInfo = false;
1340
+ })
1342
1341
  .on('deviceState', async (deviceData) => {
1343
1342
  this.deviceData = deviceData;
1344
1343
 
package/src/deviceerv.js CHANGED
@@ -129,7 +129,7 @@ class DeviceErv extends EventEmitter {
129
129
  host: this.mqtt.host,
130
130
  port: this.mqtt.port || 1883,
131
131
  clientId: this.mqtt.clientId ? `melcloud_${this.mqtt.clientId}_${Math.random().toString(16).slice(3)}` : `melcloud_${Math.random().toString(16).slice(3)}`,
132
- prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
132
+ prefix: this.mqtt.prefix ? `melcloud/${this.mqtt.prefix}/${this.deviceTypeText}/${this.deviceName}` : `melcloud/${this.deviceTypeText}/${this.deviceName}`,
133
133
  user: this.mqtt.user,
134
134
  passwd: this.mqtt.passwd,
135
135
  debug: this.mqtt.debug || false
@@ -864,31 +864,30 @@ class DeviceErv extends EventEmitter {
864
864
  devicesFile: this.devicesFile,
865
865
  deviceId: this.deviceId,
866
866
  enableDebugMode: this.enableDebugMode
867
- });
867
+ })
868
+ .on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
869
+ if (!this.displayDeviceInfo) {
870
+ return;
871
+ }
868
872
 
869
- this.melCloudErv.on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
870
- if (!this.displayDeviceInfo) {
871
- return;
872
- }
873
+ if (!this.disableLogDeviceInfo) {
874
+ this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
875
+ this.emit('devInfo', `Account: ${this.accountName}`);
876
+ const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
877
+ const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false;
878
+ this.emit('devInfo', `Serial: ${serialNumber}`);
879
+ this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
880
+ this.emit('devInfo', `Manufacturer: ${manufacturer}`);
881
+ this.emit('devInfo', '----------------------------------');
882
+ };
873
883
 
874
- if (!this.disableLogDeviceInfo) {
875
- this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
876
- this.emit('devInfo', `Account: ${this.accountName}`);
877
- const indoor = modelIndoor ? this.emit('devInfo', `Indoor: ${modelIndoor}`) : false;
878
- const outdoor = modelOutdoor ? this.emit('devInfo', `Outdoor: ${modelOutdoor}`) : false;
879
- this.emit('devInfo', `Serial: ${serialNumber}`);
880
- this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
881
- this.emit('devInfo', `Manufacturer: ${manufacturer}`);
882
- this.emit('devInfo', '----------------------------------');
883
- };
884
-
885
- //accessory info
886
- this.manufacturer = manufacturer;
887
- this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
888
- this.serialNumber = serialNumber;
889
- this.firmwareRevision = firmwareAppVersion;
890
- this.displayDeviceInfo = false;
891
- })
884
+ //accessory info
885
+ this.manufacturer = manufacturer;
886
+ this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
887
+ this.serialNumber = serialNumber;
888
+ this.firmwareRevision = firmwareAppVersion;
889
+ this.displayDeviceInfo = false;
890
+ })
892
891
  .on('deviceState', async (deviceData) => {
893
892
  this.deviceData = deviceData;
894
893