You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.pythat 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:
python-kasa/kasa/discover.py
Line 138 in c59b748