-
-
Notifications
You must be signed in to change notification settings - Fork 239
Description
TP Link Dimmer switch (HS220) hardware version 2.0 not being discovered. All other TP Link switches, bulbs, and plugs are successfully discovered.
Relates to home-assistant/core#39395
While I don't currently have a good environment to test python-kasa in currently, I was able to fix this on home assistant by manually editing the old pyHS100/discover.py that it uses.
Specifically, I changed
class Discover: DISCOVERY_QUERY = {"system": {"get_sysinfo": None}, "emeter": {"get_realtime": None}}
to
class Discover: DISCOVERY_QUERY = {"system": {"get_sysinfo": None}}
and then was able to successfully discover and use the version 2.0 dimmers.
I suspect a similar modification to python-kasa's discover.py will fix it here too:
Line 138 in c59b748
| DISCOVERY_QUERY = { |