homebridge-melcloud-control 3.1.0-beta.0 → 3.1.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/homebridge-ui/public/index.html +11 -11
- package/package.json +2 -2
|
@@ -219,11 +219,11 @@
|
|
|
219
219
|
textAta = `ATA: ${devicesCount}`
|
|
220
220
|
|
|
221
221
|
//presets
|
|
222
|
-
presets.forEach((preset, index1) => {
|
|
222
|
+
device.presets.forEach((preset, index1) => {
|
|
223
223
|
const presetId = preset.ID;
|
|
224
224
|
const presetName = preset.NumberDescription;
|
|
225
225
|
|
|
226
|
-
preset.name =
|
|
226
|
+
preset.name = presetName;
|
|
227
227
|
preset.displayType == 0;
|
|
228
228
|
preset.namePrefix = false;
|
|
229
229
|
|
|
@@ -271,15 +271,15 @@
|
|
|
271
271
|
const atwDeviceIdExist = atwDevices.some(device => device.id === deviceId);
|
|
272
272
|
const pushTypeAtw = atwDeviceIdExist ? false : atwDevices.push(deviceAtw);
|
|
273
273
|
const pushNewDevice = atwDeviceIdExist ? false : newDevices.atw.push(device);
|
|
274
|
-
const devicesCount = newDevices.
|
|
274
|
+
const devicesCount = newDevices.atw.length;
|
|
275
275
|
textAtw = `ATW: ${devicesCount}`
|
|
276
276
|
|
|
277
277
|
//presetzs
|
|
278
|
-
presets.forEach((preset, index1) => {
|
|
278
|
+
device.presets.forEach((preset, index1) => {
|
|
279
279
|
const presetId = preset.ID;
|
|
280
280
|
const presetName = preset.NumberDescription;
|
|
281
281
|
|
|
282
|
-
preset.name =
|
|
282
|
+
preset.name = presetName;
|
|
283
283
|
preset.displayType == 0;
|
|
284
284
|
preset.namePrefix = false;
|
|
285
285
|
|
|
@@ -319,22 +319,22 @@
|
|
|
319
319
|
const ervDeviceIdExist = ervDevices.some(device => device.id === deviceId);
|
|
320
320
|
const pushTypeerv = ervDeviceIdExist ? false : ervDevices.push(deviceErv);
|
|
321
321
|
const pushNewDevice = ervDeviceIdExist ? false : newDevices.erv.push(device);
|
|
322
|
-
const devicesCount = newDevices.
|
|
322
|
+
const devicesCount = newDevices.erv.length;
|
|
323
323
|
textErv = `ERV: ${devicesCount}`
|
|
324
324
|
|
|
325
325
|
//presets
|
|
326
|
-
presets.forEach((preset, index1) => {
|
|
326
|
+
device.presets.forEach((preset, index1) => {
|
|
327
327
|
const presetId = preset.ID;
|
|
328
328
|
const presetName = preset.NumberDescription;
|
|
329
329
|
|
|
330
|
-
preset.name =
|
|
330
|
+
preset.name = presetName;
|
|
331
331
|
preset.displayType == 0;
|
|
332
332
|
preset.namePrefix = false;
|
|
333
333
|
|
|
334
|
-
const
|
|
335
|
-
const
|
|
334
|
+
const ervPresetsExist = pluginConfig[0].accounts[this.deviceIndex].ervDevices[index].presets ?? false;
|
|
335
|
+
const ervPresets = ervPresetsExist ? pluginConfig[0].accounts[this.deviceIndex].ervDevices[index].presets : pluginConfig[0].accounts[this.deviceIndex].ervDevices[index].presets = [];
|
|
336
336
|
const ervPresetIdExist = ervPresets.some(preset => preset.ID === presetId);
|
|
337
|
-
const pushPresetErv =
|
|
337
|
+
const pushPresetErv = ervPresetIdExist ? false : ervPresets.push(preset);
|
|
338
338
|
const pushNewPreset = ervPresetIdExist ? false : newDevices.ervPresets.push(preset);
|
|
339
339
|
const presetsCount = newDevices.ervPresets.length;
|
|
340
340
|
textErvPresets = `ERV Presets: ${presetsCount}`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.0-beta.
|
|
4
|
+
"version": "3.1.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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@homebridge/plugin-ui-utils": "^1.0.3",
|
|
36
36
|
"async-mqtt": "^2.6.3",
|
|
37
|
-
"axios": "^1.7.
|
|
37
|
+
"axios": "^1.7.6",
|
|
38
38
|
"express": "^4.19.2"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|