help to find USB address to mount in app

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
I'm trying to find the address of a USB Bluetooth adapter so that I can mount it to Home Assistant.
I have tried "lsusb" but command isn't found, "lsblk | grep sd" but seems that doesn't show usb devices.
I'm not sure what to do to find the address
 

Attachments

  • mount usb.jpg
    mount usb.jpg
    18.2 KB · Views: 463

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
I found the command "dmesg | grep -i usb" this gives me

[86344.472817] usb 2-9: new full-speed USB device number 6 using xhci_hcd
[86344.621491] usb 2-9: New USB device found, idVendor=0bda, idProduct=a729, bcdDevice= 2.00
[86344.623038] usb 2-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[86344.624556] usb 2-9: Product: Bluetooth 5.3 Radio
[86344.626205] usb 2-9: Manufacturer: Realtek

So, I suppose I'll try an address like "/dev/bus/usb/002/009"

edit: That didn't work
 
Last edited:

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
As a suggestion. Enable the console display at the bottom of the screen
Remove USB device - wait a bit
Add USB device - its details should appear
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
As a suggestion. Enable the console display at the bottom of the screen
Remove USB device - wait a bit
Add USB device - its details should appear
that only shows me similar information

kernel: usb 2-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 2-3.4: Product: Bluetooth 5.3 Radio
kernel: usb 2-3.4: Manufacturer: Realtek
kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
kernel: bluetooth hci0: Direct firmware load for rtl_bt/rtl8761bu_fw.bin failed with error -2

Although maybe there is something to do with this firmware error?
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
WOW so, yes the driver isn't right. I found a webpage that discusses this and they renamed the driver to get it to work. something about the USB version of the driver has a "u" in it.

""So after changing the name of the firmware blob to be built into the kernel
from rtl8761b_fw.bin to rtl8761bu_fw.bin everything works again as expected.""

I had to change rtl8761b_fw.bin AND rtl8761b_config.bin to rtl8761bu_fw.bin, rtl8761bu_config.bin

now I no longer have the "failed with error -2"

So I'm going to retry finding the USB address
 
Last edited:

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
I followed answer 3 on this site https://unix.stackexchange.com/questions/405991/identify-what-usb-port-is-a-device-plugged-into

unplugged usb bt device, set "udevadm monitor" looked for last bind. mine was "/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4"

I'm not sure this is the correct address that I need, but I'm trying to use it. Although right now Home Assistant is taking FOREVER to deploy.... with and without an attempted mounted usb... I'll try again tomorrow
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
it seems the root of my issues is that for some reason USB devices are not having IDs assigned to them, when using "ls -l /dev/serial/by-id" I get no such no such file or directory (same with ls /dev/serial)

this seems to be a issue on RasPi's but I'm not finding many recourses for TrueNAS... Although I have seen screenshots of "ls -l /dev/serial/by-id" working for other TrueNAS scale users...

I'm still looking into this, but its over my head.
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
Found this infomation, its the right PCI device and right usb (1-3.4)

/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4:1.0/bluetooth/hci0 (bluetooth)
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4:1.1 (usb)
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4:1.0/bluetooth/hci0/rfkill2 (rfkill)
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4:1.0 (usb)
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4 (usb)

I tired these addresses,
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/bluetooth/hci0/rfkill2
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/bluetooth/hci0/rfkill2

Home Assistant hangs on deploying.
I'm not sure how else to try this. idkw they would allow an option to mount a usb and have no support on the matter.
 

andyjay777

Dabbler
Joined
Jan 31, 2022
Messages
27
Address for my USB dongle for home assistant is /dev/ttys1

Found the address by going into Services / UPS. There is a drop down menu for the USB connection for my UPS... and that had the HA dongle also listed.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
it seems the root of my issues is that for some reason USB devices are not having IDs assigned to them, when using "ls -l /dev/serial/by-id" I get no such no such file or directory (same with ls /dev/serial)
Just to clarify for you, a USB bluetooth adapter isn't normally going to present itself as a serial device, which explains why you don't see one.
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
Address for my USB dongle for home assistant is /dev/ttys1

Found the address by going into Services / UPS. There is a drop down menu for the USB connection for my UPS... and that had the HA dongle also listed.
considering I only have 1 USB plugged in, it may just take the 0 or 1 spot. I'll try a few. Also I tried the UPS service but it wont start, probably because I don't have a USB UPS. but thank you, there maybe a chance for me to find it in a drop down menu somewhere.

EDIT: no dice, no matter the ttys I try HA will not deploy, the logs spam this. since it is the same no matter the ttys. I'm going to assume that they didn't work.

{"level":"info","ts":"2023-08-24T11:46:42Z","logger":"postgres","msg":"record","logging_pod":"home-assistant-cnpg-main-1","record":{"log_time":"2023-08-24 11:46:42.124 UTC","process_id":"26","session_id":"64e1a608.1a","session_line_num":"2448","session_start_time":"2023-08-20 05:35:04 UTC","transaction_id":"0","error_severity":"LOG","sql_state_code":"00000","message":"checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.174 s, sync=0.003 s, total=0.185 s; sync files=2, longest=0.002 s, average=0.002 s; distance=16183 kB, estimate=16749 kB","backend_type":"checkpointer","query_id":"0"}}
 
Last edited:

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
there maybe a chance for me to find it in a drop down menu somewhere.
You could try to create a VM (no need to start it or install OS), click to edit the VM devices, then in the top right click Add and select Type USB Passthrough Device. There is a Device dropdown, maybe your adapter will show up there.
1692879007772.png
 

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
You could try to create a VM (no need to start it or install OS), click to edit the VM devices, then in the top right click Add and select Type USB Passthrough Device. There is a Device dropdown, maybe your adapter will show up there.
View attachment 69619
It likely will show up there, but that wont give me the address to the device, just the name of it.

I may have to just run HA in a VM. Which is a same because the TrueCharts app should be able to pass it through :(
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
I run Home Asisstant in a VM using HASSOS, their OS. It gives a lot of advantages over the app. You might like it. I am passing through a Zwave USB stick and it works fine.
 

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
Sorry, I can't provide anything more helpful about the app, RavenNAS.

As sfatula suggests, you might like HAOS. I swore I'd never use it for many years, but frustration and lack of time to learn Kubernetes encouraged me to try HAOS in an effort to keep Home Assistant running on my TrueNAS. It's been about eight months since I switched to HAOS, and it has been, by far, the best experience I've had running Home Assistant.

Admittedly, it's still not perfect, though. USB passthrough is one area that could use some work. For example, the Coral USB and Conbee II devices won't work with USB passthrough. These may require PCI passthrough of the USB controller they are connected to.

Devices I've tested that work with USB passthrough include:
Aeotec Gen5 Z-Wave stick
Sky Connect by NabuCasa
Sonoff Zigbee 3.0 USB Dongle Plus
Nortek/GoControl HUSBZB-1
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608

RavenNAS

Dabbler
Joined
Mar 7, 2022
Messages
34
@sfatula @tprelog thank you two for your detailed replies. I believe I will be moving to a proper VM for HA.

I was avoiding it as I dont have too much ram or cores in my system (it may have workes just fine anywyas)Soon I have a major hardware upgrade planned from my 8 thread i7 4770/ 24gb ram to a 12thread ryzen 5 2600 / 32gb ecc ram.

There I will inability make the change. Another thing that really bothered me about the TrueCharts app of HA was you cannot upload a backup configuration nativity. You would have to use another app that manges SQL servers and move the tables and such.

HAOS seems to be the answer.
Thanks again
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
HA uses minimal resources in my VM. You'll be fine.
 
Top