kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
369 stars 101 forks source link

AssertionError during _DoCommand (Send) #102

Open uncled1023 opened 4 years ago

uncled1023 commented 4 years ago

I am trying to set this up for the first time, and am running into an issue I can't figure out.

Here are the logs: https://p.teknik.io/Tlkus

I have my hub plugged into a USB hub, which is attached to a server running USB-IP. My HA instance is in a VM also running USB-IP, with the hub usb device attached.

Here is a look at what is currently attached:

uncled1023@homeassistant:/home/homeassistant/.homeassistant$ dmesg | grep hidraw
[    1.519997] hidraw: raw HID events driver (C) Jiri Kosina
[   12.736177] hid-generic 0003:1A86:E024.0002: hiddev0,hidraw0: USB HID v1.00 Device [HID 1a86:e024] on usb-vhci_hcd.0-1/input0

And this is my config:

- platform: wyzesense
  device: /dev/wyzesense

I had used the initial portion of the comment here to set up the explicit device name: https://github.com/kevinvincent/ha-wyzesense/issues/66#issuecomment-569470754

Any thoughts? Or is there a way I can test the USB to make sure it's being passed through correctly?

uncled1023 commented 4 years ago

As an aside, I can see commands being sent through to the server USB-IP host. Not sure if these are useful, but here is a dump of the commands being sent: https://p.teknik.io/3iC42 and here is what the usb-ip driver sees: https://p.teknik.io/HVFAj