homebridge-melcloud-control 4.2.5-beta.6 → 4.2.5-beta.7
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 +1 -1
- package/src/melcloudata.js +5 -5
- package/src/melcloudatw.js +1 -1
- package/src/melclouderv.js +1 -1
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.7",
|
|
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
|
@@ -56,7 +56,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
56
56
|
this.axiosInstance = axios.create({
|
|
57
57
|
baseURL: this.baseURL,
|
|
58
58
|
timeout: 30000,
|
|
59
|
-
headers: devicesData.Headers
|
|
59
|
+
headers: devicesData.Headers
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|
|
@@ -226,7 +226,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
226
226
|
method = 'PUT';
|
|
227
227
|
const state = flagData.Enabled ? 'Enable' : 'Disable';
|
|
228
228
|
path = ApiUrlsHome.PutScene[state].replace('sceneid', flagData.Id);
|
|
229
|
-
this.headers.Referer = ApiUrlsHome.Referers.GetPutScenes;
|
|
229
|
+
//this.headers.Referer = ApiUrlsHome.Referers.GetPutScenes;
|
|
230
230
|
break;
|
|
231
231
|
default:
|
|
232
232
|
payload = {
|
|
@@ -241,12 +241,12 @@ class MelCloudAta extends EventEmitter {
|
|
|
241
241
|
};
|
|
242
242
|
method = 'PUT';
|
|
243
243
|
path = ApiUrlsHome.PutAta.replace('deviceid', deviceData.DeviceID);
|
|
244
|
-
this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
244
|
+
//this.headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
|
|
245
245
|
break
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
this.headers['Content-Type'] = 'application/json; charset=utf-8';
|
|
249
|
-
this.headers.Origin = ApiUrlsHome.Origin;
|
|
248
|
+
//this.headers['Content-Type'] = 'application/json; charset=utf-8';
|
|
249
|
+
//this.headers.Origin = ApiUrlsHome.Origin;
|
|
250
250
|
if (this.logDebug) this.emit('debug', `Send Data: ${JSON.stringify(payload, null, 2)}, Headers: ${JSON.stringify(this.headers, null, 2)}`);
|
|
251
251
|
await this.axiosInstance(path, { method: method, data: payload });
|
|
252
252
|
this.updateData(deviceData);
|
package/src/melcloudatw.js
CHANGED
|
@@ -55,7 +55,7 @@ class MelCloudAtw extends EventEmitter {
|
|
|
55
55
|
this.axiosInstance = axios.create({
|
|
56
56
|
baseURL: this.baseURL,
|
|
57
57
|
timeout: 30000,
|
|
58
|
-
headers: devicesData.Headers
|
|
58
|
+
headers: devicesData.Headers
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|
package/src/melclouderv.js
CHANGED
|
@@ -55,7 +55,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
55
55
|
this.axiosInstance = axios.create({
|
|
56
56
|
baseURL: this.baseURL,
|
|
57
57
|
timeout: 30000,
|
|
58
|
-
headers: devicesData.Headers
|
|
58
|
+
headers: devicesData.Headers
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
const deviceData = devicesData.Devices.find(device => device.DeviceID === this.deviceId);
|