OpenHAB 3 Linux: location of config files

  • Platform information:
    • Hardware: x64 qemu kvm
    • OS: Arch Linux
    • Java Runtime Environment: OpenJDK 64-Bit Server VM (build 11.0.8+10, mixed mode)
    • openHAB version: 3
  • Issue of the topic: Where are all the config files located?
    I already checked:
    /etc/openhab3
    /usr/share/openhab3
    /var/lib/openhab3

None of the directories contain any files related to my config.
The last change date also reflects that.

So I messed up something and would like to remove a whole bunch of items from my config.
BTW: I don’t know if this is a bug, but once I remove any equipment from the Model page ALL items linked to it are not removed but instead added one by one to the Model. Which is why I just messed up my config.

Just a guess but try looking without the 3. There are no longer version numbers in the directory names.

But for me those where the only directories I was able to find.

I searched my whole system for directories called “openhab”.

–/etc/openhab3
–/usr/share/openhab3/
----/usr/share/openhab3/runtime/system/org/openhab/
–/var/lib/openhab3/
----/var/lib/openhab3/config/org/openhab/
----/var/lib/openhab3/tmp/mvn/org/openhab/

None of them contain any recently touched files which could belong to my items, things, etc.

“There is /etc/openhab3 where you can store your files for file based config. The config you do in the GUI is stored in /var/lib/openhab3/jsondb.” - from the Developer of the AUR package of OpenHAB 3.

In the main UI as an admin you can go to Help & About and you will have the different folder locations under Technical information.

1 Like