homebridge-melcloud-control 4.2.3-beta.42 → 4.2.3-beta.44

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.2.3-beta.42",
4
+ "version": "4.2.3-beta.44",
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
@@ -29,8 +29,10 @@ export const ApiUrlsHome = {
29
29
  PostProtectionOverheat: "api/protection/overheat", // POST {"enabled":true,"min":32,"max":35,"units":{"ATA":["ef333525-2699-4290-af5a-2922566676da"]}}
30
30
  PostHolidayMode: " /api/holidaymode", // POST {"enabled":true,"startDate":"2025-11-11T17:42:24.913","endDate":"2026-06-01T09:18:00","units":{"ATA":["ef333525-2699-4290-af5a-2922566676da"]}}
31
31
  PutScheduleEnabled: "/api/cloudschedule/deviceid/enabled", // PUT {"enabled":true}
32
- PutSceneEnable: "/api/scene/sceneid/enable",
33
- PutSceneDisable: "/api/scene/sceneid/disable",
32
+ PutScene: {
33
+ Enable: "/api/scene/sceneid/enable",
34
+ Disable: "/api/scene/sceneid/disable",
35
+ },
34
36
  Referers: {
35
37
  GetPutScenes: "https://melcloudhome.com/scenes",
36
38
  PostHolidayMode: "https://melcloudhome.com/ata/deviceid/holidaymode",
@@ -221,6 +221,11 @@ class MelCloudAta extends EventEmitter {
221
221
  path = ApiUrlsHome.PutScheduleEnabled.replace('deviceid', deviceData.DeviceID);
222
222
  deviceData.Headers.Referer = ApiUrlsHome.Referers.PutScheduleEnabled.replace('deviceid', deviceData.DeviceID);
223
223
  break;
224
+ case 'scene':
225
+ method = 'PUT';
226
+ path = ApiUrlsHome.PutScene[deviceData.Scene.Enabled].replace('sceneid', deviceData.Scene.Id);
227
+ deviceData.Headers.Referer = ApiUrlsHome.Referers.GetPutScenes;
228
+ break;
224
229
  default:
225
230
  payload = {
226
231
  power: deviceData.Device.Power,
@@ -229,8 +234,8 @@ class MelCloudAta extends EventEmitter {
229
234
  operationMode: AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode],
230
235
  vaneHorizontalDirection: AirConditioner.VaneHorizontalDirectionMapEnumToString[deviceData.Device.VaneHorizontalDirection],
231
236
  vaneVerticalDirection: AirConditioner.VaneVerticalDirectionMapEnumToString[deviceData.Device.VaneVerticalDirection],
232
- temperatureIncrementOverride: deviceData.Device.HasHalfDegreeIncrements ? 0.5 : 1,
233
- inStandbyMode: deviceData.Device.InStandbyMode
237
+ temperatureIncrementOverride: null,
238
+ inStandbyMode: null
234
239
  };
235
240
  method = 'PUT';
236
241
  path = ApiUrlsHome.PutAta.replace('deviceid', deviceData.DeviceID);