snicker / juicepassproxy

Proxy UDP requests to/from Juicebox EV chargers to MQTT discoverable by Home Assistant
25 stars 8 forks source link

Charging session interruption #43

Closed MrDrew514 closed 1 month ago

MrDrew514 commented 7 months ago

Since I updated the container, I've noticed that the charging session gets interrupted after a few minutes of being plugged in. Also when the charging is done, I've noticed that a charging session started during the night for about 5 to 10 minutes then it switched back to plugged in. The app is constantly sending me a connection error that it lost connection to the server then it gets back online after a minute or 2. I was wondering if you noticed something similar with your unit, and if it was due to the update_udpc closing the enelx stream.

image

MrDrew514 commented 7 months ago

Sorry for opening/closing the issue, it took some times before I figure out what's going on.

The udpc close/add script is also closing the default enelx stream which cause the charger to pause the ongoing session constantly when running. Is it possible to skip this specific stream and keep the checking for the others?

fearlesschicken commented 6 months ago

I am seeing the same thing happen here: Initial charging was going fine because juicepassproxy stopped working. I restarted it afterwards and that's when we start seeing the problem:

IMG_2211

dambrosioj commented 4 months ago

Is this still an issue? I am hesitant to set this up because of users documenting this.

MrDrew514 commented 4 months ago

Afaik yes, but shutting down the container stops the interruptions so don't be afraid of trying it yourself.

dambrosioj commented 4 months ago

Afaik yes, but shutting down the container stops the interruptions so don't be afraid of trying it yourself.

Thanks for the fast reply. Maybe I am misunderstanding but wouldn’t that mean the integration to home assistant stops when the container is down not redirecting the traffic?

MrDrew514 commented 4 months ago

The container collects the info of the charger and redirect it to home assistant via MQTT. The bug should occurs only if you are using the update_udpc which constantly check for the "stream" and update it to the correct ip directly on the machine. This step seems to be interrupting the ongoing session (Home assistant + physical charger, app won't resume).

dambrosioj commented 4 months ago

The container collects the info of the charger and redirect it to home assistant via MQTT. The bug should occurs only if you are using the update_udpc which constantly check for the "stream" and update it to the correct ip directly on the machine. This step seems to be interrupting the ongoing session (Home assistant + physical charger, app won't resume).

Ah that makes total sense. Thanks for that explanation.

Snuffy2 commented 1 month ago

I'm going to close this for now with the release of v0.3.0 which will hopefully fix this. Please open a new issue if you are still having problems.