homebridge-melcloud-control 4.2.7 → 4.2.8

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/CHANGELOG.md CHANGED
@@ -22,6 +22,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
 
23
23
  - Do not use Homebridge UI > v5.5.0 because of break config.json
24
24
 
25
+ # [4.2.8] - (18.11.2025)
26
+
27
+ ## Changes
28
+
29
+ - added option to set only switch for presets, scenses, schedules or buttons
30
+ - readme updated
31
+ - cleanup
32
+
25
33
  # [4.2.7] - (18.11.2025)
26
34
 
27
35
  ## Changes
package/README.md CHANGED
@@ -188,12 +188,12 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
188
188
  ### HOME app current device mode display
189
189
 
190
190
  * In AUTO mode, the tile display current state based on current mode:
191
- * In HEATING mode, th tile display current state as HEATING - orange
192
- * In COOLING mode, the tile display current state as COOLING - blue
193
- * In DRY mode, the tile display current state as IDLE - black
194
- * In FAN mode, the tile display current state as IDLE - black
195
- * In IDLE mode, the tile display current state as IDLE - black
196
- * In INACTIVE mode, the tile display current state as INACTIVE - transparent
191
+ * HEATING mode, th tile display current state as HEATING - orange
192
+ * COOLING mode, the tile display current state as COOLING - blue
193
+ * DRY mode, the tile display current state as IDLE - black
194
+ * FAN mode, the tile display current state as IDLE - black
195
+ * IDLE mode, the tile display current state as IDLE - black
196
+ * INACTIVE mode, the tile display current state as INACTIVE - transparent
197
197
 
198
198
  ### AUTO Mode
199
199
 
@@ -260,18 +260,18 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
260
260
  | `ataDevices[].presets[]` | Array of ATA device `Presets` created automatically after login to MELCloud from plugin config UI. |
261
261
  | `ataDevices[].presets[].id` | Read only data, do not change it. |
262
262
  | `ataDevices[].presets[].name` | Here You can change the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
263
- | `ataDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
263
+ | `ataDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
264
264
  | `ataDevices[].schedules[]` | Array of ATA device `Schedules` created automatically after login to MELCloud Home from plugin config UI. |
265
265
  | `ataDevices[].schedules[].id` | Read only data, do not change it. |
266
266
  | `ataDevices[].schedules[].name` | Here You can change the `Schedule Name` which is exposed to the `Homebridge/HomeKit`. |
267
- | `ataDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
267
+ | `ataDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
268
268
  | `ataDevices[].scenes[].id` | Read only data, do not change it. |
269
269
  | `ataDevices[].scenes[].name` | Here You can change the `Scene Name` which is exposed to the `Homebridge/HomeKit`. |
270
- | `ataDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
270
+ | `ataDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
271
271
  | `ataDevices[].buttonsSensors[]` | Array of buttons sensors. |
272
272
  | `ataDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
273
273
  | `ataDevices[].buttonsSensors[].mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
274
- | `ataDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
274
+ | `ataDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
275
275
  | `ataDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
276
276
  | `atwDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
277
277
  | `atwDevices[].id` | Read only data, do not change it. |
@@ -297,18 +297,18 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
297
297
  | `atwDevices[].presets[]` | Array of ATW device `Presets` created automatically after login to MELCloud from plugin config UI. |
298
298
  | `atwDevices[].presets[].id` | Read only data, do not change it. |
299
299
  | `atwDevices[].presets[].name` | Here You can change the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
300
- | `atwDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
300
+ | `atwDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
301
301
  | `atwDevices[].schedules[]` | Array of ATW device `Schedules` created automatically after login to MELCloud Home from plugin config UI. |
302
302
  | `atwDevices[].schedules[].id` | Read only data, do not change it. |
303
303
  | `atwDevices[].schedules[].name` | Here You can change the `Schedule Name` which is exposed to the `Homebridge/HomeKit`. |
304
- | `atwDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
304
+ | `atwDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
305
305
  | `atwDevices[].scenes[].id` | Read only data, do not change it. |
306
306
  | `atwDevices[].scenes[].name` | Here You can change the `Scene Name` which is exposed to the `Homebridge/HomeKit`. |
307
- | `atwDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
307
+ | `atwDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
308
308
  | `atwDevices[].buttonsSensors[]` | Array of buttons sensors. |
