8000 KL430 support · Issue #67 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content
< 8000 /div>

KL430 support #67

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
CursedDog19 opened this issue May 28, 2020 · 13 comments · Fixed by #74
Closed

KL430 support #67

CursedDog19 opened this issue May 28, 2020 · 13 comments · Fixed by #74
Labels
enhancement New feature or request

Comments

@CursedDog19
Copy link

Please add support for the KL430 light strip

@rytilahti
Copy link
Member

Could you please do a traffic capture and analyze for the available commands using https://github.com/softScheck/tplink-smartplug#wireshark-dissector ?

Also, please do kasa dump-discover and create a PR to add the resulting file to https://github.com/python-kasa/python-kasa/tree/master/kasa/tests/fixtures .

@rytilahti rytilahti added the enhancement New feature or request label May 28, 2020
@CursedDog19
Copy link
Author

Could you please do a traffic capture and analyze for the available commands using https://github.com/softScheck/tplink-smartplug#wireshark-dissector ?

Also, please do kasa dump-discover and create a PR to add the resulting file to https://github.com/python-kasa/python-kasa/tree/master/kasa/tests/fixtures .

I have Wireshark installed but I don't see any packets using the tplink-smarthome protocol. Am I doing something wrong?

@rytilahti
Copy link
Member

For the command analysis, you need to make the traffic capture between the official app and the device. The easiest way to do that is likely to use android emulator to run the app and record the traffic from desktop.

@CursedDog19
Copy link
Author

For the command analysis, you need to make the traffic capture between the official app and the device. The easiest way to do that is likely to use android emulator to run the app and record the traffic from desktop.

I don't have an android phone. Is there another way to do it? What are the settings I need to use in Wireshark?

@spalacioh
Copy link
spalacioh commented May 29, 2020

Hello Guys, I also trying to do this, I installed Wideshark and I added the .lua plugin but I don't see tplink-smarthome protocol. I do not know how to check if the Lua pluging is being loaded ok into Wideshark. My pc is connected to the samewireless as my tp-link devices, if I turn on or turn off a tplink device I see traffic but nothing with the protocol you are mentioning.

Update: it is working now. but it seems we do need an Android emulator
Update 2: I have now an Android Emulator but it is not registering any traffic. :(

@spalacioh
Copy link

image

@rytilahti
Copy link
Member

@ethan-ingalls So the simplest way is to install android emulator, install the app and capture the traffic directly from the emulator, maybe this will help: https://stackoverflow.com/questions/2453949/android-emulator-how-to-monitor-network-traffic/2574493#2574493 .

@spalacioh you can check if the lua plugin is installed by going to help -> about wireshark -> plugins and searching the list there. The discovery protocol uses udp on port 9999, while the command traffic is using the same port, but with tcp.

@CursedDog19
Copy link
Author

@spalacioh were you able to intercept traffic using the emulator? If not what emulator are you using? I'd like to give it a go but I have never run an android emulator before.

@spalacioh
Copy link

@ethan-ingalls I downloaded Android Studio and tried with different emulators available. I was able to intercept traffic but nothing related to tp-link.

@rytilahti
Copy link
Member

@spalacioh did you link the app with the cloud in the emulator, just to be sure it is not commanding the device over the cloud connectivity? Can you control the device just fine inside the emulator?

@altV
Copy link
altV commented Jun 20, 2020
{"smartlife.iot.lightStrip":{"set_light_state": "on_off":1,"transition":150,"hue":134,"color_temp":0,"saturation":83}}}'

@rytilahti
Copy link
Member

Looks like it uses a similar protocol as the bulbs do. I'll create a quick PR that will allow testing whether the command set is also the same (i.e., if transition_light_state is also accepted).

Could you do kasa dump-discover and create a PR to add the file to kasa/tests/fixtures/?

@CursedDog19
Copy link
Author

Awesome! Testing soon...

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

Successfully merging a pull request may close this issue.

4 participants
0