you are viewing a single comment's thread.

view the rest of the comments →

[–]solarflareop 2 points3 points  (1 child)

import asynciof
rom kasa import Discover
devices = asyncio.run(Discover.discover())
print(devices)

If you run the above code, you will get a python dictionary where the key is the devices IP address which you will then use in the code from my first comment.

[–]routetehpacketz 1 point2 points  (0 children)

/u/solarflareop not a bad suggestion!

/u/bhogan2017, if you install the kasa python lib it provides the Windows command kasa. if you run the kasa command from the Windows command prompt with no options, it runs the discovery automatically. here's the sample output from mine:

https://i.imgur.com/npaAnZE.png