Adding a USB device, like the Zigbee USB controller ZBT-1, to Home Assistant on a Pi

Submitted by Falken on

Got a https://thepihut.com/collections/latest-raspberry-pi-products/products/home-assistant-skyconnect and need to pass it through to your HA virtual machine ? The VM will be using lxc, because all the other ways are terrible.

Really just a case of following IBM's docs

Which largely means writing a file, such as /tmp/u

  <hostdev mode='subsystem' type='usb' managed='yes'> 
     <source> 
       <vendor id='0x10c4'/> 
       <product id='0xea60'/> 
     </source> 
   </hostdev>

Then running 

virsh attach-device haos --file /tmp/u --config --persistent