Hardcode usb device path into the linux

Have HA Superives running on top of 20.04 Ubuntu server
Have several USB sticks in question. The problem involves only two of them

  1. Modbus usb-1a86_USB2.0-Serial-if00-port0 → …/…/ttyUSB1
  2. Zigbee usb-1a86_USB_Serial-if00-port0 → …/…/ttyUSB0

Upon system reboot they sometimes change their numbering USB1 becomes 0 and vice versa. Is there any way to hadrcode those two so they get some unique paths which can be accessed?

You could fix this by creating your custom udev rules.
Take look at: udev - How to distinguish between identical USB-to-serial adapters? - Ask Ubuntu

FWIW this is not officially supported. I strongly advise to run Debian 11 as host OS.