homebridge-melcloud-control 3.1.4-beta.5 → 3.1.4-beta.7

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/index.js CHANGED
@@ -144,12 +144,12 @@ class MelCloudPlatform {
144
144
  //Heat Pump 1
145
145
  for (const device of account.atwDevices) {
146
146
  //chack device from config exist on melcloud
147
+ const deviceId = device.id;
147
148
  const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === device.id);
148
149
  if (!deviceExistInMelCloud || device.displayMode === 0) {
149
150
  continue;
150
151
  };
151
152
 
152
- const deviceId = device.id.toString();
153
153
  const deviceName = device.name;
154
154
  const deviceTypeText = device.typeString;
155
155
  const heatPump = new DeviceAtw(api, account, melCloud, device, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountInfoFile, devicesFile, deviceRefreshInterval)
@@ -182,12 +182,12 @@ class MelCloudPlatform {
182
182
  //Energy Recovery Ventilation 3
183
183
  for (const device of account.ervDevices) {
184
184
  //chack device from config exist on melcloud
185
+ const deviceId = device.id;
185
186
  const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === device.id);
186
187
  if (!deviceExistInMelCloud || device.displayMode === 0) {
187
188
  continue;
188
189
  };
189
190
 
190
- const deviceId = device.id.toString();
191
191
  const deviceName = device.name;
192
192
  const deviceTypeText = device.typeString;
193
193
  const energyRecoveryVentilation = new DeviceErv(api, account, device, melCloud, accountInfo, contextKey, accountName, deviceId, deviceName, deviceTypeText, accountInfoFile, devicesFile, deviceRefreshInterval)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.1.4-beta.5",
4
+ "version": "3.1.4-beta.7",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -58,7 +58,7 @@ class MelCloudAta extends EventEmitter {
58
58
 
59
59
  //read device info from file
60
60
  const devicesData = await this.readData(devicesFile);
61
- const debug1 = !debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;
61
+ const debug1 = !debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(devicesData, null, 2)}`) : false;
62
62
  const deviceData = devicesData.find((device) => device.DeviceID === deviceId);
63
63
 
64
64
  if (!deviceData) {
@@ -386,7 +386,7 @@ class MelCloudAtw extends EventEmitter {
386
386
 
387
387
  //device state
388
388
  const deviceState = {
389
- DeviceId: deviceId.toString(),
389
+ DeviceId: deviceId,
390
390
  EffectiveFlags: effectiveFlags,
391
391
  SetTemperatureZone1: setTemperatureZone1,
392
392
  SetTemperatureZone2: setTemperatureZone2,
@@ -313,7 +313,7 @@ class MelCloudErv extends EventEmitter {
313
313
 
314
314
  //device state
315
315
  const deviceState = {
316
- DeviceId: deviceId.toString(),
316
+ DeviceId: deviceId,
317
317
  EffectiveFlags: effectiveFlags,
318
318
  RoomTemperature: roomTemperature,
319
319
  SupplyTemperature: supplyTemperature,