You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Received a new HS105(US) plug with hardware version 5.0 & software version 1.0.2; it is not discoverable or connectable with kasa:
(python-kasa) derek@ubuntu:~$ kasa --version
kasa, version 0.4.0.dev2
(python-kasa) derek@ubuntu:~$ kasa --host 192.168.45.175 --debug
No --strip nor --bulb nor --plug given, discovering..
DEBUG:kasa.protocol:> (249) {"system": {"get_sysinfo": null}, "emeter": {"get_realtime": null}, "smartlife.iot.dimmer": {"get_dimmer_parameters": null}, "smartlife.iot.common.emeter": {"get_realtime": null}, "smartlife.iot.smartbulb.lightingservice": {"get_light_state": null}}
DEBUG:kasa.protocol:Unable to query the device, retrying: unpack requires a buffer of 4 bytes
DEBUG:kasa.protocol:> (249) {"system": {"get_sysinfo": null}, "emeter": {"get_realtime": null}, "smartlife.iot.dimmer": {"get_dimmer_parameters": null}, "smartlife.iot.common.emeter": {"get_realtime": null}, "smartlife.iot.smartbulb.lightingservice": {"get_light_state": null}}
DEBUG:kasa.protocol:Unable to query the device, retrying: unpack requires a buffer of 4 bytes
DEBUG:kasa.protocol:> (249) {"system": {"get_sysinfo": null}, "emeter": {"get_realtime": null}, "smartlife.iot.dimmer": {"get_dimmer_parameters": null}, "smartlife.iot.common.emeter": {"get_realtime": null}, "smartlife.iot.smartbulb.lightingservice": {"get_light_state": null}}
DEBUG:kasa.protocol:Unable to query the device, retrying: unpack requires a buffer of 4 bytes
DEBUG:kasa.protocol:> (249) {"system": {"get_sysinfo": null}, "emeter": {"get_realtime": null}, "smartlife.iot.dimmer": {"get_dimmer_parameters": null}, "smartlife.iot.common.emeter": {"get_realtime": null}, "smartlife.iot.smartbulb.lightingservice": {"get_light_state": null}}
DEBUG:kasa.protocol:Giving up after 3 retries
Traceback (most recent call last):
File "/home/derek/.venvs/python-kasa/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
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/derek/.venvs/python-kasa/bin/kasa", line 11, in <module>
sys.exit(cli())
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 862, in __call__
return anyio.run(self._main, main, args, kwargs, **({"backend":_anyio_backend} if _anyio_backend is not None else {}))
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/anyio/_core/_eventloop.py", line 52, in run
return asynclib.run(func, *args, **backend_options) # type: ignore
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/anyio/_backends/_asyncio.py", line 160, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/anyio/_backends/_asyncio.py", line 155, in wrapper
return await func(*args)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 865, in _main
return await main(*args, **kwargs)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 814, in main
rv = await self.invoke(ctx)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 1272, in invoke
return await Command.invoke(self, ctx)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 1102, in invoke
return await ctx.invoke(self.callback, **ctx.params)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/asyncclick/core.py", line 644, in invoke
rv = await rv
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/kasa/cli.py", line 77, in cli
dev = await Discover.discover_single(host)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/kasa/discover.py", line 207, in discover_single
info = await protocol.query(host, Discover.DISCOVERY_QUERY)
File "/home/derek/.venvs/python-kasa/lib/python3.7/site-packages/kasa/protocol.py", line 80, in query
) from ex
kasa.exceptions.SmartDeviceException: Unable to query the device: unpack requires a buffer of 4 bytes
Trying to query the plug using tplink_smartplug.py using the full query string hangs and eventually returns nothing:
Received a new HS105(US) plug with hardware version 5.0 & software version 1.0.2; it is not discoverable or connectable with
kasa
:Trying to query the plug using
tplink_smartplug.py
using the full query string hangs and eventually returns nothing:If the query string is broken up into individual pieces they all complete successfully however:
The text was updated successfully, but these errors were encountered: