Skip to content
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

Kasa discovery #204

Open
wwsoapbox opened this issue Nov 16, 2022 · 1 comment
Open

Kasa discovery #204

wwsoapbox opened this issue Nov 16, 2022 · 1 comment

Comments

@wwsoapbox
Copy link

I installed kasa 3 times, (pip install python-kasa). Reply: Requirement already satisfied: python-kasa in /home/epm/.local/lib/python3.8/site-packages (0.5.0). So I guess it's installed.

I pluged in device EP10, then tried:
$ kasa discover
Discovering devices on 255.255.255.255 for 3 seconds
(No response, returned to command prompt)

$ kasa
No host name given, trying discovery..
Discovering devices on 255.255.255.255 for 3 seconds
No response, returned to command prompt)

From the python3 shell
$ python3
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import asyncio
found_devices = asyncio.run(Discover.discover())
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Discover' is not defined

exit
Use exit() or Ctrl-D (i.e. EOF) to exit

epm.77:~/devl/kasa

I am sure your code is correct, So I must have missed a step. Where is "Discover", how do I install it?

I know nothing about python.

Thank you.

@kirichkov
Copy link
Collaborator

This is the old repository. The new one is http://github.com/python-kasa/python-kasa/

I don't see you actually importing python-kasa, just asyncio.

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

No branches or pull requests

2 participants