tylerbenson / homebridge-enphase-battery

Homebridge plugin to control Enphase battery settings
Apache License 2.0
1 stars 1 forks source link

Plugin causes Homebridge to shutdown #4

Open betabob opened 3 months ago

betabob commented 3 months ago

Describe The Bug:

Homebridge shutting down/restarting continuously for the past few hours. Determined that this plugin was causing the issue, as there have been Enlighten issues all day as well and I suspect this plugin needs some additional error handling work when the service is disrupted/unavailable To Reproduce:

Enable the plugin while Enphase is down Expected behavior:

Logs:

Show the Homebridge logs here, remove any sensitive information.
```[4/5/2024, 5:26:20 PM] [homebridge-enphase-battery] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[4/5/2024, 5:26:22 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[4/5/2024, 5:26:27 PM] [HB Supervisor] Restarting Homebridge...
[4/5/2024, 5:26:27 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution

**Plugin Config:**

```json
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

tylerbenson commented 3 months ago

Thanks for the report and sorry for the trouble. I'm definitely not a Javascript dev, so I just hacked together something that could work. I solved this problem personally by running it as a bridge so things are more isolated. If you have time and can offer a PR, I'm happy to take contributions for ways to improve this.