WebThingsIO / zwave-adapter

Z-Wave adapter add-on for WebThings Gateway
Mozilla Public License 2.0
15 stars 20 forks source link

Add Nortek S&C HUSBZB-1 controller stick #10

Closed guymcswain closed 6 years ago

guymcswain commented 6 years ago

As interim fix please add these port properties to isZWavePort()

guymcswain commented 6 years ago

This USB stick has dual controllers for ZWave and ZigBee. Both controllers reside behind a usb-serial bridge with identical port.vendorId and port.productId. I have not used ZigBee but I would expect this code to break there if a similar 'enumeration' method is used. The permanent fix should avoid using the usb-serial bridge to enumerate the attached controllers.

mrstegeman commented 6 years ago

@guymcswain Can you confirm that #11 fixes the issue?

guymcswain commented 6 years ago

By examination, yes, this is how I patched my code to get to working. I would be happy to rebuild from a merged repo of the gateway or show me how to do this.

mrstegeman commented 6 years ago

@guymcswain I've released an updated package. If you go into Settings->Add-ons, you can remove the old Z-Wave adapter and then get the updated version by clicking the + at the bottom right.