Skip to content

Commit

Permalink
release v3.3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Sep 25, 2024
1 parent f0d7843 commit 0b1be33
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- do not configure it manually, always using Config UI X
- required Homebridge v2.0.0 and above

## [3.3.20] - (25.09.2024)

## Changes

- fix ATA characteristics warning after plugin restart if device in DRY or FAN mode
- cleanup

## [3.3.19] - (25.09.2024)

## Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "MELCloud Control",
"name": "homebridge-melcloud-control",
"version": "3.3.19",
"version": "3.3.20",
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
7 changes: 3 additions & 4 deletions src/deviceata.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,9 @@ class DeviceAta extends EventEmitter {
this.accessory.lockPhysicalControl = prohibitSetTemperature && prohibitOperationMode && prohibitPower ? 1 : 0;
this.accessory.temperatureIncrement = temperatureIncrement;

//operating mode
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
switch (this.displayMode) {
case 1: //Heater Cooler
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
switch (operationMode) {
case 1: //HEAT
this.accessory.currentOperationMode = roomTemperature > setTemperature ? 1 : 2; //INACTIVE, IDLE, HEATING, COOLING
Expand Down Expand Up @@ -786,7 +785,7 @@ class DeviceAta extends EventEmitter {
validValues: this.accessory.operationModeSetPropsValidValues
})
.onGet(async () => {
const value = this.accessory.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
const value = this.accessory.targetOperationMode ?? 0; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
return value;
})
.onSet(async (value) => {
Expand Down Expand Up @@ -972,7 +971,7 @@ class DeviceAta extends EventEmitter {
validValues: this.accessory.operationModeSetPropsValidValues
})
.onGet(async () => {
const value = this.accessory.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
const value = this.accessory.targetOperationMode ?? 0; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
return value;
})
.onSet(async (value) => {
Expand Down
4 changes: 2 additions & 2 deletions src/deviceerv.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ class DeviceErv extends EventEmitter {
validValues: this.accessory.operationModeSetPropsValidValues
})
.onGet(async () => {
const value = this.accessory.targetOperationMode; //LOSSNAY, BYPASS, AUTO
const value = this.accessory.targetOperationMode ?? 0; //LOSSNAY, BYPASS, AUTO
return value;
})
.onSet(async (value) => {
Expand Down Expand Up @@ -877,7 +877,7 @@ class DeviceErv extends EventEmitter {
validValues: this.accessory.operationModeSetPropsValidValues
})
.onGet(async () => {
const value = this.accessory.targetOperationMode; //LOSSNAY, BYPASS, AUTO
const value = this.accessory.targetOperationMode ?? 0; //LOSSNAY, BYPASS, AUTO
return value;
})
.onSet(async (value) => {
Expand Down
2 changes: 2 additions & 0 deletions src/melcloudata.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ class MelCloudAta extends EventEmitter {
const firmwareAppVersion = device.FirmwareAppVersion?.toString() ?? 'Undefined';
const firmwareWebVersion = device.FirmwareWebVersion;
const firmwareWlanVersion = device.FirmwareWlanVersion;
const linkToMELCloudHome = device.LinkToMELCloudHome;
const linkedByUserFromMELCloudHome = device.LinkedByUserFromMELCloudHome;
const mqttFlags = device.MqttFlags;
const hasErrorMessages = device.HasErrorMessages;
const hasZone2 = device.HasZone2;
Expand Down
10 changes: 1 addition & 9 deletions src/melcloudatw.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,31 +450,23 @@ class MelCloudAtw extends EventEmitter {
data: {
DeviceID: deviceData.Device.DeviceID,
EffectiveFlags: deviceData.Device.EffectiveFlags,
Power: deviceData.Device.Power,
SetTemperatureZone1: deviceData.Device.SetTemperatureZone1,
SetTemperatureZone2: deviceData.Device.SetTemperatureZone2,
RoomTemperatureZone1: deviceData.Device.RoomTemperatureZone1,
RoomTemperatureZone2: deviceData.Device.RoomTemperatureZone2,
OperationMode: deviceData.Device.OperationMode,
OperationModeZone1: deviceData.Device.OperationModeZone1,
OperationModeZone2: deviceData.Device.OperationModeZone2,
SetHeatFlowTemperatureZone1: deviceData.Device.SetHeatFlowTemperatureZone1,
SetHeatFlowTemperatureZone2: deviceData.Device.SetHeatFlowTemperatureZone2,
SetCoolFlowTemperatureZone1: deviceData.Device.SetCoolFlowTemperatureZone1,
SetCoolFlowTemperatureZone2: deviceData.Device.SetCoolFlowTemperatureZone2,
TankWaterTemperature: deviceData.Device.TankWaterTemperature,
SetTankWaterTemperature: deviceData.Device.SetTankWaterTemperature,
ForcedHotWaterMode: deviceData.Device.ForcedHotWaterMode,
OutdoorTemperature: deviceData.Device.OutdoorTemperature,
EcoHotWater: deviceData.Device.EcoHotWater,
HolidayMode: deviceData.Device.HolidayMode,
ProhibitZone1: deviceData.Device.ProhibitHeatingZone1,
ProhibitZone2: deviceData.Device.ProhibitHeatingZone2,
ProhibitHotWater: deviceData.Device.ProhibitHotWater,
IdleZone1: deviceData.Device.IdleZone1,
IdleZone2: deviceData.Device.IdleZone2,
UnitStatus: deviceData.Device.UnitStatus,
Power: deviceData.Device.Power,
Offline: deviceData.Device.Offline,
HasPendingCommand: true
}
}
Expand Down
8 changes: 2 additions & 6 deletions src/melclouderv.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,7 @@ class MelCloudErv extends EventEmitter {
data: {
DeviceID: deviceData.Device.DeviceID,
EffectiveFlags: deviceData.Device.EffectiveFlags,
RoomTemperature: deviceData.Device.RoomTemperature,
SupplyTemperature: deviceData.Device.SupplyTemperature,
OutdoorTemperature: deviceData.Device.OutdoorTemperature,
NightPurgeMode: deviceData.Device.NightPurgeMode,
Power: deviceData.Device.Power,
SetTemperature: deviceData.Device.SetTemperature,
SetFanSpeed: deviceData.Device.SetFanSpeed,
OperationMode: deviceData.Device.OperationMode,
Expand All @@ -395,8 +392,7 @@ class MelCloudErv extends EventEmitter {
HideRoomTemperature: deviceData.Device.HideRoomTemperature,
HideSupplyTemperature: deviceData.Device.HideSupplyTemperature,
HideOutdoorTemperature: deviceData.Device.HideOutdoorTemperature,
Power: deviceData.Device.Power,
Offline: deviceData.Device.Offline,
NightPurgeMode: deviceData.Device.NightPurgeMode,
HasPendingCommand: true
}
}
Expand Down

0 comments on commit 0b1be33

Please sign in to comment.