Kasa discovery
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.
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.