Hyper-V doesn’t natively support USB passthrough but you can easily passthrough your dongles by using one of the many Serial to Network Solutions. The easiest software to setup is NetBurner Virtual Comm Port. It can be configured from the GUI and runs as a windows service so it always works even after a reboot.
How to Setup NetBurner
- Make sure you have the latest windows drivers. If your drivers are not installed NetBurner won’t detect your devices. My Zooz 700 Series stick and ZBDongle-P use the CP2102 Driver while my Zooz ZST39 and ZBDongle-E use the CH9102 Driver.
- Download NetBurner from HERE.
- Install NetBurner using the default settings then run the program. It will be named NBVirtualCommPort
- Click ADD to add a new entry and use the following settings:
a. For connection type select SERVER CONNECTION
b. Select the COM Port you want to share
c. Give your connection an easy to remember name. I will name mine Z-Wave and Zigbee
d. Uncheck CREATE AS VIRTUAL PORT
e. Make sure your TCP Port is different for each device that you want to share
f. Click Apply
How to Connect Your Windows Devices to HA
- For Zigbee2MQTT go to settings > addons > zigbee2mqtt > configuration tab > in the serial section enter
port: tcp://192.168.1.2:5002
192.168.1.2 is the IP address you are running NetBurner on and 5002 is the port you selected. - For ZHA go to settings > devices and services > add integration > add zigbee device > click proceed > under select serial port port click enter manually > select your radio type and click submint > enter
tcp://192.168.1.2:5002
for the serial device path > click submit
- For Z-Wave JS UI go the UI > Settings > Z-Wave section >
tcp://192.168.1.2:5002
in the serial port box > click save
Troubleshooting
The only issue I’ve had was during setup. I didn’t have the latest driver and it would not connect to my device.