homebridge-melcloud-control 3.8.15 → 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 +2 -2
- package/src/deviceata.js +22 -23
- package/src/deviceatw.js +26 -27
- package/src/deviceerv.js +22 -23
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.
|
|
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.
|
|
40
|
+
"axios": "^1.11.0",
|
|
41
41
|
"express": "^5.1.0"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
package/src/deviceata.js
CHANGED
|
@@ -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
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}
|
|
946
|
+
})
|
|
947
|
+
.on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
|
|
948
|
+
if (!this.displayDeviceInfo) {
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
952
951
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
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
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
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
|
@@ -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
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
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
|
-
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
this.
|
|
1326
|
-
|
|
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
|
@@ -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
|
-
|
|
870
|
-
|
|
871
|
-
|
|
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
|
-
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
this.
|
|
880
|
-
|
|
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
|
|