My setup is HA as a VM in Proxmox. For different purposes 3 USB adapters with different ID’s are configured (by HW port). One of the three identifies as a CH340 serial (zigbee stick) in HA:
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
This works flawlessly and survives reboots.
This approach falls apart when I add another CH340 type of serial adapter. It is a 1 channel USB relay. I want to use this relay to control a pump and prefer to do by wire for stability reasons.
Now I have 2 devices with identical ID’s. This is something the CH340 is known for.
It works if in Proxmox I configure the relay by hw port also. In the running HA VM it will then show up as USB3 and can be switched. But when I reboot the Proxmox host the USBx mapping for the two CH340 serial adapters mix up rendering both the zigbee stick and the relay unusable.
HA:
ttyUSB0
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
ttyUSB3
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
Proxmox:
Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
I omitted the other two adapters from the list above.
Is it possible to use two USB devices with identical ID’s in a single HA VM? If so, can someone stop me pulling my hair out?
- Core 2024.4.0
- Supervisor 2024.03.1
- Operating System 12.1