homebridge-melcloud-control 3.1.10 → 3.1.16

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 CHANGED
@@ -16,7 +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.1.9] - (05.08.2024)
19
+ ## [3.1.11] - (09.09.2024)
20
+
21
+ ## Changes
22
+
23
+ - cleanup
24
+
25
+ ## [3.1.9] - (05.08.2024)
20
26
 
21
27
  ## Changes
22
28
 
@@ -37,7 +43,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37
43
  - fix [#145](https://github.com/grzegorz914/homebridge-melcloud-control/issues/145)
38
44
  - cleanup
39
45
 
40
-
41
46
  ## [3.1.2] - (31.08.2024)
42
47
 
43
48
  ## Changes
package/README.md CHANGED
@@ -276,8 +276,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
276
276
  | | `http//ip:port` | `ProhibitPower` | `true`, `false` | boolean | Lock set power. |
277
277
  | | `http//ip:port` | `OperationMode` | `1 - Heat`, `2 - Dry`, `3 - Cool`, `7 - Fan`, `8 - Auto` | integer | Operating mode. |
278
278
  | | `http//ip:port` | `SetFanSpeed` | `0 - Auto`, `1`, `2`, `3`, `4`, `5`, `6` | integer | Fan speed. |
279
- | | `http//ip:port` | `VaneHorizontal` | `0`, `1`, `2`, `3`, `4`, `5`, `8 - Split`, `12 - Swing` | integer | Vane H mode. |
280
- | | `http//ip:port` | `VaneVertical` | `0`, `1`, `2`, `3`, `4`, `5`, `7 - Swing` | integer | Vane V mode. |
279
+ | | `http//ip:port` | `VaneHorizontalDirection` | `0`, `1`, `2`, `3`, `4`, `5`, `8 - Split`, `12 - Swing` | integer | Vane H mode. |
280
+ | | `http//ip:port` | `VaneVerticalDirection` | `0`, `1`, `2`, `3`, `4`, `5`, `7 - Swing` | integer | Vane V mode. |
281
281
  | | `http//ip:port` | `SetTemperature` | `0.0` | float | Room temperature. |
282
282
  | | `http//ip:port` | `DefaultCoolingSetTemperature` | `0.0` | float | Default cooling temperature. |
283
283
  | | `http//ip:port` | `DefaultHeatingSetTemperature` | `0.0` | float | Default heating temperature. |
@@ -331,11 +331,11 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
331
331
  | | `Set` | `ProhibitPower` | `true`, `false` | boolean | Lock set power. |
332
332
  | | `Set` | `OperationMode` | `1 - Heat`, `2 - Dry`, `3 - Cool`, `7 - Fan`, `8 - Auto` | integer | Operating mode. |
333
333
  | | `Set` | `SetFanSpeed` | `0 - Auto`, `1`, `2`, `3`, `4`, `5`, `6` | integer | Fan speed. |
334
- | | `Set` | `VaneHorizontal` | `0`, `1`, `2`, `3`, `4`, `5`, `8 - Split`, `12 - Swing` | integer | Vane H mode. |
335
- | | `Set` | `VaneVertical` | `0`, `1`, `2`, `3`, `4`, `5`, `7 - Swing` | integer | Vane V mode. |
334
+ | | `Set` | `VaneHorizontalDirection` | `0`, `1`, `2`, `3`, `4`, `5`, `8 - Split`, `12 - Swing` | integer | Vane H mode. |
335
+ | | `Set` | `VaneVerticalDirection` | `0`, `1`, `2`, `3`, `4`, `5`, `7 - Swing` | integer | Vane V mode. |
336
336
  | | `Set` | `SetTemperature` | `0.0` | float | Room temperature. |
337
- | | `Set` | `DefaultCoolingSetTemperature` | `0.0` | float | Default cooling temperature. |
338
- | | `Set` | `DefaultHeatingSetTemperature` | `0.0` | float | Default heating temperature. |
337
+ | | `Set` | `DefaultCoolingSetTemperature` | `23.0` | float | Default cooling temperature. |
338
+ | | `Set` | `DefaultHeatingSetTemperature` | `21.0` | float | Default heating temperature. |
339
339
  | Heat Pump | | | | | |
340
340
  | Subscribe | `Set` | `Power` | `true`, `false` | boolean | Power state. |
341
341
  | | `Set` | `ForcedHotWaterMode` | `true`, `false` | boolean | Force hot water. |
@@ -364,5 +364,5 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
364
364
  | | `Set` | `VentilationMode` | `0 - Lossnay`, `1 - Bypass`, `2 - Auto` | integer | Ventilation mode. |
365
365
  | | `Set` | `SetFanSpeed` | `0 - Auto`, `1`, `2`, `3`, `4` | integer | Fan speed. |
366
366
  | | `Set` | `SetTemperature` | `0.0` | float | Room temperature. |
367
- | | `Set` | `DefaultCoolingSetTemperature` | `0.0` | float | Default cooling temperature. |
368
- | | `Set` | `DefaultHeatingSetTemperature` | `0.0` | float | Default heating temperature. |
367
+ | | `Set` | `DefaultCoolingSetTemperature` | `23.0` | float | Default cooling temperature. |
368
+ | | `Set` | `DefaultHeatingSetTemperature` | `21.0` | float | Default heating temperature. |
@@ -26,9 +26,7 @@ class PluginUiServer extends HomebridgePluginUiServer {
26
26
 
27
27
  try {
28
28
  const response = await melCloud.connect();
29
- const accountInfo = response.accountInfo;
30
- const contextKey = response.contextKey;
31
- const devices = await melCloud.chackDevicesList(contextKey);
29
+ const devices = await melCloud.chackDevicesList(response.contextKey);
32
30
  return devices;
33
31
  } catch (error) {
34
32
  throw new Error(`MELCloud error: ${error.message ?? error}.`);
package/index.js CHANGED
@@ -95,6 +95,7 @@ class MelCloudPlatform {
95
95
  const response = await melCloud.connect();
96
96
  const accountInfo = response.accountInfo;
97
97
  const contextKey = response.contextKey;
98
+ const useFahrenheit = response.useFahrenheit;
98
99
 
99
100
  //check devices list
100
101
  const devices = await melCloud.chackDevicesList(contextKey);
@@ -116,7 +117,7 @@ class MelCloudPlatform {
116
117
 
117
118
  const deviceName = device.name;
118
119
  const deviceTypeText = device.typeString;
119
- const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountFile, devicesFile, deviceRefreshInterval)
120
+ const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
120
121
  airConditioner.on('publishAccessory', (accessory) => {
121
122
 
122
123
  //publish device
@@ -161,7 +162,7 @@ class MelCloudPlatform {
161
162
 
162
163
  const deviceName = device.name;
163
164
  const deviceTypeText = device.typeString;
164
- const heatPump = new DeviceAtw(api, account, melCloud, device, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountFile, devicesFile, deviceRefreshInterval)
165
+ const heatPump = new DeviceAtw(api, account, melCloud, device, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
165
166
  heatPump.on('publishAccessory', (accessory) => {
166
167
 
167
168
  //publish device
@@ -206,7 +207,7 @@ class MelCloudPlatform {
206
207
 
207
208
  const deviceName = device.name;
208
209
  const deviceTypeText = device.typeString;
209
- const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountFile, devicesFile, deviceRefreshInterval)
210
+ const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
210
211
  energyRecoveryVentilation.on('publishAccessory', (accessory) => {
211
212
 
212
213
  //publish device
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.1.10",
4
+ "version": "3.1.16",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -35,7 +35,7 @@
35
35
  "@homebridge/plugin-ui-utils": "^1.0.3",
36
36
  "async-mqtt": "^2.6.3",
37
37
  "axios": "^1.7.7",
38
- "express": "^4.19.2"
38
+ "express": "^4.20.0"
39
39
  },
40
40
  "keywords": [
41
41
  "homebridge",