homebridge-melcloud-control 4.3.2-beta.1 → 4.3.2-beta.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.2-beta.1",
4
+ "version": "4.3.2-beta.3",
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
@@ -1868,7 +1868,7 @@ class DeviceAta extends EventEmitter {
1868
1868
  if (supportsSwingFunction) this.emit('info', `Air direction: ${AirConditioner.AirDirectionMapEnumToString[obj.currentSwingMode]}`);
1869
1869
  this.emit('info', `Temperature display unit: ${obj.temperatureUnit}`);
1870
1870
  this.emit('info', `Lock physical controls: ${obj.lockPhysicalControl ? 'Locked' : 'Unlocked'}`);
1871
- if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.rssi}dBm`);
1871
+ if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.Rssi}dBm`);
1872
1872
  };
1873
1873
  })
1874
1874
  .on('success', (success) => this.emit('success', success))
package/src/deviceatw.js CHANGED
@@ -2006,7 +2006,7 @@ class DeviceAtw extends EventEmitter {
2006
2006
  this.emit('info', `${heatPumpName},'Outdoor temperature: ${roomTemperature}${obj.temperatureUnit}`);
2007
2007
  this.emit('info', `${heatPumpName}, Temperature display unit: ${obj.temperatureUnit}`);
2008
2008
  this.emit('info', `${heatPumpName}, Lock physical controls: ${lockPhysicalControl ? 'Locked' : 'Unlocked'}`);
2009
- if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.rssi}dBm`);
2009
+ if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.Rssi}dBm`);
2010
2010
  break;
2011
2011
  case caseZone1: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
2012
2012
  operationModeText = idleZone1 ? HeatPump.ZoneOperationMapEnumToString[6] : HeatPump.ZoneOperationMapEnumToString[operationModeZone1];
package/src/deviceerv.js CHANGED
@@ -1571,7 +1571,7 @@ class DeviceErv extends EventEmitter {
1571
1571
  if (supportsCO2Sensor) this.emit('info', `CO2 level: ${roomCO2Level} ppm`);
1572
1572
  if (supportsPM25Sensor) this.emit('info', `PM2.5 air quality: ${Ventilation.PM25AirQualityMapEnumToString[pM25AirQuality]}`);
1573
1573
  if (supportsPM25Sensor) this.emit('info', `PM2.5 level: ${pM25Level} µg/m`);
1574
- if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.rssi}dBm`);
1574
+ if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.Rssi}dBm`);
1575
1575
  };
1576
1576
  })
1577
1577
  .on('success', (success) => this.emit('success', success))
@@ -154,16 +154,16 @@ class MelCloudAta extends EventEmitter {
154
154
  updateDeviceState = true;
155
155
  break;
156
156
  case 'unitWifiSignalChanged':
157
- Object.assign(deviceData, messageData.rssi);
157
+ deviceData.Rssi = messageData.rssi;
158
158
  updateDeviceState = true;
159
159
  break;
160
160
  default:
161
- if (this.logDebug) this.emit('debug', `Unit ${unitId}, received unknown message type: ${stringifyMessage}`);
161
+ if (!this.logDebug) this.emit('debug', `Unit ${unitId}, received unknown message type: ${stringifyMessage}`);
162
162
  return;
163
163
  }
164
164
  break;
165
165
  default:
166
- if (this.logDebug) this.emit('debug', `Incoming unknown unit id: ${stringifyMessage}`);
166
+ if (!this.logDebug) this.emit('debug', `Incoming unknown unit id: ${stringifyMessage}`);
167
167
  return;
168
168
  }
169
169