309
309
  | `atwDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
310
310
  | `atwDevices[].buttonsSensors[].mode` | Here select button mode. |
311
- | `atwDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
311
+ | `atwDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
312
312
  | `atwDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
313
313
  | `ervDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
314
314
  | `ervDevices[].id` | Read only data, do not change it. |
@@ -327,18 +327,18 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
327
327
  | `ervDevices[].presets[]` | Array of ERV device `Presets` created automatically after login to MELCloud from plugin config UI. |
328
328
  | `ervDevices[].presets[].id` | Read only data, do not change it. |
329
329
  | `ervDevices[].presets[].name` | Here You can change the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
330
- | `ervDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
330
+ | `ervDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
331
331
  | `ervDevices[].schedules[]` | Array of ERV device `Schedules` created automatically after login to MELCloud Home from plugin config UI. |
332
332
  | `ervDevices[].schedules[].id` | Read only data, do not change it. |
333
333
  | `ervDevices[].schedules[].name` | Here You can change the `Schedule Name` which is exposed to the `Homebridge/HomeKit`. |
334
- | `ervDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
334
+ | `ervDevices[].schedules[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
335
335
  | `ervDevices[].scenes[].id` | Read only data, do not change it. |
336
336
  | `ervDevices[].scenes[].name` | Here You can change the `Scene Name` which is exposed to the `Homebridge/HomeKit`. |
337
- | `ervDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
337
+ | `ervDevices[].scenes[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
338
338
  | `ervDevices[].buttonsSensors[]` | Array of buttons sensors. |
339
339
  | `ervDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
340
340
  | `ervDevices[].buttonsSensors[].mode` | Here select button mode. |
