homebridge-melcloud-control 4.2.5-beta.4 → 4.2.5-beta.5
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/README.md +3 -3
- package/package.json +1 -1
- package/src/melcloudata.js +2 -3
- package/src/melcloudatw.js +2 -3
- package/src/melclouderv.js +2 -3
package/README.md
CHANGED
|
@@ -272,7 +272,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
272
272
|
| `ataDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
273
273
|
| `ataDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
274
274
|
| `ataDevices[].buttonsSensors[].mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
|
|
275
|
-
| `ataDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 -
|
|
275
|
+
| `ataDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
|
|
276
276
|
| `ataDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
277
277
|
| `atwDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
278
278
|
| `atwDevices[].id` | Read only data, do not change it. |
|
|
@@ -309,7 +309,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
309
309
|
| `atwDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
310
310
|
| `atwDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
311
311
|
| `atwDevices[].buttonsSensors[].mode` | Here select button mode. |
|
|
312
|
-
| `atwDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 -
|
|
312
|
+
| `atwDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
|
|
313
313
|
| `atwDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
314
314
|
| `ervDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
315
315
|
| `ervDevices[].id` | Read only data, do not change it. |
|
|
@@ -339,7 +339,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
339
339
|
| `ervDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
340
340
|
| `ervDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
341
341
|
| `ervDevices[].buttonsSensors[].mode` | Here select button mode. |
|
|
342
|
-
| `ervDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 -
|
|
342
|
+
| `ervDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
|
|
343
343
|
| `ervDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
344
344
|
| `refreshInterval` | Here set the background account data refresh time in (sec) , only for old MELCLoud, default `120s`. |
|
|
345
345
|
| `log{}` | Log object. |
|
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.5-beta.
|
|
4
|
+
"version": "4.2.5-beta.5",
|
|
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/melcloudata.js
CHANGED
|
@@ -54,11 +54,10 @@ class MelCloudAta extends EventEmitter {
|
|
|
54
54
|
//read device info from file
|
|
55
55
|
const devicesData = await this.functions.readData(this.devicesFile, true);
|
|
56
56
|
this.headers = devicesData.Headers;
|
|
57
|
-
const scenes = devicesData.Scenes ?? [];
|
|
58
57
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|
|
59
58
|
|
|
60
59
|
if (this.accountType === 'melcloudhome') {
|
|
61
|
-
deviceData.Scenes =
|
|
60
|
+
deviceData.Scenes = devicesData.Scenes ?? [];
|
|
62
61
|
deviceData.Device.OperationMode = AirConditioner.OperationModeMapStringToEnum[deviceData.Device.OperationMode] ?? deviceData.Device.OperationMode;
|
|
63
62
|
deviceData.Device.ActualFanSpeed = AirConditioner.FanSpeedMapStringToEnum[deviceData.Device.ActualFanSpeed] ?? deviceData.Device.ActualFanSpeed;
|
|
64
63
|
deviceData.Device.SetFanSpeed = AirConditioner.FanSpeedMapStringToEnum[deviceData.Device.SetFanSpeed] ?? deviceData.Device.SetFanSpeed;
|
|
@@ -244,7 +243,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
244
243
|
};
|
|
245
244
|
method = 'PUT';
|
|
246
245
|
path = ApiUrlsHome.PutAta.replace('deviceid', deviceData.DeviceID);
|
|
247
|
-
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings
|
|
246
|
+
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
248
247
|
break
|
|
249
248
|
}
|
|
250
249
|
|
package/src/melcloudatw.js
CHANGED
|
@@ -54,11 +54,10 @@ class MelCloudAtw extends EventEmitter {
|
|
|
54
54
|
//read device info from file
|
|
55
55
|
const devicesData = await this.functions.readData(this.devicesFile, true);
|
|
56
56
|
this.headers = devicesData.Headers;
|
|
57
|
-
const scenes = devicesData.Scenes ?? [];
|
|
58
57
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|
|
59
58
|
|
|
60
59
|
if (this.accountType === 'melcloudhome') {
|
|
61
|
-
deviceData.Scenes =
|
|
60
|
+
deviceData.Scenes = devicesData.Scenes ?? [];
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
const safeConfig = {
|
|
@@ -221,7 +220,7 @@ class MelCloudAtw extends EventEmitter {
|
|
|
221
220
|
};
|
|
222
221
|
method = 'PUT';
|
|
223
222
|
path = ApiUrlsHome.PutAtw.replace('deviceid', deviceData.DeviceID);
|
|
224
|
-
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings
|
|
223
|
+
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
225
224
|
break
|
|
226
225
|
}
|
|
227
226
|
|
package/src/melclouderv.js
CHANGED
|
@@ -54,11 +54,10 @@ class MelCloudErv extends EventEmitter {
|
|
|
54
54
|
//read device info from file
|
|
55
55
|
const devicesData = await this.functions.readData(this.devicesFile, true);
|
|
56
56
|
this.headers = devicesData.Headers;
|
|
57
|
-
const scenes = devicesData.Scenes ?? [];
|
|
58
57
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|
|
59
58
|
|
|
60
59
|
if (this.accountType === 'melcloudhome') {
|
|
61
|
-
deviceData.Scenes =
|
|
60
|
+
deviceData.Scenes = devicesData.Scenes ?? [];
|
|
62
61
|
|
|
63
62
|
//read default temps
|
|
64
63
|
const temps = await this.functions.readData(this.defaultTempsFile, true);
|
|
@@ -228,7 +227,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
228
227
|
};
|
|
229
228
|
method = 'PUT';
|
|
230
229
|
path = ApiUrlsHome.PutErv.replace('deviceid', deviceData.DeviceID);
|
|
231
|
-
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings
|
|
230
|
+
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
232
231
|
break
|
|
233
232
|
}
|
|
234
233
|
|