HABPanel can only save locally

Hi, I’m running openHAB 2.0.0.b5, and just started with HABPanel. I understand it should be possible to store configuration centrally, which is important to me. However, I only see the option of storing locally (from HABPanel -> Burger menu -> Cogweel -> Current storage configuration).

How can I store centrally?

Below the selection for local storage there is a clickable area "Save the current configuration to a new panel configuration"
Did you try to click there?

2 Likes

Thanks, that was not intuitive to me :slight_smile:

2 Likes

One a different device, how do we load a configuration panel that was saved to OpenHAB from another device?

I’d save it from the first device on the Server, as pointed out above, and load it from the Server with the second.

How do we “load” it from the server on the second device?

Go to Edit Dashboards->Advanced Settings and select the Panel Configuration that is already stored

1 Like

Just a related question, where on the server is the panel data actually stored ?

It’s saved as a configuration property, you can see it:

  • In Paper UI, Configuration > Services > UI tab > HABPanel > Configure (click Show more and resize the text area);
  • in the Karaf console: config:list "(service.pid=org.openhab.habpanel)"

It is also saved on your filesystem in userdata/config/org/openhab/habpanel.config.

1 Like

No, me neither.
It took me a while to figure out that the dashboard was stored locally in the browser, I thought it just kept forgetting my panels. I eventually found this area that confirmed to me that it was stored in browser local storage, but it didn’t occur to me that “Save the current configuration to a new panel configuration” would be a useful thing. To me that sounds like “save as” functionality.

HABPanel looks really nice, apart from the local browser only nature of it IMO. I want to set something up that I can then easily view from a tablet of phone. I don’t want to do the actual development on the phone though for obvious reasons :slight_smile:

That’s the reason one should always take a look at the docs:

http://docs.openhab.org/addons/uis/habpanel/readme.html

Once you’re happy with your set of dashboards, go back to “Advanced settings” then click/tap on “Save the current configuration to a new panel configuration”; this will store it on the openHAB 2 server as described above, and make it available for reuse

1 Like

I just can’t seem to find the correct URL for the panel once it’s saved. I tried:


  • It seems it’s not even mentioned in the documentation nor in the Settings when you save it to the server what the correct URL will be. Can someone point me in the right direction? I might have missed something.

This is the part of the docs you will need:

Once you’re happy with your set of dashboards, go back to “Advanced settings” then click/tap on “Save the current configuration to a new panel configuration”; this will store it on the openHAB 2 server as described above, and make it available for reuse.

On the upper right corner of you HABPanel go to:
1 = Edit dashboard

then click on Advanced settings:
2

and then save your config to the server via:
3

To load one of your configs you have to go to:

http://<ip_of_your_server>:8080/habpanel/index.html#/view/Name_of_your_config

But it is even easier to do that via gui:
http://<ip_of_your_server>:8080/habpanel/index.html#/ and then just click on your config name.

Thank you sihul for the explenation, but I still can’t get it to work. On my laptop in Google Chrome I go to ‘http://192.168.x.xx:xxxx/habpanel/index.html#/view/Overview’ or ‘http://192.168.x.xx:xxxx/habpanel/index.html#/view/TestPanel’ and it works fine. When I then try these links in an incognito tab on Google Chrome it’s just all black, same happens on another PC.

Am I still doing something wrong? Attached a screenshot of the Settings below.

Screenshot from 2017-10-14 15-54-33

You have to choose the right panel configuration first in the settings, the current panel configuration is stored in the browser’s local settings, but if you go to Paper UI, Configuration > Services > UI > HABPanel > Configure, you can specify an “initial panel configuration” setting. If you set it to “TestPanel” it will switch to it on new instance (for example, in incognito mode windows).

(in fact I could make this setting controllable from HABPanel, I’ll think about it).

Then URLs like:

http://192.168.x.xx:xxxx/habpanel/index.html#/view/{id}

will take you to the dashboard with the specified ID. The ID is usually the same as the title - except if you added the dashboard then renamed it, it won’t change - in other terms, it’s the title you gave when creating the dashboard.

2 Likes