home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.49k stars 30.7k forks source link

USB discovery does not work at RPi4 container based installation for Silicon Labs EFR32MG21 Zigbee 3.0 USB Dongle #55606

Closed gribouk closed 3 years ago

gribouk commented 3 years ago

The problem

I tried to test new USB discovery feature available sinve 2021.9.0 but with no success - the device does not appear on the list of discovered deevices in the integration folder.

I use Silicon Labs EFR32MG21 Zigbee 3.0 USB Dongle from Sonoff

When I use standrd approach with manual pass through: "--device /dev/ttyUSB0:/dev/ttyUSB0" everything works perfect and I build Zigbee network with ZHA no problem, so it is not a dongle issue, I guess...

What is version of Home Assistant Core has the issue?

2021.9.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

USB discovery

Link to integration documentation on our website

https://www.home-assistant.io/integrations/usb/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (usb) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


usb documentation usb source (message by IssueLinks)

bdraco commented 3 years ago

Can you turn on debug logging for homeassistant.components.usb and post the discovery line when the device is plugged in?

If there are enough unique identifiers, we should be able to add it to the list.

Thanks

gribouk commented 3 years ago

Thats all I managed to get, no other records related:

2021-09-10 18:14:13 DEBUG (MainThread) [homeassistant.components.usb] Discovered USB Device: USBDevice(device='/dev/ttyUSB0', vid='1A86', pid='7523', serial_number=None, manufacturer=None, description='USB Serial')

Adminiuga commented 3 years ago

This is a generic CH340 and cannot be added for auto configuration, because other devices are using the same chip. 2nd ch340 is known to have issues with some older versions of Linux kernel, might be related to your other issue. 3rd two other random people had issues with this particular stick with interference, it would not work without and usb extension. But that is totally off topic here.

gribouk commented 3 years ago

Thanks for any valuable info!