homebridge-melcloud-control 4.2.1-beta.2 → 4.2.2-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
@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
 
23
23
  - Do not use Homebridge UI > v5.5.0 because of break config.json
24
24
 
25
- ## [4.2.1] - (xx.11.2025)
25
+ ## [4.2.1] - (13.11.2025)
26
26
 
27
27
  ## Changes
28
28
 
package/README.md CHANGED
@@ -344,8 +344,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
344
344
  ### RESTful Integration
345
345
 
346
346
  * Port:
347
- * MELCLoud, last 4 numbers of `device Id`, also displayed in HB log during start.
348
- * MELCLoud Home, start at `30000` displayed in HB log during start.
347
+ * MELCLoud, last 4 numbers of `device Id`, correct port is displayed in HB log during start.
348
+ * MELCLoud Home, start at `30000`, correct port is displayed in HB log during start.
349
349
  * POST data as a JSON Object `{OperationMode: 8}`.
350
350
  * Header content type must be `application/json`.
351
351
  * Path `status` response all available paths.
@@ -373,7 +373,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
373
373
  | | `http//ip:port` | `FrostProtection` | `true`, `false` | boolean | Frost protectin. |
374
374
  | | `http//ip:port` | `OverheatProtection` | `true`, `false` | boolean | Overheat protection. |
375
375
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
376
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
376
+ | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
377
377
  | Heat Pump | | | | | |
378
378
  | POST | `http//ip:port` | `Power` | `true`, `false` | boolean | Power state. |
379
379
  | | `http//ip:port` | `ForcedHotWaterMode` | `true`, `false` | boolean | Force hot water. |
@@ -392,7 +392,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
392
392
  | | `http//ip:port` | `SetCoolFlowTemperatureZone2` | `0.0` | float | Cool flow temperature zone 2. |
393
393
  | | `http//ip:port` | `SetTankWaterTemperature` | `0.0` | float | Hot water temperature. |
394
394
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
395
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
395
+ | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
396
396
  | Energy Recovery Ventilation | | | | | |
397
397
  | POST | `http//ip:port` | `Power` | `true`, `false` | boolean | Power state. |
398
398
  | | `http//ip:port` | `NightPurgeMode` | `true`, `false` | boolean | Night purge mode. |
@@ -406,7 +406,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
406
406
  | | `http//ip:port` | `DefaultCoolingSetTemperature` | `0.0` | float | Default cooling temperature. |
407
407
  | | `http//ip:port` | `DefaultHeatingSetTemperature` | `0.0` | float | Default heating temperature. |
408
408
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
409
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
409
+ | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
410
410
 
411
411
  ### MQTT Integration
412
412
 
@@ -435,7 +435,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
435
435
  | | `Set` | `FrostProtection` | `true`, `false` | boolean | Frost protectin. |
436
436
  | | `Set` | `OverheatProtection` | `true`, `false` | boolean | Overheat protection. |
437
437
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
438
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
438
+ | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
439
439
  | Heat Pump | | | | | |
440
440
  | Subscribe | `Set` | `Power` | `true`, `false` | boolean | Power state. |
441
441
  | | `Set` | `ForcedHotWaterMode` | `true`, `false` | boolean | Force hot water. |
@@ -454,7 +454,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
454
454
  | | `Set` | `SetCoolFlowTemperatureZone2` | `0.0` | float | Cool flow temperature zone 2. |
455
455
  | | `Set` | `SetTankWaterTemperature` | `0.0` | float | Hot water temperature. |
456
456
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
457
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
457
+ | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
458
458
  | Energy Recovery Ventilation | | | | | |
459
459
  | Subscribe | `Set` | `Power` | `true`, `false` | boolean | Power state. |
460
460
  | | `Set` | `NightPurgeMode` | `true`, `false` | boolean | Night purge mode. |
@@ -468,4 +468,4 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
468
468
  | | `Set` | `DefaultCoolingSetTemperature` | `23.0` | float | Default cooling temperature. |
469
469
  | | `Set` | `DefaultHeatingSetTemperature` | `21.0` | float | Default heating temperature. |
470
470
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
471
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules |
471
+ | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.2.1-beta.2",
4
+ "version": "4.2.2-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",
package/src/melcloud.js CHANGED
@@ -326,6 +326,12 @@ class MelCloud extends EventEmitter {
326
326
  devicesList.Devices = devices;
327
327
  return devicesList;
328
328
  } catch (error) {
329
+ if (error.response?.status === 401) {
330
+ await connectToMelCloudHome();
331
+ if (this.logWarn) this.emit('warn', 'Check devices list not possible, cookies expired, trying to get new.');
332
+ return;
333
+ }
334
+
329
335
  throw new Error(`Check devices list error: ${error.message}`);
330
336
  }
331
337
  }
@@ -412,7 +418,7 @@ class MelCloud extends EventEmitter {
412
418
  accountInfo.Info = `Login button ${loginText} not found`;
413
419
  return accountInfo;
414
420
  }
415
- ;
421
+
416
422
  await loginBtn.click();
417
423
  await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: GLOBAL_TIMEOUT / 3 });
418
424