341
- | `ervDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch +Contact Sensor`. |
341
+ | `ervDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`, `4 - Switch + Motion Sensor`, `5 - Switch +Occupancy Sensor`, `6 - Switch + Contact Sensor`, `7 - Switch`. |
342
342
  | `ervDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
343
343
  | `refreshInterval` | Here set the background account data refresh time in (sec) , only for old MELCLoud, default `120s`. |
344
344
  | `log{}` | Log object. |
@@ -463,7 +463,7 @@
463
463
  "title": "Display Type",
464
464
  "type": "integer",
465
465
  "minimum": 0,
466
- "maximum": 6,
466
+ "maximum": 7,
467
467
  "default": 0,
468
468
  "description": "Select the characteristic type to be displayed in HomeKit app.",
469
469
  "anyOf": [
@@ -508,6 +508,12 @@
508
508
  "enum": [
509
509
  6
510
510
  ]
511
+ },
512
+ {
513
+ "title": "Switch",
514
+ "enum": [
515
+ 7
516
+ ]
511
517
  }
512
518
  ]
513
519
  },
@@ -550,7 +556,7 @@
550
556
  "title": "Display Type",
551
557
  "type": "integer",
552
558
  "minimum": 0,
553
- "maximum": 6,
559
+ "maximum": 7,
554
560
  "default": 0,
555
561
  "description": "Select the characteristic type to be displayed in HomeKit app.",
556
562
  "anyOf": [
@@ -595,6 +601,12 @@
595
601
  "enum": [
596
602
  6
597
603
  ]
604
+ },
605
+ {
606
+ "title": "Switch",
607
+ "enum": [
608
+ 7
609
+ ]
598
610
  }
599
611
  ]
600
612
  },
@@ -637,7 +649,7 @@
637
649
  "title": "Display Type",
638
650
  "type": "integer",
639
651
  "minimum": 0,
640
- "maximum": 6,
652
+ "maximum": 7,
641
653
  "default": 0,
642
654
  "description": "Select the characteristic type to be displayed in HomeKit app.",
643
655
  "anyOf": [
@@ -682,6 +694,12 @@
682
694
  "enum": [
683
695
  6
684
696
  ]
697
+ },
698
+ {
699
+ "title": "Switch",
700
+ "enum": [
701
+ 7
702
+ ]
685
703
  }
686
704
  ]
687
705
  },
@@ -719,7 +737,7 @@
719
737
  "title": "Display Type",
720
738
  "type": "integer",
721
739
  "minimum": 0,
722
- "maximum": 6,
740
+ "maximum": 7,
723
741
  "default": 0,
724
742
  "description": "Select the characteristic type to be displayed in HomeKit app.",
725
743
  "anyOf": [
@@ -764,6 +782,12 @@
764
782
  "enum": [
765
783
  6
766
784
  ]
785
+ },
786
+ {
787
+ "title": "Switch",
788
+ "enum": [
789
+ 7
790
+ ]
767
791
  }
768
792
  ]
769
793
  },
@@ -1286,7 +1310,7 @@
1286
1310
  "title": "Display Type",
1287
1311
  "type": "integer",
1288
1312
  "minimum": 0,
1289
- "maximum": 6,
1313
+ "maximum": 7,
1290
1314
  "default": 0,
1291
1315
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1292
1316
  "anyOf": [
@@ -1331,6 +1355,12 @@
1331
1355
  "enum": [
1332
1356
  6
1333
1357
  ]
1358
+ },
1359
+ {
1360
+ "title": "Switch",
1361
+ "enum": [
1362
+ 7
1363
+ ]
1334
1364
  }
1335
1365
  ]
1336
1366
  },
@@ -1373,7 +1403,7 @@
1373
1403
  "title": "Display Type",
1374
1404
  "type": "integer",
1375
1405
  "minimum": 0,
1376
- "maximum": 6,
1406
+ "maximum": 7,
1377
1407
  "default": 0,
1378
1408
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1379
1409
  "anyOf": [
@@ -1418,6 +1448,12 @@
1418
1448
  "enum": [
1419
1449
  6
1420
1450
  ]
1451
+ },
1452
+ {
1453
+ "title": "Switch",
1454
+ "enum": [
1455
+ 7
1456
+ ]
1421
1457
  }
1422
1458
  ]
1423
1459
  },
@@ -1460,7 +1496,7 @@
1460
1496
  "title": "Display Type",
1461
1497
  "type": "integer",
1462
1498
  "minimum": 0,
1463
- "maximum": 6,
1499
+ "maximum": 7,
1464
1500
  "default": 0,
1465
1501
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1466
1502
  "anyOf": [
@@ -1505,6 +1541,12 @@
1505
1541
  "enum": [
1506
1542
  6
1507
1543
  ]
1544
+ },
1545
+ {
1546
+ "title": "Switch",
1547
+ "enum": [
1548
+ 7
1549
+ ]
1508
1550
  }
1509
1551
  ]
1510
1552
  },
@@ -1542,7 +1584,7 @@
1542
1584
  "title": "Display Type",
1543
1585
  "type": "integer",
1544
1586
  "minimum": 0,
1545
- "maximum": 6,
1587
+ "maximum": 7,
1546
1588
  "default": 0,
1547
1589
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1548
1590
  "anyOf": [
@@ -1587,6 +1629,12 @@
1587
1629
  "enum": [
1588
1630
  6
1589
1631
  ]
1632
+ },
1633
+ {
1634
+ "title": "Switch",
1635
+ "enum": [
1636
+ 7
1637
+ ]
1590
1638
  }
1591
1639
  ]
1592
1640
  },
@@ -1888,7 +1936,7 @@
1888
1936
  "title": "Display Type",
1889
1937
  "type": "integer",
1890
1938
  "minimum": 0,
1891
- "maximum": 6,
1939
+ "maximum": 7,
1892
1940
  "default": 0,
1893
1941
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1894
1942
  "anyOf": [
@@ -1933,6 +1981,12 @@
1933
1981
  "enum": [
1934
1982
  6
1935
1983
  ]
1984
+ },
1985
+ {
1986
+ "title": "Switch",
1987
+ "enum": [
1988
+ 7
1989
+ ]
1936
1990
  }
1937
1991
  ]
1938
1992
  },
@@ -1975,7 +2029,7 @@
1975
2029
  "title": "Display Type",
1976
2030
  "type": "integer",
1977
2031
  "minimum": 0,
1978
- "maximum": 6,
2032
+ "maximum": 7,
1979
2033
  "default": 0,
1980
2034
  "description": "Select the characteristic type to be displayed in HomeKit app.",
1981
2035
  "anyOf": [
@@ -2020,6 +2074,12 @@
2020
2074
  "enum": [
2021
2075
  6
2022
2076
  ]
2077
+ },
2078
+ {
2079
+ "title": "Switch",
2080
+ "enum": [
2081
+ 7
2082
+ ]
2023
2083
  }
2024
2084
  ]
2025
2085
  },
@@ -2062,7 +2122,7 @@
2062
2122
  "title": "Display Type",
2063
2123
  "type": "integer",
2064
2124
  "minimum": 0,
2065
- "maximum": 6,
2125
+ "maximum": 7,
2066
2126
  "default": 0,
2067
2127
  "description": "Select the characteristic type to be displayed in HomeKit app.",
2068
2128
  "anyOf": [
@@ -2107,6 +2167,12 @@
2107
2167
  "enum": [
2108
2168
  6
2109
2169
  ]
2170
+ },
2171
+ {
2172
+ "title": "Switch",
2173
+ "enum": [
2174
+ 7
2175
+ ]
2110
2176
  }
2111
2177
  ]
2112
2178
  },
@@ -2144,7 +2210,7 @@
2144
2210
  "title": "Display Type",
2145
2211
  "type": "integer",
2146
2212
  "minimum": 0,
2147
- "maximum": 6,
2213
+ "maximum": 7,
2148
2214
  "default": 0,
2149
2215
  "description": "Select the characteristic type to be displayed in HomeKit app.",
2150
2216
  "anyOf": [
@@ -2189,6 +2255,12 @@
2189
2255
  "enum": [
2190
2256
  6
2191
2257
  ]
2258
+ },
2259
+ {
2260
+ "title": "Switch",
2261
+ "enum": [
2262
+ 7
2263
+ ]
2192
2264
  }
2193
2265
  ]
2194
2266
  },
package/index.js CHANGED
@@ -136,7 +136,7 @@ class MelCloudPlatform {
136
136
  device.id = String(device.id);
137
137
  const deviceName = device.name;
138
138
  const deviceType = device.type;
139
- const deviceTypeText = device.typeString;
139
+ const deviceTypeString = device.typeString;
140
140
  const deviceRefreshInterval = (device.refreshInterval ?? 5) * 1000;
141
141
  const defaultTempsFile = `${prefDir}/${accountName}_${device.id}_Temps`;
142
142
 
@@ -176,21 +176,21 @@ class MelCloudPlatform {
176
176
  configuredDevice = new DeviceErv(api, account, device, devicesFile, defaultTempsFile, accountInfo, accountFile);
177
177
  break;
178
178
  default:
179
- if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeText}, ${deviceName}, unknown device: ${deviceType}.`);
179
+ if (logLevel.warn) log.warn(`${accountName}, ${deviceTypeString}, ${deviceName}, unknown device: ${deviceType}.`);
180
180
  return;
