homebridge-melcloud-control 4.7.8-beta.0 → 4.7.9-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
@@ -24,6 +24,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
  - For plugin < v4.6.0 use Homebridge UI <= v5.5.0
25
25
  - For plugin >= v4.6.0 use Homebridge UI >= v5.13.0
26
26
 
27
+ # [4.7.8] - (02.02.2026)
28
+
29
+ ## Changes
30
+
31
+ - fix [#236](https://github.com/grzegorz914/homebridge-melcloud-control/issues/236)
32
+ - cleanup
33
+
27
34
  # [4.7.7] - (01.02.2026)
28
35
 
29
36
  ## Changes
package/index.js CHANGED
@@ -200,7 +200,7 @@ class MelCloudPlatform {
200
200
  //stop start impulse generator
201
201
  await impulseGenerator.state(false);
202
202
 
203
- //start account impulse generator
203
+ //start melcloud class impulse generator
204
204
  await melCloudClass.impulseGenerator.state(true, timmers, false);
205
205
  } catch (error) {
206
206
  if (logLevel.error) log.error(`${name}, Start impulse generator error, ${error.message ?? error}, trying again.`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.7.8-beta.0",
4
+ "version": "4.7.9-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/constants.js CHANGED
@@ -37,8 +37,11 @@ export const ApiUrls = {
37
37
  },
38
38
  Put: {
39
39
  Ata: "/api/ataunit/deviceid", //{ power: true,setTemperature: 22, setFanSpeed: "auto", operationMode: "heat", vaneHorizontalDirection: "auto",vaneVerticalDirection: "auto", temperatureIncrementOverride: null, inStandbyMode: null}
40
+ AtaMobile: "/monitor/ataunit/deviceid",
40
41
  Atw: "/api/atwunit/deviceid",
42
+ AtwMobile: "/monitor/atwunit/deviceid",
41
43
  Erv: "/api/ervunit/deviceid",
44
+ ErvMobile: "/monitor/ervunit/deviceid",
42
45
  ScheduleEnableDisable: "/api/cloudschedule/deviceid/enabled", // {"enabled": true}
43
46
  SceneEnableDisable: "/api/scene/sceneid/enabledisable",
44
47
  },
@@ -314,7 +314,7 @@ class MelCloudAta extends EventEmitter {
314
314
  inStandbyMode: null
315
315
  };
316
316
  method = 'PUT';
317
- path = ApiUrls.Home.Put.Ata.replace('deviceid', deviceData.DeviceID);
317
+ path = ApiUrls.Home.Put.AtaMobile.replace('deviceid', deviceData.DeviceID);
318
318
  break;
319
319
  }
320
320
 
@@ -270,7 +270,7 @@ class MelCloudAtw extends EventEmitter {
270
270
  setTemperatureZone2: deviceData.Device.SetTemperatureZone2
271
271
  };
272
272
  method = 'PUT';
273
- path = ApiUrls.Home.Put.Atw.replace('deviceid', deviceData.DeviceID);
273
+ path = ApiUrls.Home.Put.AtwMobile.replace('deviceid', deviceData.DeviceID);
274
274
  break
275
275
  }
276
276
 
@@ -356,13 +356,6 @@ class MelCloudHome extends EventEmitter {
356
356
  // Wait extra to ensure UI is rendered
357
357
  await new Promise(r => setTimeout(r, 3000));
358
358
  const loginBtn = await page.waitForSelector('button.btn--blue', { timeout: GLOBAL_TIMEOUT / 3 });
359
- const loginText = await page.evaluate(el => el.textContent.trim(), loginBtn);
360
-
361
- if (!['Zaloguj', 'Sign In', 'Login'].includes(loginText)) {
362
- connectInfo.Status = `Login button ${loginText} not found`;
363
- return connectInfo;
364
- }
365
-
366
359
  await loginBtn.click();
367
360
  await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: GLOBAL_TIMEOUT / 3 });
368
361