Piotr-Grochowski / eu.blebox

GNU General Public License v3.0
0 stars 1 forks source link

app freezes or not reporting energy usage #9

Closed B3rt closed 10 months ago

B3rt commented 10 months ago

I use a blebox switchboxdin relais in HP23 to monitor the charging of my car.

The energy usage reguarly hangs, it shows the usage constant at 1874watts, when i log into the car app the charging is already stopped for a while, when I then log into the blebox app itself here also the power usage is stopped and only at 3 watt.

When i reload the app i Homey then the power usage drops from the 1874watt to 3watt also.

This happens almost everytime I charge my car.

I did make a diagnostic report, but only after i restarted the app: cd81b821-6a2f-4d09-b5e0-be6456472766

Piotr-Grochowski commented 10 months ago

Hello, In logs I can see that there are some connection problems between your switchBox and Homey:

Error: socket hang up at connResetException (node:internal/errors:720:14) at Socket.socketOnEnd (node:_http_client:525:23) at Socket.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1368:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNRESET' } 2023-10-20T12:04:48.694Z [log] [ManagerDrivers] [Driver:switchboxdin] [Device:dbad255c-7cab-4be7-8fd9-2e868ba876fc] Error: socket hang up at connResetException (node:internal/errors:720:14) at Socket.socketOnEnd (node:_http_client:525:23) at Socket.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1368:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNRESET' } Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } 2023-10-20T18:15:51.279Z [log] [ManagerDrivers] [Driver:switchboxdin] [Device:dbad255c-7cab-4be7-8fd9-2e868ba876fc] Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' }

Connection is being reset by the switchBox. A few questions:

  1. Do you have a static IP set for your switchBox (DHCP in your router configuration)?
  2. Do you have strong WiFi connections between the router and switchBox and between the router and Homey (preferably MAX signal strength)?
  3. Which firmware version of the switchBox do you have? Preferably please send me the screenshot from Homey App - switchBox settings page (there are all the versions, API levels, etc) or wBox app.
B3rt commented 10 months ago

Hi,

  1. The IP has a DHCP reservation in the router, so it is 'static'
  2. he BLE switch is aprox 50 cm above the router, so wifi signal is not problem, HP23 is wired connected.
  3. afbeelding

Piotr-Grochowski commented 10 months ago

In the meantime I contacted BleBox and I know now that this device is affected by a bug (all switchBoxes with power measurement have this bug), so it may have such a problems that you see. We have to wait for the firmware update, so please check for updates regularly (via original wBox app). If after firmware update from 0.1398 to a newer one you would still have problems, please let me know. For now I'll close this ticket.