Replies: 4 comments 4 replies
-
This idea was floated to me too, but I've yet to see how and if that can even work in a Docker environment, which is where most instances of zwave-js are executed. I did some quick tests recently and this is the info the driver has access to: Windows, no virtualization ✔
Windows, in Docker ❌
If there's a foolproof way to expose this info to the driver when in Docker, I think that would be a good UX improvement. But from the little I've seen, that requires some potentially unsafe volume mounts. Setting up the device mounts is outside our control anyways. |
Beta Was this translation helpful? Give feedback.
-
FYI, Silicon Labs UZB-7 USB Stick (Silabs SLUSB001A / SLUSB7000A) Z-Wave 700 Controller with its default USB-to-serial converter EEPROM settings can probably not be whitelisted for automatic USB discovery in Home Assistant with the current probing method used since the hardware is presented as a generic "CP2102N USB to UART Bridge Controller" with factory default ID information: VID = 10c4 I guess that Silabs could not be bothered for this reference dongle hardware, however CP2102 specification does list it has writable EEPROM: https://www.silabs.com/documents/public/data-sheets/CP2102-9.pdf "The CP2102 includes an internal electrically erasable programmable read-only memory (EEPROM), and the While customization of the USB configuration data is optional, it is recommended to customize the VID/PID The internal programmable ROM is programmed via the USB. This allows the OEM's USB configuration data and |
Beta Was this translation helpful? Give feedback.
-
I know that I’m late to the game here, but the HA devs already reached out to the manufacturers to ask them to change the VID/PID. They’ve removed automatic detection for the 700 sticks as it falsely hits on anything with the same serial adapter, which is quite a number of devices. |
Beta Was this translation helpful? Give feedback.
-
In slightly related news VCTLabs is working on updating the cp210x-program which is an open-source tool for writing changes to CP210x: https://github.com/VCTLabs/cp210x-program Silicon Labs CP210x USB to UART Bridge / Serial Converter chips CP2104, CP2102, and CP2102N are commonly used in Z-Wave USB sticks. https://www.silabs.com/interface/usb-bridges/usbxpress https://www.silabs.com/documents/public/data-sheets/cp2102n-datasheet.pdf If you are a developer then guess this would be best tested on Silabs official CP2102N USBXpress Bridge Development Kits? https://www.silabs.com/development-tools/interface https://www.silabs.com/development-tools/interface/cp2102n-development-kit https://www.silabs.com/development-tools/interface/cp2102n-mini-development-kit https://www.silabs.com/development-tools/interface/cp2104ek-development-kit https://www.silabs.com/development-tools/interface/cp2104-mini-development-kit |
Beta Was this translation helpful? Give feedback.
-
FYI, Home Assistant developer bdraco has just now added support for automatically discovering USB adapter in Home Assistant's Z-Wave JS integration, (for more back-story and the gritty details see Home Assistant core pull requests #54904, #54935 and #54986).
I think it would therefore be much appreciated to new HA users if you consider submitting new PRs to upstream Home Assistant core with "friendly name" as a description if you got any compatible Z-Wave USB adapters which unique Vendor ID (vid) / Product ID (pid) identifier that has not yet been added to the ZWave JS component manifest in Home Assistant core:
Note! As per discussions #55225, #55236 and #1039, devices need to have unique description as generic + VID and PID are not enough.
https://www.home-assistant.io/integrations/zwave_js/#discovery-via-usb
https://github.com/home-assistant/core/blob/dev/homeassistant/components/zwave_js/manifest.json
https://github.com/home-assistant/core/blob/dev/homeassistant/generated/usb.py
PS: The same new USB discovery in HA similarly also applies to Zigbee USB adapter for the Home Assistant's ZHA integration, see:
https://www.home-assistant.io/integrations/zha/#discovery-via-usb-or-zeroconf
https://github.com/home-assistant/core/blob/dev/homeassistant/components/zha/manifest.json
https://github.com/home-assistant/core/blob/dev/homeassistant/generated/usb.py
Beta Was this translation helpful? Give feedback.
All reactions