homebridge-melcloud-control 3.0.7-beta.29 → 3.0.7-beta.30
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.
|
@@ -163,10 +163,10 @@
|
|
|
163
163
|
case 0:
|
|
164
164
|
//get device info fom devices
|
|
165
165
|
devices.forEach((device, index) => {
|
|
166
|
-
const deviceType = device.Type;
|
|
167
166
|
const deviceId = device.DeviceID;
|
|
167
|
+
const deviceType = device.Type;
|
|
168
|
+
const deviceTypeText = ["Air Conditioner", "Heat Pump", "Unknown", "Energy Recovery Ventilation"][deviceType];
|
|
168
169
|
const deviceName = device.DeviceName;
|
|
169
|
-
const deviceTypeText = ["Air Conditioner", "Heat Pump", "Unknown", "Energy Recovery Ventilation"][device.Type];
|
|
170
170
|
|
|
171
171
|
//config account keys
|
|
172
172
|
const accountKeys = Object.keys(pluginConfig[0].accounts[this.deviceIndex]);
|
|
@@ -174,10 +174,10 @@
|
|
|
174
174
|
//devices ata
|
|
175
175
|
if (deviceType === 0) {
|
|
176
176
|
const deviceAta = {
|
|
177
|
-
name: deviceName,
|
|
178
177
|
id: deviceId,
|
|
179
178
|
type: deviceType,
|
|
180
179
|
typeString: deviceTypeText,
|
|
180
|
+
name: deviceName,
|
|
181
181
|
displayMode: 0,
|
|
182
182
|
heatDryFanMode: 0,
|
|
183
183
|
coolDryFanMode: 0,
|
|
@@ -200,10 +200,10 @@
|
|
|
200
200
|
//devices atw
|
|
201
201
|
if (deviceType === 1) {
|
|
202
202
|
const deviceAtw = {
|
|
203
|
-
name: deviceName,
|
|
204
203
|
id: deviceId,
|
|
205
204
|
type: deviceType,
|
|
206
205
|
typeString: deviceTypeText,
|
|
206
|
+
name: deviceName,
|
|
207
207
|
displayMode: 0,
|
|
208
208
|
temperatureSensor: false,
|
|
209
209
|
temperatureSensorFlow: false,
|
|
@@ -231,10 +231,10 @@
|
|
|
231
231
|
//devices erv
|
|
232
232
|
if (deviceType === 3) {
|
|
233
233
|
const deviceErv = {
|
|
234
|
-
name: deviceName,
|
|
235
234
|
id: deviceId,
|
|
236
235
|
type: deviceType,
|
|
237
236
|
typeString: deviceTypeText,
|
|
237
|
+
name: deviceName,
|
|
238
238
|
displayMode: 0,
|
|
239
239
|
temperatureSensor: false,
|
|
240
240
|
temperatureSensorOutdoor: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.0.7-beta.
|
|
4
|
+
"version": "3.0.7-beta.30",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|