homebridge-melcloud-control 4.2.5-beta.27 → 4.2.5-beta.29

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
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
27
  ## Changes
28
28
 
29
29
  - fix device control stop working after some time
30
+ - updated presets, schedules, scenes characteristics
30
31
  - stability and performance improvements
31
32
  - config schema updated
32
33
  - readme updated
package/README.md CHANGED
@@ -31,12 +31,13 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
31
31
  * Support multiple accounts, buildings, floors, areas.
32
32
  * Support temperature display units `Celsius/Fahrenheit`.
33
33
  * Support assing inividual operating mode for `Heat/Cool/Auto`.
34
- * Support direct `Presets` control, only MELCloud.
35
- * Support direct `Schedules` control, only MELCloud Home.
36
- * Support direct `Frost protection` control, only MELCloud Home.
37
- * Support direct `Overheat Protection` control, only MELCloud Home.
38
- * Support direct `Holiday Mode` control.
39
- * Support direct `Functions` control using extra `Buttons`, switch it to `OFF` restore previous device state.
34
+ * Support direct `Presets`, only MELCloud.
35
+ * Support direct `Schedules`, only MELCloud Home.
36
+ * Support direct `Scenes`, only MELCloud Home.
37
+ * Support direct `Frost protection`, only MELCloud Home.
38
+ * Support direct `Overheat Protection`, only MELCloud Home.
39
+ * Support direct `Holiday Mode`.
40
+ * Support direct `Functions`, using extra `Buttons`, switch it to `OFF` restore previous device state.
40
41
  * Support automations, shortcuts and Siri.
