Hello Community. I have a question about HabPanel configuration files location. There are two devices where OpenHab server is run and I want to copy Habpanel interface from one device to another (I develop Habpanel interface via web browser). What files must I copy and where they are located?
Look in /var/lib/openhab2/etc/org.openhab.habpanel.cfg.
There is no such file in /var/lib/openhab2/etc/ folder.
How about /var/lib/openhab2/config/org/openhab/habpanel.config?
Just open HabPanel for one machine and find the configuration, then export it.
Open the other HabPanel and import it…
(I do this to create a “known good” backup of HabPanel, as I once had a hideous experience with the HabPanel restore during a full openHAB2 restore )
It’s better. Must I copy only this file or there is something else to copy ?
Where can I find export or import HabPanel option ?
In Paper Ui -> Configuration -> Services -> HABPanel is a JSON file. Must I copy this file ?
Arrr…
I see the confusion…
Try the HabPanel app instead
http://{IP_ADDRESS}:8080/habpanel/index.html#/settings
http://{IP_ADDRESS}:8080/habpanel/index.html#/settings/localconfig
Or the steps to find it are…
http://{IP_ADDRESS}:8080/habpanel/index.html
Click on the Cog icon in the top right corner
Then scroll down until you see
“Panel Settings”
Then click on
Edit the local panel configuration (experts only)
From there, you’ll find the Import and Export options
But saying all of the above, I guess coping that file would be the same…
As a heads-up, the location of the panel registry is planned to change in OH 3.0, that’s necessary because the services API used to store the configuration is now restricted, only logged in users with an admin role are authorized to access it.
We can’t mandate an admin user to login to use HABPanel, so the storage will likely be ported to the new “UI components” concept. In practice, it means it will be in a properly formatted/indented JSON file in the jsondb
directory. You will still be required to login to save though.
It also means its structure will have to change a bit, and won’t be backwards compatible; but we’ll try to make the migration as smooth as possible to avoid headaches.
I found it. Thank you for your answer.
Thank you for your answer.
To give an update for people who have the same question in Openhab 4:
/var/lib/openhab/jsondb/uicomponents_habpanel_panelconfig.json