USB/IP Implementation

This is also a good tutorial too, I should probably just join them all into one that works from start to finish lol.

It is true that you can only bind by the bus ID, but if you only have one device with this vendor/device ID, you can make things a bit more reliable.

I used systemd-usbip/README.md at master ¡ furbrain/systemd-usbip ¡ GitHub to have reliabiltiy here. Also USB/IP - ArchWiki gives some ideas how to do it.

3 Likes

This finally allowed me to bring my Sonoff dongle into my Hyper-V instance of Home Assistant OS!
I installed and ran USBIPD on the Windows VM host, it listed the dongle at bus 5-1, so I ran the command to bind it (with the force option). back in my HA, pointed the config for your add-on to the host server IP, and poof! dongle discovered!
The USBIPD needs a Task Scheduler command with options created by me to that it launches whenever the server starts-up.
I hope this can help, I see a lot of posts about how to bring dongles into VM instances of Home assistant over network when local passthrough isn’t possible or preferred, but very very few working solutions!

I tried using a Digi “USBAnywhere” network USB hub with this VM host, and it almost worked, but the dongle was listed in USBIPD as being on an “incompatible hub” with no bus attributes. I might reach-out to the USBIPD dev about that little glitch.

Thankyou Thankyou!

Hey everyone,

I need to move my proxmox to the basement but I have two USB dongle connected to it. One is a zigbee dongle which I would like to replace with a ZMLight one but the other one is a proprietary stick for my shutters. I searched for a remote USB solution and found this thread with @syngin’s addon. This looks like a suitable solution for my use case, but I need a device for the USB/IP server. Could anyone recommend me a low power device which is capable of running USB/IP?

Thanks in advance

Hi,

I am using an Raspberry Pi 3 Model B Plus Rev 1.3.

Hi, following this thread with great interest :slight_smile: ! !
and have a couple of questions:

  1. in HAOS, how is the USB device mounted? is like /dev/something?
  1. On the remote/server side, when the USB device is replugged (unplug, then plug back in), doesn’t the device number portion of the bus change? and if so what happens?

Thanks!

I’m having severe reliability issues with USBIPD-WIN on my Windows 11 machine, and CryptedX’s USBIP client in HASSOS, and I’m wondering if anyone else has faced similar issues - and if so what they’ve done to resolve them. I’m close to giving up and switching to a different Zigbee radio, but I have 121 devices paired, and do NOT want to deal with migrating them.

The issue is that at least twice/day (often times more) HA just loses connection to the Zigbee controller, and the only way to fix it is to restart the USBIP add-on, which reconnects to the controller, and ZHA reinitializes. The entire process takes several minutes though, and it seems to be down every time someone in the house tries to turn a light on or off.

I never have to touch the USBIPD windows service, so I don’t THINK it is the problem - unless it is failing to communicate quickly enough with the add-on to maintain connection?

Logs don’t tell me much, though I see a weird web server response after the USBIP add-on starts up and initially connects to the controller.

Any suggestions? Anyone else facing similar issues?

I had a similar issue with have exact same setup: Win11 + HyperV + USPIPD.
I solved it by:

  • plugging the Zigbee device in an USB 2 port instead of an USB 3 port
  • muving the router further away from the Zigbee dongle

If you still have problems use an USB cable extender so the Zigbee dogle doesn’t pick up interferences from the PC.

I am facing a similar issue. I used to run the below command on windows 11 using admin powershell on start to share my zigbee dongle to my docker home assistant.

usbipd attach —wsl —-busid 1-2

Now I get the below error:

usbipd: info: Using WSL distribution 'Ubuntu' to attach; the device will be available in all WSL 2 distributions. 
usbipd: info: Loading vhci_hcd module. 
usbipd: error: Loading vhci_hcd failed.

i am try to connect my becker usb dongle via usb/ip to HA.
But cant find it. - Zigbee and Nabu_Casa_SkyConnect_v1.0 works.
No errors on bind in HA.
any ideas why my: /dev/serial/by-id/usb-Becker-Antriebe_GmbH_CDC_RS232_v125_Centronic-if00 is not working

Some Errors in HA Consolle with message: vhci_hcd: vhci_device speed not set

I found some other messegaes in the HA Console:
usb 4-3: device descriptor read/64 error -32
usb 4-3: device descriptor read/8 error -32
usb usb4-port3: unable to enumerate USB device

Any ideas?