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.
“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.