homebridge-melcloud-control 3.6.6 → 3.6.8

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,6 +16,20 @@ 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.6.7] - (26.02.2025)
20
+
21
+ ## Changes
22
+
23
+ - bump dependencies
24
+ - cleanup
25
+ - redme update
26
+
27
+ ## [3.6.6] - (25.02.2025)
28
+
29
+ ## Changes
30
+
31
+ - fix [#190](https://github.com/grzegorz914/homebridge-melcloud-control/issues/190)
32
+
19
33
  ## [3.6.4] - (09.02.2025)
20
34
 
21
35
  ## Changes
package/README.md CHANGED
@@ -281,7 +281,6 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
281
281
  | `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
282
282
  | `restFul` | This is RSTful server. |
283
283
  | `restFul.enable` | If enabled, RESTful server will start automatically and respond to any path request. |
284
- | `restFul.port` | Here set the listening `Port` for RESTful server. |
285
284
  | `restFul.debug` | If enabled, deep log will be present in homebridge console for RESTFul server. |
286
285
  | `mqtt` | This is MQTT Broker. |
287
286
  | `mqtt.enable` | If enabled, MQTT Broker will start automatically and publish all awailable PV data. |
@@ -1600,16 +1600,6 @@
1600
1600
  "functionBody": "return model.accounts[arrayIndices].restFul.enable === true;"
1601
1601
  },
1602
1602
  "required": false
1603
- },
1604
- "port": {
1605
- "title": "Port",
1606
- "type": "integer",
1607
- "placeholder": 3000,
1608
- "description": "Here set the listening Port for RESTful server.",
1609
- "condition": {
1610
- "functionBody": "return model.accounts[arrayIndices].restFul.enable === true;"
1611
- },
1612
- "required": false
1613
1603
  }
1614
1604
  }
1615
1605
  },
package/index.js CHANGED
@@ -48,6 +48,10 @@ class MelCloudPlatform {
48
48
  }
49
49
  accountsName.push(accountName);
50
50
 
51
+ //external integrations
52
+ const restFul = account.restFul ?? {};
53
+ const mqtt = account.mqtt ?? {};
54
+
51
55
  //log config
52
56
  const enableDebugMode = account.enableDebugMode || false;
53
57
  const disableLogDeviceInfo = account.disableLogDeviceInfo || false;
@@ -130,7 +134,7 @@ class MelCloudPlatform {
130
134
  const deviceName = device.name;
131
135
  const deviceTypeText = device.typeString;
132
136
  const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
133
- const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
137
+ const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
134
138
  airConditioner.on('publishAccessory', (accessory) => {
135
139
 
136
140
  //publish device
@@ -195,7 +199,7 @@ class MelCloudPlatform {
195
199
  const deviceName = device.name;
196
200
  const deviceTypeText = device.typeString;
197
201
  const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
198
- const heatPump = new DeviceAtw(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
202
+ const heatPump = new DeviceAtw(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
199
203
  heatPump.on('publishAccessory', (accessory) => {
200
204
 
201
205
  //publish device
@@ -260,7 +264,7 @@ class MelCloudPlatform {
260
264
  const deviceName = device.name;
261
265
  const deviceTypeText = device.typeString;
262
266
  const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
263
- const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
267
+ const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
264
268
  energyRecoveryVentilation.on('publishAccessory', (accessory) => {
265
269
 
266
270
  //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.6.6",
4
+ "version": "3.6.8",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@homebridge/plugin-ui-utils": "^2.0.1",
39
39
  "async-mqtt": "^2.6.3",
40
- "axios": "^1.7.9",
40
+ "axios": "^1.8.1",
41
41
  "express": "^4.21.2"
42
42
  },
43
43
  "keywords": [
package/src/deviceata.js CHANGED
@@ -6,7 +6,7 @@ import { TemperatureDisplayUnits, AirConditioner } from './constants.js';
6
6
  let Accessory, Characteristic, Service, Categories, AccessoryUUID;
7
7
 
8
8
  class DeviceAta extends EventEmitter {
9
- constructor(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit) {
9
+ constructor(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit, restFul, mqtt) {
10
10
  super();
11
11
 
12
12
  Accessory = api.platformAccessory;
@@ -39,9 +39,9 @@ class DeviceAta extends EventEmitter {
39
39
  this.displayDeviceInfo = true;
40
40
 
41
41
  //external integrations
42
- this.restFul = account.restFul ?? {};
42
+ this.restFul = restFul;
43
43
  this.restFulConnected = false;
44
- this.mqtt = account.mqtt ?? {};
44
+ this.mqtt = mqtt;
45
45
  this.mqttConnected = false;
46
46
 
47
47
  //function
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, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit) {
9
+ constructor(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit, restFul, mqtt) {
10
10
  super();
11
11
 
12
12
  Accessory = api.platformAccessory;
@@ -43,9 +43,9 @@ class DeviceAtw extends EventEmitter {
43
43
  this.displayDeviceInfo = true;
44
44
 
45
45
  //external integrations
46
- this.restFul = account.restFul ?? {};
46
+ this.restFul = restFul;
47
47
  this.restFulConnected = false;
48
- this.mqtt = account.mqtt ?? {};
48
+ this.mqtt = mqtt;
49
49
  this.mqttConnected = false;
50
50
 
51
51
  //function
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, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit) {
9
+ constructor(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, refreshInterval, useFahrenheit, restFul, mqtt) {
10
10
  super();
11
11
 
12
12
  Accessory = api.platformAccessory;
@@ -37,9 +37,9 @@ class DeviceErv extends EventEmitter {
37
37
  this.displayDeviceInfo = true;
38
38
 
39
39
  //external integrations
40
- this.restFul = account.restFul ?? {};
40
+ this.restFul = restFul;
41
41
  this.restFulConnected = false;
42
- this.mqtt = account.mqtt ?? {};
42
+ this.mqtt = mqtt;
43
43
  this.mqttConnected = false;
44
44
 
45
45
  //function