[SOLVED] Help how to use addons.cfg correctly

I curently running the following bindings

  • astro
  • zway
  • mqtt
  • hue
  • systeminfo
  • samsung-tv
  • amazon dashbutton
  • exec
  • http
  • network

the following misc

  • openhabcloud

the following PERSISTENC

  • mysql

the folowwing ui

  • Basic UI

my addon.cfg looks like

# A comma-separated list of bindings to install (e.g. "binding = sonos,knx,zwave")
binding = network, astro, exec, zway, amazondashbutton, systeminfo, mqtt, http, samsungtv

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

# A comma-separated list of persistence services to install (e.g. "persistence = rrd4j,jpa")
persistence = mysql

# A comma-separated list of actions to install (e.g. "action = mail,pushover")
#action = 

# A comma-separated list of transformation services to install (e.g. "transformation = map,jsonpath")
#transformation = 

# A comma-separated list of voice services to install (e.g. "voice = marytts,freetts")
#voice = 

# A comma-separated list of miscellaneous services to install (e.g. "misc = myopenhab")
misc = myopenhab

my question is now how do i get everytime the corct name of the binding or addon that i can be sure that the correct addons are loaded???


Check the list in Paper UI (Go to “Addons”, and then, let’s say “bindings”). There, under the thickly written name of the binding, you will see “binding-airquality-2.4.0”). in this case, add “airquality” to your line with "binding = ".

Then, go to Paper UI, “Configuration” and “Binding”. There you can see all installed bindings to verify that you have written your addons.cfg correctly.

Hakan’s approach is what I use but just to provide another avenue for those who may not have PaperUI installed, you can use the URL of the README doc for the binding. For example the URL for the README for Air Quality is https://www.openhab.org/addons/bindings/airquality/ and the URL for the HTTP binding is https://www.openhab.org/addons/bindings/http1/.

If you look at the last part of the URL, that will be what you need to put into addons.cfg: airquality, http1

This isnt the solution, because for say bom or broadlink the url doesnt even exist!

That’s right; since this post was made years ago the online locations have changed.

Just to elaborate a bit… that two year old post was referring to OH 2.4 (I think). OH 3 wasn’t yet a thing. OH 3 supports no OH 1.x bindings. So of course, if you choose an OH 3 version of the docs:

the pages for OH 1.x versions of bindings will not exist. They are not supported. They are no longer maintained.

However, the archived 2.5 version of the docs does still list the 1.x bindings.

And you can still look at the last part of the URL to find the value to be put into addons.cfg.

However, I strongly recommend against starting with a new 1.x binding no matter what version of OH you are running. These add-ons are no longer supported so any bugs that exist in them will never be fixed. New features will never be added. And most users on this forum will not support them when you run into trouble.

For Broadlink in specific, that’s a new binding that was not merged until OH 3.1. So it’s not going to be listed anywhere except in the 3.1 version of the docs. Broadlink Thermostat - Bindings | openHAB

I don’t know anything about BOM. I can find no evidence that such a binding has ever been merged with OH proper so of course there wouldn’t be a documentation page for it.

1 Like