homebridge-melcloud-control 4.8.0 → 4.8.2

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
@@ -32,8 +32,10 @@ class MelCloudPlatform {
32
32
  //loop through accounts
33
33
  for (const account of config.accounts) {
34
34
  const { name, user, passwd, language, type } = account;
35
- if (!name || accountsName.includes(name) || !user || !passwd || !language || !type) {
36
- log.warn(`Account ${!name ? 'name missing' : (accountsName.includes(name) ? 'name duplicated' : name)} ${!user ? ', user missing' : ''}${!passwd ? ', password missing' : ''}${!language ? ', language missing' : ''}${!type ? ', type disabled' : ''} in config, will not be published in the Home app`);
35
+ if (type === 'disabled') continue;
36
+
37
+ if (!name || accountsName.includes(name) || !user || !passwd || !language) {
38
+ log.warn(`Account ${!name ? 'name missing' : (accountsName.includes(name) ? 'name duplicated' : name)} ${!user ? ', user missing' : ''}${!passwd ? ', password missing' : ''}${!language ? ', language missing' : ''} in config, will not be published in the Home app`);
37
39
  continue;
38
40
  }
39
41
  accountsName.push(name);
@@ -75,7 +77,7 @@ class MelCloudPlatform {
75
77
  //melcloud account
76
78
  let melCloudClass;
77
79
  let timmers = []
78
- switch (account.type) {
80
+ switch (type) {
79
81
  case 'melcloud':
80
82
  timmers = [{ name: 'checkDevicesList', sampling: accountRefreshInterval }];
81
83
  melCloudClass = new MelCloud(account, true);
@@ -182,7 +184,7 @@ class MelCloudPlatform {
182
184
  break;
183
185
  default:
184
186
  if (logLevel.warn) log.warn(`${name}, ${deviceTypeString}, ${deviceName}, received unknown device type: ${deviceType}.`);
185
- return;
187
+ continue;
186
188
  }
187
189
 
188
190
  deviceClass.on('devInfo', (info) => logLevel.devInfo && log.info(info))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.8.0",
4
+ "version": "4.8.2",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -35,11 +35,11 @@
35
35
  "node": "^20 || ^22 || ^24 || ^25"
36
36
  },
37
37
  "dependencies": {
38
- "@homebridge/plugin-ui-utils": "^2.2.0",
38
+ "@homebridge/plugin-ui-utils": "^2.2.1",
39
39
  "mqtt": "^5.15.0",
40
- "axios": "^1.13.5",
40
+ "axios": "^1.13.6",
41
41
  "express": "^5.2.1",
42
- "puppeteer": "^24.37.5",
42
+ "puppeteer": "^24.38.0",
43
43
  "ws": "^8.19.0"
44
44
  },
45
45
  "keywords": [
package/src/deviceata.js CHANGED
@@ -1756,11 +1756,11 @@ class DeviceAta extends EventEmitter {
1756
1756
  }
1757
1757
 
1758
1758
  //other sensors
1759
- if (this.temperatureRoomSensor) this.roomTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature);
1760
- if (this.temperatureOutdoorSensor) this.outdoorTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, outdoorTemperature);
1761
- if (this.inStandbySensor) this.inStandbyService?.updateCharacteristic(Characteristic.ContactSensorState, inStandbyMode);
1762
- if (this.connectSensor) this.connectService?.updateCharacteristic(Characteristic.ContactSensorState, isConnected);
1763
- if (this.errorSensor) this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
1759
+ if (this.temperatureRoomSensor && roomTemperature != null) this.roomTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature);
1760
+ if (this.temperatureOutdoorSensor && outdoorTemperature != null) this.outdoorTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, outdoorTemperature);
1761
+ if (this.inStandbySensor && inStandbyMode != null) this.inStandbyService?.updateCharacteristic(Characteristic.ContactSensorState, inStandbyMode);
1762
+ if (this.connectSensor && isConnected != null) this.connectService?.updateCharacteristic(Characteristic.ContactSensorState, isConnected);
1763
+ if (this.errorSensor && isInError != null) this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
1764
1764
 
1765
1765
  //frost protection
1766
1766
  if (this.frostProtectionSupport && frostProtectionEnabled !== null) {
package/src/deviceatw.js CHANGED
@@ -2422,10 +2422,10 @@ class DeviceAtw extends EventEmitter {
2422
2422
  this.accessory = obj;
2423
2423
 
2424
2424
  //other sensors
2425
- if (this.temperatureOutdoorSensor) this.outdoorTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, outdoorTemperature);
2426
- if (this.inStandbySensor) this.inStandbyService?.updateCharacteristic(Characteristic.ContactSensorState, inStandbyMode);
2427
- if (this.connectSensor) this.connectService?.updateCharacteristic(Characteristic.ContactSensorState, isConnected);
2428
- if (this.errorSensor) this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
2425
+ if (this.temperatureOutdoorSensor && outdoorTemperature != null) this.outdoorTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, outdoorTemperature);
2426
+ if (this.inStandbySensor && inStandbyMode != null) this.inStandbyService?.updateCharacteristic(Characteristic.ContactSensorState, inStandbyMode);
2427
+ if (this.connectSensor && isConnected != null) this.connectService?.updateCharacteristic(Characteristic.ContactSensorState, isConnected);
2428
+ if (this.errorSensor && isInError != null) this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
2429
2429
 
2430
2430
  //frost protection
2431
2431
  if (this.frostProtectionSupport && frostProtectionEnabled !== null) {