homebridge-melcloud-control 4.3.8-beta.1 → 4.3.8
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 +8 -0
- package/index.js +10 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
22
22
|
|
|
23
23
|
- Do not use Homebridge UI > v5.5.0 because of break config.json
|
|
24
24
|
|
|
25
|
+
# [4.3.8] - (29.11.2025)
|
|
26
|
+
|
|
27
|
+
## Changes
|
|
28
|
+
|
|
29
|
+
- display warning if device is disabled in config
|
|
30
|
+
- display warning if device not exist in MELCLoud and is configured in config
|
|
31
|
+
- cleanup
|
|
32
|
+
|
|
25
33
|
# [4.3.7] - (28.11.2025)
|
|
26
34
|
|
|
27
35
|
## Changes
|
package/index.js
CHANGED
|
@@ -131,25 +131,26 @@ class MelCloudPlatform {
|
|
|
131
131
|
if (logLevel.debug) log.info(`${accountName}, found configured devices ATA: ${ataDevices.length}, ATW: ${atwDevices.length}, ERV: ${ervDevices.length}.`);
|
|
132
132
|
|
|
133
133
|
for (const [index, device] of devices.entries()) {
|
|
134
|
-
|
|
134
|
+
device.id = String(device.id);
|
|
135
|
+
const deviceName = device.name;
|
|
136
|
+
const deviceType = device.type;
|
|
137
|
+
const deviceTypeString = device.typeString;
|
|
138
|
+
const defaultTempsFile = `${prefDir}/${accountName}_${device.id}_Temps`;
|
|
139
|
+
|
|
140
|
+
//chack device is not disabled in config
|
|
135
141
|
const displayType = device.displayType > 0;
|
|
136
142
|
if (!displayType) {
|
|
137
|
-
if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeString}, ${deviceName} disabled in config, will not be published in Home app.`);
|
|
143
|
+
if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeString}, ${deviceName}, disabled in config, will not be published in Home app.`);
|
|
138
144
|
continue;
|
|
139
145
|
}
|
|
140
146
|
|
|
141
|
-
device
|
|
147
|
+
//chack device from config exist on melcloud
|
|
142
148
|
const deviceExistInMelCloud = melcloudDevicesList.Devices.some(dev => dev.DeviceID === device.id);
|
|
143
149
|
if (!deviceExistInMelCloud) {
|
|
144
|
-
if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeString}, ${deviceName} not exist
|
|
150
|
+
if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeString}, ${deviceName}, not exist on server, please login to MELCLoud from plugin UI to fix this issue.`);
|
|
145
151
|
continue;
|
|
146
152
|
}
|
|
147
153
|
|
|
148
|
-
const deviceName = device.name;
|
|
149
|
-
const deviceType = device.type;
|
|
150
|
-
const deviceTypeString = device.typeString;
|
|
151
|
-
const defaultTempsFile = `${prefDir}/${accountName}_${device.id}_Temps`;
|
|
152
|
-
|
|
153
154
|
// set rest ful port
|
|
154
155
|
account.restFul.port = (device.id).slice(-4).replace(/^0/, '9');
|
|
155
156
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.3.8
|
|
4
|
+
"version": "4.3.8",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|