Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Zigbee2MQTT - Setup...
 
Share:
Notifications
Clear all

[Solved] Zigbee2MQTT - Setup USB dongle passthrough in Proxmox for use with Home Assistant

1 Posts
1 Users
0 Reactions
1,917 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2791
Topic starter  

I've used this for my Sonoff ZBDongle-E, while running a Home Assistant VM under Proxmox.

I prefer to use the USB Vendor/Device ID method - it is sait that hot unplugging and such should still work.
It is the first thing I tried, and it did work 😊 

1) Plugin your USB dongle

2) Go to your VM in Proxmox, click the hardware option, and click "Add".

3) In the popup window, select "Use USB Vendor/Device ID", and choose your USB dongle.

4) Reboot your VM.

Not sure why, but it seemed needed with my setup.

5) Once the VM is running again, select the VM and click the ">_ Console" button on the far right.

We're going to run a few commands to get our facts straight 😊 

- Check if the device is found

In the hardware list, where we just added the USB device, you'll see a VendorID:DeviceID code.
Something like this (may be different for your device/dongle)

In the console type "lsusb" to see if it is listed.

As you can see, my USB device is listed on the second line as "Bus 002 Device 002: ID 1x86:55d4" (matching the VendorID:DeviceID code we just found).

- find the port

I found, kind-a by accident, that it's listed in "/dev/serial/by-id"

ls -l /dev/serial/by-id/

This will actually show the tty-device (/dev/ttyACM0) it is mapped to:

# ls -l /dev/serial/by-id/
total 0
Irwxrwxrwx	1 root	root	13 Apr 15 11:41 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240219191906-if00 -> ../../ttyACMO

 

 


   
ReplyQuote
Share: