evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Tapo P110 with firmware >1.4.7 not functional

Open WisManue opened this issue 3 weeks ago • 5 comments

Describe the bug

My evcc-Version: v0.318.2 and v0.319.0

Based on the other Bug: https://github.com/evcc-io/evcc/issues/25247 I think the Bug is not realy closed.

My TP-Link Details: First socket:

P110 Version 1.47 Build 260611 Hardwareversion: 1.0

second socket:

P110 Version 1.4.8 Build 260804 Hardwareversion: 1.0

So even if i am update the firmware to the latest version i got this error.

[main ] FATAL 2026/11/14 17:58:19 meter [db:5] cannot create template 'db:5': cannot create meter type 'template:tapo': cannot create meter type 'tapo': login failed: passthrough handshake failed: request failed: Communication error (1003)

if i disconnect the socket and try again i got this message:

cannot create meter type 'template:tapo': cannot create meter type 'tapo': login failed: passthrough handshake failed: HTTP POST failed: Post "http://192.168.2.123/app": dial tcp 192.168.2.123:80: connect: no route to host

So there is a connection from evcc to the socket, but evcc cannot login.

In https://github.com/evcc-io/evcc/issues/25247 https://github.com/AlexanderRose82 mentioned today, that he solved the problem with click on validate many times, but it didn't solve my problems. i tried often (over 30 times), but it doesnot solved the problem.

After that: I tried to disable the Third-Party Services in the Tapo App and activate it again, but with no positive results (even if i am wait minutes between reactivating)

The problem ocurs in the latest version of evcc and in v0.318.2 (but i think probably it occurs in previous versions too).

Steps to reproduce

  1. activate "Third-Party Compatiblity" in the Tapo App
  2. try to implement a tapo TP-Link socket in evcc with all details (login-User, PW, IP-Adress, ...)
  3. click on validate ...

Configuration details

"meter": [
    {"id":5,"name":"db:5","type":"template","config":{"template":"tapo","host":"192.168.2.123","password":"****","usage":"charge","user":"***"},"deviceDisable":true,"deviceIcon":"bike","deviceProduct":"TP-Link Tapo P-Series Smart Plug","deviceTitle":"eBike"},
    {"id":4,"name":"db:4","type":"template","config":{"template":"tapo","host":"192.168.2.124","password":"*****","usage":"charge","user":"***"},"deviceDisable":true,"deviceIcon":"heatpump","deviceProduct":"TP-Link Tapo P-Series Smart Plug","deviceTitle":"Waschmaschine"}
  ],

Log details

cannot create meter type 'template:tapo': cannot create meter type 'tapo': login failed: passthrough handshake failed: HTTP POST failed: Post "http://192.168.2.123/app": dial tcp 192.168.2.123:80: connect: no route to host

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

Docker container

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

v0.318.2 and v0.319.0

WisManue avatar Nov 14 '26 17:11 WisManue

Same symptom as the closed #25247: the P110 login fails in the handshake (Communication error (1003)). There, the cause was a plug that had switched to the newer TPAP encryption instead of KLAP. evcc uses the insomniacslk/tapo library (charger/tapo.go), which only speaks the older protocols. A TPAP plug can't log in, so this is likely a missing protocol rather than a config error. It's not confirmed yet.

To check, could you:

  • run the discovery script/tapo.exe from #25247 against both plugs and post the output, especially Encrypt Type and Login version?
  • post a log with log: trace for the failing meter, not only the final error line?
  • tell us whether the "no route to host" case was a plug that was offline, since that error is a plain network failure?

Related: #25247 (same error, fixed there by toggling third-party compatibility).

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 14 '26 17:11 github-actions[bot]

Ok, i found a note in this Issue from the homeassistant project: https://github.com/home-assistant/core/issues/154300 It seems, that they are working on it and the Bug is still known and open?

WisManue avatar Nov 14 '26 17:11 WisManue

Thanks for the link. The Home Assistant thread points the same way: newer Tapo firmware uses TPAP encryption, which neither python-kasa nor the insomniacslk/tapo library used by evcc (charger/tapo.go) implements yet. If that applies here, evcc can't fix it until the library supports TPAP. It's still unconfirmed for your plugs.

Still missing from your side:

  • the discovery output from #25247 (Encrypt Type, Login version) for both plugs, or kasa discover raw with device_id, owner and mac masked
  • a log with log: trace for the failing meter
  • whether the "no route to host" error came from an offline plug

Related: #25247 (same error).

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 14 '26 17:11 github-actions[bot]

@github-actions: Sorry, but i can't make it :(

the exe: I tried to use the "exe" from the other Issue, but i m failing with my IT skills here. I tried to create this "test_tapo.ps" file. and run it with powershell. But wehn i do it the program calibre opens. I think .ps is an calibre document? I thougt an "ps1" skript is an powershell skript? I tried with the ps1 ending, but then powershell said, that running scripts on my systems are blocked. Even if i try to run powershell as an administrator... To avoid messing anything up, I'll hold off on this for now.

The log trace: I tried it many times, but in the official log is no entry. Because the meter is not created and i get the message directly by hitting the "validate" buttion. In the Logs is not an specifig message? I searched the Log many times. iin the levels Debug, trace, ... but didn't found an helpful entry. I see several normal irrelevant status messages from sma, battery, easee and so on, but nothing in the direction of tapo.

the offline plug: As mentioned in my first post: This was just a test how the error message will change if i disconnect the plug.

If i can help in any other way (not so technical) please let me know.

@premultiply : thanks for opening the pull request! i would say the linked issue https://github.com/home-assistant/core/issues/154300 is still the best information source currently. So we could wait on the resolution there.

WisManue avatar Nov 15 '26 16:11 WisManue

Thanks, no further technical steps needed from your side for now. Without the discovery output we can't confirm TPAP for your plugs. It remains the most likely cause given the Home Assistant thread. Work on the Tapo login failures is tracked in #36258. A fix depends on TPAP support in the insomniacslk/tapo library used by charger/tapo.go.

Related: #25247 (same error).

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 15 '26 16:11 github-actions[bot]