homebridge-melcloud-control 4.3.5-beta.31 → 4.3.5-beta.32

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.
@@ -440,14 +440,6 @@
440
440
  "functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
441
441
  }
442
442
  },
443
- "refreshInterval": {
444
- "title": "Refresh Interval",
445
- "type": "integer",
446
- "default": 5,
447
- "minimum": 1,
448
- "maximum": 60,
449
- "description": "Set the background device state refresh time in seconds."
450
- },
451
443
  "presets": {
452
444
  "title": "Presets",
453
445
  "type": "array",
@@ -1296,14 +1288,6 @@
1296
1288
  "functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
1297
1289
  }
1298
1290
  },
1299
- "refreshInterval": {
1300
- "title": "Refresh Interval",
1301
- "type": "integer",
1302
- "default": 5,
1303
- "minimum": 1,
1304
- "maximum": 60,
1305
- "description": "Set the background device state refresh time in seconds."
1306
- },
1307
1291
  "presets": {
1308
1292
  "title": "Presets",
1309
1293
  "type": "array",
@@ -1921,14 +1905,6 @@
1921
1905
  "functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
1922
1906
  }
1923
1907
  },
1924
- "refreshInterval": {
1925
- "title": "Refresh Interval",
1926
- "type": "integer",
1927
- "default": 5,
1928
- "minimum": 1,
1929
- "maximum": 60,
1930
- "description": "Set the background device state refresh time in seconds."
1931
- },
1932
1908
  "presets": {
1933
1909
  "title": "Presets",
1934
1910
  "type": "array",
@@ -2606,8 +2582,7 @@
2606
2582
  "accounts[].ataDevices[].autoDryFanMode",
2607
2583
  "accounts[].ataDevices[].frostProtectionSupport",
2608
2584
  "accounts[].ataDevices[].overheatProtectionSupport",
2609
- "accounts[].ataDevices[].holidayModeSupport",
2610
- "accounts[].ataDevices[].refreshInterval"
2585
+ "accounts[].ataDevices[].holidayModeSupport"
2611
2586
  ],
2612
2587
  "condition": {
2613
2588
  "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
@@ -2779,8 +2754,7 @@
2779
2754
  "accounts[].atwDevices[].hideZone",
2780
2755
  "accounts[].atwDevices[].name",
2781
2756
  "accounts[].atwDevices[].frostProtectionSupport",
2782
- "accounts[].atwDevices[].holidayModeSupport",
2783
- "accounts[].atwDevices[].refreshInterval"
2757
+ "accounts[].atwDevices[].holidayModeSupport"
2784
2758
  ],
2785
2759
  "condition": {
2786
2760
  "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
@@ -2957,8 +2931,7 @@
2957
2931
  "expanded": false,
2958
2932
  "items": [
2959
2933
  "accounts[].ervDevices[].name",
2960
- "accounts[].ervDevices[].holidayModeSupport",
2961
- "accounts[].ervDevices[].refreshInterval"
2934
+ "accounts[].ervDevices[].holidayModeSupport"
2962
2935
  ],
2963
2936
  "condition": {
2964
2937
  "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
package/index.js CHANGED
@@ -76,7 +76,7 @@ class MelCloudPlatform {
76
76
  const buildingsFile = `${prefDir}/${accountName}_Buildings`;
77
77
 
78
78
  //set account refresh interval
79
- const refreshInterval = (account.refreshInterval ?? 120) * 1000
79
+ const accountRefreshInterval = (account.refreshInterval ?? 120) * 1000
80
80
 
81
81
  try {
82
82
  //create impulse generator
@@ -88,7 +88,7 @@ class MelCloudPlatform {
88
88
  let timmers = []
89
89
  switch (account.type) {
90
90
  case 'melcloud':
91
- timmers = [{ name: 'checkDevicesList', sampling: refreshInterval }];
91
+ timmers = [{ name: 'checkDevicesList', sampling: accountRefreshInterval }];
92
92
  melcloud = new MelCloud(account, accountFile, buildingsFile, true);
93
93
  break;
94
94
  case 'melcloudhome':
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.5-beta.31",
4
+ "version": "4.3.5-beta.32",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",