homebridge-melcloud-control 4.5.4 → 4.5.5-beta.1
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 +10 -4
- package/src/melcloudhome.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.5.
|
|
4
|
+
"version": "4.5.5-beta.1",
|
|
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
|
@@ -447,7 +447,7 @@ class DeviceAta extends EventEmitter {
|
|
|
447
447
|
};
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
|
-
melCloudService.getCharacteristic(Characteristic.CoolingThresholdTemperature)
|
|
450
|
+
melCloudService.getCharacteristic(Characteristic.CoolingThresholdTemperature) // 16 - 31
|
|
451
451
|
.setProps({
|
|
452
452
|
minValue: this.accessory.minTempCoolDryAuto,
|
|
453
453
|
maxValue: this.accessory.maxTempCoolDryAuto,
|
|
@@ -468,7 +468,7 @@ class DeviceAta extends EventEmitter {
|
|
|
468
468
|
};
|
|
469
469
|
});
|
|
470
470
|
if (supportsHeat) {
|
|
471
|
-
melCloudService.getCharacteristic(Characteristic.HeatingThresholdTemperature)
|
|
471
|
+
melCloudService.getCharacteristic(Characteristic.HeatingThresholdTemperature) // 10 - 31
|
|
472
472
|
.setProps({
|
|
473
473
|
minValue: this.accessory.minTempHeat,
|
|
474
474
|
maxValue: this.accessory.maxTempHeat,
|
|
@@ -584,8 +584,8 @@ class DeviceAta extends EventEmitter {
|
|
|
584
584
|
});
|
|
585
585
|
melCloudServiceT.getCharacteristic(Characteristic.TargetTemperature)
|
|
586
586
|
.setProps({
|
|
587
|
-
minValue: this.accessory.
|
|
588
|
-
maxValue: this.accessory.
|
|
587
|
+
minValue: this.accessory.minTempCoolDryAuto,
|
|
588
|
+
maxValue: this.accessory.maxTempCoolDryAuto,
|
|
589
589
|
minStep: this.accessory.temperatureStep
|
|
590
590
|
})
|
|
591
591
|
.onGet(async () => {
|
|
@@ -594,6 +594,12 @@ class DeviceAta extends EventEmitter {
|
|
|
594
594
|
})
|
|
595
595
|
.onSet(async (value) => {
|
|
596
596
|
try {
|
|
597
|
+
if (deviceData.Device.OperationMode === 1 && value < this.accessory.minTempHeat) {
|
|
598
|
+
value = this.accessory.minTempHeat;
|
|
599
|
+
} else if (value < 16) {
|
|
600
|
+
value = 16;
|
|
601
|
+
}
|
|
602
|
+
|
|
597
603
|
deviceData.Device.SetTemperature = value;
|
|
598
604
|
if (this.logInfo) this.emit('info', `Set temperature: ${value}${this.accessory.temperatureUnit}`);
|
|
599
605
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, AirConditioner.EffectiveFlags.SetTemperature);
|
package/src/melcloudhome.js
CHANGED
|
@@ -330,7 +330,7 @@ class MelCloudHome extends EventEmitter {
|
|
|
330
330
|
})
|
|
331
331
|
.on('message', (message) => {
|
|
332
332
|
const parsedMessage = JSON.parse(message);
|
|
333
|
-
if (this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
|
|
333
|
+
if (!this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
|
|
334
334
|
if (parsedMessage.message === 'Forbidden') return;
|
|
335
335
|
|
|
336
336
|
this.emit('webSocket', parsedMessage);
|