homebridge-melcloud-control 4.0.0-beta.521 → 4.0.0-beta.523
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/deviceata.js +1 -1
- package/src/melcloudata.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.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.523",
|
|
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/deviceata.js
CHANGED
|
@@ -295,7 +295,7 @@ class DeviceAta extends EventEmitter {
|
|
|
295
295
|
if (!!state === deviceData.Device.Power) return;
|
|
296
296
|
|
|
297
297
|
try {
|
|
298
|
-
deviceData.Device.Power = state
|
|
298
|
+
deviceData.Device.Power = state ? true : false;
|
|
299
299
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, AirConditioner.EffectiveFlags.Power);
|
|
300
300
|
if (this.logInfo) this.emit('info', `Set power: ${state ? 'ON' : 'OFF'}`);
|
|
301
301
|
} catch (error) {
|
package/src/melcloudata.js
CHANGED
|
@@ -263,7 +263,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
263
263
|
VaneVerticalDirection: AirConditioner.VaneVerticalDirectionMapEnumToString[deviceData.Device.VaneVerticalDirection]
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
if (this.logDebug) this.emit('
|
|
266
|
+
if (!this.logDebug) this.emit('warn', `Send Data: ${JSON.stringify(settings.data, null, 2)}`);
|
|
267
267
|
|
|
268
268
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
269
269
|
await axiosInstancePut(path, settings);
|