Skip to content

TP Link Dimmer switch (HS220) hardware version 2.0 not being discovered #105

@adamurban

Description

@adamurban

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:

DISCOVERY_QUERY = {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions