FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

HS103: Unable to query the device: unpack requires a buffer of 4 bytes · Issue #187 · python-kasa/python-kasa · GitHub

Repository navigation

HS103: Unable to query the device: unpack requires a buffer of 4 bytes #187

Closed

Description

With an HS103 on a local network. Tested with Raspbian/Py3.7 and Windows/Py3.8. Both come back with:

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/kasa/protocol.py", line 64, in query
    length = struct.unpack(">I", chunk[0:4])[0]
struct.error: unpack requires a buffer of 4 bytes

Worth noting that the hs103 can be discovered.

Activity

  1. rytilahti commented on Oct 4, 2021

    Member

    Could you try if it works with the newest release? If not, this needs more input in form of a packet trace (tcpdump, wireshark).

  2. adamm commented on Dec 29, 2021

    I can confirm my HS103(US) works perfectly on kasa v0.4.0

  3. rytilahti commented on Jan 8, 2022

    Member

    Thanks for the report @adamm, let's close this then. @NateRiz if it's still not working for you, it seems that your device is not sending enough data for some reason and that should be investigated further. If that's the case, please try to make a packet trace (e.g., with wireshark) and re-open this issue with some details regarding to what is being send by the device as response to that request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL