Haha ok, thanks a lot Dalong… I missed that part, despite so much readings and searches on the web.
This sounds so logical. I was very surprised not finding any free solution in the HA world.
I hope (many) others will find your post here and spare 50€ (one time fee, which is correct for the VH solution, unlike other where you ca pay a lot every year or so).
I was also looking for the solution (when realize Hyper-V does not support USB path-through). I read that usbip is built into the linux kernel from 3.17 and for a while I only used the usbip client in Linux (and usbip server on windows). But then I saw quite a few people talking about using RPI as the usbip server and thought I might give it a try (since I remembered linux support both client and server). I have a old RPI 3B+ laying around and initially there was binding issues (after enable usbip-host). It turned out to be mismatch between kernel and usbip tools. After I did apt-get update & upgrade it finally binds and works.
Unfortunately there is no true free solution on Windows platform. This is niche market and vendors don’t mind charging a hefty price. Being a node locked license means I cannot easily migrate to a different computer, plus I almost have no use of usbip software out of this particular scenario. The closest I could find is open source driver that requires one to build and self-sign to use on Windows in Test Mode. Currently I am going through this route. If I finally decide to migrate everything to HA platform (I am currently on Hubitat and have 15+ Zwave, 10+ Zigbee, 15+ Wifi devices and handful of Lutron Pico remotes) I might spend extra $50 for VirtualHere solution. But for now I am fine with the test mode driver.
@aceindy Does the netburner still works?
I just got the Sonoff Zigbee dongle. Firmware updated.
My setup is HA 2022.6.6 running HASSOS 8.2 in a hyper-v VM. Server OS is WS2019 where I have the dongle installed. Running Z2M locally on the WS2019 with NPM, it works using the COM port, so the dongle works.
But running either locally on the server or as addon in HA using the netburner adress, it fails.
From Log:
2022-06-20T17:05:00.868Z zigbee-herdsman:adapter:zStack:znp:log Opening TCP socket with 192.168.0.250:5656
2022-06-20T17:05:00.881Z zigbee-herdsman:adapter:zStack:znp:log Socket connected
2022-06-20T17:05:00.881Z zigbee-herdsman:adapter:zStack:znp:log Socket ready
2022-06-20T17:05:00.882Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2022-06-20T17:05:00.882Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2022-06-20T17:05:01.884Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2022-06-20T17:05:01.885Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-06-20T17:05:01.886Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-06-20T17:05:07.888Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-06-20T17:05:07.889Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-06-20T17:05:13.895Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-06-20T17:05:13.896Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2022-06-20 19:05:19: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-06-20 19:05:19: Failed to start zigbee
Zigbee2MQTT:error 2022-06-20 19:05:19: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-06-20 19:05:19: Exiting...
Zigbee2MQTT:error 2022-06-20 19:05:19: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:109:5)
From a client i’m able to telnet to the IP of the the netburner comport.
Can anyone help me with the config for this - got HASSOS in hyperv and netburner on the host machine with skyconnect plugged in. I’ve opened the firewall ports but can’t get a connect in the ZHA config. It could very well be that i have it all wrong so though i would ask for a pointer. Screengrabs below - i have created in and outbound firewall rules. 192.168.1.164 is the IP of the W11 machine which is running netburner (and on which HA is running in hyperv)
Hmm no - but as you can see i also cannot ping the host machine from another PC on the network so something is up there. The second screengrab is the IPconfig of the machine with netburner on; clearly i need to look into that first. Will do that and report back.
Ok, temporarily i can now ping the host (firewall issue, works when turned off). No response on telnet though - is that my Netburner config that will be causing that? I tried it on the host machine (pinging itself, then the telnet) - ping was fine, same error for telnet.
I don’t have Eltima - maybe i have misunderstood how it works? I though Netburner (or HW-VSP3) would take the input from the skyconnect and transmit it over the network in a format (TCP) that ZHA could then pick up. Have i got that wrong?
Nope - same story! Do we think that, in theory, it should work then?
Edit - firewall is off on the host to try and eliminate blocks there.
Edit 2 - could there be a router level ‘thing’ blocking the port?