In jail /dev/cuaU#number always change after restart

nonjtjt

Cadet
Joined
May 29, 2020
Messages
4
Hi, I'm using zigbee2mqtt in jail for my homeassistant whis is in another jail, that's doesn't matter.
In the Jail after restart FreeNAS (or sometimes restart Jail but normally doesn't) the cuaU number of my cc2531 USB device is changed.

for example Zigbee2MQTT is running and working as it good,
ls /dev show:
Code:
cuaU1       cuaU1.init     cuaU1.lock
for the cc2531

one day I restart my FreeNAS for some reason. The zigbee2mqtt will always not work correctly due to the cuaU1 was changed to cuaU0
ls /dev show:
Code:
cuaU0       cuaU0.init     cuaU0.lock
for the cc2531

The zigbee2mqtt need to config in the configuration file (configuration.yaml) like this

Code:
serial:
  port: /dev/cuaU1


How to fix the cuaU number or to tell iocage to change number automatically or can I enter 2 port??

Thanks
 
Top