homebridge-melcloud-control 4.2.6-beta.0 → 4.2.6-beta.1
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 +1 -1
- package/src/deviceata.js +18 -23
- package/src/deviceatw.js +21 -75
- package/src/deviceerv.js +21 -30
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.6-beta.
|
|
4
|
+
"version": "4.2.6-beta.1",
|
|
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
|
@@ -104,10 +104,11 @@ class DeviceAta extends EventEmitter {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
async externalIntegrations() {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
//RESTFul server
|
|
108
|
+
const restFulEnabled = this.restFul.enable || false;
|
|
109
|
+
if (restFulEnabled) {
|
|
110
|
+
try {
|
|
111
|
+
|
|
111
112
|
if (!this.restFulConnected) {
|
|
112
113
|
this.restFul1 = new RestFul({
|
|
113
114
|
port: this.restFul.port,
|
|
@@ -135,11 +136,15 @@ class DeviceAta extends EventEmitter {
|
|
|
135
136
|
this.emit('error', error);
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
}
|
|
139
|
+
} catch (error) {
|
|
140
|
+
this.emit('warn', `RESTFul integration start error: ${error}`);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
139
143
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
//MQTT client
|
|
145
|
+
const mqttEnabled = this.mqtt.enable || false;
|
|
146
|
+
if (mqttEnabled) {
|
|
147
|
+
try {
|
|
143
148
|
if (!this.mqttConnected) {
|
|
144
149
|
this.mqtt1 = new Mqtt({
|
|
145
150
|
host: this.mqtt.host,
|
|
@@ -175,10 +180,10 @@ class DeviceAta extends EventEmitter {
|
|
|
175
180
|
this.emit('error', error);
|
|
176
181
|
});
|
|
177
182
|
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
183
|
+
} catch (error) {
|
|
184
|
+
this.emit('warn', `MQTT integration start error: ${error}`);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
async setOverExternalIntegration(integration, deviceData, key, value) {
|
|
@@ -639,11 +644,6 @@ class DeviceAta extends EventEmitter {
|
|
|
639
644
|
this.roomTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
640
645
|
this.roomTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Room`);
|
|
641
646
|
this.roomTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
642
|
-
.setProps({
|
|
643
|
-
minValue: -35,
|
|
644
|
-
maxValue: 150,
|
|
645
|
-
minStep: 0.5
|
|
646
|
-
})
|
|
647
647
|
.onGet(async () => {
|
|
648
648
|
const state = this.accessory.roomTemperature;
|
|
649
649
|
return state;
|
|
@@ -657,11 +657,6 @@ class DeviceAta extends EventEmitter {
|
|
|
657
657
|
this.outdoorTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
658
658
|
this.outdoorTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Outdoor`);
|
|
659
659
|
this.outdoorTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
660
|
-
.setProps({
|
|
661
|
-
minValue: -35,
|
|
662
|
-
maxValue: 150,
|
|
663
|
-
minStep: 0.5
|
|
664
|
-
})
|
|
665
660
|
.onGet(async () => {
|
|
666
661
|
const state = this.accessory.outdoorTemperature;
|
|
667
662
|
return state;
|
|
@@ -669,7 +664,7 @@ class DeviceAta extends EventEmitter {
|
|
|
669
664
|
accessory.addService(this.outdoorTemperatureSensorService);
|
|
670
665
|
};
|
|
671
666
|
|
|
672
|
-
//
|
|
667
|
+
//in standby sensor
|
|
673
668
|
if (this.inStandbySensor && this.accessory.inStandbyMode !== null) {
|
|
674
669
|
if (this.logDebug) this.emit('debug', `Prepare in standby mode service`);
|
|
675
670
|
this.inStandbyService = new Service.ContactSensor(`${serviceName} In Standby`, `inStandbyService${deviceId}`);
|
package/src/deviceatw.js
CHANGED
|
@@ -26,6 +26,9 @@ class DeviceAtw extends EventEmitter {
|
|
|
26
26
|
|
|
27
27
|
//device config
|
|
28
28
|
this.device = device;
|
|
29
|
+
this.deviceId = device.id;
|
|
30
|
+
this.deviceName = device.name;
|
|
31
|
+
this.deviceTypeText = device.typeString;
|
|
29
32
|
this.displayType = device.displayType;
|
|
30
33
|
this.hideZone = device.hideZone;
|
|
31
34
|
this.temperatureSensor = device.temperatureSensor || false;
|
|
@@ -45,9 +48,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
45
48
|
this.schedules = this.accountType === 'melcloudhome' ? (device.schedules || []).filter(schedule => (schedule.displayType ?? 0) > 0 && schedule.id !== '0') : [];
|
|
46
49
|
this.scenes = this.accountType === 'melcloudhome' ? (device.scenes || []).filter(scene => (scene.displayType ?? 0) > 0 && scene.id !== '0') : [];
|
|
47
50
|
this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
|
|
48
|
-
this.deviceId = device.id;
|
|
49
|
-
this.deviceName = device.name;
|
|
50
|
-
this.deviceTypeText = device.typeString;
|
|
51
51
|
this.devicesFile = devicesFile;
|
|
52
52
|
this.defaultTempsFile = defaultTempsFile;
|
|
53
53
|
this.accountInfo = accountInfo;
|
|
@@ -105,10 +105,11 @@ class DeviceAtw extends EventEmitter {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
async externalIntegrations() {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
//RESTFul server
|
|
109
|
+
const restFulEnabled = this.restFul.enable || false;
|
|
110
|
+
if (restFulEnabled) {
|
|
111
|
+
try {
|
|
112
|
+
|
|
112
113
|
if (!this.restFulConnected) {
|
|
113
114
|
this.restFul1 = new RestFul({
|
|
114
115
|
port: this.restFul.port,
|
|
@@ -136,11 +137,15 @@ class DeviceAtw extends EventEmitter {
|
|
|
136
137
|
this.emit('error', error);
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
|
-
}
|
|
140
|
+
} catch (error) {
|
|
141
|
+
this.emit('warn', `RESTFul integration start error: ${error}`);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
140
144
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
//MQTT client
|
|
146
|
+
const mqttEnabled = this.mqtt.enable || false;
|
|
147
|
+
if (mqttEnabled) {
|
|
148
|
+
try {
|
|
144
149
|
if (!this.mqttConnected) {
|
|
145
150
|
this.mqtt1 = new Mqtt({
|
|
146
151
|
host: this.mqtt.host,
|
|
@@ -176,10 +181,10 @@ class DeviceAtw extends EventEmitter {
|
|
|
176
181
|
this.emit('error', error);
|
|
177
182
|
});
|
|
178
183
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
184
|
+
} catch (error) {
|
|
185
|
+
this.emit('warn', `MQTT integration start error: ${error}`);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
async setOverExternalIntegration(integration, deviceData, key, value) {
|
|
@@ -864,11 +869,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
864
869
|
this.roomTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
865
870
|
this.roomTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName}`);
|
|
866
871
|
this.roomTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
867
|
-
.setProps({
|
|
868
|
-
minValue: -35,
|
|
869
|
-
maxValue: 150,
|
|
870
|
-
minStep: 0.5
|
|
871
|
-
})
|
|
872
872
|
.onGet(async () => {
|
|
873
873
|
const state = zone.roomTemperature;
|
|
874
874
|
return state;
|
|
@@ -882,11 +882,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
882
882
|
this.flowTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
883
883
|
this.flowTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Flow`);
|
|
884
884
|
this.flowTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
885
|
-
.setProps({
|
|
886
|
-
minValue: -35,
|
|
887
|
-
maxValue: 150,
|
|
888
|
-
minStep: 0.5
|
|
889
|
-
})
|
|
890
885
|
.onGet(async () => {
|
|
891
886
|
const state = zone.flowTemperature;
|
|
892
887
|
return state;
|
|
@@ -901,11 +896,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
901
896
|
this.returnTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
902
897
|
this.returnTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Return`);
|
|
903
898
|
this.returnTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
904
|
-
.setProps({
|
|
905
|
-
minValue: -35,
|
|
906
|
-
maxValue: 150,
|
|
907
|
-
minStep: 0.5
|
|
908
|
-
})
|
|
909
899
|
.onGet(async () => {
|
|
910
900
|
const state = zone.returnTemperature;
|
|
911
901
|
return state;
|
|
@@ -920,11 +910,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
920
910
|
this.roomTemperatureZone1SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
921
911
|
this.roomTemperatureZone1SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName}`);
|
|
922
912
|
this.roomTemperatureZone1SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
923
|
-
.setProps({
|
|
924
|
-
minValue: -35,
|
|
925
|
-
maxValue: 150,
|
|
926
|
-
minStep: 0.5
|
|
927
|
-
})
|
|
928
913
|
.onGet(async () => {
|
|
929
914
|
const state = zone.roomTemperature;
|
|
930
915
|
return state;
|
|
@@ -938,11 +923,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
938
923
|
this.flowTemperatureZone1SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
939
924
|
this.flowTemperatureZone1SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Flow`);
|
|
940
925
|
this.flowTemperatureZone1SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
941
|
-
.setProps({
|
|
942
|
-
minValue: -35,
|
|
943
|
-
maxValue: 150,
|
|
944
|
-
minStep: 0.5
|
|
945
|
-
})
|
|
946
926
|
.onGet(async () => {
|
|
947
927
|
const state = zone.flowTemperature;
|
|
948
928
|
return state;
|
|
@@ -956,11 +936,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
956
936
|
this.returnTemperatureZone1SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
957
937
|
this.returnTemperatureZone1SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Return`);
|
|
958
938
|
this.returnTemperatureZone1SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
959
|
-
.setProps({
|
|
960
|
-
minValue: -35,
|
|
961
|
-
maxValue: 150,
|
|
962
|
-
minStep: 0.5
|
|
963
|
-
})
|
|
964
939
|
.onGet(async () => {
|
|
965
940
|
const state = zone.returnTemperature;
|
|
966
941
|
return state;
|
|
@@ -975,11 +950,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
975
950
|
this.roomTemperatureWaterTankSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
976
951
|
this.roomTemperatureWaterTankSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName}`);
|
|
977
952
|
this.roomTemperatureWaterTankSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
978
|
-
.setProps({
|
|
979
|
-
minValue: -35,
|
|
980
|
-
maxValue: 150,
|
|
981
|
-
minStep: 0.5
|
|
982
|
-
})
|
|
983
953
|
.onGet(async () => {
|
|
984
954
|
const state = zone.roomTemperature;
|
|
985
955
|
return state;
|
|
@@ -993,11 +963,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
993
963
|
this.flowTemperatureWaterTankSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
994
964
|
this.flowTemperatureWaterTankSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Flow`);
|
|
995
965
|
this.flowTemperatureWaterTankSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
996
|
-
.setProps({
|
|
997
|
-
minValue: -35,
|
|
998
|
-
maxValue: 150,
|
|
999
|
-
minStep: 0.5
|
|
1000
|
-
})
|
|
1001
966
|
.onGet(async () => {
|
|
1002
967
|
const state = zone.flowTemperature;
|
|
1003
968
|
return state;
|
|
@@ -1011,11 +976,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1011
976
|
this.returnTemperatureWaterTankSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1012
977
|
this.returnTemperatureWaterTankSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Return`);
|
|
1013
978
|
this.returnTemperatureWaterTankSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
1014
|
-
.setProps({
|
|
1015
|
-
minValue: -35,
|
|
1016
|
-
maxValue: 150,
|
|
1017
|
-
minStep: 0.5
|
|
1018
|
-
})
|
|
1019
979
|
.onGet(async () => {
|
|
1020
980
|
const state = zone.returnTemperature;
|
|
1021
981
|
return state;
|
|
@@ -1030,11 +990,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1030
990
|
this.roomTemperatureZone2SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1031
991
|
this.roomTemperatureZone2SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName}`);
|
|
1032
992
|
this.roomTemperatureZone2SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
1033
|
-
.setProps({
|
|
1034
|
-
minValue: -35,
|
|
1035
|
-
maxValue: 150,
|
|
1036
|
-
minStep: 0.5
|
|
1037
|
-
})
|
|
1038
993
|
.onGet(async () => {
|
|
1039
994
|
const state = zone.roomTemperature;
|
|
1040
995
|
return state;
|
|
@@ -1048,11 +1003,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1048
1003
|
this.flowTemperatureZone2SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1049
1004
|
this.flowTemperatureZone2SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Flow`);
|
|
1050
1005
|
this.flowTemperatureZone2SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
1051
|
-
.setProps({
|
|
1052
|
-
minValue: -35,
|
|
1053
|
-
maxValue: 150,
|
|
1054
|
-
minStep: 0.5
|
|
1055
|
-
})
|
|
1056
1006
|
.onGet(async () => {
|
|
1057
1007
|
const state = zone.flowTemperature;
|
|
1058
1008
|
return state;
|
|
@@ -1066,11 +1016,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1066
1016
|
this.returnTemperatureZone2SensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1067
1017
|
this.returnTemperatureZone2SensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} ${zoneName} Return`);
|
|
1068
1018
|
this.returnTemperatureZone2SensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
1069
|
-
.setProps({
|
|
1070
|
-
minValue: -35,
|
|
1071
|
-
maxValue: 150,
|
|
1072
|
-
minStep: 0.5
|
|
1073
|
-
})
|
|
1074
1019
|
.onGet(async () => {
|
|
1075
1020
|
const state = zone.returnTemperature;
|
|
1076
1021
|
return state;
|
|
@@ -1082,6 +1027,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1082
1027
|
});
|
|
1083
1028
|
};
|
|
1084
1029
|
|
|
1030
|
+
//in standby sensor
|
|
1085
1031
|
if (this.inStandbySensor && this.accessory.inStandbyMode !== null) {
|
|
1086
1032
|
if (this.logDebug) this.emit('debug', `Prepare in standby mode service`);
|
|
1087
1033
|
this.inStandbyService = new Service.ContactSensor(`${serviceName} In Standby`, `inStandbyService${deviceId}`);
|
package/src/deviceerv.js
CHANGED
|
@@ -26,6 +26,9 @@ class DeviceErv extends EventEmitter {
|
|
|
26
26
|
|
|
27
27
|
//device config
|
|
28
28
|
this.device = device;
|
|
29
|
+
this.deviceId = device.id;
|
|
30
|
+
this.deviceName = device.name;
|
|
31
|
+
this.deviceTypeText = device.typeString;
|
|
29
32
|
this.displayType = device.displayType;
|
|
30
33
|
this.temperatureSensor = device.temperatureSensor || false;
|
|
31
34
|
this.temperatureOutdoorSensor = device.temperatureOutdoorSensor || false;
|
|
@@ -38,9 +41,6 @@ class DeviceErv extends EventEmitter {
|
|
|
38
41
|
this.schedules = this.accountType === 'melcloudhome' ? (device.schedules || []).filter(schedule => (schedule.displayType ?? 0) > 0 && schedule.id !== '0') : [];
|
|
39
42
|
this.scenes = this.accountType === 'melcloudhome' ? (device.scenes || []).filter(scene => (scene.displayType ?? 0) > 0 && scene.id !== '0') : [];
|
|
40
43
|
this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
|
|
41
|
-
this.deviceId = device.id;
|
|
42
|
-
this.deviceName = device.name;
|
|
43
|
-
this.deviceTypeText = device.typeString;
|
|
44
44
|
this.devicesFile = devicesFile;
|
|
45
45
|
this.defaultTempsFile = defaultTempsFile;
|
|
46
46
|
this.accountInfo = accountInfo;
|
|
@@ -98,10 +98,11 @@ class DeviceErv extends EventEmitter {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
async externalIntegrations() {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
//RESTFul server
|
|
102
|
+
const restFulEnabled = this.restFul.enable || false;
|
|
103
|
+
if (restFulEnabled) {
|
|
104
|
+
try {
|
|
105
|
+
|
|
105
106
|
if (!this.restFulConnected) {
|
|
106
107
|
this.restFul1 = new RestFul({
|
|
107
108
|
port: this.restFul.port,
|
|
@@ -129,11 +130,15 @@ class DeviceErv extends EventEmitter {
|
|
|
129
130
|
this.emit('error', error);
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
} catch (error) {
|
|
134
|
+
this.emit('warn', `RESTFul integration start error: ${error}`);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
133
137
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
//MQTT client
|
|
139
|
+
const mqttEnabled = this.mqtt.enable || false;
|
|
140
|
+
if (mqttEnabled) {
|
|
141
|
+
try {
|
|
137
142
|
if (!this.mqttConnected) {
|
|
138
143
|
this.mqtt1 = new Mqtt({
|
|
139
144
|
host: this.mqtt.host,
|
|
@@ -169,10 +174,10 @@ class DeviceErv extends EventEmitter {
|
|
|
169
174
|
this.emit('error', error);
|
|
170
175
|
});
|
|
171
176
|
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
177
|
+
} catch (error) {
|
|
178
|
+
this.emit('warn', `MQTT integration start error: ${error}`);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
async setOverExternalIntegration(integration, deviceData, key, value) {
|
|
@@ -568,11 +573,6 @@ class DeviceErv extends EventEmitter {
|
|
|
568
573
|
this.roomTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
569
574
|
this.roomTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Room`);
|
|
570
575
|
this.roomTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
571
|
-
.setProps({
|
|
572
|
-
minValue: -35,
|
|
573
|
-
maxValue: 150,
|
|
574
|
-
minStep: 0.5
|
|
575
|
-
})
|
|
576
576
|
.onGet(async () => {
|
|
577
577
|
const state = this.accessory.roomTemperature;
|
|
578
578
|
return state;
|
|
@@ -587,11 +587,6 @@ class DeviceErv extends EventEmitter {
|
|
|
587
587
|
this.supplyTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
588
588
|
this.supplyTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Supply`);
|
|
589
589
|
this.supplyTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
590
|
-
.setProps({
|
|
591
|
-
minValue: -35,
|
|
592
|
-
maxValue: 150,
|
|
593
|
-
minStep: 0.5
|
|
594
|
-
})
|
|
595
590
|
.onGet(async () => {
|
|
596
591
|
const state = this.accessory.supplyTemperature;
|
|
597
592
|
return state;
|
|
@@ -606,11 +601,6 @@ class DeviceErv extends EventEmitter {
|
|
|
606
601
|
this.outdoorTemperatureSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
607
602
|
this.outdoorTemperatureSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Outdoor`);
|
|
608
603
|
this.outdoorTemperatureSensorService.getCharacteristic(Characteristic.CurrentTemperature)
|
|
609
|
-
.setProps({
|
|
610
|
-
minValue: -35,
|
|
611
|
-
maxValue: 150,
|
|
612
|
-
minStep: 0.5
|
|
613
|
-
})
|
|
614
604
|
.onGet(async () => {
|
|
615
605
|
const state = this.accessory.outdoorTemperature;
|
|
616
606
|
return state;
|
|
@@ -686,6 +676,7 @@ class DeviceErv extends EventEmitter {
|
|
|
686
676
|
accessory.addService(this.airQualitySensorService);
|
|
687
677
|
}
|
|
688
678
|
|
|
679
|
+
//in standby sensor
|
|
689
680
|
if (this.inStandbySensor && this.accessory.inStandbyMode !== null) {
|
|
690
681
|
if (this.logDebug) this.emit('debug', `Prepare in standby mode service`);
|
|
691
682
|
this.inStandbyService = new Service.ContactSensor(`${serviceName} In Standby`, `inStandbyService${deviceId}`);
|