Hi, is it possible to connect to and control devices using their alias in python like you can in the command line? If so, how?
Thanks.
Hi, there is no device management in the lib, so there is no direct way to do that.
You could take a look how the command line util is doing it (https://github.com/python-kasa/python-kasa/blob/master/kasa/cli.py#L168), or you could perform discovery (https://python-kasa.readthedocs.io/en/latest/discover.html) and filter the results based on the alias yourself.
Prepare 0.4.1
Prepare 0.4.1 (#288)
Prepare 0.4.1 (python-kasa#288)
Activity
rytilahti commented on Jan 11, 2022
Hi, there is no device management in the lib, so there is no direct way to do that.
You could take a look how the command line util is doing it (https://github.com/python-kasa/python-kasa/blob/master/kasa/cli.py#L168), or you could perform discovery (https://python-kasa.readthedocs.io/en/latest/discover.html) and filter the results based on the alias yourself.
Prepare 0.4.1
Prepare 0.4.1 (#288)
Prepare 0.4.1 (python-kasa#288)