homebridge-melcloud-control 3.8.0-beta.30 → 3.8.0-beta.32

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 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/hot water tank accessory in Home app, solved[#194](https://github.com/grzegorz914/homebridge-melcloud-control/issues/194)
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.30",
4
+ "version": "3.8.0-beta.32",
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
@@ -1333,6 +1333,7 @@ class DeviceAtw extends EventEmitter {
1333
1333
  this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
1334
1334
  this.emit('devInfo', `Manufacturer: ${manufacturer}`);
1335
1335
  this.emit('devInfo', '----------------------------------');
1336
+ this.emit('devInfo', `Zone 1: Yes`);
1336
1337
  this.emit('devInfo', `Hot Water Tank: ${hasHotWaterTank ? 'Yes' : 'No'}`);
1337
1338
  this.emit('devInfo', `Zone 2: ${hasZone2 ? 'Yes' : 'No'}`);
1338
1339
  this.emit('devInfo', '----------------------------------');
@@ -1376,8 +1377,8 @@ class DeviceAtw extends EventEmitter {
1376
1377
  let currentZoneSensorCase = 0;
1377
1378
  const caseHeatPumpSensor = this.temperatureSensor || this.temperatureSensorFlow || this.temperatureSensorReturn ? currentZoneSensorCase++ : -1;
1378
1379
  const caseZone1Sensor = this.temperatureSensorFlowZone1 || this.temperatureSensorReturnZone1 ? currentZoneSensorCase++ : -1;
1379
- const caseHotWaterSensor = deviceData.Device.HasHotWaterTank && (this.temperatureSensorFlowWaterTank || this.temperatureSensorReturnWaterTank) ? currentZoneSensorCase++ : -1;
1380
- const caseZone2Sensor = deviceData.Device.HasZone2 && (this.temperatureSensorFlowZone1 || this.temperatureSensorReturnZone1) ? currentZoneSensorCase++ : -1;
1380
+ const caseHotWaterSensor = (this.temperatureSensorFlowWaterTank || this.temperatureSensorReturnWaterTank) && deviceData.Device.HasHotWaterTank ? currentZoneSensorCase++ : -1;
1381
+ const caseZone2Sensor = (this.temperatureSensorFlowZone1 || this.temperatureSensorReturnZone1) && deviceData.Device.HasZone2 ? currentZoneSensorCase++ : -1;
1381
1382
  const zonesSensorsCount = currentZoneSensorCase;
1382
1383
 
1383
1384
  //heat pump
@@ -1825,20 +1826,24 @@ class DeviceAtw extends EventEmitter {
1825
1826
  if (!this.disableLogInfo) {
1826
1827
  switch (i) {
1827
1828
  case caseHeatPumpSensor: //Heat Pump - HEAT, COOL, OFF
1828
- const info = flowTemperatureHeatPump !== null ? this.emit('message', `${heatPumpName}, Flow temperature: ${flowTemperature}${this.accessory.temperatureUnit}`) : false;
1829
+ const info = outdoorTemperature !== null ? this.emit('message', `${heatPumpName}, Outdoor temperature: ${outdoorTemperature}${this.accessory.temperatureUnit}`) : false;
1830
+ const info0 = flowTemperatureHeatPump !== null ? this.emit('message', `${heatPumpName}, Flow temperature: ${flowTemperature}${this.accessory.temperatureUnit}`) : false;
1829
1831
  const info1 = returnTemperatureHeatPump !== null ? this.emit('message', `${heatPumpName}, Return temperature: ${returnTemperature}${this.accessory.temperatureUnit}`) : false;
1830
1832
  break;
1831
1833
  case caseZone1Sensor: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
1832
- const info2 = flowTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Flow temperature: ${flowTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
1833
- const info3 = returnTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Return temperature: ${returnTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
1834
+ const info2 = roomTemperatureZone1 !== null ? this.emit('message', `${heatPumpName}, Room temperature: ${roomTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
1835
+ const info3 = flowTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Flow temperature: ${flowTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
1836
+ const info4 = returnTemperatureZone1 !== null ? this.emit('message', `${zone1Name}, Return temperature: ${returnTemperatureZone1}${this.accessory.temperatureUnit}`) : false;
1834
1837
  break;
1835
1838
  case caseHotWaterSensor: //Hot Water - AUTO, HEAT NOW
1836
- const info4 = flowTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Flow temperature: ${flowTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
1837
- const info5 = returnTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Return temperature: ${returnTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
1839
+ const info5 = tankWaterTemperature !== null ? this.emit('message', `${heatPumpName}, Water tank temperature: ${tankWaterTemperature}${this.accessory.temperatureUnit}`) : false;
1840
+ const info6 = flowTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Flow temperature: ${flowTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
1841
+ const info7 = returnTemperatureWaterTank !== null ? this.emit('message', `${hotWaterName}, Return temperature: ${returnTemperatureWaterTank}${this.accessory.temperatureUnit}`) : false;
1838
1842
  break;
1839
1843
  case caseZone2Sensor: //Zone 2 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
1840
- const info6 = flowTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Flow temperature: ${flowTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
1841
- const info7 = roomTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Return temperature: ${roomTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
1844
+ const info8 = roomTemperatureZone2 !== null ? this.emit('message', `${heatPumpName}, Room temperature: ${roomTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
1845
+ const info9 = flowTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Flow temperature: ${flowTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
1846
+ const info10 = roomTemperatureZone2 !== null ? this.emit('message', `${zone2Name}, Return temperature: ${roomTemperatureZone2}${this.accessory.temperatureUnit}`) : false;
1842
1847
  break;
1843
1848
  };
1844
1849
  };