Avoiding hardcoding service port names in qml

Hi, I am writing a custom dbus service for the CerboGX.
The service is reading and writing from a serial port and is working as expected.
So everything is good so far.

However, I’ve now run into a problem with writing the UI code in qml
My device does not fit into any of the hard coded device types: battery/tank/gps etc etc listed here:

So I registered on the dbus service under:

com.victronenergy.mydevice.ttyUSB0

This has been fine until I got to the UI
Initially I hardcoded the port in the qml code (to get started)

VBusItem { id: myItem; bind: “com.victronenergy.mydevice.ttyUSB0/Values/SomeValue” }

This worked fine. But obviously I need to be able to discover the device port dynamicaly.

From what I have figured out you should be able to do this using the
DBusServices object in qml.

When I register my service on the dbus using:
com.victronenergy.tank.ttyUSB0 (using tank just as a test)

It works and shows up in DBusServices instance in the qml code, and I get the additional connect/disconnect events for the service. All is good.

However when I register using a custom device type:
com.victronenergy.mydevice.ttyUSB0

The service runs fine but does not get added to the DBusServices collection.

So my question is
Can you register a custom device type so a service gets added to the DBusServices (note ‘DBusServices’ plural) correctly?

Or

Is there an alternate way to discover a custom service and bind VBusItem objects in qml without hard coding the port.

I looked into adding the port to the “com.victronenergy.settings” service and then query there for the port(s). Then append the port to the fixed part of the path. But it gets flaky trying to keep track of whether the port is valid and not stale etc.

Thanks in advance.
N