[SOLVED] Initial Setup Package Selection using addons.cfg

OpenHab 2.2 has been running our house successfully for a few months.

As I saw upgrade and fixes already in current development, I want to install the latest version on a second Pine 64 I have for this purpose. And swap these two machines when it works.

I wanted to start clean so I reinstalled the SD card and did an upgade to 2.2 release build.
Then I made a mistake. I clicked “Skip the package selection”

I can re-start over, yet I hope there are other options

  1. is there a way to go back to the initial page?
  2. I do understand that I can install them using addons.cfg.
    I think this last one would be a lot better as I can reuse the scripts for the installation of both Pine64s. Like I now already do with all the scripts for the sitemap, items things etc etc …

It was not clear from the documentation that part of the documentation is in the addons.cfg itself. That took me a while to figure out. Yet now I know that, I’m still confused on what names to use in the cfg file. (Every section contains a few examples, yet it’s unclear where I can find the rest.

Where can I find these names?

When I select option though the paper UI, I assume that what I select is saved somewhere.

A) Is it?
B) Where?
C) Is that saved in the same format that I can reuse in the addons.cfg ?

If you are talking about addons: grab the names from PaperUI, for example:

1
binding = airquality,alarmdecoder1

Yes

All PaperUI settings are saved in your JsonDB.

I never took a look, just use the package name from the docs:

package = expert

Note that you cannot mix configuration with addons.cfg and PaperUI: you need to use either one.

seems to work.
I do have trouble with basic UI & paper UI
I tried both
ui = “basic,classic,habmin,habpanel,paper”

and ui = “basicUI,classic,habmin,habpanel,paperUI”

classic,habmin,habpanel work
basic ui and paper ui don’t.

what did I do wrong?

y

Did you try basicui and paperui as well?

yes.
I already found one strange thing. Every list should end with a “,” otherwise the last item is not installed.
Still did not help with paper.

same error at the start.
By adding a , before the list, the first items are added. basic ui is now added by using

ui = “,basic,classic,habmin,panelui,habpanel,”

(Doing this in Openhab 2.2 release build)

I can’t get panel UI working.

There is no such thing as panelui. Do you mean paperui?

Here is my addons.cfg addons.config.

Edit: This file shouldn’t be edited manually, it’s just for reference of the bundle names.

1 Like

euh… copy past error from habpanel that I did not catch
yes paper ui works now
thanks

Remove the doublequotes!
ui = basic,classic,habmin,habpanel,paper

Take a look at the examples in the original addons.cfg:

# A comma-separated list of UIs to install (e.g. "basic,paper")
#ui =

A comma-separated list of UIs to install (e.g. “basic,paper”)

this contains double quote’s…

Where do you see doublequotes? :sunglasses:

his contains no items.
unclear documentation for me.

Then believe users who used to work with the addons.cfg :rofl:

I’m believing you, Im’ just reacting to the fact that it’s unclear.
I’ll propose a better version.

1 Like

Now I see what may have distracted you: @job posted his addons.config, that is a different story: that one gets populated after you edit your addons.cfg or make any changes in PaperUI and contains doublequotes, the addons.config should not be edited manually!

I guess, Yves is confused by this inconsistency:

It’s hard to explain in a plain text file to just have the coma-separated list of items you want to have activated in the config, but not use some kind of distinguishing between normal text and the one which has to be included.

But - on the other hand every configuration already in the ootb-version of addons.cfg didn’t have quotes… so? :wink:

Now I’m even more confused . This is the start of the file.
Nowhere it says it can’t be changed manually. It even explains how to change it.

  • when I do change it, it works mostly while expected.

The installation package of this openHAB instance
Note: This is only regarded at the VERY FIRST START of openHAB
Note: If you want to specify your add-ons yourself through entries below, set the package to “minimal”
as otherwise your definition might be in conflict with what the installation package defines.

I now understand what it should be, yet the text is unclar like you say.

For me the example should be

A comma-separated list of UIs to install (e.g. “ui = basic,paper”)

That is much clearer.

But - on the other hand every configuration already in the ootb-version of addons.cfg didn’t have >quotes… so?
in the installed file there are no configurations added …

@Yves - your place for editing files is /etc/openhab2/* - nowhere else!

the other directory is the “working files” of OH2 - and is not to be touched manually at all. *)

*) exeptions apply :slight_smile:

addons.cfg is inside /etc/openhab2/services/