-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot write to closing transport - when pressing preclimate buttons #156
Comments
Hi @TheGroundZero, interesting... The button calls the service function in my code. Does this happen everytime? Could you enable the debug log, this would help to check if the connection is closed already. (you can send it to mb.dev.issue156@nulsch.de ) |
So far I only saw it occur once, with both buttons. So I pressed "start" -> error. Then pressed "stop" -> error. |
I propose that we monitor this. I got this multiple times in my dev environments in the context of short network interruptions. Therefore the component has some fallback code to recreate the websocket connection already. |
Looks like I have found the problem. A solution will be part of the release v0.10... in the next few days/weeks... |
Got the same error today again. I noticed car_charging_active and max_state_of_charge (and probably all the rest as well) didn't update. I have an input_number with a range 50-100 and moving it, triggers and automation that calls the service.
|
My logs also shows a few of these:
|
cannot access local variable 'curr_display_value' --> this one I had this morning too and it is fixed in the master branch. Let me check the other one again. On what system (HW, SW) is your HA running? And what is your current version of the MBAPI component? |
Fedora CoreOS with HA Container managed via Podman. |
Is this a fast machine? I'm currently analyzing a different topic but the result could be the same. Looks like that sometimes the MB servers sending so many messages and my code is not fast enough to handle all this incoming traffic... Just setting up a slow PI3 to test this... |
It's a Beelink Mini S (Intel N5095) |
I have reworked the connection logic to the MB servers. The data receiver and data processor are decoupled now and this should prevent "shadow"/"phantom" connections. Is part of v0.11.2-beta.4 |
Also part of v0.12.0 - Please recheck. I'll close it for now. feel free to reopen it again. |
Pressing the Preclimate start/stop buttons, I get an error popping up
Cannot write to closing transport
.The service call does seem to work (at least the 2nd time I tried it).
HA logs show:
PS: any plans on turning this into a switch instead of 2 buttons?
Would help me get rid of these templates :)
The text was updated successfully, but these errors were encountered: