homebridge-melcloud-control 4.5.5-beta.0 → 4.5.5-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/config.schema.json +9 -9
- package/package.json +1 -1
- package/src/deviceata.js +10 -4
package/config.schema.json
CHANGED
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"name": {
|
|
515
515
|
"title": "Name",
|
|
516
516
|
"type": "string",
|
|
517
|
-
"
|
|
517
|
+
"placeholder": "Preset",
|
|
518
518
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
519
519
|
"condition": {
|
|
520
520
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"name": {
|
|
608
608
|
"title": "Name",
|
|
609
609
|
"type": "string",
|
|
610
|
-
"
|
|
610
|
+
"placeholder": "Schedule",
|
|
611
611
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
612
612
|
"condition": {
|
|
613
613
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
"name": {
|
|
701
701
|
"title": "Name",
|
|
702
702
|
"type": "string",
|
|
703
|
-
"
|
|
703
|
+
"placeholder": "Scene",
|
|
704
704
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
705
705
|
"condition": {
|
|
706
706
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
@@ -1362,7 +1362,7 @@
|
|
|
1362
1362
|
"name": {
|
|
1363
1363
|
"title": "Name",
|
|
1364
1364
|
"type": "string",
|
|
1365
|
-
"
|
|
1365
|
+
"placeholder": "Preset",
|
|
1366
1366
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
1367
1367
|
"condition": {
|
|
1368
1368
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -1455,7 +1455,7 @@
|
|
|
1455
1455
|
"name": {
|
|
1456
1456
|
"title": "Name",
|
|
1457
1457
|
"type": "string",
|
|
1458
|
-
"
|
|
1458
|
+
"placeholder": "Schedule",
|
|
1459
1459
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
1460
1460
|
"condition": {
|
|
1461
1461
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
@@ -1548,7 +1548,7 @@
|
|
|
1548
1548
|
"name": {
|
|
1549
1549
|
"title": "Name",
|
|
1550
1550
|
"type": "string",
|
|
1551
|
-
"
|
|
1551
|
+
"placeholder": "Scene",
|
|
1552
1552
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
1553
1553
|
"condition": {
|
|
1554
1554
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
@@ -1980,7 +1980,7 @@
|
|
|
1980
1980
|
"name": {
|
|
1981
1981
|
"title": "Name",
|
|
1982
1982
|
"type": "string",
|
|
1983
|
-
"
|
|
1983
|
+
"placeholder": "Preset",
|
|
1984
1984
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
1985
1985
|
"condition": {
|
|
1986
1986
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -2073,7 +2073,7 @@
|
|
|
2073
2073
|
"name": {
|
|
2074
2074
|
"title": "Name",
|
|
2075
2075
|
"type": "string",
|
|
2076
|
-
"
|
|
2076
|
+
"placeholder": "Preset",
|
|
2077
2077
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
2078
2078
|
"condition": {
|
|
2079
2079
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
"name": {
|
|
2167
2167
|
"title": "Name",
|
|
2168
2168
|
"type": "string",
|
|
2169
|
-
"
|
|
2169
|
+
"placeholder": "Scene",
|
|
2170
2170
|
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
2171
2171
|
"condition": {
|
|
2172
2172
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
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.5-beta.
|
|
4
|
+
"version": "4.5.5-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/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);
|