homebridge-melcloud-control 3.8.0-beta.30 → 3.8.0-beta.31
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/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/src/deviceatw.js +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
20
|
|
|
21
21
|
## Changes
|
|
22
22
|
|
|
23
|
-
- add possibility to hide individual zone
|
|
23
|
+
- add possibility to hide individual zone accessory in Home app for ATW device, solved[#194](https://github.com/grzegorz914/homebridge-melcloud-control/issues/194)
|
|
24
|
+
- publish sensors independent from hiden zones for ATW devices
|
|
24
25
|
- stability and performance improvements
|
|
25
26
|
- bump dependencies
|
|
26
27
|
- config schema updated
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.8.0-beta.
|
|
4
|
+
"version": "3.8.0-beta.31",
|
|
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/deviceatw.js
CHANGED
|
@@ -1376,8 +1376,8 @@ class DeviceAtw extends EventEmitter {
|
|
|
1376
1376
|
let currentZoneSensorCase = 0;
|
|
1377
1377
|
const caseHeatPumpSensor = this.temperatureSensor || this.temperatureSensorFlow || this.temperatureSensorReturn ? currentZoneSensorCase++ : -1;
|
|
1378
1378
|
const caseZone1Sensor = this.temperatureSensorFlowZone1 || this.temperatureSensorReturnZone1 ? currentZoneSensorCase++ : -1;
|
|
1379
|
-
const caseHotWaterSensor =
|
|
1380
|
-
const caseZone2Sensor =
|
|
1379
|
+
const caseHotWaterSensor = (this.temperatureSensorFlowWaterTank || this.temperatureSensorReturnWaterTank) && deviceData.Device.HasHotWaterTank ? currentZoneSensorCase++ : -1;
|
|
1380
|
+
const caseZone2Sensor = (this.temperatureSensorFlowZone1 || this.temperatureSensorReturnZone1) && deviceData.Device.HasZone2 ? currentZoneSensorCase++ : -1;
|
|
1381
1381
|
const zonesSensorsCount = currentZoneSensorCase;
|
|
1382
1382
|
|
|
1383
1383
|
//heat pump
|
|
@@ -1825,20 +1825,24 @@ class DeviceAtw extends EventEmitter {
|
|
|
1825
1825
|
if (!this.disableLogInfo) {
|
|
1826
1826
|
switch (i) {
|
|
1827
1827
|
case caseHeatPumpSensor: //Heat Pump - HEAT, COOL, OFF
|
|
1828
|
-
const info =
|
|
1828
|
+
const info = outdoorTemperature !== null ? this.emit('message', `${heatPumpName}, Outdoor temperature: ${outdoorTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
1829
|
+
const info0 = flowTemperatureHeatPump !== null ? this.emit('message', `${heatPumpName}, Flow temperature: ${flowTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
1829
1830
|
const info1 = returnTemperatureHeatPump !== null ? this.emit('message', `${heatPumpName}, Return temperature: ${returnTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
1830
1831
|
break;
|
|
1831
1832
|
case caseZone1Sensor: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1832
|
-
const info2 =
|
|
1833
|
-
const info3 =
|
|
1833
|
+
const info2 = roomTemperatureZone1 !== null ? this.emit('message', `${heatPumpName}, Room temperature: ${roomTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
|
|
1834
|
+
const info3 = flowTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Flow temperature: ${flowTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
|
|
1835
|
+
const info4 = returnTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Return temperature: ${returnTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
|
|
1834
1836
|
break;
|
|
1835
1837
|
case caseHotWaterSensor: //Hot Water - AUTO, HEAT NOW
|
|
1836
|
-
const
|
|
1837
|
-
const
|
|
1838
|
+
const info5 = tankWaterTemperature !== null ? this.emit('message', `${heatPumpName}, Water tank temperature: ${tankWaterTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
1839
|
+
const info6 = flowTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Flow temperature: ${flowTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
|
|
1840
|
+
const info7 = returnTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Return temperature: ${returnTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
|
|
1838
1841
|
break;
|
|
1839
1842
|
case caseZone2Sensor: //Zone 2 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1840
|
-
const
|
|
1841
|
-
const
|
|
1843
|
+
const info8 = roomTemperatureZone2 !== null ? this.emit('message', `${heatPumpName}, Room temperature: ${roomTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
|
|
1844
|
+
const info9 = flowTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Flow temperature: ${flowTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
|
|
1845
|
+
const info10 = roomTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Return temperature: ${roomTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
|
|
1842
1846
|
break;
|
|
1843
1847
|
};
|
|
1844
1848
|
};
|