USB-Bluetooth Passtrough VMware for Yale Access Bluetooth

Hi,

I’v struggled a lot to get things work with this configuration :

Mini PC, Windows 11
VMware Workstation, HAOS 9.3

Keylock YALE ASL-06 without Wi-Fi bridge.

I won’t explain the whole VMware and HAOS install process which are available in many places on the web.

3 particularities :

  1. I needed to autostart HA after shutdown, so I’m using a batch file run by Windows at Startup. Single line :
start "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" "C:\vmware\havm_02 (my folder for VMs)\VM_NAME_HERE.vmx"
  1. Needed to get Zigbee (Conbee2) and Z-Wave (AEOTEC Z-Stick Gen5) USB sticks available in HA of course (nothing to do with Yale, that’s in general).

You have to add two (or more) lines in the .vmx file (your virtual machine config file), at the bottom for example :

usb.autoConnect.device0 = "0x1CF1:0x0030"
usb.autoConnect.device1 = "0x0658:0x0200"

Just change the four digits after 0x. These are VID and PID, that you can find that way :

https://kb.synology.com/en-in/DSM/tutorial/How_do_I_check_the_PID_VID_of_my_USB_device

This will automatically (and virtually) unplug the USB sticks from the Windwows Host and plug it in the VM at startup.

  1. using Yale Access BlueTooth integration

Maybe this is not necessary for you, but I spent 3 days trying to let HA plainly use the USB Bluetooth stick (I say plainly because HA saw the stick but Yale integration was “initializing” for centuries. And this is the sole action that allowed this :

Add a third line with PID and VID of the BT stick :

usb.autoConnect.device2 = "0x0B05:0x190E"

(again, this is an example and you have to get the correct ref in your Windows device manager).

And that’s it.

I tried so many things in 3 days that I can’t say if tje August integration remains necessary to make the Yale lock work. But it does now. Not that great (7 to 10 seconds of latency !), but it works, and it seems some of you guys are working on this to get better result.

Hope it could help.

Michel

1 Like

Good info, the one thing I found, and it could just be my system, is on occasion VMWare would fail to pass the device.

What fixed it for me was to explicitly build the connection strings …

Example:

usb.autoConnect.device0 = "name:Silicon\ Zooz_ZST10_700_Z-Wave_Stick vid:10c4 pid:ea60 path:1/1/3/6/2"
usb.autoConnect.device1 = "name:APC\ Back-UPS\ RS\ 1500G\ FW:865.L9\ .D\ USB\ FW:L9 vid:051d pid:0002 path:1/1/3/0"
usb.autoConnect.device2 = "name:Silicon\ Sonoff\ Zigbee\ 3.0\ USB\ Dongle\ Plus vid:10c4 pid:ea60 path:1/1/3/6/1"
usb.autoConnect.device3 = "name:Realtek\ Bluetooth\ Radio vid:0bda pid:8771 path:1/1/3/4"

You can read more about this here.

You can also get all the connection information from the VM startup logs.

1 Like

Yes great source, and if I understand well, what you did allows to plug the USB sticks wherever you want.

The main thing I think; (at least in my case) you’ll notice I have 2 devices with the same exact VID and PID (z-wave and zigbee sticks). I don’t think this generally causes a problem for most, but It may have been the cause for me.

So now I complete as much information in the connection string as possible.

1 Like

I’m stuck in hell on this one. I’ve got HA running on VMware on Windows. I finally got it where HA can see the Bluetooth USB adapter, but it still fails with a bunch of errors. Do you recommend a particular adapter?
image