Modbus, possible to stop loading extensions?

I use the Modbus binding for controlling my Victron devices. When I list the installed bundles in the Karaf console using bundle:list -s, I get, except the ‘org.openhab.binding.modbus’ multiple other modbus extensions like ‘org.openhab.binding.modbus.e3dc’ . I can unload then in the console and my Victron modbus-binding keeps on working.

How can I prevent the loading of these extensions when I don’t need them? It gets very messy this way and probably it takes up memory also.

Until those are split it into their own binding, you can’t.

It’s only as of OH 5.0 that the concept of separately installed subbindingsb became possible, with the HoneAssistant add-on being the first one (split from the MQTT binding).

Until someone does the same for modbus, all the subbindings come bundled with the main modbus binding.

But unless you have Things created, the amount of memory use is neglible.

Thank you Rich for this clarification.

It seems it is what it is.

I don’t hope many binding will follow this mechanism because the bundlelist will grow enormous and becomes almost impossible to manage

why do want to “manage” the bundle list once it’s installed?

Sometimes I want to list the installed bundles in case of troubleshooting or finding names for logging or trying new jars an to uninstall bundles.

The bundlelist gets very long in this way and besides that, I don’t like the fact that not used packages are installed and take up memory.

There should be a way in the main package, where you can tick the subpackages you to be installed too.

“Impossible to manage” is way over the top and not quite a convincing argument … normally you shouldn’t be messing with bundles once you have those for your hardware installed, should you?
In case you don’t know you can do e.g. bundle:list|grep -i modbus
And as Rich already replied, the amount of memory use is negligible so why bother on that part.

Funny you say this.

Thats exactly my point. I have no hardware installed for all those extra extensions, only for the main modbus- binding :grin:

But if this is what it is, I can live with it.