homebridge-melcloud-control 4.0.0-beta.163 → 4.0.0-beta.165
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 +1 -2
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.165",
|
|
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
|
@@ -283,7 +283,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
283
283
|
if (displayMode === 1 && deviceData.Device.OperationMode === 8) deviceData.Device.SetTemperature = (deviceData.Device.DefaultCoolingSetTemperature + deviceData.Device.DefaultHeatingSetTemperature) / 2;
|
|
284
284
|
|
|
285
285
|
// Convert values to strings
|
|
286
|
-
deviceData.Device.Power = String(deviceData.Device.Power);
|
|
287
286
|
deviceData.Device.SetTemperature = String(deviceData.Device.SetTemperature);
|
|
288
287
|
deviceData.Device.SetFanSpeed = String(deviceData.Device.SetFanSpeed);
|
|
289
288
|
deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString?.[deviceData.Device.OperationMode];
|
|
@@ -303,7 +302,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
303
302
|
}
|
|
304
303
|
};
|
|
305
304
|
|
|
306
|
-
this.emit('warn', JSON.stringify(
|
|
305
|
+
this.emit('warn', JSON.stringify(data, null, 2));
|
|
307
306
|
|
|
308
307
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
309
308
|
await axiosInstancePut.put(path, data);
|