homebridge-melcloud-control 4.2.3-beta.60 → 4.2.3-beta.61
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 +2 -2
- package/src/deviceata.js +5 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.2.3-beta.
|
|
4
|
+
"version": "4.2.3-beta.61",
|
|
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,7 +35,7 @@
|
|
|
35
35
|
"node": "^20 || ^22 || ^24 || ^25"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@homebridge/plugin-ui-utils": "^2.1.
|
|
38
|
+
"@homebridge/plugin-ui-utils": "^2.1.1",
|
|
39
39
|
"async-mqtt": "^2.6.3",
|
|
40
40
|
"axios": "^1.13.2",
|
|
41
41
|
"express": "^5.1.0",
|
package/src/deviceata.js
CHANGED
|
@@ -937,6 +937,7 @@ class DeviceAta extends EventEmitter {
|
|
|
937
937
|
|
|
938
938
|
//control sensor
|
|
939
939
|
const serviceName1 = namePrefix ? `${accessoryName} ${name}` : name;
|
|
940
|
+
const serviceName2 = namePrefix ? `${accessoryName} Schedules` : 'Schedules';
|
|
940
941
|
const serviceType = schedule.serviceType;
|
|
941
942
|
const characteristicType = schedule.characteristicType;
|
|
942
943
|
|
|
@@ -944,9 +945,9 @@ class DeviceAta extends EventEmitter {
|
|
|
944
945
|
if (i === 0) {
|
|
945
946
|
if (schedule.displayType > 3) {
|
|
946
947
|
if (this.logDebug) this.emit('debug', `Prepare schedule control ${name} service`);
|
|
947
|
-
this.scheduleControlService = new Service.Switch(
|
|
948
|
+
this.scheduleControlService = new Service.Switch(serviceName2, `scheduleControlService${deviceId} ${i}`);
|
|
948
949
|
this.scheduleControlService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
949
|
-
this.scheduleControlService.setCharacteristic(Characteristic.ConfiguredName,
|
|
950
|
+
this.scheduleControlService.setCharacteristic(Characteristic.ConfiguredName, serviceName2);
|
|
950
951
|
this.scheduleControlService.getCharacteristic(Characteristic.On)
|
|
951
952
|
.onGet(async () => {
|
|
952
953
|
const state = this.accessory.scheduleEnabled;
|
|
@@ -966,9 +967,9 @@ class DeviceAta extends EventEmitter {
|
|
|
966
967
|
|
|
967
968
|
//sensor
|
|
968
969
|
if (this.logDebug) this.emit('debug', `Prepare schedule control sensor ${name} service`);
|
|
969
|
-
this.scheduleControlSensorService = new serviceType(`${
|
|
970
|
+
this.scheduleControlSensorService = new serviceType(`${serviceName2} Control`, `scheduleControlSensorService${deviceId} ${i}`);
|
|
970
971
|
this.scheduleControlSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
971
|
-
this.scheduleControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${
|
|
972
|
+
this.scheduleControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${serviceName2} Control`);
|
|
972
973
|
this.scheduleControlSensorService.getCharacteristic(characteristicType)
|
|
973
974
|
.onGet(async () => {
|
|
974
975
|
const state = this.accessory.scheduleEnabled;
|