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

sys_info not None fails assertion #55

Copy link
Copy link
@lordmundi

Description

@lordmundi
Issue body actions

I apologize if this clutters up your issue system, but I couldn't find any better place to ask a question. I'm working under windows and would like to send commands to an HS100 smartplug. I didn't quite see how to install the module under windows (using pip for example), so I just downloaded and put the kasa directory in the same directory as my script and that seems to let the import happen fine.

But, in my code I have:

from kasa import SmartPlug
from pprint import pformat as pf

# Define the connection to the TPLink HS100 smart plug using the kasa module
plug = SmartPlug("192.168.0.99")
#print("Hardware: %s" % pf(plug.hw_info))
#print("Full sysinfo: %s" % pf(plug.get_sysinfo())) # this prints lots of information about the device

print("Alias is", plug.alias)

As soon as I try to do anything with plug, it fails assertion saying:

  File "bla\kasa\smartdevice.py", line 110, in wrapped
    assert self._sys_info is not None

I'm guessing this means the library isn't connecting to the plug. Am I doing anything wrong? Is there anything under windows that might be breaking this?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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.