homebridge-melcloud-control 4.1.2-beta.34 → 4.1.2-beta.36
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/config.schema.json +66 -58
- package/package.json +2 -2
- package/src/melcloud.js +13 -1
package/config.schema.json
CHANGED
|
@@ -2138,7 +2138,7 @@
|
|
|
2138
2138
|
{
|
|
2139
2139
|
"key": "accounts[].ataDevices",
|
|
2140
2140
|
"type": "tabarray",
|
|
2141
|
-
"title": "{{ value.
|
|
2141
|
+
"title": "{{ value.title }}",
|
|
2142
2142
|
"items": [
|
|
2143
2143
|
{
|
|
2144
2144
|
"key": "accounts[].ataDevices[]",
|
|
@@ -2255,7 +2255,7 @@
|
|
|
2255
2255
|
{
|
|
2256
2256
|
"key": "accounts[].ataDevices[].buttonsSensors",
|
|
2257
2257
|
"type": "tabarray",
|
|
2258
|
-
"title": "{{ value.name
|
|
2258
|
+
"title": "{{ value.name }}",
|
|
2259
2259
|
"items": [
|
|
2260
2260
|
"accounts[].ataDevices[].buttonsSensors[].displayType",
|
|
2261
2261
|
"accounts[].ataDevices[].buttonsSensors[].mode",
|
|
@@ -2374,41 +2374,45 @@
|
|
|
2374
2374
|
"expandable": true,
|
|
2375
2375
|
"expanded": false,
|
|
2376
2376
|
"items": [
|
|
2377
|
-
"accounts[].atwDevices[].errorSensor",
|
|
2378
2377
|
{
|
|
2379
|
-
"
|
|
2380
|
-
"type": "
|
|
2381
|
-
"
|
|
2382
|
-
"expandable": true,
|
|
2383
|
-
"expanded": false,
|
|
2384
|
-
"items": [
|
|
2385
|
-
"accounts[].atwDevices[].temperatureSensor",
|
|
2386
|
-
"accounts[].atwDevices[].temperatureFlowSensor",
|
|
2387
|
-
"accounts[].atwDevices[].temperatureReturnSensor",
|
|
2388
|
-
"accounts[].atwDevices[].temperatureFlowZone1Sensor",
|
|
2389
|
-
"accounts[].atwDevices[].temperatureReturnZone1Sensor",
|
|
2390
|
-
"accounts[].atwDevices[].temperatureFlowWaterTankSensor",
|
|
2391
|
-
"accounts[].atwDevices[].temperatureReturnWaterTankSensor",
|
|
2392
|
-
"accounts[].atwDevices[].temperatureFlowZone2Sensor",
|
|
2393
|
-
"accounts[].atwDevices[].temperatureReturnZone2Sensor"
|
|
2394
|
-
]
|
|
2395
|
-
},
|
|
2396
|
-
{
|
|
2397
|
-
"title": "Custom",
|
|
2398
|
-
"type": "section",
|
|
2399
|
-
"description": "Section for creating custom buttons/sensors",
|
|
2400
|
-
"expandable": true,
|
|
2401
|
-
"expanded": false,
|
|
2378
|
+
"key": "accounts[].atwDevices[]",
|
|
2379
|
+
"type": "tabarray",
|
|
2380
|
+
"title": "{{ value.name }}",
|
|
2402
2381
|
"items": [
|
|
2403
2382
|
{
|
|
2404
|
-
"
|
|
2405
|
-
"
|
|
2406
|
-
|
|
2383
|
+
"title": "Temperature",
|
|
2384
|
+
"items": [
|
|
2385
|
+
"accounts[].atwDevices[].temperatureSensor",
|
|
2386
|
+
"accounts[].atwDevices[].temperatureFlowSensor",
|
|
2387
|
+
"accounts[].atwDevices[].temperatureReturnSensor",
|
|
2388
|
+
"accounts[].atwDevices[].temperatureFlowZone1Sensor",
|
|
2389
|
+
"accounts[].atwDevices[].temperatureReturnZone1Sensor",
|
|
2390
|
+
"accounts[].atwDevices[].temperatureFlowWaterTankSensor",
|
|
2391
|
+
"accounts[].atwDevices[].temperatureReturnWaterTankSensor",
|
|
2392
|
+
"accounts[].atwDevices[].temperatureFlowZone2Sensor",
|
|
2393
|
+
"accounts[].atwDevices[].temperatureReturnZone2Sensor"
|
|
2394
|
+
]
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"title": "System",
|
|
2398
|
+
"items": [
|
|
2399
|
+
"accounts[].atwDevices[].errorSensor"
|
|
2400
|
+
]
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"title": "Custom",
|
|
2407
2404
|
"items": [
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2405
|
+
{
|
|
2406
|
+
"key": "accounts[].atwDevices[].buttonsSensors",
|
|
2407
|
+
"type": "tabarray",
|
|
2408
|
+
"title": "{{ value.name }}",
|
|
2409
|
+
"items": [
|
|
2410
|
+
"accounts[].atwDevices[].buttonsSensors[].displayType",
|
|
2411
|
+
"accounts[].atwDevices[].buttonsSensors[].mode",
|
|
2412
|
+
"accounts[].atwDevices[].buttonsSensors[].name",
|
|
2413
|
+
"accounts[].atwDevices[].buttonsSensors[].namePrefix"
|
|
2414
|
+
]
|
|
2415
|
+
}
|
|
2412
2416
|
]
|
|
2413
2417
|
}
|
|
2414
2418
|
]
|
|
@@ -2519,35 +2523,39 @@
|
|
|
2519
2523
|
"expandable": true,
|
|
2520
2524
|
"expanded": false,
|
|
2521
2525
|
"items": [
|
|
2522
|
-
"accounts[].ervDevices[].errorSensor",
|
|
2523
|
-
{
|
|
2524
|
-
"title": "Temperature",
|
|
2525
|
-
"type": "section",
|
|
2526
|
-
"description": "Section for setup temperature sensors",
|
|
2527
|
-
"expandable": true,
|
|
2528
|
-
"expanded": false,
|
|
2529
|
-
"items": [
|
|
2530
|
-
"accounts[].ervDevices[].temperatureSensor",
|
|
2531
|
-
"accounts[].ervDevices[].temperatureOutdoorSensor",
|
|
2532
|
-
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2533
|
-
]
|
|
2534
|
-
},
|
|
2535
2526
|
{
|
|
2536
|
-
"
|
|
2537
|
-
"type": "
|
|
2538
|
-
"
|
|
2539
|
-
"expandable": true,
|
|
2540
|
-
"expanded": false,
|
|
2527
|
+
"key": "accounts[].atwDevices[]",
|
|
2528
|
+
"type": "tabarray",
|
|
2529
|
+
"title": "{{ value.name }}",
|
|
2541
2530
|
"items": [
|
|
2542
2531
|
{
|
|
2543
|
-
"
|
|
2544
|
-
"
|
|
2545
|
-
|
|
2532
|
+
"title": "Temperature",
|
|
2533
|
+
"items": [
|
|
2534
|
+
"accounts[].ervDevices[].temperatureSensor",
|
|
2535
|
+
"accounts[].ervDevices[].temperatureOutdoorSensor",
|
|
2536
|
+
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2537
|
+
]
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"title": "System",
|
|
2541
|
+
"items": [
|
|
2542
|
+
"accounts[].ervDevices[].errorSensor"
|
|
2543
|
+
]
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"title": "Custom",
|
|
2546
2547
|
"items": [
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2548
|
+
{
|
|
2549
|
+
"key": "accounts[].ervDevices[].buttonsSensors",
|
|
2550
|
+
"type": "tabarray",
|
|
2551
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
2552
|
+
"items": [
|
|
2553
|
+
"accounts[].ervDevices[].buttonsSensors[].displayType",
|
|
2554
|
+
"accounts[].ervDevices[].buttonsSensors[].mode",
|
|
2555
|
+
"accounts[].ervDevices[].buttonsSensors[].name",
|
|
2556
|
+
"accounts[].ervDevices[].buttonsSensors[].namePrefix"
|
|
2557
|
+
]
|
|
2558
|
+
}
|
|
2551
2559
|
]
|
|
2552
2560
|
}
|
|
2553
2561
|
]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.2-beta.
|
|
4
|
+
"version": "4.1.2-beta.36",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"async-mqtt": "^2.6.3",
|
|
40
40
|
"axios": "^1.13.2",
|
|
41
41
|
"express": "^5.1.0",
|
|
42
|
-
"puppeteer
|
|
42
|
+
"puppeteer": "^24.29.1"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"homebridge",
|
package/src/melcloud.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
1
2
|
import axios from 'axios';
|
|
2
3
|
import { exec } from 'child_process';
|
|
3
4
|
import { promisify } from 'util';
|
|
4
5
|
import EventEmitter from 'events';
|
|
5
|
-
import puppeteer from 'puppeteer
|
|
6
|
+
import puppeteer from 'puppeteer';
|
|
6
7
|
import ImpulseGenerator from './impulsegenerator.js';
|
|
7
8
|
import Functions from './functions.js';
|
|
8
9
|
import { ApiUrls, ApiUrlsHome } from './constants.js';
|
|
@@ -337,6 +338,17 @@ class MelCloud extends EventEmitter {
|
|
|
337
338
|
try {
|
|
338
339
|
const accountInfo = { State: false, Info: '', ContextKey: null, UseFahrenheit: false };
|
|
339
340
|
const chromiumPath = await this.functions.ensureChromiumInstalled();
|
|
341
|
+
|
|
342
|
+
// === Fallback to Puppeteer's built-in Chromium ===
|
|
343
|
+
if (!chromiumPath) {
|
|
344
|
+
try {
|
|
345
|
+
const puppeteerPath = puppeteer.executablePath();
|
|
346
|
+
if (puppeteerPath && fs.existsSync(puppeteerPath)) {
|
|
347
|
+
chromiumPath = puppeteerPath;
|
|
348
|
+
if (this.logDebug) this.emit('debug', `Using bundled Chromium from Puppeteer at ${chromiumPath}`);
|
|
349
|
+
}
|
|
350
|
+
} catch { }
|
|
351
|
+
}
|
|
340
352
|
if (!chromiumPath) {
|
|
341
353
|
accountInfo.Info = 'Chromium not found on Your device, please install it manually and try again';
|
|
342
354
|
return accountInfo;
|