Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

HS105(US): "module not support" reported when scanning for Wi-Fi networks #506

Copy link
Copy link
@nosoop

Description

@nosoop
Issue body actions

Just purchased a shrink-wrapped HS105(US).

Attempting to search for available APs using kasa --host 192.168.0.1 --type plug wifi scan results in being unable to query the device on netif, then raising an error on smartlife.iot.common.softaponboarding.get_scaninfo.

I have no prior experience with TP-Link IoT devices so I'm not sure if Wi-Fi scanning is supported on the hardware, but manually filling in credentials with wifi join was successful, so I'm mostly just here to verify whether or not AP scanning functionality is supposed to be present.

Operating system is Windows 10, using a USB adapter for connectivity to the plug.
Installed version of python-kasa is 0.5.3 (via pip / PyPI).

kasa -d output in the disclosure element below.

Click to expand
$ kasa -d --host 192.168.0.1 --type plug wifi scan
DEBUG:kasa.smartdevice:Initializing 192.168.0.1 of type <class 'kasa.smartplug.SmartPlug'>
DEBUG:kasa.smartdevice:Adding module <Module Schedule (schedule) for 192.168.0.1>
DEBUG:kasa.smartdevice:Adding module <Module Usage (schedule) for 192.168.0.1>
DEBUG:kasa.smartdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.1>
DEBUG:kasa.smartdevice:Adding module <Module Time (time) for 192.168.0.1>
DEBUG:kasa.smartdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.1>
DEBUG:kasa.smartdevice:Performing the initial update to obtain sysinfo
DEBUG:kasa.protocol:192.168.0.1 >> {"system":{"get_sysinfo":null}}
DEBUG:kasa.protocol:192.168.0.1 << {'system': {'get_sysinfo': {'active_mode': 'none',
                            'alias': 'TP-LINK_Smart Plug_E37E',
                            'dev_name': 'Smart Wi-Fi Plug Mini',
                            'deviceId': '0000000000000000000000000000000000000000',
                            'err_code': 0,
                            'feature': 'TIM',
                            'fwId': '00000000000000000000000000000000',
                            'hwId': '00000000000000000000000000000000',
                            'hw_ver': '1.0',
                            'icon_hash': '',
                            'latitude_i': 0,
                            'led_off': 0,
                            'longitude_i': 0,
                            'mac': '00:00:00:00:00:00',
                            'model': 'HS105(US)',
                            'oemId': '00000000000000000000000000000000',
                            'on_time': 624,
                            'relay_state': 1,
                            'rssi': 33,
                            'sw_ver': '1.2.9 Build 170808 Rel.145916',
                            'type': 'IOT.SMARTPLUGSWITCH',
                            'updating': 0}}}
