homebridge-melcloud-control 4.1.3-beta.5 → 4.1.3-beta.6

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.
@@ -1226,7 +1226,7 @@
1226
1226
  "title": "Display Type",
1227
1227
  "type": "integer",
1228
1228
  "minimum": 0,
1229
- "maximum": 5,
1229
+ "maximum": 3,
1230
1230
  "default": 0,
1231
1231
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1232
1232
  "anyOf": [
@@ -1236,34 +1236,22 @@
1236
1236
  0
1237
1237
  ]
1238
1238
  },
1239
- {
1240
- "title": "Outlet",
1241
- "enum": [
1242
- 1
1243
- ]
1244
- },
1245
- {
1246
- "title": "Switch",
1247
- "enum": [
1248
- 2
1249
- ]
1250
- },
1251
1239
  {
1252
1240
  "title": "Motion Sensor",
1253
1241
  "enum": [
1254
- 3
1242
+ 1
1255
1243
  ]
1256
1244
  },
1257
1245
  {
1258
1246
  "title": "Occupancy Sensor",
1259
1247
  "enum": [
1260
- 4
1248
+ 2
1261
1249
  ]
1262
1250
  },
1263
1251
  {
1264
1252
  "title": "Contact Sensor",
1265
1253
  "enum": [
1266
- 5
1254
+ 3
1267
1255
  ]
1268
1256
  }
1269
1257
  ]
@@ -1714,7 +1702,7 @@
1714
1702
  "title": "Display Type",
1715
1703
  "type": "integer",
1716
1704
  "minimum": 0,
1717
- "maximum": 5,
1705
+ "maximum": 3,
1718
1706
  "default": 0,
1719
1707
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1720
1708
  "anyOf": [
@@ -1724,34 +1712,22 @@
1724
1712
  0
1725
1713
  ]
1726
1714
  },
1727
- {
1728
- "title": "Outlet",
1729
- "enum": [
1730
- 1
1731
- ]
1732
- },
1733
- {
1734
- "title": "Switch",
1735
- "enum": [
1736
- 2
1737
- ]
1738
- },
1739
1715
  {
1740
1716
  "title": "Motion Sensor",
1741
1717
  "enum": [
1742
- 3
1718
+ 1
1743
1719
  ]
1744
1720
  },
1745
1721
  {
1746
1722
  "title": "Occupancy Sensor",
1747
1723
  "enum": [
1748
- 4
1724
+ 2
1749
1725
  ]
1750
1726
  },
1751
1727
  {
1752
1728
  "title": "Contact Sensor",
1753
1729
  "enum": [
1754
- 5
1730
+ 3
1755
1731
  ]
1756
1732
  }
1757
1733
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.1.3-beta.5",
4
+ "version": "4.1.3-beta.6",
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
@@ -1359,7 +1359,7 @@ class DeviceAta extends EventEmitter {
1359
1359
  if (this.schedules.length > 0 && scheduleEnabled !== null) {
1360
1360
  this.schedules.forEach((schedule, i) => {
1361
1361
  //control
1362
- if (i === 0) this.schedulesControlService?.updateCharacteristic(characteristicType, scheduleEnabled);
1362
+ if (i === 0) this.schedulesControlService?.updateCharacteristic(Characteristic.On, scheduleEnabled);
1363
1363
 
1364
1364
  //sensors
1365
1365
  const scheduleData = schedulesOnServer.find(s => s[presetsIdKey] === schedule.id);
package/src/deviceatw.js CHANGED
@@ -67,8 +67,8 @@ class DeviceAtw extends EventEmitter {
67
67
  //schedules configured
68
68
  for (const schedule of this.schedules) {
69
69
  schedule.name = schedule.name || 'Schedule'
70
- schedule.serviceType = [null, Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][schedule.displayType];
71
- schedule.characteristicType = [null, Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][schedule.displayType];
70
+ schedule.serviceType = [null, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][schedule.displayType];
71
+ schedule.characteristicType = [null, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][schedule.displayType];
72
72
  schedule.state = false;
73
73
  }
74
74
 
@@ -1942,7 +1942,7 @@ class DeviceAtw extends EventEmitter {
1942
1942
  if (this.schedules.length > 0 && scheduleEnabled !== null) {
1943
1943
  this.schedules.forEach((schedule, i) => {
1944
1944
  //control
1945
- if (i === 0) this.schedulesControlService?.updateCharacteristic(characteristicType, scheduleEnabled);
1945
+ if (i === 0) this.schedulesControlService?.updateCharacteristic(Characteristic.On, scheduleEnabled);
1946
1946
 
1947
1947
  //sensors
1948
1948
  const scheduleData = schedulesOnServer.find(s => s[presetsIdKey] === schedule.id);
package/src/deviceerv.js CHANGED
@@ -60,8 +60,8 @@ class DeviceErv extends EventEmitter {
60
60
  //schedules configured
61
61
  for (const schedule of this.schedules) {
62
62
  schedule.name = schedule.name || 'Schedule'
63
- schedule.serviceType = [null, Service.Outlet, Service.Switch, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][schedule.displayType];
64
- schedule.characteristicType = [null, Characteristic.On, Characteristic.On, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][schedule.displayType];
63
+ schedule.serviceType = [null, Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][schedule.displayType];
64
+ schedule.characteristicType = [null, Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][schedule.displayType];
65
65
  schedule.state = false;
66
66
  }
67
67
 
@@ -1229,7 +1229,7 @@ class DeviceErv extends EventEmitter {
1229
1229
  if (this.schedules.length > 0 && scheduleEnabled !== null) {
1230
1230
  this.schedules.forEach((schedule, i) => {
1231
1231
  //control
1232
- if (i === 0) this.schedulesControlService?.updateCharacteristic(characteristicType, scheduleEnabled);
1232
+ if (i === 0) this.schedulesControlService?.updateCharacteristic(Characteristic.On, scheduleEnabled);
1233
1233
 
1234
1234
  //sensors
1235
1235
  const scheduleData = schedulesOnServer.find(s => s[presetsIdKey] === schedule.id);