homebridge-melcloud-control 4.0.0-beta.68 → 4.0.0-beta.69

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.0.0-beta.68",
4
+ "version": "4.0.0-beta.69",
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
@@ -16,6 +16,7 @@ class DeviceAtw extends EventEmitter {
16
16
  AccessoryUUID = api.hap.uuid;
17
17
 
18
18
  //account config
19
+ this.account = account;
19
20
  this.device = device;
20
21
  this.displayMode = device.displayMode;
21
22
  this.hideZone = device.hideZone;
@@ -1284,7 +1285,7 @@ class DeviceAtw extends EventEmitter {
1284
1285
  async start() {
1285
1286
  try {
1286
1287
  //melcloud device
1287
- this.melCloudAtw = new MelCloudAtw(this.device, this.contextKey, this.devicesFile)
1288
+ this.melCloudAtw = new MelCloudAtw(this.account, this.device, this.contextKey, this.devicesFile)
1288
1289
  .on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion, hasHotWaterTank, hasZone2) => {
1289
1290
  if (this.logDeviceInfo && this.displayDeviceInfo) {
1290
1291
  this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
package/src/deviceerv.js CHANGED
@@ -16,6 +16,7 @@ class DeviceErv extends EventEmitter {
16
16
  AccessoryUUID = api.hap.uuid;
17
17
 
18
18
  //account config
19
+ this.account = account;
19
20
  this.device = device;
20
21
  this.displayMode = device.displayMode;
21
22
  this.temperatureSensor = device.temperatureSensor || false;
@@ -839,7 +840,7 @@ class DeviceErv extends EventEmitter {
839
840
  async start() {
840
841
  try {
841
842
  //melcloud device
842
- this.melCloudErv = new MelCloudErv(this.device, this.contextKey, this.devicesFile)
843
+ this.melCloudErv = new MelCloudErv(this.account, this.device, this.contextKey, this.devicesFile)
843
844
  .on('deviceInfo', (manufacturer, modelIndoor, modelOutdoor, serialNumber, firmwareAppVersion) => {
844
845
  if (this.logDeviceInfo && this.displayDeviceInfo) {
845
846
  this.emit('devInfo', `---- ${this.deviceTypeText}: ${this.deviceName} ----`);
@@ -8,6 +8,7 @@ import { ApiUrls } from './constants.js';
8
8
  class MelCloudAtw extends EventEmitter {
9
9
  constructor(device, contextKey, devicesFile) {
10
10
  super();
11
+ this.accountType = account.displayType
11
12
  this.deviceId = device.id;
12
13
  this.logWarn = device.log?.warn;
13
14
  this.logDebug = device.log?.debug;
@@ -8,6 +8,7 @@ import { ApiUrls } from './constants.js';
8
8
  class MelCloudErv extends EventEmitter {
9
9
  constructor(device, contextKey, devicesFile) {
10
10
  super();
11
+ this.accountType = account.displayType
11
12
  this.deviceId = device.id;
12
13
  this.logWarn = device.log?.warn;
13
14
  this.logDebug = device.log?.debug;