evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Thinkerforge WARP 3 Pro connected with Websocket but no values available

Open l-mango-l opened this issue 9 months ago • 22 comments

Describe the bug

I tried to connect my WARP 3 Pro wallbox with the new websocket template over the UI. The connection itself seems to be successful but the displayed values are not correct. There are no voltages,no charged energy and the car was definitely connected at that time. Firmware version of my WARP3 is 2.9.0+69831bfb

Image

Steps to reproduce

  1. Add new Loadpoint in config UI
  2. Select Tinkerforge WARP 3 Pro as charger and add URL, user name and password
  3. validation green but car not connected and 0 instead of charged energy and voltages. ...

Configuration details

[main  ] INFO 2026/02/23 16:19:38 evcc 0.301.1
[main  ] INFO 2026/02/23 16:19:38 config file not found, database-only mode
[main  ] INFO 2026/02/23 16:19:38 using sqlite database: /var/lib/evcc/evcc.db?_pragma=busy_timeout(5000)
[eebus ] INFO 2026/02/23 16:19:38 Local SKI: c8f9c4e10d1721a711096ba3a5b9818108f54c7e
[eebus ] ERROR 2026/02/23 16:19:38 websocket server error: listen tcp :4712: bind: address already in use
[main  ] INFO 2026/02/23 16:19:38 OCPP local url:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2026/02/23 16:19:38 UI local url:      http://127.0.0.1:7070
[main  ] FATAL 2026/02/23 16:19:38 could not open port- check that evcc is not already running (listen tcp :7070: bind: address already in use)

Log details

[warp-ws] TRACE 2026/02/23 16:26:15 GET http://warp.home/info/features
[warp-ws] TRACE 2026/02/23 16:26:15 connecting to ws://warp.home/ws …
[warp-ws] TRACE 2026/02/23 16:26:15 GET http://warp.home/info/features
[warp-ws] TRACE 2026/02/23 16:26:15 ["evse","cp_disconnect","button_configuration","rgb_led","ethernet","firmware_update","meters","nfc","rtc","phase_switch","meter","meter_all_values","meter_phases"]
[warp-ws] TRACE 2026/02/23 16:26:15 GET http://warp.home/power_manager/state
[warp-ws] TRACE 2026/02/23 16:26:15 GET http://warp.home/power_manager/state
[warp-ws] TRACE 2026/02/23 16:26:15 {"config_error_flags":0,"external_control":0}
[warp-ws] TRACE 2026/02/23 16:26:15 POST http://warp.home/evse/phase_auto_switch
[warp-ws] TRACE 2026/02/23 16:26:15 {"enabled":false}
[warp-ws] TRACE 2026/02/23 16:26:15 POST http://warp.home/evse/phase_auto_switch
[warp-ws] TRACE 2026/02/23 16:26:15 {"enabled":false}
[warp-ws] TRACE 2026/02/23 16:26:15 disabled phase auto switching

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.301.1

l-mango-l avatar Feb 23 '26 15:02 l-mango-l

Needs trace log

/cc @marcelGoerentz @lehmanju

andig avatar Feb 23 '26 15:02 andig

It seems like the Websocket does not connect to the charger. But the HTTP Requests seems to work.

marcelGoerentz avatar Feb 23 '26 15:02 marcelGoerentz

Can you post the URL you used for your configuration?

marcelGoerentz avatar Feb 23 '26 15:02 marcelGoerentz

That would be warp.home. As local DNS provider I use a Pihole instance.

l-mango-l avatar Feb 23 '26 15:02 l-mango-l

And you can access the webserver of the charger that way? Or do you use another the IP directly?

marcelGoerentz avatar Feb 23 '26 16:02 marcelGoerentz

Here is the trace log: evcc-20260223-155808-trace.log

I tried it first on my main evcc instance. But as it didn't work out I changed to a fresh instance on my Proxmox server as I don't want to experiment with my main instance(which was shut down at that time).

l-mango-l avatar Feb 23 '26 16:02 l-mango-l

And you can access the webserver of the charger that way? Or do you use another the IP directly?

I can access it through that URL. I tried it with the IP as well, but with the same result.

l-mango-l avatar Feb 23 '26 16:02 l-mango-l

@marcelGoerentz

bo := backoff.NewExponentialBackOff(backoff.WithMaxElapsedTime(0))

This will keep increasing the backoff. Up to hours- needs a max backoff option. Also, the connecting trace log should move into the connection attempts. The URL parsing must happen outside of the run method.

andig avatar Feb 23 '26 17:02 andig

Will do so.

marcelGoerentz avatar Feb 23 '26 17:02 marcelGoerentz

@marcelGoerentz

bo := backoff.NewExponentialBackOff(backoff.WithMaxElapsedTime(0))

This will keep increasing the backoff. Up to hours- needs a max backoff option. Also, the connecting trace log should move into the connection attempts. The URL parsing must happen outside of the run method.

Should I go for 30 Minutes or are 30 Seconds sufficient?

marcelGoerentz avatar Feb 23 '26 17:02 marcelGoerentz

@l-mango-l I had the exact same issue, solved it by going to Warp UI and disabling the need for user and pass at login, in the users menu. It just worked in evcc only without username and password.

manuelmrmorgado avatar Feb 23 '26 19:02 manuelmrmorgado

@manuelmrmorgado Thanks for the input. So the username password is not working with the websocket, yet?

marcelGoerentz avatar Feb 23 '26 20:02 marcelGoerentz

@manuelmrmorgado: Great, that worked for now. Thank you so much. But it would also be great if it would work with user and password. @marcelGoerentz: Could you have a closer look what could be the problem with the user authentication?

l-mango-l avatar Feb 23 '26 20:02 l-mango-l

Already working on it, checking the fix now :)

marcelGoerentz avatar Feb 23 '26 20:02 marcelGoerentz

@manuelmrmorgado Thanks for the input. So the username password is not working with the websocket, yet?

I guess, the wallbox is recognized via http, but the web socket doesn’t work with user and password. Using 0.301.1

manuelmrmorgado avatar Feb 23 '26 20:02 manuelmrmorgado

The Websocket also needs the authentication via user and password. The Problem is that you can't use the http client to do the handshake and then upgrade the connection. I will need to check how this can be done. Right now I would recommend to deactivate the authentication against the webserver.

marcelGoerentz avatar Feb 23 '26 22:02 marcelGoerentz

What handshake is expected? Basic auth?

andig avatar Feb 24 '26 06:02 andig

Handshake is the default Websocket handshake. But before you need the digest access auth.

marcelGoerentz avatar Feb 24 '26 06:02 marcelGoerentz

@l-mango-l @manuelmrmorgado In the next nightly it should be fixed.

marcelGoerentz avatar Feb 24 '26 10:02 marcelGoerentz

@andig successor is #27664

marcelGoerentz avatar Feb 24 '26 12:02 marcelGoerentz