ConBee II and KVM

It has been reported that the ConBee II stick does not work with KVM and USB redirection:

This is true. However, I found a nice way to get it to work anyway, by providing the serial device to the VM instead:


<serial type="dev">
  <source path="/dev/ttyACM0"/>
  <target type="usb-serial" port="1">
    <model name="usb-serial"/>
  </target>
  <alias name="serial1"/>
  <address type="usb" bus="0" port="4"/>
</serial>

I just wanted to post this in case anybody else has the same problem.

2 Likes

This post was very helpful to me. I was able to get mine going with a slight modification of your code (as my host path was a serial path not a tty:

<serial type='dev'>
  <source path='/dev/serial/by-id/<yourusbid>'/>     <----note this is the host path
  <target type='usb-serial' port='1'>
    <model name='usb-serial'/>
  </target>
  <alias name='serial1'/>
  <address type='usb' bus='0' port='4'/>
</serial>

I deploy through a VM on unRAID.

My new Conbee II USB stick kept timing-out & reconnecting in my VM host (Debian 10), getting a new USB device number assignment every 30 seconds. So I flashed the Conbee II firmware to the latest version and that behavior stopped. After that, my HA VM guest (qemu/qcow2 image) was able to find and auto-configure the Conbee II USB stick. It also survives across guest & host reboots.

I used a Raspberry Pi 3B+ to build a bootable environment suitable for flashing the Conbee II USB stick.

Then I followed these firmware flashing instructions.

thanks, this also worked for OMV with conbee

Hello,
Looks like I ran into a similar problem. I installed OMV + KVM plugin on old PC. I started Home Assistant on virtual machine and everything works except Conbee II. It is visible in HA, but in Zigbee2MQTT it shows an error. I came across this thread and tried to modify the xml configuration by editing virsh edit but I am not sure if I am making the correct entries.
Output of lsusb:

Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 012: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Hardware in HA:
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2451933-if00
/dev/serial/by-path/pci-0000:00:1d.1-usb-0:2:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/tty/ttyACM0

I am asking for help, how should I modify the xml in this situation to make it work properly.