41
42
  * Support external integrations, [RESTFul](https://github.com/grzegorz914/homebridge-melcloud-control?tab=readme-ov-file#restful-integration), [MQTT](https://github.com/grzegorz914/homebridge-melcloud-control?tab=readme-ov-file#mqtt-integration).
42
43
  * Control devices over local network You need use ESP module and [Tasmota Control](https://github.com/grzegorz914/homebridge-tasmota-control) plugin.
@@ -70,7 +71,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
70
71
  * Frost protection `ON/OFF`.
71
72
  * Overheat protection `ON/OFF`.
72
73
  * Holiday mode `ON/OFF`.
73
- * Schedule `ON/OFF`.
74
+ * Schedules `ON/OFF`.
74
75
  * Scene `ON/OFF`.
75
76
  * Sensors:
76
77
  * For automation and notifications.
@@ -88,7 +89,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
88
89
  * Frost protection.
89
90
  * Overheat protection.
90
91
  * Holiday mode.
91
- * Shedule control.
92
+ * Shedules control.
92
93
  * Shedule active.
93
94
  * Scene control.
94
95
  * Error.
@@ -129,7 +130,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
129
130
  * Physical lock controls `LOCK/UNLOCK`.
130
131
  * Presets `SET/UNSET`.
131
132
  * Holiday mode `ON/OFF`.
132
- * Schedule `ON/OFF`.
133
+ * Schedules `ON/OFF`.
133
134
  * Scene `ON/OFF`.
134
135
  * Sensors:
135
136
  * For automation and notifications.
@@ -144,7 +145,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
144
145
  * Flow Temperature Zone 1, 2, Hot Water.
145
146
  * Return Temperature Zone 1, 2, Hot Water.
146
147
  * Holiday mode.
147
- * Shedule control.
148
+ * Shedules control.
148
149
  * Shedule active.
149
150
  * Scene control.
150
151
  * Error.
@@ -165,7 +166,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
165
166
  * Fan speed mode `AUTO/1/2/3/4`.
166
167
  * Presets `SET/UNSET`.
167
168
  * Holiday mode `ON/OFF`.
168
- * Schedule `ON/OFF`.
169
+ * Schedules `ON/OFF`.
169
170
  * Scene `ON/OFF`.
170
171
  * Sensors:
171
172
  * For automation and notifications.
@@ -181,7 +182,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
181
182
  * CO2 detected and level.
182
183
  * PM2.5 air quality and level.
183
184
  * Holiday mode.
184
- * Shedule control.
185
+ * Shedules control.
185
186
  * Shedule active.
186
187
  * Scene control.
187
188
  * Error.
@@ -394,7 +395,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
394
395
  | | `http//ip:port` | `FrostProtection` | `true`, `false` | boolean | Frost protectin. |
395
396
  | | `http//ip:port` | `OverheatProtection` | `true`, `false` | boolean | Overheat protection. |
396
397
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
397
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
398
+ | | `http//ip:port` | `Schedules` | `true`, `false` | boolean | Schedules. |
398
399
  | Heat Pump | | | | | |
399
400
  | POST | `http//ip:port` | `Power` | `true`, `false` | boolean | Power state. |
400
401
  | | `http//ip:port` | `ForcedHotWaterMode` | `true`, `false` | boolean | Force hot water. |
@@ -413,7 +414,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
413
414
  | | `http//ip:port` | `SetCoolFlowTemperatureZone2` | `0.0` | float | Cool flow temperature zone 2. |
414
415
  | | `http//ip:port` | `SetTankWaterTemperature` | `0.0` | float | Hot water temperature. |
415
416
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
416
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
417
+ | | `http//ip:port` | `Schedules` | `true`, `false` | boolean | Schedules. |
417
418
  | Energy Recovery Ventilation | | | | | |
418
419
  | POST | `http//ip:port` | `Power` | `true`, `false` | boolean | Power state. |
419
420
  | | `http//ip:port` | `NightPurgeMode` | `true`, `false` | boolean | Night purge mode. |
@@ -427,7 +428,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
427
428
  | | `http//ip:port` | `DefaultCoolingSetTemperature` | `0.0` | float | Default cooling temperature. |
428
429
  | | `http//ip:port` | `DefaultHeatingSetTemperature` | `0.0` | float | Default heating temperature. |
429
430
  | | `http//ip:port` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
430
- | | `http//ip:port` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
431
+ | | `http//ip:port` | `Schedules` | `true`, `false` | boolean | Schedules. |
431
432
 
432
433
  ### MQTT Integration
433
434
 
@@ -456,7 +457,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
456
457
  | | `Set` | `FrostProtection` | `true`, `false` | boolean | Frost protectin. |
457
458
  | | `Set` | `OverheatProtection` | `true`, `false` | boolean | Overheat protection. |
458
459
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
459
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
460
+ | | `Set` | `Schedules` | `true`, `false` | boolean | Schedules. |
460
461
  | Heat Pump | | | | | |
461
462
  | Subscribe | `Set` | `Power` | `true`, `false` | boolean | Power state. |
462
463
  | | `Set` | `ForcedHotWaterMode` | `true`, `false` | boolean | Force hot water. |
@@ -475,7 +476,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
475
476
  | | `Set` | `SetCoolFlowTemperatureZone2` | `0.0` | float | Cool flow temperature zone 2. |
476
477
  | | `Set` | `SetTankWaterTemperature` | `0.0` | float | Hot water temperature. |
477
478
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
478
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
479
+ | | `Set` | `Schedules` | `true`, `false` | boolean | Schedules. |
479
480
  | Energy Recovery Ventilation | | | | | |
480
481
  | Subscribe | `Set` | `Power` | `true`, `false` | boolean | Power state. |
481
482
  | | `Set` | `NightPurgeMode` | `true`, `false` | boolean | Night purge mode. |
@@ -489,4 +490,4 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
489
490
  | | `Set` | `DefaultCoolingSetTemperature` | `23.0` | float | Default cooling temperature. |
490
491
  | | `Set` | `DefaultHeatingSetTemperature` | `21.0` | float | Default heating temperature. |
491
492
  | | `Set` | `HolidayMode` | `true`, `false` | boolean | Holiday mode. |
492
- | | `Set` | `ScheduleEnabled` | `true`, `false` | boolean | Schedules. |
493
+ | | `Set` | `Schedules` | `true`, `false` | boolean | Schedules. |
@@ -24,7 +24,7 @@
24
24
  "user": {
25
25
  "title": "User",
26
26
  "type": "string",
27
- "placeholder": "User",
27
+ "placeholder": "Email",
28
28
  "description": "MELCloud account username."
29
29
  },
30
30
  "passwd": {
@@ -41,7 +41,7 @@
41
41
  "maxLength": 2,
42
42
  "pattern": "^[0-9]+$",
43
43
  "default": "0",
44
- "description": "Here select the language used in MELCloud account.",
44
+ "description": "Here select the account language.",
45
45
  "anyOf": [
46
46
  {
47
47
  "title": "English",
@@ -205,7 +205,7 @@
205
205
  "title": "Account Type",
206
206
  "type": "string",
207
207
  "default": "disabled",
208
- "description": "Here select the MELCloud account type.",
208
+ "description": "Here select the account type.",
209
209
  "anyOf": [
210
210
  {
211
211
  "title": "None/Disabled",
@@ -698,7 +698,7 @@
698
698
  "title": "Prefix",
699
699
  "type": "boolean",
700
700
  "default": false,
701
- "description": "Enable/disable the accessory name as a prefix for schedule name.",
701
+ "description": "Enable/disable the accessory name as a prefix for scene name.",
702
702
  "condition": {
703
703
  "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
704
704
  }
@@ -1521,7 +1521,7 @@
1521
1521
  "title": "Prefix",
1522
1522
  "type": "boolean",
1523
1523
  "default": false,
1524
- "description": "Enable/disable the accessory name as a prefix for schedule name.",
1524
+ "description": "Enable/disable the accessory name as a prefix for scene name.",
1525
1525
  "condition": {
1526
1526
  "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
1527
1527
  }
@@ -2123,7 +2123,7 @@
2123
2123
  "title": "Prefix",
2124
2124
  "type": "boolean",
2125
2125
  "default": false,
2126
- "description": "Enable/disable the accessory name as a prefix for schedule name.",
2126
+ "description": "Enable/disable the accessory name as a prefix for scene name.",
2127
2127
  "condition": {
2128
2128
  "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
2129
2129
  }
@@ -2340,27 +2340,27 @@
2340
2340
  "description": "This enable logging device info on plugin start."
2341
2341
  },
2342
2342
  "success": {
2343
- "title": "Log Success",
2343
+ "title": "Success",
2344
2344
  "type": "boolean",
2345
2345
  "default": true
2346
2346
  },
2347
2347
  "info": {
2348
- "title": "Log Info",
2348
+ "title": "Info",
2349
2349
  "type": "boolean",
2350
2350
  "default": false
2351
2351
  },
2352
2352
  "warn": {
2353
- "title": "Log Warn",
2353
+ "title": "Warn",
2354
2354
  "type": "boolean",
2355
2355
  "default": true
2356
2356
  },
2357
2357
  "error": {
2358
- "title": "Log Error",
2358
+ "title": "Error",
2359
2359
  "type": "boolean",
2360
2360
  "default": true
2361
2361
  },
2362
2362
  "debug": {
2363
- "title": "Log Debug",
2363
+ "title": "Debug",
2364
2364
  "type": "boolean",
2365
2365
  "default": false
2366
2366
  }
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.5-beta.27",
4
+ "version": "4.2.5-beta.29",
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
@@ -261,7 +261,7 @@ class DeviceAta extends EventEmitter {
261
261
  deviceData.Device[key].Enabled = value;
262
262
  flag = 'overheatprotection';
263
263
  break;
264
- case 'ScheduleEnabled':
264
+ case 'Schedules':
265
265
  if (this.accountType === 'melcloud') return;
266
266
 
267
267
  deviceData.Device[key].Enabled = value;
@@ -527,7 +527,7 @@ class DeviceAta extends EventEmitter {
527
527
  try {
528
528
  this.accessory.useFahrenheit = value ? true : false;
529
529
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
530
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
530
+ this.accountInfo.UseFahrenheit = value ? true : false;
531
531
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
532
532
  } catch (error) {
533
533
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
@@ -622,7 +622,7 @@ class DeviceAta extends EventEmitter {
622
622
  try {
623
623
  this.accessory.useFahrenheit = value ? true : false;
624
624
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
625
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
625
+ this.accountInfo.UseFahrenheit = value ? true : false;
626
626
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
627
627
  } catch (error) {
628
628
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
package/src/deviceatw.js CHANGED
@@ -652,7 +652,7 @@ class DeviceAtw extends EventEmitter {
652
652
  try {
653
653
  this.accessory.useFahrenheit = value ? true : false;
654
654
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
655
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
655
+ this.accountInfo.UseFahrenheit = value ? true : false;
656
656
  await this.melCloudAtw.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
657
657
  } catch (error) {
658
658
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
@@ -838,7 +838,7 @@ class DeviceAtw extends EventEmitter {
838
838
  try {
839
839
  this.accessory.useFahrenheit = value ? true : false;
840
840
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
841
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
841
+ this.accountInfo.UseFahrenheit = value ? true : false;
842
842
  await this.melCloudAtw.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
843
843
  } catch (error) {
844
844
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
package/src/deviceerv.js CHANGED
@@ -458,7 +458,7 @@ class DeviceErv extends EventEmitter {
458
458
  try {
459
459
  this.accessory.useFahrenheit = value ? true : false;
460
460
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
461
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
461
+ this.accountInfo.UseFahrenheit = value ? true : false;
462
462
  await this.melCloudErv.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
463
463
  } catch (error) {
464
464
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
@@ -551,7 +551,7 @@ class DeviceErv extends EventEmitter {
551
551
  try {
552
552
  this.accessory.useFahrenheit = value ? true : false;
553
553
  if (this.logInfo) this.emit('info', `Set temperature display unit: ${TemperatureDisplayUnits[value]}`);
554
- this.accountInfo.LoginData.UseFahrenheit = value ? true : false;
554
+ this.accountInfo.UseFahrenheit = value ? true : false;
555
555
  await this.melCloudErv.send(this.accountType, this.displayType, deviceData, 'account', this.accountInfo);
556
556
  } catch (error) {
557
557
  if (this.logWarn) this.emit('warn', `Set temperature display unit error: ${error}`);
package/src/melcloud.js CHANGED
@@ -125,7 +125,7 @@ class MelCloud extends EventEmitter {
125
125
  if (this.logDebug) this.emit('debug', `Connecting to MELCloud`);
126
126
 
127
127
  try {
128
- const accountInfo = { State: false, Info: '', LoginData: null, UseFahrenheit: false }
128
+ const accountInfo = { State: false, Info: '', Account: null, UseFahrenheit: false }
129
129
 
130
130
  const payload = {
131
131
  Email: this.user,
@@ -175,7 +175,8 @@ class MelCloud extends EventEmitter {
175
175
 
176
176
  accountInfo.State = true;
177
177
  accountInfo.Info = 'Connect to MELCloud Success';
178
- accountInfo.LoginData = loginData;
178
+ accountInfo.UseFahrenheit = loginData.UseFahrenheit;
179
+ accountInfo.Account = account;
179
180
  await this.functions.saveData(this.accountFile, accountInfo);
180
181
 
181
182
  return accountInfo
@@ -70,12 +70,7 @@ class MelCloudAta extends EventEmitter {
70
70
  deviceData.Device.DefaultHeatingSetTemperature = temps?.defaultHeatingSetTemperature ?? 20;
71
71
  deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
72
72
  }
73
-
74
- const safeConfig = {
75
- ...deviceData,
76
- Headers: 'removed',
77
- };
78
- if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(safeConfig, null, 2)}`);
73
+ if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
79
74
 
80
75
  //device
81
76
  const serialNumber = deviceData.SerialNumber || '4.0.0';
@@ -137,17 +132,17 @@ class MelCloudAta extends EventEmitter {
137
132
  let path = '';
138
133
  switch (accountType) {
139
134
  case "melcloud":
140
- if (displayType === 1 && deviceData.Device.OperationMode === 8) {
141
- deviceData.Device.SetTemperature = (deviceData.Device.DefaultCoolingSetTemperature + deviceData.Device.DefaultHeatingSetTemperature) / 2;
142
- }
143
-
144
135
  switch (flag) {
145
136
  case 'account':
137
+ flagData.Account.LoginData.UseFahrenheit = flagData.UseFahrenheit;
146
138
  payload = { data: flagData.LoginData };
147
139
  path = ApiUrls.UpdateApplicationOptions;
148
140
  await this.functions.saveData(this.accountFile, flagData);
149
141
  break;
150
142
  default:
143
+ if (displayType === 1 && deviceData.Device.OperationMode === 8) {
144
+ deviceData.Device.SetTemperature = (deviceData.Device.DefaultCoolingSetTemperature + deviceData.Device.DefaultHeatingSetTemperature) / 2;
145
+ }
151
146
  deviceData.Device.EffectiveFlags = flag;
152
147
  payload = {
153
148
  DeviceID: deviceData.Device.DeviceID,
@@ -60,12 +60,7 @@ class MelCloudAtw extends EventEmitter {
60
60
  if (this.accountType === 'melcloudhome') {
61
61
  deviceData.Scenes = devicesData.Scenes ?? [];
62
62
  }
63
-
64
- const safeConfig = {
65
- ...deviceData,
66
- Headers: 'removed',
67
- };
68
- if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(safeConfig, null, 2)}`);
63
+ if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
69
64
 
70
65
  //device
71
66
  //device
@@ -146,6 +141,7 @@ class MelCloudAtw extends EventEmitter {
146
141
  case "melcloud":
147
142
  switch (flag) {
148
143
  case 'account':
144
+ flagData.Account.LoginData.UseFahrenheit = flagData.UseFahrenheit;
149
145
  payload = { data: flagData.LoginData };
150
146
  path = ApiUrls.UpdateApplicationOptions;
151
147
  await this.functions.saveData(this.accountFile, flagData);
@@ -65,12 +65,7 @@ class MelCloudErv extends EventEmitter {
65
65
  deviceData.Device.DefaultHeatingSetTemperature = temps?.defaultHeatingSetTemperature ?? 20;
66
66
  deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
67
67
  }
68
-
69
- const safeConfig = {
70
- ...deviceData,
71
- Headers: 'removed',
72
- };
73
- if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(safeConfig, null, 2)}`);
68
+ if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
74
69
 
75
70
  //device
76
71
  const serialNumber = deviceData.SerialNumber || '4.0.0';
@@ -134,6 +129,7 @@ class MelCloudErv extends EventEmitter {
134
129
  case "melcloud":
135
130
  switch (flag) {
136
131
  case 'account':
132
+ flagData.Account.LoginData.UseFahrenheit = flagData.UseFahrenheit;
137
133
  payload = { data: flagData.LoginData };
138
134
  path = ApiUrls.UpdateApplicationOptions;
139
135
  await this.functions.saveData(this.accountFile, flagData);
@@ -180,6 +176,7 @@ class MelCloudErv extends EventEmitter {
180
176
  path = ApiUrls.SetErv;
181
177
  break;
182
178
  }
179
+
183
180
  if (this.logDebug) this.emit('debug', `Send Data: ${JSON.stringify(payload, null, 2)}`);
184
181
  await axios(path, {
185
182
  method: 'POST',
@@ -9,7 +9,7 @@ import Functions from './functions.js';
9
9
  import { ApiUrlsHome, LanguageLocaleMap } from './constants.js';
10
10
  const execPromise = promisify(exec);
11
11
 
12
- class MelCloud extends EventEmitter {
12
+ class MelCloudHome extends EventEmitter {
13
13
  constructor(account, accountFile, buildingsFile, devicesFile, pluginStart = false) {
14
14
  super();
15
15
  this.accountType = account.type;
@@ -194,10 +194,17 @@ class MelCloud extends EventEmitter {
194
194
  return devicesList;
195
195
  }
196
196
 
197
- const scenes = await this.checkScenesList();
197
+ // Get scenes
198
+ let scenes = [];
199
+ try {
200
+ scenes = await this.checkScenesList();
201
+ if (this.logDebug) this.emit('debug', `Found ${scenes.length} svenes`);
202
+ } catch (error) {
203
+ if (this.logDebug) this.emit('debug', `Get scenes error: ${error} `);
204
+ }
198
205
 
199
206
  devicesList.State = true;
200
- devicesList.Info = `Found ${devicesCount} devices`;
207
+ devicesList.Info = `Found ${devicesCount} devices and ${scenes.length} scenes`;
201
208
  devicesList.Devices = devices;
202
209
  devicesList.Scenes = scenes;
203
210
  devicesList.Headers = this.headers;
@@ -217,7 +224,7 @@ class MelCloud extends EventEmitter {
217
224
 
218
225
  let browser;
219
226
  try {
220
- const accountInfo = { State: false, Info: '', UseFahrenheit: false };
227
+ const accountInfo = { State: false, Info: '', Account: {}, UseFahrenheit: false };
221
228
  let chromiumPath = await this.functions.ensureChromiumInstalled();
222
229
 
223
230
  // === Fallback to Puppeteer's built-in Chromium ===
@@ -367,5 +374,5 @@ class MelCloud extends EventEmitter {
367
374
  }
368
375
  }
369
376
 
370
- export default MelCloud;
377
+ export default MelCloudHome;
371
378