homebridge-melcloud-control 3.8.0-beta.0 → 3.8.0-beta.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/CHANGELOG.md CHANGED
@@ -16,6 +16,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
16
  - do not configure it manually, always using Config UI X
17
17
  - required Homebridge v2.0.0 and above
18
18
 
19
+ ## [3.8.0] - (01.05.2025)
20
+
21
+ ## Changes
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)
24
+ - bump dependencies
25
+ - config schema updated
26
+ - redme updated
27
+ - other small fixes
28
+ - cleanup
29
+
19
30
  ## [3.7.5] - (25.03.2025)
20
31
 
21
32
  ## Changes
package/README.md CHANGED
@@ -234,6 +234,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
234
234
  | `atwDevices.typeString` | Read only data, do not change it. |
235
235
  | `atwDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
236
236
  | `atwDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
237
+ | `atwDevices.hideZone` | Here select which zone need to be hidden `None/Disabled`, `Zone 1`, `Zone 2`, `Zone 1/2`, `Hot Water`, `Zone 1/Hot Water`, `Zone 2/Hot Water`, `Zone 1/2/Hot Water`. |
237
238
  | `atwDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
238
239
  | `atwDevices.temperatureSensorFlow` | This enable extra `Flow` temperature sensors to use with automations in HomeKit app. |
239
240
  | `atwDevices.temperatureSensorReturn` | This enable extra `Return` temperature sensors to use with automations in HomeKit app. |
@@ -1895,8 +1895,8 @@
1895
1895
  "expanded": false,
1896
1896
  "items": [
1897
1897
  "accounts[].atwDevices[].name",
1898
- "accounts[].atwDevices[].refreshInterval",
1899
- "accounts[].atwDevices[].hideZone"
1898
+ "accounts[].atwDevices[].hideZone",
1899
+ "accounts[].atwDevices[].refreshInterval"
1900
1900
  ]
1901
1901
  },
1902
1902
  {
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.0",
4
+ "version": "3.8.0-beta.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",
package/src/deviceata.js CHANGED
@@ -50,13 +50,13 @@ class DeviceAta extends EventEmitter {
50
50
  //presets configured
51
51
  this.presetsConfigured = [];
52
52
  for (const preset of this.presets) {
53
- const presetDisplayType = preset.displayType ?? 0;
54
- if (presetDisplayType === 0) {
53
+ const displayType = preset.displayType ?? 0;
54
+ if (displayType === 0) {
55
55
  continue;
56
56
  };
57
57
 
58
- const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][presetDisplayType];
59
- const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][presetDisplayType];
58
+ const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
59
+ const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
60
60
  preset.name = preset.name || 'Preset'
61
61
  preset.serviceType = presetyServiceType;
62
62
  preset.characteristicType = presetCharacteristicType;
@@ -69,13 +69,13 @@ class DeviceAta extends EventEmitter {
69
69
  //buttons configured
70
70
  this.buttonsConfigured = [];
71
71
  for (const button of this.buttons) {
72
- const buttonDisplayType = button.displayType ?? 0;
73
- if (presetDisplayType === 0) {
72
+ const displayType = button.displayType ?? 0;
73
+ if (displayType === 0) {
74
74
  continue;
75
75
  };
76
76
 
77
- const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][buttonDisplayType];
78
- const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][buttonDisplayType];
77
+ const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
78
+ const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
79
79
  button.name = button.name || 'Button'
80
80
  button.namePrefix = buttonNamePrefix;
81
81
  button.serviceType = buttonServiceType;
package/src/deviceatw.js CHANGED
@@ -55,13 +55,13 @@ class DeviceAtw extends EventEmitter {
55
55
  //presets configured
56
56
  this.presetsConfigured = [];
57
57
  for (const preset of this.presets) {
58
- const presetDisplayType = preset.displayType ?? 0;
59
- if (presetDisplayType === 0) {
58
+ const displayType = preset.displayType ?? 0;
59
+ if (displayType === 0) {
60
60
  continue;
61
61
  };
62
62
 
63
- const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][presetDisplayType];
64
- const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][presetDisplayType];
63
+ const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
64
+ const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
65
65
  preset.name = preset.name || 'Preset'
66
66
  preset.serviceType = presetyServiceType;
67
67
  preset.characteristicType = presetCharacteristicType;
@@ -74,13 +74,13 @@ class DeviceAtw extends EventEmitter {
74
74
  //buttons configured
75
75
  this.buttonsConfigured = [];
76
76
  for (const button of this.buttons) {
77
- const buttonDisplayType = button.displayType ?? 0;
78
- if (presetDisplayType === 0) {
77
+ const displayType = button.displayType ?? 0;
78
+ if (displayType === 0) {
79
79
  continue;
80
80
  };
81
81
 
82
- const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][buttonDisplayType];
83
- const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][buttonDisplayType];
82
+ const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
83
+ const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
84
84
  button.name = button.name || 'Button'
85
85
  button.namePrefix = buttonNamePrefix;
86
86
  button.serviceType = buttonServiceType;
package/src/deviceerv.js CHANGED
@@ -48,13 +48,13 @@ class DeviceErv extends EventEmitter {
48
48
  //presets configured
49
49
  this.presetsConfigured = [];
50
50
  for (const preset of this.presets) {
51
- const presetDisplayType = preset.displayType ?? 0;
52
- if (presetDisplayType === 0) {
51
+ const displayType = preset.displayType ?? 0;
52
+ if (displayType === 0) {
53
53
  continue;
54
54
  };
55
55
 
56
- const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][presetDisplayType];
57
- const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][presetDisplayType];
56
+ const presetyServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
57
+ const presetCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
58
58
  preset.name = preset.name || 'Preset'
59
59
  preset.serviceType = presetyServiceType;
60
60
  preset.characteristicType = presetCharacteristicType;
@@ -67,13 +67,13 @@ class DeviceErv extends EventEmitter {
67
67
  //buttons configured
68
68
  this.buttonsConfigured = [];
69
69
  for (const button of this.buttons) {
70
- const buttonDisplayType = button.displayType ?? 0;
71
- if (presetDisplayType === 0) {
70
+ const displayType = button.displayType ?? 0;
71
+ if (displayType === 0) {
72
72
  continue;
73
73
  };
74
74
 
75
- const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][buttonDisplayType];
76
- const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][buttonDisplayType];
75
+ const buttonServiceType = ['', Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][displayType];
76
+ const buttonCharacteristicType = ['', Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][displayType];
77
77
  button.name = button.name || 'Button'
78
78
  button.namePrefix = buttonNamePrefix;
79
79
  button.serviceType = buttonServiceType;