homebridge-melcloud-control 3.3.19-beta.3 → 3.3.20-beta.0
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 +7 -0
- package/package.json +1 -1
- package/src/constants.json +1 -0
- package/src/deviceata.js +8 -13
- package/src/melcloudatw.js +1 -9
- package/src/melclouderv.js +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
16
|
- do not configure it manually, always using Config UI X
|
|
17
17
|
- required Homebridge v2.0.0 and above
|
|
18
18
|
|
|
19
|
+
## [3.3.19] - (25.09.2024)
|
|
20
|
+
|
|
21
|
+
## Changes
|
|
22
|
+
|
|
23
|
+
- fix apply presets for ATA
|
|
24
|
+
- cleanup
|
|
25
|
+
|
|
19
26
|
## [3.3.18] - (25.09.2024)
|
|
20
27
|
|
|
21
28
|
## Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.20-beta.0",
|
|
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/constants.json
CHANGED
package/src/deviceata.js
CHANGED
|
@@ -286,10 +286,9 @@ class DeviceAta extends EventEmitter {
|
|
|
286
286
|
this.accessory.lockPhysicalControl = prohibitSetTemperature && prohibitOperationMode && prohibitPower ? 1 : 0;
|
|
287
287
|
this.accessory.temperatureIncrement = temperatureIncrement;
|
|
288
288
|
|
|
289
|
-
//operating mode
|
|
289
|
+
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
|
|
290
290
|
switch (this.displayMode) {
|
|
291
291
|
case 1: //Heater Cooler
|
|
292
|
-
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
|
|
293
292
|
switch (operationMode) {
|
|
294
293
|
case 1: //HEAT
|
|
295
294
|
this.accessory.currentOperationMode = roomTemperature > setTemperature ? 1 : 2; //INACTIVE, IDLE, HEATING, COOLING
|
|
@@ -648,7 +647,7 @@ class DeviceAta extends EventEmitter {
|
|
|
648
647
|
switch (key) {
|
|
649
648
|
case 'Power':
|
|
650
649
|
deviceData.Device[key] = value;
|
|
651
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
650
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
652
651
|
set = await this.melCloudAta.send(deviceData, this.displayMode);
|
|
653
652
|
break;
|
|
654
653
|
case 'OperationMode':
|
|
@@ -767,7 +766,7 @@ class DeviceAta extends EventEmitter {
|
|
|
767
766
|
.onSet(async (state) => {
|
|
768
767
|
try {
|
|
769
768
|
deviceData.Device.Power = [false, true][state];
|
|
770
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
769
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
771
770
|
await this.melCloudAta.send(deviceData, this.displayMode);
|
|
772
771
|
const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
|
|
773
772
|
} catch (error) {
|
|
@@ -780,11 +779,7 @@ class DeviceAta extends EventEmitter {
|
|
|
780
779
|
return value;
|
|
781
780
|
});
|
|
782
781
|
this.melCloudService.getCharacteristic(Characteristic.TargetHeaterCoolerState)
|
|
783
|
-
|
|
784
|
-
minValue: this.accessory.operationModeSetPropsMinValue,
|
|
785
|
-
maxValue: this.accessory.operationModeSetPropsMaxValue,
|
|
786
|
-
validValues: this.accessory.operationModeSetPropsValidValues
|
|
787
|
-
})
|
|
782
|
+
|
|
788
783
|
.onGet(async () => {
|
|
789
784
|
const value = this.accessory.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
|
|
790
785
|
return value;
|
|
@@ -980,7 +975,7 @@ class DeviceAta extends EventEmitter {
|
|
|
980
975
|
switch (value) {
|
|
981
976
|
case 0: //OFF - POWER OFF
|
|
982
977
|
deviceData.Device.Power = false;
|
|
983
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
978
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
984
979
|
break;
|
|
985
980
|
case 1: //HEAT - HEAT
|
|
986
981
|
deviceData.Device.Power = true;
|
|
@@ -1124,7 +1119,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1124
1119
|
deviceData.Device.VaneHorizontalDirection = presetData.VaneHorizontal;
|
|
1125
1120
|
deviceData.Device.VaneVerticalDirection = presetData.VaneVertical;
|
|
1126
1121
|
deviceData.Device.FanSpeed = presetData.FanSpeed;
|
|
1127
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1122
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Presets;
|
|
1128
1123
|
break;
|
|
1129
1124
|
case false:
|
|
1130
1125
|
deviceData.Device.Power = preset.previousSettings.Power;
|
|
@@ -1133,7 +1128,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1133
1128
|
deviceData.Device.VaneHorizontalDirection = preset.previousSettings.VaneHorizontalDirection;
|
|
1134
1129
|
deviceData.Device.VaneVerticalDirection = preset.previousSettings.VaneVerticalDirection;
|
|
1135
1130
|
deviceData.Device.FanSpeed = preset.previousSettings.FanSpeed;
|
|
1136
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1131
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Presets;
|
|
1137
1132
|
break;
|
|
1138
1133
|
};
|
|
1139
1134
|
|
|
@@ -1181,7 +1176,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1181
1176
|
switch (mode) {
|
|
1182
1177
|
case 0: //POWER ON,OFF
|
|
1183
1178
|
deviceData.Device.Power = state;
|
|
1184
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1179
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
1185
1180
|
break;
|
|
1186
1181
|
case 1: //OPERATING MODE HEAT
|
|
1187
1182
|
button.previousValue = state ? deviceData.Device.OperationMode : button.previousValue ?? deviceData.Device.OperationMode;
|
package/src/melcloudatw.js
CHANGED
|
@@ -450,10 +450,9 @@ class MelCloudAtw extends EventEmitter {
|
|
|
450
450
|
data: {
|
|
451
451
|
DeviceID: deviceData.Device.DeviceID,
|
|
452
452
|
EffectiveFlags: deviceData.Device.EffectiveFlags,
|
|
453
|
+
Power: deviceData.Device.Power,
|
|
453
454
|
SetTemperatureZone1: deviceData.Device.SetTemperatureZone1,
|
|
454
455
|
SetTemperatureZone2: deviceData.Device.SetTemperatureZone2,
|
|
455
|
-
RoomTemperatureZone1: deviceData.Device.RoomTemperatureZone1,
|
|
456
|
-
RoomTemperatureZone2: deviceData.Device.RoomTemperatureZone2,
|
|
457
456
|
OperationMode: deviceData.Device.OperationMode,
|
|
458
457
|
OperationModeZone1: deviceData.Device.OperationModeZone1,
|
|
459
458
|
OperationModeZone2: deviceData.Device.OperationModeZone2,
|
|
@@ -461,20 +460,13 @@ class MelCloudAtw extends EventEmitter {
|
|
|
461
460
|
SetHeatFlowTemperatureZone2: deviceData.Device.SetHeatFlowTemperatureZone2,
|
|
462
461
|
SetCoolFlowTemperatureZone1: deviceData.Device.SetCoolFlowTemperatureZone1,
|
|
463
462
|
SetCoolFlowTemperatureZone2: deviceData.Device.SetCoolFlowTemperatureZone2,
|
|
464
|
-
TankWaterTemperature: deviceData.Device.TankWaterTemperature,
|
|
465
463
|
SetTankWaterTemperature: deviceData.Device.SetTankWaterTemperature,
|
|
466
464
|
ForcedHotWaterMode: deviceData.Device.ForcedHotWaterMode,
|
|
467
|
-
OutdoorTemperature: deviceData.Device.OutdoorTemperature,
|
|
468
465
|
EcoHotWater: deviceData.Device.EcoHotWater,
|
|
469
466
|
HolidayMode: deviceData.Device.HolidayMode,
|
|
470
467
|
ProhibitZone1: deviceData.Device.ProhibitHeatingZone1,
|
|
471
468
|
ProhibitZone2: deviceData.Device.ProhibitHeatingZone2,
|
|
472
469
|
ProhibitHotWater: deviceData.Device.ProhibitHotWater,
|
|
473
|
-
IdleZone1: deviceData.Device.IdleZone1,
|
|
474
|
-
IdleZone2: deviceData.Device.IdleZone2,
|
|
475
|
-
UnitStatus: deviceData.Device.UnitStatus,
|
|
476
|
-
Power: deviceData.Device.Power,
|
|
477
|
-
Offline: deviceData.Device.Offline,
|
|
478
470
|
HasPendingCommand: true
|
|
479
471
|
}
|
|
480
472
|
}
|
package/src/melclouderv.js
CHANGED
|
@@ -382,10 +382,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
382
382
|
data: {
|
|
383
383
|
DeviceID: deviceData.Device.DeviceID,
|
|
384
384
|
EffectiveFlags: deviceData.Device.EffectiveFlags,
|
|
385
|
-
|
|
386
|
-
SupplyTemperature: deviceData.Device.SupplyTemperature,
|
|
387
|
-
OutdoorTemperature: deviceData.Device.OutdoorTemperature,
|
|
388
|
-
NightPurgeMode: deviceData.Device.NightPurgeMode,
|
|
385
|
+
Power: deviceData.Device.Power,
|
|
389
386
|
SetTemperature: deviceData.Device.SetTemperature,
|
|
390
387
|
SetFanSpeed: deviceData.Device.SetFanSpeed,
|
|
391
388
|
OperationMode: deviceData.Device.OperationMode,
|
|
@@ -395,8 +392,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
395
392
|
HideRoomTemperature: deviceData.Device.HideRoomTemperature,
|
|
396
393
|
HideSupplyTemperature: deviceData.Device.HideSupplyTemperature,
|
|
397
394
|
HideOutdoorTemperature: deviceData.Device.HideOutdoorTemperature,
|
|
398
|
-
|
|
399
|
-
Offline: deviceData.Device.Offline,
|
|
395
|
+
NightPurgeMode: deviceData.Device.NightPurgeMode,
|
|
400
396
|
HasPendingCommand: true
|
|
401
397
|
}
|
|
402
398
|
}
|