homebridge-melcloud-control 3.4.4 → 3.5.0-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 CHANGED
@@ -16,6 +16,15 @@ 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.5.0] - (06.12.2024)
20
+
21
+ ## Changes
22
+
23
+ - added possibility to set device refresh state indyvidually for every device
24
+ - bump deependemcies
25
+ - config.schema updated
26
+ - redme updated
27
+
19
28
  ## [3.4.4] - (05.12.2024)
20
29
 
21
30
  ## Changes
package/README.md CHANGED
@@ -218,6 +218,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
218
218
  | `ataDevices.autoDryFanMode` | Here select the operatiing mode for `Auto`, if this mode is not supported, it will be disabled.. |
219
219
  | `ataDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
220
220
  | `ataDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
221
+ | `ataDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
221
222
  | `ataDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
222
223
  | `ataDevices.presets.id` | Read only data, do not change it. |
223
224
  | `ataDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
@@ -242,6 +243,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
242
243
  | `atwDevices.temperatureSensorReturnWaterTank` | This enable extra `Return Water Tank` temperature sensors to use with automations in HomeKit app. |
243
244
  | `atwDevices.temperatureSensorFlowZone2` | This enable extra `Flow Zone 2` temperature sensors to use with automations in HomeKit app. |
244
245
  | `atwDevices.temperatureSensorReturnZone2` | This enable extra `Return Zone 2` temperature sensors to use with automations in HomeKit app. |
246
+ | `atwDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
245
247
  | `atwDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
246
248
  | `atwDevices.presets.id` | Read only data, do not change it. |
247
249
  | `atwDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
@@ -260,6 +262,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
260
262
  | `ervDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
261
263
  | `ervDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
262
264
  | `ervDevices.temperatureSensorSupply` | This enable extra `Supply` temperature sensors to use with automations in HomeKit app. |
265
+ | `ervDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
263
266
  | `ervDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
264
267
  | `ervDevices.presets.id` | Read only data, do not change it. |
265
268
  | `ervDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
@@ -270,7 +273,6 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
270
273
  | `buttonsSensors.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
271
274
  | `buttonsSensors.namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
272
275
  | `refreshInterval` | Here set the background account data refresh time in (sec), default `120s`. |
273
- | `deviceRefreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
274
276
  | `enableDebugMode` | This enable deep log in homebridge console. |
275
277
  | `disableLogInfo` | This disable display log values and states on every it change. |
276
278
  | `disableLogDeviceInfo` | This disable display log device info on plugin start. |
@@ -386,6 +386,15 @@
386
386
  "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
387
387
  "required": false
388
388
  },
389
+ "refreshInterval": {
390
+ "title": "Refresh Interval",
391
+ "type": "integer",
392
+ "default": 5,
393
+ "minimum": 1,
394
+ "maximum": 60,
395
+ "description": "Set the background device state refresh time in seconds.",
396
+ "required": false
397
+ },
389
398
  "presets": {
390
399
  "title": "Presets",
391
400
  "type": "array",
@@ -883,6 +892,15 @@
883
892
  "description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit app.",
884
893
  "required": false
885
894
  },
895
+ "refreshInterval": {
896
+ "title": "Refresh Interval",
897
+ "type": "integer",
898
+ "default": 5,
899
+ "minimum": 1,
900
+ "maximum": 60,
901
+ "description": "Set the background device state refresh time in seconds.",
902
+ "required": false
903
+ },
886
904
  "presets": {
887
905
  "title": "Presets",
888
906
  "type": "array",
@@ -1186,14 +1204,14 @@
1186
1204
  "id": {
1187
1205
  "title": "ID",
1188
1206
  "type": "integer",
1189
- "default": 3,
1207
+ "default": 0,
1190
1208
  "required": false,
1191
1209
  "readonly": true
1192
1210
  },
1193
1211
  "type": {
1194
1212
  "title": "Type",
1195
1213
  "type": "integer",
1196
- "default": 1,
1214
+ "default": 3,
1197
1215
  "required": false,
1198
1216
  "readonly": true
1199
1217
  },
@@ -1260,6 +1278,15 @@
1260
1278
  "description": "This enable extra supply temperature sensor to use with automations in HomeKit app.",
1261
1279
  "required": false
1262
1280
  },
1281
+ "refreshInterval": {
1282
+ "title": "Refresh Interval",
1283
+ "type": "integer",
1284
+ "default": 5,
1285
+ "minimum": 1,
1286
+ "maximum": 60,
1287
+ "description": "Set the background device state refresh time in seconds.",
1288
+ "required": false
1289
+ },
1263
1290
  "presets": {
1264
1291
  "title": "Presets",
1265
1292
  "type": "array",
@@ -1508,7 +1535,7 @@
1508
1535
  }
