I've recently pip installed python-kasa and have tried using the command line to discover my HS105 SmartPlugs but have had no luck. When typing "kasa" or "kasa discover" I am met with:
I have 2 SmartPlugs on the network that I am connected to. I have tried "kasa --target" and "kasa --host" with their IP addresses after with no results as well. Any assistance would be amazing.
Are you running the current master? #147 changed the discovery behavior to fix it for some devices that did not like the previously used discovery query. #115 might also be related.
Having a similar problem with a KL125 bulb. Checked those PR and tried reinstalling the package. Could be related to the new firmware, but I have a plug with newer firmware that shows fine.
Bulb is connected to my local wifi, no VPNs. Device info:
model: KL125
hw: 1.20
fw 1.0.5
time: {accurate time}
MAC: {exists}
network info: {my network}
location: last updated 5/23/21 (purchase 'open box')
Repo wise, tried pip install kasa version, with and without --pre flag, and fresh clone with poetry install. All give version
% kasa --version
kasa, version 0.4.0.dev2
FWIW with the same setup, the KP115 plug is discovered; it shows a newer firmware version:
% kasa discover
Discovering devices on 255.255.255.255 for 3 seconds
== plug_SF - KP115(US) ==
Host: 192.168.86.47
Device state: ON
== Generic information ==
Time: 2021-06-13 15:37:35
Hardware: 1.0
Software: 1.0.7 Build 200825 Rel.100128
MAC (rssi): 90:9A:4A:08:B2:AA (-29)
Location: {'latitude': 3...7, 'longitude': -1...5}
== Device specific information ==
LED state: True
On since: 2021-06-13 15:37:25.161312
== Current State ==
{'current_ma': 0, 'voltage_mv': 0, 'power_mw': 0, 'total_wh': 0, 'err_code': 0}
This issue might have been fixed by #147, but if it is still not working using the latest release, you need to provide more information in form of a packet trace (tcpdump, wireshark) and reopen this.
If anyone else is having trouble, make sure you connect it through the app first and it is solid blue and on. Sometimes you need to do kasa discover multiple times too.
Activity
SkyBehind commented on May 16, 2021
I can't discover my HS220's, not sure if it's related. I've also tried all the above options and I think most in the help menu's.
neildsimbulan commented on May 20, 2021
I'm unable to discover HS103's that version 5.0... Interestingly enough I have a few v3.0's on the same 1.0.3 firmware that discover fine.
rytilahti commented on May 21, 2021
Are you running the current master? #147 changed the discovery behavior to fix it for some devices that did not like the previously used discovery query. #115 might also be related.
enorms commented on Jun 13, 2021
Having a similar problem with a KL125 bulb. Checked those PR and tried reinstalling the package. Could be related to the new firmware, but I have a plug with newer firmware that shows fine.
Bulb is connected to my local wifi, no VPNs. Device info:
Repo wise, tried pip install kasa version, with and without --pre flag, and fresh clone with poetry install. All give version
FWIW with the same setup, the KP115 plug is discovered; it shows a newer firmware version:
kj4qyf commented on Aug 21, 2021
Did anyone figure out how to add KL125 to ISY ?
rytilahti commented on Oct 4, 2021
This issue might have been fixed by #147, but if it is still not working using the latest release, you need to provide more information in form of a packet trace (tcpdump, wireshark) and reopen this.
Prepare 0.4.1
Prepare 0.4.1 (#288)
bhfish2020 commented on Jul 4, 2024
If anyone else is having trouble, make sure you connect it through the app first and it is solid blue and on. Sometimes you need to do kasa discover multiple times too.
Prepare 0.4.1 (python-kasa#288)