homebridge-melcloud-control 4.3.0-beta.48 → 4.3.0-beta.49
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/package.json +1 -1
- package/src/melcloudata.js +5 -4
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.0] - (xx.11.2025)
|
|
26
|
+
|
|
27
|
+
## Changes
|
|
28
|
+
|
|
29
|
+
- use web socket for realtime communication with MELCloud Home
|
|
30
|
+
- readme updated
|
|
31
|
+
- cleanup
|
|
32
|
+
|
|
25
33
|
# [4.2.8] - (18.11.2025)
|
|
26
34
|
|
|
27
35
|
## Changes
|
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.0-beta.
|
|
4
|
+
"version": "4.3.0-beta.49",
|
|
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/melcloudata.js
CHANGED
|
@@ -144,6 +144,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
144
144
|
const messageData = parsedMessage?.[0]?.Data;
|
|
145
145
|
if (!messageData) return;
|
|
146
146
|
|
|
147
|
+
let updateDeiceState = false;
|
|
147
148
|
const unitId = messageData?.id;
|
|
148
149
|
switch (unitId) {
|
|
149
150
|
case this.deviceId:
|
|
@@ -158,13 +159,11 @@ class MelCloudAta extends EventEmitter {
|
|
|
158
159
|
return [name, parsedValue];
|
|
159
160
|
}));
|
|
160
161
|
Object.assign(deviceData.Device, settings);
|
|
161
|
-
|
|
162
|
-
this.emit('deviceState', deviceData);
|
|
162
|
+
updateDeiceState = true;
|
|
163
163
|
break;
|
|
164
164
|
case 'unitWifiSignalChanged':
|
|
165
165
|
Object.assign(deviceData, messageData.rssi);
|
|
166
|
-
|
|
167
|
-
this.emit('deviceState', deviceData);
|
|
166
|
+
updateDeiceState = true;
|
|
168
167
|
break;
|
|
169
168
|
default:
|
|
170
169
|
if (this.logWarn) this.emit('warn', `Unit ${unitId}, received unknown message type: ${stringifyMessage}`);
|
|
@@ -175,6 +174,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
175
174
|
if (this.logWarn) this.emit('warn', `Incoming unknown unit id: ${stringifyMessage}`);
|
|
176
175
|
return;
|
|
177
176
|
}
|
|
177
|
+
|
|
178
|
+
if (updateDeiceState) this.emit('deviceState', deviceData);
|
|
178
179
|
});
|
|
179
180
|
} catch (error) {
|
|
180
181
|
if (this.logError) this.emit('error', `Socket connection failed: ${error}`);
|