I’ve got a simple add-on that I’ve been writing. I knocked up a simple version and put it in the “addons” directory, and it is working fine.
I’ve now written a better version, but I can’t work out how to replace the old one.
I have naively replaced the jar file in the addons directory with the new one, restarted openhab, but magically it’s still using the old one. From my knowledge of Karaf, restart probably ought not to be necessary due to the magic of OSGi, but I thought just in case.
From the openhab console, bundle:list shows two bundles:
197 | Active | 80 | 188.8.131.52706021346 | My Binding 199 | Installed | 80 | 184.108.40.206706110704 | My Binding
I expect I would be able to use console commands to stop 197 and start 199, but is this the right way? How do I property uninstall my “old” addon? Clearly it’s copied the add-on somewhere, but I’ve done some “find”-ing and I can’t find it anywhere if it has.
I’ve had a search around and couldn’t find anything anywhere, or failed to hit on the right search term.