10000 Support for P100 Smart Plug · Issue #83 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Support for P100 Smart Plug #83

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

Closed
GDYendell opened this issue Jul 5, 2020 · 9 comments · Fixed by #133
Closed

Support for P100 Smart Plug #83

GDYendell opened this issue Jul 5, 2020 · 9 comments · Fixed by #133

Comments

@GDYendell
Copy link

I am interested integrating my TP Link Tapo P100 plugs into homeassistant. Currently homeassistant/core uses pyHS100, but hopefully can be updated to use this module instead / as well.

Has any effort been made to integrate the P100?

In homeassistant the discovery fails, so my starting point will be to try manually discovering the devices with this module and see what happens and if the errors are useful. I am hoping it is just the discovery that needs updating, maybe.

@draco2003
Copy link

We're all excitedly awaiting this PR to be finalized and merged in to use this module as the homeassistant integration.

@GDYendell
Copy link
Author

I have tried an nmap scan on my P100 and it shows all closed except for 80. I have managed to capture some pcap files of traffic to and from the static IP, but I can't make sense of it. Presumably it is encrypted in a similar way as described here https://github.com/softScheck/tplink-smartplug. I tried loading to dissector, but it doesn't seem to do anything. I don't know if I should be seeing something about TP-link protocol, or if that is only after the dissector is working.

@rytilahti
Copy link
Member

I have understood from somewhere that this series of devices is using a different app than the kasa app on mobile, and that it is also likely using a different communication protocol.

A few questions:

  • I'm assuming the library in its current state is not working for you? Does any of the commands work?
  • Can the bulb be controlled with the app even when they are not connected to the cloud? I.e., is there a local communication protocol?
  • If the above is true, is it's probably worth investigating how it communicates. Maybe it's using the same protocol but a different port? Or maybe it's something completely different, in which case it's hard to say without further investigation what's the best way to proceed adding support for them (and/or if that should be a project of its own instead of adding support for a new protocol to this project).

@rytilahti
Copy link
Member

We discussed about this on discord, the conclusion was that it's using a different protocol and is thus out of the scope of this project. If the state changes, feel free to re-open this.

@GDYendell
Copy link
Author

Agreed. Thanks for your help anyway!

@rytilahti rytilahti mentioned this issue Jul 28, 2020
@rytilahti
Copy link
Member
rytilahti commented Nov 21, 2020

Looks like other product families are also starting to use a new, 80/tcp using protocol to plug a security issue, so I think it's worth to reopen this issue just in case the new protocol is the same as used by the P/tapo series.

@GDYendell could you check out if this PR allows communication with your devices: #117 ?

@rytilahti rytilahti reopened this Nov 21, 2020
@GDYendell
Copy link
Author

@rytilahti I would be happy to try it out. How do I run that branch of the integration on my home assistant instance?

@GSzabados
Copy link

To anyone who is interested about the Tapo P100's protocol, you can find a working solution here:

https://github.com/fishbigger/TapoP100

There is a working HA integration as well:

https://github.com/fishbigger/HomeAssistant-Tapo-P100-Control

@K4CZP3R
Copy link
K4CZP3R commented Nov 30, 2020

And here is the original implementation of Android App:
https://github.com/K4CZP3R/tapo-p100-java-poc

And the write up:
https://k4czp3r.xyz/posts/reverse-engineering-tp-link-tapo/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
0