Hello
I’m encountering a problem during a power outage: the USB port assignments get swapped. My Sonoff USB dongle is installed on USB1 and works very well, my Arduino RFlink board is on USB0 and also works correctly. But after every power outage the Raspberry Pi systematically reassigns the Sonoff dongle to USB0 and the RFlink board to USB1. I did think of reassigning the ports USB0 => Sonoff dongle and USB1 => RFlink, but then I would need to reconfigure Node-RED and zigbeeMQTT. I was thinking instead of fixing each USB port, a bit like a static IP address. Can this be done and, if so, how?
thanks in advance for your answers ![]()
In theory, yes with udev rules, but it’s not supported by the USB library we use.
You have to hard-code the config, but if you’re not comfortable with Linux / gladys I don’t recommend it
Hello Vincent,
does that mean irreversible: « You have to hard-code the config »? Do you have to run the commands via SSH to configure the Raspberry Pi, is that it?
Anyway, I’ll follow your advice, I’ll modify the Node-RED and zigbeeMqtt settings
Thanks ![]()
Well, it’s mostly a hack;
Yes indeed, I’ll swap my ports in the NR and Z2M parameters. Thank you for the explanation.
Greetings!
I’m jumping into the conversation to ask the following:
How useful would it be to include this config in the official image, since @Psoy can’t be the only one who encountered the problem?
Is this feasible?
Have a nice day!