My HA is run in a docker container on unraid.
I have two USB’s attached for home assistant - one is for my CurrentCost Envir and one is for the Aurora ABB PowerOne Solar inverter.
The CurrentCost integration was developed to use a custom device for the USB, however the ABB integration one only lets you select from the USB’s it found in the system when you first install the integration. And these devices can change on each restart.
By custom, I mean we can make a device in the docker compose as a custom name to its actual device in by-id, i.e you get a list of devices like this -
And then in the docker you can link a custom name to the ID of the device - rather than the device name /ttyxxxxxx.
This is in the docker compose therefore - notice the /dev/currentcost at the end - which can then be referenced in home assistant for comms - and will never change -
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0:/dev/currentcost
In comparison, the Aurora ABB PowerOne integration ONLY lets you select from the USB devices it finds - and unfortunately, after a reboot, these can swap around, so then I would have to delete the ABB integration, then re-add it with the correct one. Its happened twice to me now.
In summary, I think the Aurora ABB integration at setup time should sow the list as is, but also have a freeform entry so you can enter your own device name like the above for currentcost.