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.

4 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.

…Worked for me, too! Hug!

Worked for me, but the ConBee II is recognized as a “regular” ConBee.
How does yours show up in deCONZ?

I went round on circles on this, so if it helps anyone: If you follow these steps and it still doesn’t work - try removing any other USB devices.

It was only that I spotted that the device in my HA VM was showing up as ‘audio’ instead of ‘dialout’ like on the host that I realised a Bluetooth Audio usb dongle I had plugged in was interfering!

My setup: OMV+KVM plugin ; updated Conbee II firmware to latest version

What’s unclear to me is if you still need to use the ‘add usb’ option of the KVM plugin.
If I just add the provided xml snippets from this thread then the device is not found in Home Assistant.

If I use the ‘add usb’ option then the device is found, with or without the extra xml option, but the setup of ZHA fails. On one of the tries it did work, but after a while it failed and Home Assistant could again not find the device anymore.

I’m having similar issues, I get it working - but then when I restart HA or the VM it’s pot luck if the Conbee stick will be discovered properly or my ZHA is borked again.

So far it seems the only ‘fix’ is to ensure the USB stick is detached in KVM/Unraid, ensure hardcoded XML is set again, then start the VM and pray. And even then it seems to still be potluck if it wants to work.

Starting to wonder if it might be easier to put the conbee stick on a Pi I have running a RF Remote (MiHome) over MQTT and somehow do ZigBee over MQTT back to HA as well. At least the Pi is less likely to be rebooted…