homebridge-enphase-envoy 9.8.2-beta.0 → 9.8.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/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [9.8.2] - (26.02.2025)
9
+
10
+ ## Changes
11
+
12
+ - refactor start external integrations
13
+ - bump dependencies
14
+ - cleanup
15
+
8
16
  ## [9.8.0] - (20.02.2025)
9
17
 
10
18
  ## Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "displayName": "Enphase Envoy",
4
4
  "name": "homebridge-enphase-envoy",
5
- "version": "9.8.2-beta.0",
5
+ "version": "9.8.2",
6
6
  "description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -4298,6 +4298,39 @@ class EnvoyDevice extends EventEmitter {
4298
4298
  }
4299
4299
  };
4300
4300
 
4301
+ getDeviceInfo() {
4302
+ const debug = this.enableDebugMode ? this.emit('debug', `Requesting device info`) : false;
4303
+
4304
+ //debug objects
4305
+ const debug20 = this.enableDebugMode && this.feature.envoy.installed ? this.emit('debug', `Pv object:`, this.pv) : false;
4306
+ const debug21 = this.enableDebugMode && this.feature.ensembles.installed ? this.emit('debug', `Ensemble object:`, this.ensemble) : false;
4307
+
4308
+ //display info
4309
+ this.emit('devInfo', `-------- ${this.name} --------`);
4310
+ this.emit('devInfo', `Manufacturer: Enphase`);
4311
+ this.emit('devInfo', `Model: ${this.pv.envoy.modelName}`);
4312
+ this.emit('devInfo', `Firmware: ${this.pv.envoy.software}`);
4313
+ this.emit('devInfo', `SerialNr: ${this.pv.envoy.serialNumber}`);
4314
+ this.emit('devInfo', `Time: ${this.pv.envoy.time}`);
4315
+ this.emit('devInfo', `------------------------------`);
4316
+ const displayLog12 = this.feature.qRelays.installed ? this.emit('devInfo', `Q-Relays: ${this.feature.qRelays.count}`) : false;
4317
+ this.emit('devInfo', `Inverters: ${this.feature.microinverters.count}`);
4318
+ const displayLog13 = this.feature.acBatteries.installed ? this.emit('devInfo', `AC Batteries: ${this.feature.acBatteries.count}`) : false;
4319
+ const displayLog14 = this.feature.qRelays.installed || this.feature.acBatteries.installed ? this.emit('devInfo', `--------------------------------`) : false;
4320
+ const displayLog0 = this.feature.meters.installed ? this.emit('devInfo', `Meters: Yes`) : false;
4321
+ const displayLog1 = this.feature.meters.installed && this.feature.meters.production.supported ? this.emit('devInfo', `Production: ${this.feature.meters.production.enabled ? `Enabled` : `Disabled`}`) : false;
4322
+ const displayLog2 = this.feature.meters.installed && this.feature.meters.consumption.supported ? this.emit('devInfo', `Consumption: ${this.feature.meters.consumption.enabled ? `Enabled` : `Disabled`}`) : false;
4323
+ const displayLog3 = this.feature.meters.installed && this.feature.meters.acBatterie.supported ? this.emit('devInfo', `Storage: ${this.feature.meters.acBatterie.enabled ? `Enabled` : `Disabled`}`) : false;
4324
+ const displayLog4 = this.feature.meters.installed ? this.emit('devInfo', `--------------------------------`) : false;
4325
+ const displayLog5 = this.feature.ensembles.installed ? this.emit('devInfo', `Ensemble: Yes`) : false;
4326
+ const displayLog6 = this.feature.enpowers.installed ? this.emit('devInfo', `Enpowers: ${this.feature.enpowers.count}`) : false;
4327
+ const displayLog7 = this.feature.encharges.installed ? this.emit('devInfo', `Encharges: ${this.feature.encharges.count}`) : false;
4328
+ const displayLog8 = this.feature.dryContacts.installed ? this.emit('devInfo', `Dry Contacts: ${this.feature.dryContacts.count}`) : false;
4329
+ const displayLog9 = this.feature.generators.installed ? this.emit('devInfo', `Generator: Yes`) : false;
4330
+ const displayLog10 = this.feature.wirelessConnections.installed ? this.emit('devInfo', `Wireless Kit: ${this.feature.wirelessConnections.count}`) : false;
4331
+ const displayLog11 = this.feature.ensembles.installed || this.feature.enpowers.installed || this.feature.encharges.installed || this.feature.dryContacts.installed || this.feature.wirelessConnections.installed || this.feature.generators.installed ? this.emit('devInfo', `--------------------------------`) : false;
4332
+ };
4333
+
4301
4334
  async externalIntegrations() {
4302
4335
  try {
4303
4336
  //RESTFul server
@@ -4308,7 +4341,7 @@ class EnvoyDevice extends EventEmitter {
4308
4341
  debug: this.restFul.debug || false
4309
4342
  });
4310
4343
 
4311
- this.restFul.on('connected', (success) => {
4344
+ this.restFul1.on('connected', (success) => {
4312
4345
  this.restFulConnected = true;
4313
4346
  this.emit('success', success);
4314
4347
  })
@@ -4342,7 +4375,7 @@ class EnvoyDevice extends EventEmitter {
4342
4375
  passwd: this.mqtt.passwd,
4343
4376
  debug: this.mqtt.debug || false
4344
4377
  });
4345
- this.mqtt.on('connected', (success) => {
4378
+ this.mqtt1.on('connected', (success) => {
4346
4379
  this.mqttConnected = true;
4347
4380
  this.emit('success', success);
4348
4381
  })
@@ -4415,39 +4448,6 @@ class EnvoyDevice extends EventEmitter {
4415
4448
  };
4416
4449
  }
4417
4450
 
4418
- getDeviceInfo() {
4419
- const debug = this.enableDebugMode ? this.emit('debug', `Requesting device info`) : false;
4420
-
4421
- //debug objects
4422
- const debug20 = this.enableDebugMode && this.feature.envoy.installed ? this.emit('debug', `Pv object:`, this.pv) : false;
4423
- const debug21 = this.enableDebugMode && this.feature.ensembles.installed ? this.emit('debug', `Ensemble object:`, this.ensemble) : false;
4424
-
4425
- //display info
4426
- this.emit('devInfo', `-------- ${this.name} --------`);
4427
- this.emit('devInfo', `Manufacturer: Enphase`);
4428
- this.emit('devInfo', `Model: ${this.pv.envoy.modelName}`);
4429
- this.emit('devInfo', `Firmware: ${this.pv.envoy.software}`);
4430
- this.emit('devInfo', `SerialNr: ${this.pv.envoy.serialNumber}`);
4431
- this.emit('devInfo', `Time: ${this.pv.envoy.time}`);
4432
- this.emit('devInfo', `------------------------------`);
4433
- const displayLog12 = this.feature.qRelays.installed ? this.emit('devInfo', `Q-Relays: ${this.feature.qRelays.count}`) : false;
4434
- this.emit('devInfo', `Inverters: ${this.feature.microinverters.count}`);
4435
- const displayLog13 = this.feature.acBatteries.installed ? this.emit('devInfo', `AC Batteries: ${this.feature.acBatteries.count}`) : false;
4436
- const displayLog14 = this.feature.qRelays.installed || this.feature.acBatteries.installed ? this.emit('devInfo', `--------------------------------`) : false;
4437
- const displayLog0 = this.feature.meters.installed ? this.emit('devInfo', `Meters: Yes`) : false;
4438
- const displayLog1 = this.feature.meters.installed && this.feature.meters.production.supported ? this.emit('devInfo', `Production: ${this.feature.meters.production.enabled ? `Enabled` : `Disabled`}`) : false;
4439
- const displayLog2 = this.feature.meters.installed && this.feature.meters.consumption.supported ? this.emit('devInfo', `Consumption: ${this.feature.meters.consumption.enabled ? `Enabled` : `Disabled`}`) : false;
4440
- const displayLog3 = this.feature.meters.installed && this.feature.meters.acBatterie.supported ? this.emit('devInfo', `Storage: ${this.feature.meters.acBatterie.enabled ? `Enabled` : `Disabled`}`) : false;
4441
- const displayLog4 = this.feature.meters.installed ? this.emit('devInfo', `--------------------------------`) : false;
4442
- const displayLog5 = this.feature.ensembles.installed ? this.emit('devInfo', `Ensemble: Yes`) : false;
4443
- const displayLog6 = this.feature.enpowers.installed ? this.emit('devInfo', `Enpowers: ${this.feature.enpowers.count}`) : false;
4444
- const displayLog7 = this.feature.encharges.installed ? this.emit('devInfo', `Encharges: ${this.feature.encharges.count}`) : false;
4445
- const displayLog8 = this.feature.dryContacts.installed ? this.emit('devInfo', `Dry Contacts: ${this.feature.dryContacts.count}`) : false;
4446
- const displayLog9 = this.feature.generators.installed ? this.emit('devInfo', `Generator: Yes`) : false;
4447
- const displayLog10 = this.feature.wirelessConnections.installed ? this.emit('devInfo', `Wireless Kit: ${this.feature.wirelessConnections.count}`) : false;
4448
- const displayLog11 = this.feature.ensembles.installed || this.feature.enpowers.installed || this.feature.encharges.installed || this.feature.dryContacts.installed || this.feature.wirelessConnections.installed || this.feature.generators.installed ? this.emit('devInfo', `--------------------------------`) : false;
4449
- };
4450
-
4451
4451
  //prepare accessory
4452
4452
  async prepareAccessory() {
4453
4453
  try {