ConBee II with ZHA on Home Assistant OS running in KVM on an Intel NUC: "Failed to connect"

I’m trying to configure ConBee II with ZHA on Home Assistant OS 5.13 (Core version 2021.5.4) running in KVM on Ubuntu 21.04 on an Intel NUC10i7FNH but can’t get it to work. After supplying the correct serial device and choosing the correct Zigbee radio type, the error message I get from the ZHA integration is: “Failed to connect”.

From the logs:

2021-05-16 16:33:10 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02'
2021-05-16 16:33:13 WARNING (MainThread) [zigpy_zigate.api] No response to command 0x0002
2021-05-16 16:33:13 WARNING (MainThread) [zigpy_zigate.api] Retry command 0x0002
2021-05-16 16:33:16 WARNING (MainThread) [zigpy_xbee.api] at: No response to AP command
2021-05-16 16:33:17 WARNING (MainThread) [zigpy_cc.api] No response for: SRSP SYS version {}
2021-05-16 16:36:47 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02'

I have connected it to the NUC with a USB 2.0 extension cord to avoid interference, as suggested in many forum posts here and elsewhere. It looks like it’s connected to the host’s (ie, the NUC’s) USB 2.0 controller (having read elsewhere that it won’t work on a USB 3.0 port):

$ lsusb -tv
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 9, If 1, Class=CDC Data, Driver=cdc_acm, 12M
        ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
    |__ Port 1: Dev 9, If 0, Class=Communications, Driver=cdc_acm, 12M
        ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
    |__ Port 10: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. 
    |__ Port 10: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. 

I have USB passthrough configured like so:

<hostdev mode='subsystem' type='usb' managed='yes'>
  <source>
    <vendor id='0x1cf1'/>
    <product id='0x0030'/>
  </source>
  <address type='usb' bus='0' port='1'/>
</hostdev>

On both the host and guest machines, when the ConBee II stick is attached, it shows up as /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEnnnnnnn-if00.

I have tried everything I can think of but am at a loss for how to proceed. Any ideas how to make this work? Or should I give up and get a Zigbee USB stick from another vendor? If so, is there one known to work in this setup?

(I initially thought I had stumbled on a bug in ZHA and filed an issue, but no longer believe that’s the case.)

I gave up on this and got a CC2652P-based USB stick instead, which works flawlessly.

It works if the device is passed through as a serial instead of the usb device

Hi - I am having issues with this device. Can you point me to a resource that shows how I pass through a USB to a KVM VM in the way you mention?

Currently it is done like this:

<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x1cf1'/>
    <product id='0x0030'/>
  </source>
  <address type='usb' bus='0' port='2'/>
</hostdev>