homebridge-melcloud-control 4.2.2-beta.11 → 4.2.2-beta.13
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/README.md +6 -6
- package/config.schema.json +3 -3
- package/package.json +1 -1
- package/src/deviceata.js +2 -4
- package/src/deviceatw.js +2 -2
- package/src/deviceerv.js +4 -4
- package/src/melcloud.js +1 -4
- package/src/melcloudata.js +1 -3
- package/src/melcloudatw.js +1 -3
- package/src/melclouderv.js +1 -3
package/README.md
CHANGED
|
@@ -245,8 +245,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
245
245
|
| `ataDevices[].autoDryFanMode` | Here select the operatiing mode for `Auto`, if this mode is not supported, it will be disabled.. |
|
|
246
246
|
| `ataDevices[].temperatureSensor` | This enable extra `Room` temperature sensor to use with automations in HomeKit app. |
|
|
247
247
|
| `ataDevices[].temperatureOutdoorSensor` | This enable extra `Outdoor` temperature sensor to use with automations in HomeKit app. |
|
|
248
|
-
| `ataDevices[].inStandbySensor` | This enable `In Standby` sensor to use with automations in HomeKit app. |
|
|
249
|
-
| `ataDevices[].connectSensor` | This enable `Connect` sensor to use with automations in HomeKit app. |
|
|
248
|
+
| `ataDevices[].inStandbySensor` | This enable `In Standby Mode` sensor to use with automations in HomeKit app. |
|
|
249
|
+
| `ataDevices[].connectSensor` | This enable `Connect State` sensor to use with automations in HomeKit app. |
|
|
250
250
|
| `ataDevices[].errorSensor` | This enable `Error` sensor to use with automations in HomeKit app. |
|
|
251
251
|
| `ataDevices[].frostProtectionSupport` | This enable extra `Frost Protectio` control and sensors to use with automations in HomeKit app. |
|
|
252
252
|
| `ataDevices[].overheatProtectionSupport` | This enable extra `Overheat Protection` control and sensors to use with automations in HomeKit app. |
|
|
@@ -281,8 +281,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
281
281
|
| `atwDevices[].temperatureReturnWaterTankSensor` | This enable extra `Return Water Tank` temperature sensor to use with automations in HomeKit app. |
|
|
282
282
|
| `atwDevices[].temperatureFlowZone2Sensor` | This enable extra `Flow Zone 2` temperature sensor to use with automations in HomeKit app. |
|
|
283
283
|
| `atwDevices[].temperatureReturnZone2Sensor` | This enable extra `Return Zone 2` temperature sensor to use with automations in HomeKit app. |
|
|
284
|
-
| `atwDevices[].inStandbySensor` | This enable `In Standby` sensor to use with automations in HomeKit app. |
|
|
285
|
-
| `atwDevices[].connectSensor` | This enable `Connect` sensor to use with automations in HomeKit app. |
|
|
284
|
+
| `atwDevices[].inStandbySensor` | This enable `In Standby Mode` sensor to use with automations in HomeKit app. |
|
|
285
|
+
| `atwDevices[].connectSensor` | This enable `Connect State` sensor to use with automations in HomeKit app. |
|
|
286
286
|
| `atwDevices[].errorSensor` | This enable `Error` sensors to use with automations in HomeKit app. |
|
|
287
287
|
| `atwDevices[].holidayModeSupport` | This enable extra `Holiday Mode` control and sensors to use with automations in HomeKit app. |
|
|
288
288
|
| `atwDevices[].refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
@@ -308,8 +308,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
308
308
|
| `ervDevices[].temperatureSensor` | This enable extra `Room` temperature sensor to use with automations in HomeKit app. |
|
|
309
309
|
| `ervDevices[].temperatureOutdoorSensor` | This enable extra `Outdoor` temperature sensor to use with automations in HomeKit app. |
|
|
310
310
|
| `ervDevices[].temperatureSupplySensor` | This enable extra `Supply` temperature sensor to use with automations in HomeKit app. |
|
|
311
|
-
| `atwDevices[].inStandbySensor` | This enable `In Standby` sensor to use with automations in HomeKit app. |
|
|
312
|
-
| `ervDevices[].connectSensor` | This enable `Connect` sensor to use with automations in HomeKit app. |
|
|
311
|
+
| `atwDevices[].inStandbySensor` | This enable `In Standby Mode` sensor to use with automations in HomeKit app. |
|
|
312
|
+
| `ervDevices[].connectSensor` | This enable `Connect State` sensor to use with automations in HomeKit app. |
|
|
313
313
|
| `ervDevices[].errorSensor` | This enable `Error` sensors to use with automations in HomeKit app. |
|
|
314
314
|
| `ervDevices[].holidayModeSupport` | This enable extra `Holiday Mode` control and sensors to use with automations in HomeKit app. |
|
|
315
315
|
| `ervDevices[].refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
package/config.schema.json
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"title": "Connect",
|
|
406
406
|
"type": "boolean",
|
|
407
407
|
"default": false,
|
|
408
|
-
"description": "This enable connect sensor to use with automations in HomeKit app."
|
|
408
|
+
"description": "This enable connect state sensor to use with automations in HomeKit app."
|
|
409
409
|
},
|
|
410
410
|
"errorSensor": {
|
|
411
411
|
"title": "Error",
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
"title": "Connect",
|
|
1130
1130
|
"type": "boolean",
|
|
1131
1131
|
"default": false,
|
|
1132
|
-
"description": "This enable connect sensor to use with automations in HomeKit app."
|
|
1132
|
+
"description": "This enable connect state sensor to use with automations in HomeKit app."
|
|
1133
1133
|
},
|
|
1134
1134
|
"errorSensor": {
|
|
1135
1135
|
"title": "Error",
|
|
@@ -1613,7 +1613,7 @@
|
|
|
1613
1613
|
"title": "Connect",
|
|
1614
1614
|
"type": "boolean",
|
|
1615
1615
|
"default": false,
|
|
1616
|
-
"description": "This enable connect sensor to use with automations in HomeKit app."
|
|
1616
|
+
"description": "This enable connect state sensor to use with automations in HomeKit app."
|
|
1617
1617
|
},
|
|
1618
1618
|
"errorSensor": {
|
|
1619
1619
|
"title": "Error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.2.2-beta.
|
|
4
|
+
"version": "4.2.2-beta.13",
|
|
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
|
@@ -665,7 +665,7 @@ class DeviceAta extends EventEmitter {
|
|
|
665
665
|
this.inStandbyService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} In Standby`);
|
|
666
666
|
this.inStandbyService.getCharacteristic(Characteristic.ContactSensorState)
|
|
667
667
|
.onGet(async () => {
|
|
668
|
-
const state = this.accessory.
|
|
668
|
+
const state = this.accessory.inStandbyMode;
|
|
669
669
|
return state;
|
|
670
670
|
})
|
|
671
671
|
accessory.addService(this.inStandbyService);
|
|
@@ -1268,6 +1268,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1268
1268
|
const hideDryModeControl = deviceData.HideDryModeControl ?? false;
|
|
1269
1269
|
|
|
1270
1270
|
//device info
|
|
1271
|
+
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1271
1272
|
const supportsAutomaticFanSpeed = deviceData.Device.HasAutomaticFanSpeed ?? false;
|
|
1272
1273
|
const supportsAirDirectionFunction = deviceData.Device[supportAirDirectionKey];
|
|
1273
1274
|
const supportsSwingFunction = deviceData.Device[supportSwingKey];
|
|
@@ -1282,7 +1283,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1282
1283
|
const supportsCool1 = deviceData.Device[supportCoolKey];
|
|
1283
1284
|
const supportsCool = this.coolDryFanMode >= 1 && supportsCool1;
|
|
1284
1285
|
const numberOfFanSpeeds = supportsFanSpeed ? deviceData.Device.NumberOfFanSpeeds : 0;
|
|
1285
|
-
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1286
1286
|
const minTempHeat = 10;
|
|
1287
1287
|
const maxTempHeat = 31;
|
|
1288
1288
|
const minTempCoolDryAuto = 16;
|
|
@@ -1406,7 +1406,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1406
1406
|
if (this.logWarn) this.emit('warn', `Unknown operating mode: ${operationMode}`);
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
|
-
|
|
1410
1409
|
obj.currentOperationMode = !power ? 0 : (inStandbyMode ? 1 : obj.currentOperationMode);
|
|
1411
1410
|
obj.operationModeSetPropsMinValue = supportsAuto && supportsHeat ? 0 : !supportsAuto && supportsHeat ? 1 : supportsAuto && !supportsHeat ? 0 : 2;
|
|
1412
1411
|
obj.operationModeSetPropsMaxValue = 2
|
|
@@ -1491,7 +1490,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1491
1490
|
break;
|
|
1492
1491
|
}
|
|
1493
1492
|
|
|
1494
|
-
|
|
1495
1493
|
obj.currentOperationMode = !power ? 0 : obj.currentOperationMode;
|
|
1496
1494
|
obj.targetOperationMode = !power ? 0 : obj.targetOperationMode;
|
|
1497
1495
|
obj.operationModeSetPropsMinValue = 0
|
package/src/deviceatw.js
CHANGED
|
@@ -1077,7 +1077,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1077
1077
|
this.inStandbyService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} In Standby`);
|
|
1078
1078
|
this.inStandbyService.getCharacteristic(Characteristic.ContactSensorState)
|
|
1079
1079
|
.onGet(async () => {
|
|
1080
|
-
const state = this.accessory.
|
|
1080
|
+
const state = this.accessory.inStandbyMode;
|
|
1081
1081
|
return state;
|
|
1082
1082
|
})
|
|
1083
1083
|
accessory.addService(this.inStandbyService);
|
|
@@ -1514,6 +1514,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1514
1514
|
const holidayModeActive = deviceData.HolidayMode?.Active ?? false;
|
|
1515
1515
|
|
|
1516
1516
|
//device info
|
|
1517
|
+
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1517
1518
|
const supportsHeatPump = ![1, 2, 3, 4, 5, 6, 7, 15].includes(this.hideZone);
|
|
1518
1519
|
const supportsZone1 = ![2, 3, 4, 8, 9, 10, 11, 15].includes(this.hideZone);
|
|
1519
1520
|
const supportsHotWaterTank = ![3, 5, 6, 9, 10, 12, 13, 15].includes(this.hideZone) && deviceData.Device.HasHotWaterTank;
|
|
@@ -1525,7 +1526,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1525
1526
|
const minSetTemperature = deviceData.Device.MinSetTemperature ?? 10;
|
|
1526
1527
|
const maxSetTemperature = deviceData.Device.MaxSetTemperature ?? 30;
|
|
1527
1528
|
const maxTankTemperature = deviceData.Device.MaxTankTemperature ?? 70;
|
|
1528
|
-
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1529
1529
|
|
|
1530
1530
|
//zones
|
|
1531
1531
|
let currentZoneCase = 0;
|
package/src/deviceerv.js
CHANGED
|
@@ -699,7 +699,7 @@ class DeviceErv extends EventEmitter {
|
|
|
699
699
|
this.inStandbyService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} In Standby`);
|
|
700
700
|
this.inStandbyService.getCharacteristic(Characteristic.ContactSensorState)
|
|
701
701
|
.onGet(async () => {
|
|
702
|
-
const state = this.accessory.
|
|
702
|
+
const state = this.accessory.inStandbyMode;
|
|
703
703
|
return state;
|
|
704
704
|
})
|
|
705
705
|
accessory.addService(this.inStandbyService);
|
|
@@ -1067,6 +1067,7 @@ class DeviceErv extends EventEmitter {
|
|
|
1067
1067
|
const hideOutdoorTemperature = deviceData.HideOutdoorTemperature;
|
|
1068
1068
|
|
|
1069
1069
|
//device info
|
|
1070
|
+
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1070
1071
|
const supportsCoolOperationMode = deviceData.Device.HasCoolOperationMode ?? false;
|
|
1071
1072
|
const supportsHeatOperationMode = deviceData.Device.HasHeatOperationMode ?? false;
|
|
1072
1073
|
const supportsAutoOperationMode = deviceData.Device.HasAutoOperationMode ?? false;
|
|
@@ -1074,7 +1075,6 @@ class DeviceErv extends EventEmitter {
|
|
|
1074
1075
|
const supportsSupplyTemperature = deviceData.Device.HasSupplyTemperature ?? false;
|
|
1075
1076
|
const supportsOutdoorTemperature = deviceData.Device.HasOutdoorTemperature ?? false;
|
|
1076
1077
|
const supportsCO2Sensor = deviceData.Device.HasCO2Sensor ?? false;
|
|
1077
|
-
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1078
1078
|
const roomCO2Level = deviceData.Device.RoomCO2Level ?? false;
|
|
1079
1079
|
const roomCO2Detected = supportsCO2Sensor && roomCO2Level > 1000 ? true : false;
|
|
1080
1080
|
const supportsPM25Sensor = deviceData.Device.HasPM25Sensor ?? false;
|
|
@@ -1084,11 +1084,11 @@ class DeviceErv extends EventEmitter {
|
|
|
1084
1084
|
const supportsAutoVentilationMode = deviceData.Device.HasAutoVentilationMode ?? false;
|
|
1085
1085
|
const supportsBypassVentilationMode = deviceData.Device.HasBypassVentilationMode ?? false;
|
|
1086
1086
|
const supportsAutomaticFanSpeed = deviceData.Device.HasAutomaticFanSpeed ?? false;
|
|
1087
|
-
const coreMaintenanceRequired = deviceData.Device.CoreMaintenanceRequired;
|
|
1088
|
-
const filterMaintenanceRequired = deviceData.Device.FilterMaintenanceRequired;
|
|
1089
1087
|
const actualVentilationMode = deviceData.Device.ActualVentilationMode;
|
|
1090
1088
|
const numberOfFanSpeeds = deviceData.Device.NumberOfFanSpeeds;
|
|
1091
1089
|
const supportsFanSpeed = numberOfFanSpeeds > 0;
|
|
1090
|
+
const coreMaintenanceRequired = deviceData.Device.CoreMaintenanceRequired;
|
|
1091
|
+
const filterMaintenanceRequired = deviceData.Device.FilterMaintenanceRequired;
|
|
1092
1092
|
const temperatureIncrement = deviceData.Device[tempStepKey] ?? 1;
|
|
1093
1093
|
const minTempHeat = 10;
|
|
1094
1094
|
const maxTempHeat = 31;
|
package/src/melcloud.js
CHANGED
|
@@ -283,10 +283,7 @@ class MelCloud extends EventEmitter {
|
|
|
283
283
|
if (device.FrostProtection) device.FrostProtection = { ...capitalizeKeys(device.FrostProtection || {}) };
|
|
284
284
|
if (device.OverheatProtection) device.OverheatProtection = { ...capitalizeKeys(device.OverheatProtection || {}) };
|
|
285
285
|
if (device.HolidayMode) device.HolidayMode = { ...capitalizeKeys(device.HolidayMode || {}) };
|
|
286
|
-
|
|
287
|
-
if (Array.isArray(device.Schedule)) {
|
|
288
|
-
device.Schedule = device.Schedule.map(capitalizeKeysDeep);
|
|
289
|
-
}
|
|
286
|
+
if (Array.isArray(device.Schedule)) device.Schedule = device.Schedule.map(capitalizeKeysDeep);
|
|
290
287
|
|
|
291
288
|
// Usuń stare pola Settings i Capabilities
|
|
292
289
|
const { Settings, Capabilities, Id, GivenDisplayName, ...rest } = device;
|
package/src/melcloudata.js
CHANGED
|
@@ -102,9 +102,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
102
102
|
}, { indoor: {}, outdoor: {} });
|
|
103
103
|
|
|
104
104
|
//display info if units are not configured in MELCloud service
|
|
105
|
-
if (unitsCount === 0)
|
|
106
|
-
if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
107
|
-
};
|
|
105
|
+
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
108
106
|
|
|
109
107
|
//restFul
|
|
110
108
|
if (this.restFulEnabled) {
|
package/src/melcloudatw.js
CHANGED
|
@@ -93,9 +93,7 @@ class MelCloudAtw extends EventEmitter {
|
|
|
93
93
|
}, { indoor: {}, outdoor: {} });
|
|
94
94
|
|
|
95
95
|
//display info if units are not configured in MELCloud service
|
|
96
|
-
if (unitsCount === 0)
|
|
97
|
-
if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
98
|
-
};
|
|
96
|
+
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
99
97
|
|
|
100
98
|
//restFul
|
|
101
99
|
if (this.restFulEnabled) {
|
package/src/melclouderv.js
CHANGED
|
@@ -96,9 +96,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
96
96
|
}, { indoor: {}, outdoor: {} });
|
|
97
97
|
|
|
98
98
|
//display info if units are not configured in MELCloud service
|
|
99
|
-
if (unitsCount === 0)
|
|
100
|
-
if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
101
|
-
};
|
|
99
|
+
if (unitsCount === 0 && this.logDebug) if (this.logDebug) this.emit('debug', `Units are not configured in MELCloud service`);
|
|
102
100
|
|
|
103
101
|
//restFul
|
|
104
102
|
if (this.restFulEnabled) {
|