homebridge-melcloud-control 4.0.3-beta.1 → 4.0.3
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 +9 -0
- package/README.md +1 -1
- package/package.json +2 -1
- package/src/deviceatw.js +1 -1
- package/src/deviceerv.js +1 -1
- package/src/melclouderv.js +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
21
|
|
|
22
22
|
- Do not use Homebridge UI > v5.5.0 because of break config.json
|
|
23
23
|
|
|
24
|
+
## [4.0.3] - (08.11.2025)
|
|
25
|
+
|
|
26
|
+
## Changes
|
|
27
|
+
|
|
28
|
+
- fix ATW and ERV for old MELCloud
|
|
29
|
+
- bump dependencies
|
|
30
|
+
- readme updated
|
|
31
|
+
- cleanup
|
|
32
|
+
|
|
24
33
|
## [4.0.2] - (06.11.2025)
|
|
25
34
|
|
|
26
35
|
## Changes
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<span align="center">
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# MELCloud Control
|
|
8
8
|
|
|
9
9
|
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
10
10
|
[](https://www.npmjs.com/package/homebridge-melcloud-control)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.3
|
|
4
|
+
"version": "4.0.3",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"homekit",
|
|
49
49
|
"mitsubishi",
|
|
50
50
|
"melcloud",
|
|
51
|
+
"melcloudhome",
|
|
51
52
|
"ecodan",
|
|
52
53
|
"zubadan",
|
|
53
54
|
"lossnay",
|
package/src/deviceatw.js
CHANGED
|
@@ -6,7 +6,7 @@ import { TemperatureDisplayUnits, HeatPump } from './constants.js';
|
|
|
6
6
|
let Accessory, Characteristic, Service, Categories, AccessoryUUID;
|
|
7
7
|
|
|
8
8
|
class DeviceAtw extends EventEmitter {
|
|
9
|
-
constructor(api, account, device,
|
|
9
|
+
constructor(api, account, device, devicesFile, defaultTempsFile, useFahrenheit) {
|
|
10
10
|
super();
|
|
11
11
|
|
|
12
12
|
Accessory = api.platformAccessory;
|
package/src/deviceerv.js
CHANGED
|
@@ -6,7 +6,7 @@ import { TemperatureDisplayUnits, Ventilation } from './constants.js';
|
|
|
6
6
|
let Accessory, Characteristic, Service, Categories, AccessoryUUID;
|
|
7
7
|
|
|
8
8
|
class DeviceErv extends EventEmitter {
|
|
9
|
-
constructor(api, account, device,
|
|
9
|
+
constructor(api, account, device, devicesFile, defaultTempsFile, useFahrenheit) {
|
|
10
10
|
super();
|
|
11
11
|
|
|
12
12
|
Accessory = api.platformAccessory;
|
package/src/melclouderv.js
CHANGED
|
@@ -64,6 +64,11 @@ class MelCloudErv extends EventEmitter {
|
|
|
64
64
|
if (this.accountType === 'melcloudhome') {
|
|
65
65
|
deviceData.SerialNumber = deviceData.DeviceID || '4.0.0';
|
|
66
66
|
deviceData.Device.FirmwareAppVersion = deviceData.ConnectedInterfaceIdentifier || '4.0.0';
|
|
67
|
+
|
|
68
|
+
//read default temps
|
|
69
|
+
const temps = await this.functions.readData(this.defaultTempsFile, true);
|
|
70
|
+
deviceData.Device.DefaultHeatingSetTemperature = temps?.defaultHeatingSetTemperature ?? 20;
|
|
71
|
+
deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
|
|
67
72
|
}
|
|
68
73
|
if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
|
|
69
74
|
|
|
@@ -97,8 +102,8 @@ class MelCloudErv extends EventEmitter {
|
|
|
97
102
|
const setFanSpeed = device.SetFanSpeed;
|
|
98
103
|
const operationMode = device.OperationMode; //0, Heat, 2, Cool, 4, 5, 6, Fan, Auto
|
|
99
104
|
const ventilationMode = device.VentilationMode; //Lossnay, Bypass, Auto
|
|
100
|
-
const defaultCoolingSetTemperature = device.DefaultCoolingSetTemperature
|
|
101
|
-
const defaultHeatingSetTemperature = device.DefaultHeatingSetTemperature
|
|
105
|
+
const defaultCoolingSetTemperature = device.DefaultCoolingSetTemperature;
|
|
106
|
+
const defaultHeatingSetTemperature = device.DefaultHeatingSetTemperature;
|
|
102
107
|
const firmwareAppVersion = device.FirmwareAppVersion;
|
|
103
108
|
const isInError = device[errorKey];
|
|
104
109
|
|