Skip to content

Timeout while discovering device type with newer versions of python-kasa #743

Closed as not planned
@MaxRower

Description

@MaxRower

I upgraded python-kasa via pip today, and one KP115 plug will timeout before discovering the device type.

With version 0.6.2.1 it times out:
`# kasa --host kp115 sysinfo

No --type or --device-family and --encrypt-type defined, discovering..

Got error: TimeoutException('Timed out getting discovery response for kp115')
`

With version 0.5.1 it succeeds:
`# kasa --host kp115 sysinfo

No --type defined, discovering..

== System info ==

{'active_mode': 'none',

'alias': '****',

'dev_name': 'Smart Wi-Fi Plug Mini',

'deviceId': '****',

'err_code': 0,

'feature': 'TIM:ENE',

'hwId': '24ACB9D5D9DA9BF17639988287D65DE6',

'hw_ver': '1.0',

'icon_hash': '',

'latitude_i': -1879048193,

'led_off': 0,

'longitude_i': -1879048193,

'mac': '****',

'mic_type': 'IOT.SMARTPLUGSWITCH',

'model': 'KP115(EU)',

'next_action': {'type': -1},

'ntc_state': 0,

'obd_src': 'tplink',

'oemId': 'A9AD6FB31E10A787A48B31AB9A10BBEC',

'on_time': 2035,

'relay_state': 1,

'rssi': -68,

'status': 'new',

'sw_ver': '1.0.20 Build 221125 Rel.092759',

'updating': 0}
`

when specifying --type plug it works with version 0.6.2.1 as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions