Skip to content

Commit

Permalink
release 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Jan 6, 2024
1 parent 9a1bc18 commit 7c4a52a
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 42 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Important changes v0.4.0 and above!!!
* Main control mode, buttons and presets need to be configured again!!!

## [0.14.0] - (06.01.2024)
## Changes
- added mode SPLIT to Vane V
- fix Vane V mode assignment for buttons/sensors
- performance and stability improvements
- config.schema updated

## [0.13.0] - (30.07.2023)
## Changes
- added RESTFul server
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
* Power `ON/OFF`.
* Operating mode `HEAT/DRY/COOL/FAN/AUTO`.
* Physical lock controls `LOCK/UNLOCK`.
* Vane H mode `AUTO/1/2/3/4/5/SWING`.
* Vane H mode `AUTO/1/2/3/4/5/SPLIT/SWING`.
* Vane V mode `AUTO/1/2/3/4/5/SWING`.
* Fan speed mode `AUTO/1/2/3/4/5`.
* Presets `SET/UNSET`.
Expand All @@ -75,7 +75,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
* Power `ON/OFF`.
* Operating mode `HEAT/DRY/COOL/FAN/AUTO`.
* Physical lock controls `LOCK/UNLOCK`.
* Vane H mode `AUTO/1/2/3/4/5/SWING`.
* Vane H mode `AUTO/1/2/3/4/5/SPLIT/SWING`.
* Vane V mode `AUTO/1/2/3/4/5/SWING`.
* Fan speed mode `AUTO/1/2/3/4/5/`.
* Temperature change for `HEATER/COOLER`.
Expand Down
20 changes: 13 additions & 7 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
]
},
{
"title": "VH MODE 1",
"title": "VH MODE 1 / LEFT",
"enum": [
11
]
Expand All @@ -362,7 +362,7 @@
]
},
{
"title": "VH MODE 3",
"title": "VH MODE 3 / CENTER",
"enum": [
13
]
Expand All @@ -374,25 +374,31 @@
]
},
{
"title": "VH MODE 5",
"title": "VH MODE 5 / RIGHT",
"enum": [
15
]
},
{
"title": "VH MODE SWING",
"title": "VH MODE SPLIT",
"enum": [
16
]
},
{
"title": "VH MODE SWING",
"enum": [
17
]
},
{
"title": "VV MODE AUTO",
"enum": [
20
]
},
{
"title": "VV MODE 1",
"title": "VV MODE 1 / UP",
"enum": [
21
]
Expand All @@ -404,7 +410,7 @@
]
},
{
"title": "VV MODE 3",
"title": "VV MODE 3 / CENTER",
"enum": [
23
]
Expand All @@ -416,7 +422,7 @@
]
},
{
"title": "VV MODE 5",
"title": "VV MODE 5 / DOWN",
"enum": [
25
]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "MELCloud Control",
"name": "homebridge-melcloud-control",
"version": "0.13.16",
"version": "0.14.0",
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
"license": "MIT",
"author": "grzegorz914",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"async-mqtt": "^2.6.3",
"axios": "^1.6.3",
"axios": "^1.6.5",
"express": "^4.18.2"
},
"keywords": [
Expand Down
6 changes: 6 additions & 0 deletions src/melcloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MelCloud extends EventEmitter {
baseURL: CONSTANS.ApiUrls.BaseURL,
timeout: 25000,
withCredentials: true,
maxContentLength: 100000000,
maxBodyLength: 1000000000,
httpsAgent: new https.Agent({
keepAlive: true,
rejectUnauthorized: false
Expand Down Expand Up @@ -57,6 +59,8 @@ class MelCloud extends EventEmitter {
headers: {
'X-MitsContextKey': contextKey
},
maxContentLength: 100000000,
maxBodyLength: 1000000000,
withCredentials: true,
httpsAgent: new https.Agent({
keepAlive: true,
Expand All @@ -73,6 +77,8 @@ class MelCloud extends EventEmitter {
'X-MitsContextKey': contextKey,
'content-type': 'application/json'
},
maxContentLength: 100000000,
maxBodyLength: 1000000000,
withCredentials: true,
httpsAgent: new https.Agent({
keepAlive: true,
Expand Down
9 changes: 5 additions & 4 deletions src/melcloudata.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class MelCloudAta extends EventEmitter {
await new Promise(resolve => setTimeout(resolve, 1000));
this.emit('checkDeviceState');
} catch (error) {
this.emit('error', `check info, ${error}, check again in 60s.`);
this.emit('error', `check info, ${error}, check again in 65s.`);
this.checkDeviceInfo();
};
}).on('checkDeviceState', async () => {
Expand Down Expand Up @@ -423,7 +423,7 @@ class MelCloudAta extends EventEmitter {

this.checkDeviceInfo();
} catch (error) {
this.emit('error', `check device state error, ${error}, check again in 60s.`);
this.emit('error', `check device state error, ${error}, check again in 65s.`);
this.checkDeviceInfo();
};
});
Expand Down Expand Up @@ -459,8 +459,9 @@ class MelCloudAta extends EventEmitter {
await this.axiosInstancePost(CONSTANS.ApiUrls.SetAta, options);
resolve();

await new Promise(resolve => setTimeout(resolve, 2000));
this.emit('checkDeviceInfo');
await new Promise(resolve => setTimeout(resolve, 250));
this.emit('deviceState', deviceState, deviceState.RoomTemperature, deviceState.SetTemperature, deviceState.SetFanSpeed, deviceState.OperationMode, deviceState.VaneHorizontal, deviceState.VaneVertical, deviceState.DefaultHeatingSetTemperature, deviceState.DefaultCoolingSetTemperature, deviceState.HideVaneControls, deviceState.HideDryModeControl, deviceState.InStandbyMode, deviceState.ProhibitSetTemperature, deviceState.ProhibitOperationMode, deviceState.ProhibitPower, deviceState.Power, deviceState.Offline);
this.checkDeviceInfo();
} catch (error) {
reject(error);
};
Expand Down
9 changes: 5 additions & 4 deletions src/melcloudatw.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class MelCloudAtw extends EventEmitter {
await new Promise(resolve => setTimeout(resolve, 1000));
this.emit('checkDeviceState');
} catch (error) {
this.emit('error', `check info, ${error}, check again in 60s.`);
this.emit('error', `check info, ${error}, check again in 65s.`);
this.checkDeviceInfo();
};
}).on('checkDeviceState', async () => {
Expand Down Expand Up @@ -541,7 +541,7 @@ class MelCloudAtw extends EventEmitter {

this.checkDeviceInfo();
} catch (error) {
this.emit('error', `check device state error, ${error}, check again in 60s.`);
this.emit('error', `check device state error, ${error}, check again in 65s.`);
this.checkDeviceInfo();
};
});
Expand Down Expand Up @@ -577,8 +577,9 @@ class MelCloudAtw extends EventEmitter {
await this.axiosInstancePost(CONSTANS.ApiUrls.SetAtw, options);
resolve();

await new Promise(resolve => setTimeout(resolve, 2000));
this.emit('checkDeviceInfo');
await new Promise(resolve => setTimeout(resolve, 250));
this.emit('deviceState', deviceState, deviceState.SetTemperatureZone1, deviceState.SetTemperatureZone2, deviceState.RoomTemperatureZone1, deviceState.RoomTemperatureZone2, deviceState.OperationMode, deviceState.OperationModeZone1, deviceState.OperationModeZone2, deviceState.SetHeatFlowTemperatureZone1, deviceState.SetHeatFlowTemperatureZone2, deviceState.SetCoolFlowTemperatureZone1, deviceState.SetCoolFlowTemperatureZone2, deviceState.HcControlType, deviceState.TankWaterTemperature, deviceState.SetTankWaterTemperature, deviceState.ForcedHotWaterMode, deviceState.UnitStatus, deviceState.OutdoorTemperature, deviceState.EcoHotWater, deviceState.HolidayMode, deviceState.ProhibitZone1, deviceState.ProhibitZone2, deviceState.ProhibitHotWater, deviceState.IdleZone1, deviceState.IdleZone2, deviceState.Power, deviceState.Offline);
this.checkDeviceInfo();
} catch (error) {
reject(error);
};
Expand Down
Loading

0 comments on commit 7c4a52a

Please sign in to comment.