MQTT openHAB2 configuration

Hi,
I have installed openHAB2 (on Debian) and on the same machine I have mosquitto, which is receiving temperatures from simple ESP8266/DS18B20 board.

    Client mosqsub/4230-DebinGway received PUBLISH (d0, q0, r0, m0, 'kotelna/t1', ... (5 bytes))  50.81

Is there some tutorial for total newbies, how to configure openHAB2 to show the temperature values from such sensor? I have found some for openHAB1, but the locations of the configuration files seems to be different and I didn’t succeded with it.

Thanks in advance for any help

Jakub

I don’t have such a tutorial, but the general rule is:

For every line in OH1’s openhab.cfg like this:

someservice:key=value

You would have a file in OH2 services/someservice.cfg containing the line

key=value

If installed openHABian or the Debian apt-get distribution, this is /etc/openhab2/services/someservice.cfg.

If you have the binding installed, you should have an MQTT.cfg file. Do that first.

< = incoming
mosquitto = what you called the broker in MQTT.cfg
garage/temp = your topic

Number	GTemperature	"Temperature [%.0f]F" 	<temperature>	{ mqtt="<[mosquitto:garage/temp:state:default]" }

.sitemap

Text item=GTemperature