DanielPT Posted February 2 Share Posted February 2 (edited) Hi all Im running Home assistant in docker. I have an USB dongel Sonoff Zigbee controller 3.0. How can i passthough the dongel to my docker? Im a little confused about all the topic and the correct way doing this. Do i need this? I can see this in the log Feb 2 15:08:31 Kratos kernel: usb 1-14: USB disconnect, device number 7 Feb 2 15:08:31 Kratos kernel: cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0 Feb 2 15:08:31 Kratos kernel: cp210x 1-14:1.0: device disconnected Feb 2 15:09:27 Kratos kernel: usb 1-14: new full-speed USB device number 8 using xhci_hcd Feb 2 15:09:27 Kratos kernel: cp210x 1-14:1.0: cp210x converter detected Feb 2 15:09:27 Kratos kernel: usb 1-14: cp210x converter now attached to ttyUSB0 Feb 2 15:36:28 Kratos kernel: usb 1-14: USB disconnect, device number 8 Feb 2 15:36:28 Kratos kernel: cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0 Feb 2 15:36:28 Kratos kernel: cp210x 1-14:1.0: device disconnected Feb 2 15:37:24 Kratos kernel: usb 1-14: new full-speed USB device number 9 using xhci_hcd Feb 2 15:37:24 Kratos kernel: cp210x 1-14:1.0: cp210x converter detected Feb 2 15:37:24 Kratos kernel: usb 1-14: cp210x converter now attached to ttyUSB0 Thanks! Edited February 2 by DanielPT Quote Link to comment
PzrrL Posted February 4 Share Posted February 4 (edited) I have been searching for an answer and finally was able to do so! This reply also serves as my future reference. Plug in your USB device (not sure if restart is required) Open the Unraid console ls /dev/serial/by-id Copy the device name, for me it is `usb-Nabu_Casa_SkyConnect_v1.0_ba7a2aba7a2aba7a2aba7a2a-if00-port0` In your docker config, add another Device Make sure to have the Config Type and Value correct as below Config Type: Device Name: Any Device Name You Want Value: /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ba7a2aba7a2aba7a2aba7a2a-if00-port0:/dev/ttyUSB0 Done! Please note that the value before colon is the path to your USB device, and the value after colon is the path within the container. It wasn't sccessful when I was trying to do /dev/skyconnect , until I do /dev/ttyUSB0 . The USB device then shows in my Home Assistant container. Edited February 4 by PzrrL typo 1 1 2 Quote Link to comment
Helmonder Posted February 18 Share Posted February 18 I set up a blooth proxy with an esp32... Cost me ten euro and it works immediately.. I also put another one at the other end of the house, now bluetooth range is also great.. Quote Link to comment
Vetteman Posted June 20 Share Posted June 20 When I run the following command on my Unraid terminal ls /dev/serial/by-id I get no such file or directory Also ls dev gives me a list of folders by there is NO folder named serial. I too would like to be able to access my dvd writer from WindowsinDocker I also have a vm of Windows 11 and it can access the same dvd writer fine, But on my Unraid server Unraid 6.12.9 Xeon E1240 and 32 gb of memory, WindowsinDocker runs better then my VM and is also a much more enjoyable experience. I have allocated 4 cores to both. And do not run them simultaneously. Only one at a time. I originally posted to this thread and I got a reply to check this thread that I am now posting in. Quote Link to comment
lined-improvisation6046 Posted August 22 Share Posted August 22 On 2/4/2024 at 4:13 PM, PzrrL said: I have been searching for an answer and finally was able to do so! This reply also serves as my future reference. Plug in your USB device (not sure if restart is required) Open the Unraid console ls /dev/serial/by-id Copy the device name, for me it is `usb-Nabu_Casa_SkyConnect_v1.0_ba7a2aba7a2aba7a2aba7a2a-if00-port0` In your docker config, add another Device Make sure to have the Config Type and Value correct as below Config Type: Device Name: Any Device Name You Want Value: /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ba7a2aba7a2aba7a2aba7a2a-if00-port0:/dev/ttyUSB0 Done! Please note that the value before colon is the path to your USB device, and the value after colon is the path within the container. It wasn't sccessful when I was trying to do /dev/skyconnect , until I do /dev/ttyUSB0 . The USB device then shows in my Home Assistant container. This solution worked without a problem for me. Thanks! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.