chrisjshull / homebridge-juicebox

Apache License 2.0
1 stars 0 forks source link

characteristic: Unhandled error thrown #3

Open haywirecoder opened 1 year ago

haywirecoder commented 1 year ago

Nice plug and thank you, great way to bring my Juicebox into HomeKit. Describe The Bug:

Upon start up, the Plug-in throw multiple Unhandled error for multiple characteristics. This doesn't seem to affect the operations since it able to show additional details in Eve home application.

To Reproduce:

Expected behavior:

Logs:

[19/02/2023, 23:43:16] [homebridge-juicebox] This plugin threw an error from the characteristic 'Volts': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'voltage'). See https://homebridge.io/w/JtMGR for more info. [19/02/2023, 23:43:16] [homebridge-juicebox] This plugin threw an error from the characteristic 'Amperes': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'amps_current'). See https://homebridge.io/w/JtMGR for more info. [19/02/2023, 23:43:16] [homebridge-juicebox] This plugin threw an error from the characteristic 'Consumption': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'watt_power'). See https://homebridge.io/w/JtMGR for more info. [19/02/2023, 23:43:16] [homebridge-juicebox] This plugin threw an error from the characteristic 'Total Consumption': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'wh_energy'). See https://homebridge.io/w/JtMGR for more info.

Plugin Config:

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

"apiToken": "XXXXX", "platform": "JuiceBoxHomebridgePlugin", "_bridge": { "username": "XXXX", "port": 49986 }

Screenshots:

Environment: