Openhab does not load addons in addons folder

  • Platform information:
    • Hardware: Raspberry Pi 4 Model B Rev 1.2
    • OS: Raspbian GNU/Linux 11 (bullseye)
    • Java Runtime Environment: openjdk 11.0.18 2023-01-17
    • openHAB version: 3.4.4 (repos installation)

I can’t figure out why openhab refuses to load any addons in the addons folder, it does not even try, there’s absolutely nothing in any logs. I use the /usr/share/openhab/addons as is the default for a repos installation.
Double checked file permissions, chown’ed the addon file to openhab:openhab, used the openhab-cli to explicitly fix permission issues.

sh#:/usr/share/openhab/addons# ls -l
total 284
-rwxr-xr-x 1 openhab openhab 141463 May 18 08:53 org.openhab.binding.lgthinq-3.4.3-SNAPSHOT.jar

Is there a command to forceload a file ? other suggestions? :thinking:

You did a restart of the OH service ?

Yes I’ve restarted, also upgraded from 3.4.3 to 3.4.4 (the problem was there before and after) :woozy_face:

AFAIK bindings that you add into addons folder will not show under installed bindings in UI, but you should still be able to add things (binding will be listed when you try to add a new thing). Not sure if that is the case for you, just FYI …

Ok, but it should list itself in CLI (bundle:list) ? That’s where I’ve been checking :thinking:

Yes, there it should.

1 Like

I always use bundle:install „path to file on github“ to install this binding.

1 Like

Ah thank you!
This worked perfectly:

bundle:install “https://github.com/nemerdaud/openhab-thinq-stuff/blob/main/org.openhab.binding.lgthinq-3.4.3-SNAPSHOT.jar?raw=true

1 Like

When I install the bundle with bundle:install, where does the .jar file end up on the drive ? I can’t find it. It for sure is not in the addons folder. (OH 4.2.0 & OH 4.3.0 M2 ) When I put it there, it was ignored anyway.

Note to future_me: do use the ?raw=true at the end of the url and then do bundle:start ID
The ID is shown when doing bundle:list

Those bundles end up in different folders. You can’t manually change anything. To remove, use bundle:uninstall [bundle number]

Thanks. So what about the addon folder ? Has it quietly been moved somewhere else ?

The folder or the file ?

The folder.

Depends on your installation. Please read the installation docs which describe where folders are located. In a plain debian package installation, it is under /etc/openhab.

Thanks. I think I am way beyond this. I run docker and have been searching inside the container too. There is a folder /openhab/userdata/tmp/mvn/org/openhab/addons but that does not contain the addon I installed via the cli. There is the /openhab/addon folder, this is mapped in docker compose. I checked - can see the files from within the container and on the host. Permissions are openhab:openhab like the config and userdata folder (where they work). I was so desperate to make them 777, of course that didn’t help.

OK, docker is just mapping those folders into the container. Glad you found it…

Actually I did not. The folders I found had no trace of my binding.
bundle:install solved the problem for now, still

  1. the addons folder is not functional for me and
  2. I would really like to know where the bundle:install command put the jar file. Just to understand what happened and make sure its still there next time I boot the RPi
    .