homebridge-melcloud-control 4.3.11-beta.1 → 4.3.11-beta.2
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 +2 -2
- 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.3.11-beta.
|
|
4
|
+
"version": "4.3.11-beta.2",
|
|
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
|
@@ -149,7 +149,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
149
149
|
}, { indoor: {}, outdoor: {} });
|
|
150
150
|
|
|
151
151
|
//display info if units are not configured in MELCloud service
|
|
152
|
-
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
152
|
+
if (this.accountType === 'melcloud' && unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
153
153
|
|
|
154
154
|
//filter info
|
|
155
155
|
const { Device: _ignored, ...info } = deviceData;
|
|
@@ -328,7 +328,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
328
328
|
//sens payload
|
|
329
329
|
headers['Content-Type'] = 'application/json; charset=utf-8';
|
|
330
330
|
headers.Origin = ApiUrlsHome.Origin;
|
|
331
|
-
if (this.logDebug) this.emit('debug', `Send Data: ${JSON.stringify(payload, null, 2)}`);
|
|
331
|
+
if (!this.logDebug) this.emit('debug', `Send Data: ${JSON.stringify(payload, null, 2)}`);
|
|
332
332
|
|
|
333
333
|
await axios(path, {
|
|
334
334
|
method: method,
|
package/src/melcloudatw.js
CHANGED
|
@@ -136,7 +136,7 @@ class MelCloudAtw extends EventEmitter {
|
|
|
136
136
|
}, { indoor: {}, outdoor: {} });
|
|
137
137
|
|
|
138
138
|
//display info if units are not configured in MELCloud service
|
|
139
|
-
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
139
|
+
if (this.accountType === 'melcloud' && unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
140
140
|
|
|
141
141
|
//filter info
|
|
142
142
|
const { Device: _ignored, ...info } = deviceData;
|
package/src/melclouderv.js
CHANGED
|
@@ -135,7 +135,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
135
135
|
}, { indoor: {}, outdoor: {} });
|
|
136
136
|
|
|
137
137
|
//display info if units are not configured in MELCloud service
|
|
138
|
-
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
138
|
+
if (this.accountType === 'melcloud' && unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
139
139
|
|
|
140
140
|
//filter info
|
|
141
141
|
const { Device: _ignored, ...info } = deviceData;
|