181
181
  }
182
182
 
183
183
  configuredDevice.on('devInfo', (info) => logLevel.devInfo && log.info(info))
184
- .on('success', (msg) => logLevel.success && log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, ${msg}`))
185
- .on('info', (msg) => logLevel.info && log.info(`${accountName}, ${deviceTypeText}, ${deviceName}, ${msg}`))
186
- .on('debug', (msg) => logLevel.debug && log.info(`${accountName}, ${deviceTypeText}, ${deviceName}, debug: ${msg}`))
187
- .on('warn', (msg) => logLevel.warn && log.warn(`${accountName}, ${deviceTypeText}, ${deviceName}, ${msg}`))
188
- .on('error', (msg) => logLevel.error && log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${msg}`));
184
+ .on('success', (msg) => logLevel.success && log.success(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
185
+ .on('info', (msg) => logLevel.info && log.info(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
186
+ .on('debug', (msg) => logLevel.debug && log.info(`${accountName}, ${deviceTypeString}, ${deviceName}, debug: ${msg}`))
187
+ .on('warn', (msg) => logLevel.warn && log.warn(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`))
188
+ .on('error', (msg) => logLevel.error && log.error(`${accountName}, ${deviceTypeString}, ${deviceName}, ${msg}`));
189
189
 
190
190
  const accessory = await configuredDevice.start();
191
191
  if (accessory) {
192
192
  api.publishExternalAccessories(PluginName, [accessory]);
193
- if (logLevel.success) log.success(`${accountName}, ${deviceTypeText}, ${deviceName}, Published as external accessory.`);
193
+ if (logLevel.success) log.success(`${accountName}, ${deviceTypeString}, ${deviceName}, Published as external accessory.`);
194
194
 
195
195
  //start impulse generators\
196
196
  await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
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.7",
4
+ "version": "4.2.8",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",