this question was asked several times with regards to generic USB devices. However, udev approach doesn't seem to work with HIDRAW devices.
I've tried to write something like the following to /etc/udev/rules.d/10-local.rules
:
ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="16d6", ATTRS{product}=="JA-100 Flexi", SYMLINK+="my_device"
But this maps parent USB device, not the HIDRAW one. So, how can I persist the name for hidraw in case it changes after reconnect from, say, hidraw0 to hidraw1?