1509
1536
  },
1510
1537
  "refreshInterval": {
1511
- "title": "Account Refresh Interval",
1538
+ "title": "Refresh Interval",
1512
1539
  "type": "integer",
1513
1540
  "default": 120,
1514
1541
  "minimum": 1,
@@ -1516,15 +1543,6 @@
1516
1543
  "description": "Set the background account data refresh time in seconds.",
1517
1544
  "required": false
1518
1545
  },
1519
- "deviceRefreshInterval": {
1520
- "title": "Device Refresh Interval",
1521
- "type": "integer",
1522
- "default": 5,
1523
- "minimum": 1,
1524
- "maximum": 60,
1525
- "description": "Set the background devices state refresh time in seconds.",
1526
- "required": false
1527
- },
1528
1546
  "enableDebugMode": {
1529
1547
  "title": "Debug",
1530
1548
  "type": "boolean",
@@ -1724,7 +1742,8 @@
1724
1742
  "accounts[].ataDevices[].displayMode",
1725
1743
  "accounts[].ataDevices[].heatDryFanMode",
1726
1744
  "accounts[].ataDevices[].coolDryFanMode",
1727
- "accounts[].ataDevices[].autoDryFanMode"
1745
+ "accounts[].ataDevices[].autoDryFanMode",
1746
+ "accounts[].ataDevices[].refreshInterval"
1728
1747
  ]
1729
1748
  },
1730
1749
  {
@@ -1810,7 +1829,8 @@
1810
1829
  "expanded": false,
1811
1830
  "items": [
1812
1831
  "accounts[].atwDevices[].name",
1813
- "accounts[].atwDevices[].displayMode"
1832
+ "accounts[].atwDevices[].displayMode",
1833
+ "accounts[].atwDevices[].refreshInterval"
1814
1834
  ]
1815
1835
  },
1816
1836
  {
@@ -1903,7 +1923,8 @@
1903
1923
  "expanded": false,
1904
1924
  "items": [
1905
1925
  "accounts[].ervDevices[].name",
1906
- "accounts[].ervDevices[].displayMode"
1926
+ "accounts[].ervDevices[].displayMode",
1927
+ "accounts[].ervDevices[].refreshInterval"
1907
1928
  ]
1908
1929
  },
1909
1930
  {
@@ -1983,8 +2004,7 @@
1983
2004
  "key": "accounts[]",
1984
2005
  "title": "Data Refresh",
1985
2006
  "items": [
1986
- "accounts[].refreshInterval",
1987
- "accounts[].deviceRefreshInterval"
2007
+ "accounts[].refreshInterval"
1988
2008
  ]
1989
2009
  },
1990
2010
  {
package/index.js CHANGED
@@ -69,7 +69,6 @@ class MelCloudPlatform {
69
69
 
70
70
  //set refresh interval
71
71
  const refreshInterval = account.refreshInterval * 1000 || 120000;
72
- const deviceRefreshInterval = account.deviceRefreshInterval * 1000 || 5000;
73
72
 
74
73
  try {
75
74
  //melcloud account
@@ -116,6 +115,7 @@ class MelCloudPlatform {
116
115
 
117
116
  const deviceName = device.name;
118
117
  const deviceTypeText = device.typeString;
118
+ const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
119
119
  const airConditioner = new DeviceAta(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
120
120
  airConditioner.on('publishAccessory', (accessory) => {
121
121
 
@@ -161,6 +161,7 @@ class MelCloudPlatform {
161
161
 
162
162
  const deviceName = device.name;
163
163
  const deviceTypeText = device.typeString;
164
+ const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
164
165
  const heatPump = new DeviceAtw(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
165
166
  heatPump.on('publishAccessory', (accessory) => {
166
167
 
@@ -206,6 +207,7 @@ class MelCloudPlatform {
206
207
 
207
208
  const deviceName = device.name;
208
209
  const deviceTypeText = device.typeString;
210
+ const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
209
211
  const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit)
210
212
  energyRecoveryVentilation.on('publishAccessory', (accessory) => {
211
213
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.4.4",
4
+ "version": "3.5.0-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",
@@ -38,7 +38,7 @@
38
38
  "@homebridge/plugin-ui-utils": "^2.0.0",
39
39
  "async-mqtt": "^2.6.3",
40
40
  "axios": "^1.7.9",
41
- "express": "^4.21.1"
41
+ "express": "^4.21.2"
42
42
  },
43
43
  "keywords": [
44
44
  "homebridge",