# Tapo library now speaks TPAP, so you can turn off TP-Link's risky Third-Party Compatibility switch

Original title: Tapo (Rust/Python library) now speaks TP-Link's TPAP protocol

> Hacker News story 49978563 · language: en · submitted 2026-10-06
> Web version: https://zeli.app/story/49978563
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 131 · by [faithraven](<https://news.ycombinator.com/user?id=faithraven>) · 💬 68
[original](<https://mihai.dinculescu.dev/posts/tapo-speaks-tpap/>) · [HN discussion](<https://news.ycombinator.com/item?id=49978563>)

## Summary

The unofficial Rust and Python Tapo client v0.11.1 adds support for TP-Link's TPAP protocol, meaning lights, plugs, hubs, and some cameras can work with Third-Party Compatibility turned off. TPAP uses SPAKE2+ for password-authenticated key exchange, making recorded logins useless for offline password guessing and keeping past sessions private. The release also adds H200 and H500 camera hub support with recording downloads, plug schedules and timers, and updates the MCP server.

## Key quote

> The switch is a security downgrade with a friendly name.

## HN discussion (68 comments)

### [teravor](<https://news.ycombinator.com/item?id=49979493>)

> since GLM 5.2 (perhaps even earlier?) it has been remarkably easy to reverse engineer any closed protocol you want as long as you have a binary. previously, it required so much manual effort as to simply not be worth it 95% of the time.
>
> now all you need is IDA or Ghidra MCP, a binary and some vague sloppy instructions.
>
> some more recent models even started instrumenting a running binary (when possible) to enumerate the protocol without being explicitly instructed to, which is even better.

### [nilamo](<https://news.ycombinator.com/item?id=49980833>)

> I feel like I'm either too dumb to get this, or not the target audience.  I don't know what a Tapo is, but it's apparently a library to interact with Tapo devices, whatever that might be.  And now it can talk TPAP, whatever that is.  TP-Link is mentioned, so I'll guess Routers and move on :)

### [mplewis](<https://news.ycombinator.com/item?id=49983279>)

> Reads like AI slop.

### [faithraven](<https://news.ycombinator.com/item?id=49978565>)

> Author here. tapo is an unofficial Rust client library for TP-Link Tapo devices (plugs, lights, hubs, cameras), with a Python wrapper built on the same crate. It is not affiliated with TP-Link.
>
> The short version: since late 2025, firmware updates have made Tapo devices refuse third-party clients unless you turn on a "Third-Party Compatibility" switch in the Tapo app. The switch works by bringing back the older login, KLAP. With it off, devices speak an undocumented protocol called TPAP, which logs in with SPAKE2+ (RFC 9383). The library now speaks TPAP, so the switch can stay off.
>
> The part I found most interesting is the security difference. A recorded KLAP login can be used to test password guesses offline. With SPAKE2+ it can't, and learning the password later doesn't decrypt sessions captured earlier. So the "compatibility" switch is really a security downgrade, and TP-Link's own FAQ says enabling it "may reduce the security of your devices".
>
> Not everything works with the switch off yet: some cameras, such as a C210 on firmware 1.5.2, still need it on.
>
> Happy to answer questions about the protocol work or the library.

### [pkilgore](<https://news.ycombinator.com/item?id=49978929>)

> I was always taught: Read good books, that's how you'll write.
>
> I don't even really care AI or human if its written like this. I would rather do anything else than continue reading.

---

## Cite

- Page: https://zeli.app/story/49978563
- Date: 2026-10-06
- Source: mihai.dinculescu.dev (https://mihai.dinculescu.dev/posts/tapo-speaks-tpap/)
- Hacker News: https://news.ycombinator.com/item?id=49978563

## Other languages

- zh: https://zeli.app/zh/story/49978563 · markdown: https://zeli.app/zh/story/49978563.md
- ja: https://zeli.app/ja/story/49978563 · markdown: https://zeli.app/ja/story/49978563.md
- ko: https://zeli.app/ko/story/49978563 · markdown: https://zeli.app/ko/story/49978563.md
- de: https://zeli.app/de/story/49978563 · markdown: https://zeli.app/de/story/49978563.md
- es: https://zeli.app/es/story/49978563 · markdown: https://zeli.app/es/story/49978563.md
- ru: https://zeli.app/ru/story/49978563 · markdown: https://zeli.app/ru/story/49978563.md
