What config files?

I want to thank everyone who’s tried to help me so far. But I’m still having problems. So my question is, are there any other files that need to be configured besides the ones below for one Sonoff basic on-off switch? Thanks for your input.

mqtt.cfg
.items
.sitemap

You may need to configure services/addons.cfg to activate the mqtt1 binding if you did not do that via PaperUI.

But I think these files are all you need.

I did it through the paper UI. But now I’ll check. Thanks.

Add-ons.cfg reads:

[10:14:54]     openhabian@openHABianPi:/etc/openhab2/services$ cat addons.cfg
# 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.
#
# Optional. If not set, the dashboard (https://<yourserver>:8080/) will ask you to choose a package.
#
# Valid options:
#   - minimal  : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups.
#   - simple   : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality!
#   - standard : Default setup for normal users, best for textual setup
#   - expert   : Setup for expert users, especially for people migrating from openHAB 1.x
#   - demo     : A demo setup which includes UIs, a few bindings, config files etc.
#
# See http://docs.openhab.org/configuration/packages.html for a detailed explanation of these packages.
#
#package = minimal

# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
# This not only makes latest snapshots of add-ons available, it is also required for the installation of
# any legacy 1.x add-on. (default is true)
#
#remote = true

# Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is
# already a 2.x version available (requires remote repo access, see above). (default is false)
#
#legacy = true

# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
#binding =

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

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

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

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

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

# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
#misc =
[10:15:05] openhabian@openHABianPi:/etc/openhab2/services$     # A comma-separated list of persistence services to install (e.g. "rrd4j,jpa")
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     #persistence =
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     # A comma-separated list of actions to install (e.g. "mail,pushover")
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     #action =
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     # A comma-separated list of transformation services to install (e.g. "map,jsonpath")
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     #transformation =
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     # A comma-separated list of voice services to install (e.g. "marytts,freetts")
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     #voice =
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     # A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     #misc =
[10:15:15] openhabian@openHABianPi:/etc/openhab2/services$     [10:01:58] openhabian@openHABianPi://etc/openhab2/services$

It down not matter if you install the binding via PaperUI or addons.cfg.
As long as the binding is installed at all.

If it is nor working, feel free to give us more information.

Otherwise your question is answered. :wink:

Christiph_wempe
Thank you but not a definitive answer. I have those files configured and it still doesn’t work. Maybe I need a map file or transition file. Hence my question. If others agree with you then I will mark as answered/solved.

What I meant was: We cannot help you if you don’t tell us your problem. :slight_smile:

@christoph_wempe
Thank you but, because all my questions are related to the same problem, i will try to avoid posting the same question in multiple threads. Hopefully my pub_sub thread will pan out. thanks for your input.