DEBUG:kasa.modules.module:Initial update, so consider supported: schedule
DEBUG:kasa.smartdevice:Adding query for <Module Schedule (schedule) for 192.168.0.1>: {'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.modules.module:Initial update, so consider supported: schedule
DEBUG:kasa.smartdevice:Adding query for <Module Usage (schedule) for 192.168.0.1>: {'schedule': {'get_realtime': None, 'get_daystat': {'year': 2023, 'month': 8}, 'get_monthstat': {'year': 2023}}}
DEBUG:kasa.modules.module:Initial update, so consider supported: anti_theft
DEBUG:kasa.smartdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.1>: {'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.modules.module:Initial update, so consider supported: time
DEBUG:kasa.smartdevice:Adding query for <Module Time (time) for 192.168.0.1>: {'time': {'get_time': None, 'get_timezone': None}}
DEBUG:kasa.modules.module:Initial update, so consider supported: cnCloud
DEBUG:kasa.smartdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.1>: {'cnCloud': {'get_info': None}}
DEBUG:kasa.protocol:192.168.0.1 >> {"system":{"get_sysinfo":null},"schedule":{"get_rules":null,"get_next_action":null,"get_realtime":null,"get_daystat":{"year":2023,"month":8},"get_monthstat":{"year":2023}},"anti_theft":{"get_rules":null,"get_next_action":null},"time":{"get_time":null,"get_timezone":null},"cnCloud":{"get_info":null}}
DEBUG:kasa.protocol:192.168.0.1 << {'anti_theft': {'get_next_action': {'err_code': -2,
                                    'err_msg': 'member not support'},
                'get_rules': {'err_code': -11, 'err_msg': 'time not sync'}},
 'cnCloud': {'get_info': {'binded': 0,
                          'cld_connection': 0,
                          'err_code': 0,
                          'fwDlPage': '',
                          'fwNotifyType': 0,
                          'illegalType': -1,
                          'server': 'devs.tplinkcloud.com',
                          'stopConnect': -1,
                          'tcspInfo': '',
                          'tcspStatus': -1,
                          'username': ''}},
 'schedule': {'get_daystat': {'day_list': [], 'err_code': 0},
              'get_monthstat': {'err_code': 0, 'month_list': []},
              'get_next_action': {'err_code': -11, 'err_msg': 'time not sync'},
              'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
              'get_rules': {'err_code': -11, 'err_msg': 'time not sync'}},
 'system': {'get_sysinfo': {'active_mode': 'none',
                            'alias': 'TP-LINK_Smart Plug_E37E',
                            'dev_name': 'Smart Wi-Fi Plug Mini',
                            'deviceId': '0000000000000000000000000000000000000000',
                            'err_code': 0,
                            'feature': 'TIM',
                            'fwId': '00000000000000000000000000000000',
                            'hwId': '00000000000000000000000000000000',
                            'hw_ver': '1.0',
                            'icon_hash': '',
                            'latitude_i': 0,
                            'led_off': 0,
                            'longitude_i': 0,
                            'mac': '00:00:00:00:00:00',
                            'model': 'HS105(US)',
                            'oemId': '00000000000000000000000000000000',
                            'on_time': 624,
                            'relay_state': 1,
                            'rssi': 33,
                            'sw_ver': '1.2.9 Build 170808 Rel.145916',
                            'type': 'IOT.SMARTPLUGSWITCH',
                            'updating': 0}},
 'time': {'get_time': {'err_code': 0,
                       'hour': 17,
                       'mday': 1,
                       'min': 12,
                       'month': 1,
                       'sec': 4,
                       'year': 2000},
          'get_timezone': {'err_code': 0, 'index': 6}}}
Scanning for wifi networks, wait a second..
DEBUG:kasa.protocol:192.168.0.1 >> {"netif":{"get_scaninfo":{"refresh":1}}}
DEBUG:kasa.protocol:Unable to query the device 192.168.0.1, retrying:
DEBUG:kasa.protocol:192.168.0.1 >> {"netif":{"get_scaninfo":{"refresh":1}}}
DEBUG:kasa.protocol:Unable to query the device 192.168.0.1, retrying:
DEBUG:kasa.protocol:192.168.0.1 >> {"netif":{"get_scaninfo":{"refresh":1}}}
DEBUG:kasa.protocol:Unable to query the device 192.168.0.1, retrying:
DEBUG:kasa.protocol:192.168.0.1 >> {"netif":{"get_scaninfo":{"refresh":1}}}
DEBUG:kasa.protocol:Giving up on 192.168.0.1 after 3 retries
DEBUG:kasa.smartdevice:Unable to scan using 'netif', retrying with 'softaponboarding': Communication error on netif:get_scaninfo
DEBUG:kasa.protocol:192.168.0.1 >> {"smartlife.iot.common.softaponboarding":{"get_scaninfo":{"refresh":1}}}
DEBUG:kasa.protocol:192.168.0.1 << {'smartlife.iot.common.softaponboarding': {'err_code': -1,
                                           'err_msg': 'module not support'}}
Got error: SmartDeviceException("Error on smartlife.iot.common.softaponboarding.get_scaninfo: {'err_code': -1, 'err_msg': 'module not support'}")

I appreciate the project, by the way! Other than not being able to scan for access points, the plug is operating as far as my expectations go. I've also created a devinfo file (HS105(US)_1.0_1.2.9.json) prior to joining the plug to the network and would be happy to send in a PR if it's of any interest.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingstale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.